* alloc.c: (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
[bpt/emacs.git] / src / ChangeLog
1 2011-03-15 Paul Eggert <eggert@cs.ucla.edu>
2
3 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
4 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
5 Rename locals to avoid shadowing.
6
7 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
8 avoids undefined behavior in theory.
9
10 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
11
12 Use functions, not macros, for up- and down-casing (Bug#8254).
13 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
14 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
15 to use the following functions instead of these macros.
16 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
17 EMACS_INT, since callers assume the returned value fits in int.
18 (upcase1): Likewise, for UPCASE_TABLE.
19 (uppercasep, lowercasep, upcase): New static inline functions.
20 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
21 the race-condition problem in the old DOWNCASE.
22
23 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
24 Rename locals to avoid shadowing.
25 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
26 (regex_compile, re_search_2, re_match_2_internal):
27 Remove unused local vars.
28 (FREE_VAR): Rewrite so as not to use empty "else",
29 which gcc can warn about.
30 (regex_compile, re_match_2_internal): Mark locals as initialized.
31 (RETALLOC_IF): Define only if needed.
32 (WORDCHAR_P): Likewise. This one is never needed, but is used
33 only in a comment talking about a compiler bug, so put inside
34 the #if 0 of that comment.
35 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
36 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
37 Remove; unused.
38
39 * search.c (boyer_moore): Rename locals to avoid shadowing.
40 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
41 (PREV_CHAR_BOUNDARY): Likewise.
42
43 * search.c (simple_search): Remove unused var.
44
45 * dired.c (compile_pattern): Move decl from here ...
46 * lisp.h: ... to here, so that it can be checked.
47 (struct re_registers): New forward decl.
48
49 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
50
51 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
52 All uses changed.
53 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
54 Rename locals to avoid shadowing.
55 (Fvertical_motion): Mark locals as initialized.
56
57 * casefiddle.c (casify_object, casify_region): Now static.
58 (casify_region): Mark local as initialized.
59
60 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
61
62 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
63 New macros, so that the caller can use some names other than
64 gcpro1, gcpro2, etc.
65 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
66 of the new macros.
67 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
68 argument, for consistency with GCPRO2_VAR, etc: it is now the
69 prefix of the variable, not the variable itself. All uses
70 changed.
71 * dired.c (directory_files_internal, file_name_completion):
72 Rename locals to avoid shadowing.
73
74 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
75 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
76 dired.c's scmp function, had undefined behavior.
77 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
78 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
79 * buffer.h: ... to here, because these macros use current_buffer,
80 and the new implementation with inline functions needs to have
81 current_buffer in scope now, rather than later when the macros
82 are used.
83 (downcase, upcase1): New static inline functions.
84 (DOWNCASE, UPCASE1): Reimplement using these functions.
85 This avoids undefined behavior in expressions like
86 DOWNCASE (x) == DOWNCASE (y), which previously suffered
87 from race conditions in accessing the global variables
88 case_temp1 and case_temp2.
89 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
90 * lisp.h (case_temp1, case_temp2): Remove their decls.
91 * character.h (ASCII_CHAR_P): Move from here ...
92 * lisp.h: ... to here, so that the inline functions mentioned
93 above can use them.
94
95 * dired.c (directory_files_internal_unwind): Now static.
96
97 * fileio.c (file_name_as_directory, directory_file_name):
98 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
99 Now static.
100 (file_name_as_directory): Use const pointers when appropriate.
101 (Fexpand_file_name): Likewise. In particular, newdir might
102 point at constant storage, so make it a const pointer.
103 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
104 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
105 signedness issues.
106 (Fset_file_times, Finsert_file_contents, auto_save_error):
107 Rename locals to avoid shadowing.
108
109 * minibuf.c (choose_minibuf_frame_1): Now static.
110 (Ftry_completion, Fall_completions): Rename or remove locals
111 to avoid shadowing.
112
113 * marker.c (bytepos_to_charpos): Remove; unused.
114
115 * lisp.h (verify_bytepos, count_markers): New decls,
116 so that gcc does not warn that these functions aren't declared.
117
118 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
119 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
120 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
121 (copy_text): Remove unused local var.
122
123 * filelock.c (within_one_second): Now static.
124 (lock_file_1): Rename local to avoid shadowing.
125
126 * buffer.c (fix_overlays_before): Mark locals as initialized.
127 (fix_start_end_in_overlays): Likewise. This function should be
128 simplified by using pointers-to-pointers, but that's a different
129 matter.
130
131 2011-03-14 Paul Eggert <eggert@cs.ucla.edu>
132
133 * buffer.c (switch_to_buffer_1): Now static.
134 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
135 (report_overlay_modification): Rename locals to avoid shadowing.
136
137 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
138 Fix pointer signedness issue.
139 (sys_subshell): Mark local as volatile if checking for lint,
140 to suppress a gcc -Wclobbered warning that does not seem to be right.
141 (MAXPATHLEN): Define only if needed.
142
143 * process.c (serial_open, serial_configure): Move decls from here ...
144 * systty.h: ... to here, so that they can be checked.
145
146 * fns.c (get_random, seed_random): Move extern decls from here ...
147 * lisp.h: ... to here, so that they can be checked.
148
149 * sysdep.c (reset_io): Now static.
150 (wait_for_termination_signal): Remove; unused.
151
152 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
153 (copy_keymap_item, append_key, push_text_char_description):
154 Now static.
155 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
156 (DENSE_TABLE_SIZE): Remove; unused.
157 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
158 (describe_map_tree):
159 Rename locals to avoid shadowing.
160
161 * keyboard.c: Declare functions static if they are not used elsewhere.
162 (echo_char, echo_dash, cmd_error, top_level_2):
163 (poll_for_input, handle_async_input): Now static.
164 (read_char, kbd_buffer_get_event, make_lispy_position):
165 (make_lispy_event, make_lispy_movement, apply_modifiers):
166 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
167 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
168 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
169 (read_key_sequence, read_char): Mark locals as initialized.
170 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
171
172 * keyboard.h (make_ctrl_char): New decl.
173 (mark_kboards): Move decl here ...
174 * alloc.c (mark_kboards): ... from here.
175
176 * lisp.h (force_auto_save_soon): New decl.
177
178 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
179 (DEFINE_DUMMY_FUNCTION): New macro.
180 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
181 Use it.
182 (main): Add casts to avoid warnings
183 if GCC considers string literals to be constants.
184
185 * lisp.h (fatal_error_signal): Add decl, since it's exported.
186
187 * dbusbind.c: Pointer signedness fixes.
188 (xd_signature, xd_append_arg, xd_initialize):
189 (Fdbus_call_method, Fdbus_call_method_asynchronously):
190 (Fdbus_method_return_internal, Fdbus_method_error_internal):
191 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
192 (Fdbus_register_signal): Use SSDATA when the context wants char *.
193
194 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
195 if GCC considers string literals to be constants.
196 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
197
198 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
199
200 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
201 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
202 These macros can no longer be used for assignment.
203
204 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
205 struct members directly, instead of using BUF_BEGV etc.
206 (record_buffer_markers, fetch_buffer_markers): New functions for
207 recording and fetching special buffer markers.
208 (set_buffer_internal_1, set_buffer_temp): Use them.
209
210 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
211
212 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
213
214 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
215 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
216
217 * xdisp.c (hscroll_window_tree):
218 (reconsider_clip_changes): Use PT instead of BUF_PT.
219
220 2011-03-13 Eli Zaretskii <eliz@gnu.org>
221
222 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
223 $(EMACS_ROOT)/lib/intprops.h.
224
225 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
226
227 Fix more problems found by GCC 4.5.2's static checks.
228
229 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
230 to unsigned char * to avoid compiler diagnostic.
231 (xg_free_frame_widgets): Make it clear that a local variable is
232 needed only if USE_GTK_TOOLTIP.
233 (gdk_window_get_screen): Make it clear that this macro is needed
234 only if USE_GTK_TOOLTIP.
235 (int_gtk_range_get_value): New function, which avoids a diagnostic
236 from gcc -Wbad-function-cast.
237 (xg_set_toolkit_scroll_bar_thumb): Use it.
238 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
239 diagnostic from gcc -Wbad-function-cast.
240 (get_utf8_string, xg_get_file_with_chooser):
241 Rename locals to avoid shadowing.
242 (create_dialog): Move locals to avoid shadowing.
243
244 * xgselect.c (xg_select): Remove unused var.
245
246 * image.c (four_corners_best): Mark locals as initialized.
247 (gif_load): Initialize transparent_p to zero (Bug#8238).
248 Mark another local as initialized.
249 (my_png_error, my_error_exit): Mark with NO_RETURN.
250
251 * image.c (clear_image_cache): Now static.
252 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
253 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
254 (x_edge_detection): Remove unnecessary cast that
255 gcc -Wbad-function-cast diagnoses.
256 (gif_load): Fix pointer signedness.
257 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
258 (jpeg_load, gif_load): Rename locals to avoid shadowing.
259
260 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
261
262 Improve quality of tests for time stamp overflow.
263 For example, without this patch (encode-time 0 0 0 1 1
264 1152921504606846976) returns the obviously-bogus value (-948597
265 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
266 reports time overflow. See
267 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
268 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
269 * editfns.c: Include limits.h and intprops.h.
270 (TIME_T_MIN, TIME_T_MAX): New macros.
271 (time_overflow): Move earlier, to before first use.
272 (hi_time, lo_time): New functions, for an accurate test for
273 out-of-range times.
274 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
275 (Fget_internal_run_time): Don't assume time_t fits in int.
276 (make_time): Use list2 instead of Fcons twice.
277 (Fdecode_time): More accurate test for out-of-range times.
278 (check_tm_member): New function.
279 (Fencode_time): Use it, to test for out-of-range times.
280 (lisp_time_argument): Don't rely on undefined left-shift and
281 right-shift behavior when checking for time stamp overflow.
282
283 * editfns.c (time_overflow): New function, refactoring common code.
284 (Fformat_time_string, Fdecode_time, Fencode_time):
285 (Fcurrent_time_string): Use it.
286
287 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
288 * dired.c (make_time): Move to ...
289 * editfns.c (make_time): ... here.
290 * systime.h: Note the move.
291
292 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
293
294 * fringe.c (update_window_fringes): Remove unused variables.
295
296 * unexmacosx.c (copy_data_segment): Also copy __got section.
297 (Bug#8223)
298
299 2011-03-12 Eli Zaretskii <eliz@gnu.org>
300
301 * termcap.c [MSDOS]: Include "msdos.h.
302 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
303 Constify `char *' arguments and their references according to
304 prototypes in tparam.h.
305
306 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
307
308 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
309 Adapt all references accordingly.
310
311 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
312
313 2011-03-11 Tom Tromey <tromey@redhat.com>
314
315 * buffer.c (syms_of_buffer): Remove obsolete comment.
316
317 2011-03-11 Eli Zaretskii <eliz@gnu.org>
318
319 * termhooks.h (encode_terminal_code): Declare prototype.
320
321 * msdos.c (encode_terminal_code): Don't declare prototype.
322
323 * term.c (encode_terminal_code): Now external again, used by
324 w32console.c and msdos.c.
325
326 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
327 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
328
329 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
330
331 Fix some minor problems found by GCC 4.5.2's static checks.
332
333 * fringe.c (update_window_fringes): Mark locals as initialized
334 (Bug#8227).
335 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
336
337 * alloc.c (mark_fringe_data): Move decl from here ...
338 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
339 to check its interface.
340 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
341
342 * fontset.c (free_realized_fontset): Now static.
343 (Fset_fontset_font): Rename local to avoid shadowing.
344 (fontset_font): Mark local as initialized.
345 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
346
347 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
348
349 * xselect.c (x_disown_buffer_selections): Remove; not used.
350 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
351 (x_own_selection, Fx_disown_selection_internal): Rename locals
352 to avoid shadowing.
353 (x_handle_dnd_message): Remove local to avoid shadowing.
354
355 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
356 so that the caller can use some name other than gcpro1.
357 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
358 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
359 (Fx_backspace_delete_keys_p):
360 Use them to avoid shadowing, and rename vars to avoid shadowing.
361 (x_decode_color, x_set_name, x_window): Now static.
362 (Fx_create_frame): Add braces to silence GCC warning.
363 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
364 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
365 Remove unused locals.
366 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
367 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
368 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
369 macros.
370
371 * xterm.h (x_mouse_leave): New decl.
372
373 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
374 Remove unused functions.
375 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
376 (x_calc_absolute_position): Now static.
377 (XTread_socket): Don't define label "out" unless it's used.
378 Don't declare local "event" unless it's used.
379 (x_iconify_frame, x_free_frame_resources): Don't declare locals
380 unless they are used.
381 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
382 (x_fatal_error_signal): Remove; not used.
383 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
384 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
385 (x_error_catcher, x_connection_closed, x_error_handler):
386 (x_error_quitter, xembed_send_message, x_iconify_frame):
387 (my_log_handler): Rename locals to avoid shadowing.
388 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
389 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
390
391 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
392 or move locals to avoid shadowing.
393 (tty_defined_color, merge_face_heights): Now static.
394 (free_realized_faces_for_fontset): Remove; not used.
395 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
396 does not deduce is never used uninitialized.
397 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
398 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
399
400 * terminal.c (store_terminal_param): Now static.
401
402 * xmenu.c (menu_highlight_callback): Now static.
403 (set_frame_menubar): Remove unused local.
404 (xmenu_show): Rename parameter to avoid shadowing.
405 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
406 since they might point to immutable storage.
407 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
408 since it's unused otherwise.
409
410 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
411 Add a FIXME, since the code still doesn't look right. (Bug#8215)
412 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
413 avoids a gcc -Wuninitialized diagnostic.
414 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
415 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
416 does not deduce are never used uninitialized.
417
418 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
419
420 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
421 * window.c (window_loop, size_window):
422 (run_window_configuration_change_hook, enlarge_window): Likewise.
423
424 * window.c (display_buffer): Now static.
425 (size_window): Mark variables that gcc -Wuninitialized
426 does not deduce are never used uninitialized.
427 * window.h (check_all_windows): New decl, to forestall
428 gcc -Wmissing-prototypes diagnostic.
429 * dispextern.h (bidi_dump_cached_states): Likewise.
430
431 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
432 shadowing.
433 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
434 Include <limits.h>.
435 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
436 and to avoid gcc -Wuninitialized warning.
437 (load_charset_map): Mark variables that gcc -Wuninitialized
438 does not deduce are never used uninitialized.
439 (load_charset): Abort instead of using uninitialized var (Bug#8229).
440
441 * coding.c (coding_set_source, coding_set_destination):
442 Use "else { /* comment */ }" rather than "else /* comment */;"
443 for clarity, and to avoid gcc -Wempty-body warning.
444 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
445 a block, when the outer 'i' will do.
446 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
447 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
448 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
449 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
450 (Fdecode_sjis_char, Fdefine_coding_system_internal):
451 Rename locals to avoid shadowing.
452 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
453 * coding.c (emacs_mule_char, encode_invocation_designation):
454 Now static, since they're not used elsewhere.
455 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
456 (decode_coding_object, encode_coding_object, detect_coding_system):
457 (decode_coding_emacs_mule): Mark variables that gcc
458 -Wuninitialized does not deduce are never used uninitialized.
459 (detect_coding_iso_2022): Initialize a local variable that might
460 be used uninitialized. Leave a FIXME because it's not clear that
461 this initialization is needed. (Bug#8211)
462 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
463 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
464 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
465 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
466 Remove unused macros.
467
468 * category.c (hash_get_category_set): Remove unused local var.
469 (copy_category_table): Now static, since it's not used elsewhere.
470 * character.c (string_count_byte8): Likewise.
471
472 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
473 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
474
475 * chartab.c (copy_sub_char_table): Now static, since it's not used
476 elsewhere.
477 (sub_char_table_ref_and_range, char_table_ref_and_range):
478 Rename locals to avoid shadowing.
479 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
480
481 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
482 (BIDI_BOB): Remove unused macro.
483
484 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
485 deduce are never used uninitialized.
486 * term.c (encode_terminal_code): Likewise.
487
488 * term.c (encode_terminal_code): Now static. Remove unused local.
489
490 * tparam.h: New file.
491 * term.c, tparam.h: Include it.
492 * deps.mk (term.o, tparam.o): Depend on tparam.h.
493 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
494 Move these decls to tparam.h, and make them agree with what
495 is actually in tparam.c. The previous trick of using incompatible
496 decls in different modules does not conform to the C standard.
497 All callers of tparam changed to use tparam's actual API.
498 * tparam.c (tparam1, tparam, tgoto):
499 Use const pointers where appropriate.
500
501 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
502 * cm.h (struct cm): Likewise.
503 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
504 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
505 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
506 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
507 (turn_on_face, init_tty): Likewise.
508 * termchar.h (struct tty_display_info): Likewise.
509
510 * term.c (term_mouse_position): Rename local to avoid shadowing.
511
512 * alloc.c (mark_ttys): Move decl from here ...
513 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
514
515 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
516
517 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
518
519 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
520
521 * search.c (compile_pattern_1): Remove argument regp, unused since
522 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
523 (compile_pattern): Don't pass it.
524
525 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
526
527 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
528 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
529 for ! HAVE_GTK3.
530 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
531
532 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
533
534 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
535 gdk_window_get_screen, gdk_window_get_geometry,
536 gdk_x11_window_lookup_for_display and GDK_KEY_g.
537 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
538 (xg_get_pixbuf_from_pixmap): New function.
539 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
540 to Pixmap, take frame as parameter, remove GdkColormap parameter.
541 Call xg_get_pixbuf_from_pixmap instead of
542 gdk_pixbuf_get_from_drawable.
543 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
544 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
545 (xg_check_special_colors): Use GtkStyleContext and its functions
546 for HAVE_GTK3.
547 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
548 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
549 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
550 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
551 gtk_widget_get_preferred_size.
552 (xg_frame_resized): gdk_window_get_geometry only takes 5
553 parameters.
554 (xg_win_to_widget, xg_event_is_for_menubar): Call
555 gdk_x11_window_lookup_for_display.
556 (xg_set_widget_bg): New function.
557 (delete_cb): New function.
558 (xg_create_frame_widgets): connect delete-event to delete_cb.
559 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
560 (xg_set_background_color): Call xg_set_widget_bg.
561 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
562 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
563 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
564 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
565 if ! HAVE_GTK3.
566 (update_frame_tool_bar): Call gtk_widget_hide.
567 (xg_initialize): Use GDK_KEY_g.
568
569 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
570 if ! HAVE_GTK3
571 (x_session_initialize): Call gdk_x11_set_sm_client_id.
572
573 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
574 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
575 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
576
577 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
578
579 * w32xfns.c (select_palette): Check success of RealizePalette against
580 GDI_ERROR, not zero.
581
582 2011-03-07 Ben Key <bkey76@gmail.com>
583
584 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
585 (file_dialog_callback): Fix locating the window handle of the File Name
586 text field. After disabling it, set focus on the list control.
587 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
588 Name text field to "Current Directory" if it does not already have
589 another value. (Bug#8181)
590
591 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
592
593 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
594 parameter for hbar cursors. Based on a patch by Ben Key
595 <bkey76@gmail.com>.
596
597 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
598
599 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
600 change.
601
602 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
603
604 current_column: Now returns EMACS_INT, fixing some iftc
605 that was introduced in the 2002-06-02 change "temporarily"; see
606 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
607 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
608 * cmds.c (internal_self_insert): Likewise.
609 * indent.c (Fcurrent_column): Likewise.
610 * keymap.c (describe_command): Likewise.
611 * minibuf.c (read_minibuf): Likewise.
612 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
613 to int.
614 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
615 Likewise.
616 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
617 not int or double, if they might contain a column number.
618 * indent.c (current_column, Findent_to, indented_beyond_p):
619 (compute_motion, vmotion): Likewise.
620 * keymap.c (describe_command): Likewise.
621 * xdisp.c (pint2str): Likewise.
622 * indent.c (last_known_column): Now EMACS_INT, not int.
623 * minibuf.c (minibuf_prompt_width): Likewise.
624 * indent.c (current_column, current_column_1, position_indentation):
625 Return EMACS_INT, not double.
626 * lisp.h (current_column): Likewise.
627 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
628 All callers changed.
629 * lisp.h (indented_beyond_p): Likewise.
630
631 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
632 from xdisp.c, and make static, since these are used only here.
633 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
634 Remove decls.
635
636 * cmds.c (internal_self_insert): Reindent to match Emacs style.
637 * xdisp.c (redisplay_window): Likewise.
638
639 * xdisp.c: Rename or move local decls to avoid shadowing.
640 (init_iterator, handle_fontified_prop, handle_single_display_spec):
641 (message_dolog, message_with_string, redisplay_internal):
642 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
643 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
644 (display_line, display_string, rows_from_pos_range):
645 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
646 Rename or move local decls.
647 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
648 (produce_glyphless_glyph): Make a pointer "const"
649 since it might point to immutable storage.
650 (update_window_cursor): Now static, since it's not used elsewhere.
651 (SKIP_GLYPHS): Removed unused macro.
652
653 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
654
655 * window.c (Fnext_window): Doc fix. (Bug#5567)
656
657 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
658
659 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
660
661 2011-03-02 Ken Brown <kbrown@cornell.edu>
662
663 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
664
665 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
666
667 Work around some portability problems with symlinks.
668
669 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
670 generate a special message for it. Suggested by Eli Zaretskii in
671 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
672 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
673 Simplify the code by assuming that the readlink and symlink calls
674 exist, even if they always fail on this host.
675 (Ffile_readable_p): Likewise, for fifos.
676 * config.in: Regenerate.
677
678 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
679
680 * frame.c (store_frame_param): Don't store value directly in
681 buffer_list and buried_buffer_list; copy the list and remove dead
682 buffers (Bug#7898).
683
684 2011-02-27 Eli Zaretskii <eliz@gnu.org>
685
686 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
687
688 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
689
690 * w32.c (symlink, readlink): New stub functions.
691
692 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
693
694 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
695 This avoids a gcc warning in some configurations.
696
697 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
698
699 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
700 (set_menu_bar_lines, x_get_resource_string): New decls.
701 * msdos.c (set_menu_bar_lines): Omit decl.
702
703 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
704 It's always given int values and used as an int. This suppresses
705 a gcc "comparison of unsigned expression >= 0" warning in some
706 configurations.
707
708 * dispnew.c: Rename locals to avoid shadowing.
709 (update_text_area, scrolling_window, update_frame_1): Rename locals.
710
711 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
712
713 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
714 (copy_glyph_row_contents): Remove; not used.
715 (frame_row_to_window, check_current_matrix_flags):
716 (window_change_signal): Now static, since they're not used elsewhere.
717 (check_current_matrix_flags): Surround with "#if 0", since its
718 only use is in a comment. Maybe both the comment and the "#if 0"
719 stuff should be removed?
720
721 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
722 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
723 contexts that actually need it.
724
725 2011-02-26 Eli Zaretskii <eliz@gnu.org>
726
727 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
728 (lstat): Define for DJGPP < 2.04.
729
730 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
731
732 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
733 as per recent filemodestring API change. Reported by Jonas Öster in
734 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
735
736 2011-02-23 Ben Key <bkey76@gmail.com>
737
738 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
739 directly, for bar cursors.
740
741 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
742
743 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
744 into the frame's cursor_width.
745
746 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
747
748 * print.c (print_object): Never print old-style backquotes.
749 Obey escapeflag for hash tables as well.
750
751 2011-02-23 Kenichi Handa <handa@m17n.org>
752
753 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
754 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
755
756 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
757
758 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
759
760 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
761
762 * lread.c (openp): Correct Boolean typo in last commit.
763
764 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
765
766 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
767 key to Emacs, treat as unmodified (go to input manager processing).
768
769 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
770
771 Assume S_ISLNK etc. work, since gnulib supports this.
772 * config.in: Regenerate.
773 * dired.c (lstat): Remove.
774 (file_name_completion): Assume S_ISDIR works.
775 (file_name_completion_stat): Assume S_ISLNK works.
776 Do not bother calling stat unless lstat says it's a symlink.
777 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
778 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
779 (check_writable, Ffile_writable_p, Fset_file_times):
780 Assume S_ISDIR works.
781 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
782 fifos exist.
783 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
784 * filelock.c (S_ISLNK): Remove.
785 * lread.c (openp): Assume S_ISDIR works.
786 * xrdb.c (S_ISDIR): Remove.
787
788 2011-02-21 Eli Zaretskii <eliz@gnu.org>
789
790 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
791 lib/makefile.w32-in.
792 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
793 (GLOBAL_SOURCES): Remove filemode.c.
794 (OBJ1): Remove $(BLD)/filemode.$(O).
795
796 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
797
798 Import filemode module from gnulib.
799 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
800 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
801 (filemode.o): Remove; this is now in ../lib.
802 * dired.c: Include <filemode.h>.
803 (filemodestring): Remove now-redundant decl.
804 * config.in: Regenerate.
805
806 2011-02-20 Eli Zaretskii <eliz@gnu.org>
807
808 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
809 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
810
811 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
812
813 * makefile.w32-in: Remove md5.$(O).
814 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
815 lib/makefile.w32-in.
816
817 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
818
819 Import crypto/md5 and stdint modules from gnulib.
820 * Makefile.in (base_obj): Remove md5.o, since this file
821 is in lib now.
822 * config.in: Regenerate.
823 * md5.h, md5.h: Move to ../lib.
824 * deps.mk (md5.o): Remove.
825 (fns.o): Depend on ../lib/md5.h, not md5.h.
826
827 2011-02-19 Eli Zaretskii <eliz@gnu.org>
828
829 * termcap.c (tputs): Don't declare baud_rate.
830
831 * s/msdos.h (strtold): Define to _strtold.
832
833 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
834
835 * process.c (Fstart_process, Fmake_serial_process)
836 (Fmake_network_process, server_accept_connection):
837 Use empty_unibyte_string.
838
839 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
840
841 * lread.c (Qdir_ok): New constant.
842 (syms_of_lread): Initialize it.
843 (openp): Don't ignore directories if the predicate returns dir-ok.
844
845 2011-02-18 Eli Zaretskii <eliz@gnu.org>
846
847 * xdisp.c (display_line): Fix the change made for bug#7939.
848
849 * terminal.c (create_terminal): Use default-keyboard-coding-system
850 and default-terminal-coding-system to initialize coding systems of
851 the new terminal. (Bug#7840)
852
853 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
854
855 * lisp.h (BYTE_MARK_STACK): New macro.
856 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
857
858 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
859 (struct byte_stack): Only define `top' and `bottom' if used.
860 (mark_byte_stack): Only define if used.
861 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
862 is not set.
863 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
864
865 * term.c (OUTPUT_IF): Use OUTPUT.
866
867 * alloc.c (Fgarbage_collect): When using stack scanning, don't
868 redundantly scan byte-code stacks, catchlist, and handlerlist.
869
870 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
871
872 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
873 (Fns_read_file_name): Replace B_ with BVAR.
874
875 * nsterm.m (ns_term_init): Use KVAR.
876
877 2011-02-16 Eli Zaretskii <eliz@gnu.org>
878
879 * msdos.c (internal_terminal_init): Use KVAR.
880
881 * w32fns.c (Fx_create_frame): Use KVAR.
882
883 * w32term.c (w32_create_terminal): Use KVAR.
884
885 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
886 (getloadavg): Declare prototype which was removed from lisp.h.
887
888 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
889
890 * fileio.c (Finsert_file_contents, Fwrite_region):
891 Remove references to buffer_file_type.
892 (syms_of_fileio): Don't intern and staticpro
893 find-buffer-file-type.
894
895 * callproc.c (syms_of_callproc): Remove references to
896 buffer_file_type.
897
898 * buffer.c (reset_buffer_local_variables): Don't set
899 buffer_file_type.
900 (init_buffer_once): Likewise.
901 (syms_of_buffer): Don't define buffer-file-type.
902
903 * buffer.h (struct buffer): Remove buffer_file_type.
904
905 2011-02-16 Tom Tromey <tromey@parfait>
906
907 * callint.c (Fcall_interactively): Update for change to field names.
908 * doc.c (Fsubstitute_command_keys): Update for change to field names.
909 * cmds.c (Fself_insert_command): Update for change to field names.
910 * keymap.c (Fcurrent_active_maps, Fkey_binding)
911 (Fdescribe_buffer_bindings): Update for change to field names.
912 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
913 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
914 Update for change to field names.
915 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
916 (echo_length, echo_truncate, cmd_error, command_loop_1)
917 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
918 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
919 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
920 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
921 Update for change to field names.
922 * xfns.c (Fx_create_frame): Update for change to field names.
923 * xterm.c (x_connection_closed, x_term_init): Update for change to
924 field names.
925 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
926 Update for change to field names.
927 * window.c (window_scroll_pixel_based, window_scroll_line_based):
928 Update for change to field names.
929 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
930 (delete_frame): Update for change to field names.
931 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
932 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
933 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
934
935 2011-02-16 Tom Tromey <tromey@redhat.com>
936
937 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
938
939 2011-02-16 Tom Tromey <tromey@parfait>
940
941 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
942 * xfaces.c (compute_char_face): Replace B_ with BVAR.
943 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
944 (message_dolog, update_echo_area, ensure_echo_area_buffers)
945 (with_echo_area_buffer, setup_echo_area_for_printing)
946 (set_message_1, update_menu_bar, update_tool_bar)
947 (text_outside_line_unchanged_p, redisplay_internal)
948 (try_scrolling, try_cursor_movement, redisplay_window)
949 (try_window_reusing_current_matrix, row_containing_pos)
950 (try_window_id, get_overlay_arrow_glyph_row, display_line)
951 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
952 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
953 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
954 BVAR.
955 * window.c (window_display_table, unshow_buffer, window_loop)
956 (window_min_size_2, set_window_buffer, Fset_window_buffer)
957 (select_window, Fforce_window_update, temp_output_buffer_show)
958 (Fset_window_configuration, save_window_save): Replace B_ with
959 BVAR.
960 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
961 Replace B_ with BVAR.
962 * undo.c (record_point, record_insert, record_delete)
963 (record_marker_adjustment, record_first_change)
964 (record_property_change, Fundo_boundary, truncate_undo_list)
965 (Fprimitive_undo): Replace B_ with BVAR.
966 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
967 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
968 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
969 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
970 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
971 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
972 (string_match_1, fast_looking_at, newline_cache_on_off)
973 (search_command, search_buffer, simple_search, boyer_moore)
974 (Freplace_match): Replace B_ with BVAR.
975 * process.c (get_process, list_processes_1, Fstart_process)
976 (Fmake_serial_process, Fmake_network_process)
977 (read_process_output, send_process, exec_sentinel)
978 (status_notify, setup_process_coding_systems): Replace B_ with
979 BVAR.
980 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
981 (strout, print_string, temp_output_buffer_setup, print_object):
982 Replace B_ with BVAR.
983 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
984 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
985 Replace B_ with BVAR.
986 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
987 (set_marker_both, set_marker_restricted_both, unchain_marker):
988 Replace B_ with BVAR.
989 * lread.c (readchar, unreadchar, openp, readevalloop)
990 (Feval_buffer, Feval_region): Replace B_ with BVAR.
991 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
992 * keymap.c (Flocal_key_binding, Fuse_local_map)
993 (Fcurrent_local_map, push_key_description)
994 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
995 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
996 (read_key_sequence): Replace B_ with BVAR.
997 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
998 * intervals.c (set_point_both, get_local_map): Replace B_ with
999 BVAR.
1000 * insdel.c (check_markers, insert_char, insert_1_both)
1001 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1002 (adjust_after_replace, replace_range, del_range_2)
1003 (modify_region, prepare_to_modify_buffer)
1004 (Fcombine_after_change_execute): Replace B_ with BVAR.
1005 * indent.c (buffer_display_table, recompute_width_table)
1006 (width_run_cache_on_off, current_column, scan_for_column)
1007 (Findent_to, position_indentation, compute_motion, vmotion):
1008 Replace B_ with BVAR.
1009 * fringe.c (get_logical_cursor_bitmap)
1010 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1011 with BVAR.
1012 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1013 * font.c (font_at): Replace B_ with BVAR.
1014 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1015 Replace B_ with BVAR.
1016 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1017 (unlock_buffer): Replace B_ with BVAR.
1018 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1019 (Ffile_regular_p, Ffile_selinux_context)
1020 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1021 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1022 (Finsert_file_contents, choose_write_coding_system)
1023 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1024 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1025 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1026 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1027 (save_excursion_restore, Fprevious_char, Fchar_before)
1028 (general_insert_function, Finsert_char, Finsert_byte)
1029 (make_buffer_string_both, Finsert_buffer_substring)
1030 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1031 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1032 (Ftranslate_region_internal, save_restriction_restore)
1033 (Fchar_equal): Replace B_ with BVAR.
1034 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1035 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1036 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1037 * dired.c (directory_files_internal): Replace B_ with BVAR.
1038 * data.c (swap_in_symval_forwarding, set_internal)
1039 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1040 Replace B_ with BVAR.
1041 * composite.c (fill_gstring_header)
1042 (composition_compute_stop_pos, composition_adjust_point)
1043 (Ffind_composition_internal): Replace B_ with BVAR.
1044 * coding.c (decode_coding, encode_coding)
1045 (make_conversion_work_buffer, decode_coding_gap)
1046 (decode_coding_object, encode_coding_object)
1047 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1048 (Funencodable_char_position, Fcheck_coding_systems_region):
1049 Replace B_ with BVAR.
1050 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1051 with BVAR.
1052 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1053 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1054 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1055 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1056 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1057 * category.c (check_category_table, Fcategory_table)
1058 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1059 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1060 BVAR.
1061 * casefiddle.c (casify_object, casify_region): Replace B_ with
1062 BVAR.
1063 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1064 with BVAR.
1065 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1066 BVAR.
1067 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1068 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1069 with BVAR.
1070 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1071 (get_truename_buffer, Fget_buffer_create)
1072 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1073 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1074 (Fbuffer_local_value, buffer_lisp_local_variables)
1075 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1076 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1077 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1078 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1079 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1080 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1081 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1082 (record_overlay_string, overlay_strings, init_buffer_once)
1083 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1084
1085 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1086
1087 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1088 window is changed inside calls to do_pending_window_change.
1089 (Bug#8020)
1090
1091 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1092
1093 Remove no-longer needed getloadavg symbols.
1094 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1095 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1096 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1097 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1098 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1099 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1100 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1101 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1102 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1103 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1104 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1105 (LDAV_SYMBOL): Remove.
1106 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1107 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1108
1109 Import getloadavg module from gnulib.
1110 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1111 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1112 now does this.
1113 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1114 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1115 * config.in: Regenerate.
1116
1117 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1118
1119 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1120
1121 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1122
1123 * print.c (float_to_string): Ensure that a decimal point is
1124 printed if using dtoastr (Bug#8033).
1125
1126 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1127
1128 * msdos.c (IT_frame_up_to_date):
1129 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1130
1131 * dired.c (directory_files_internal):
1132 * fileio.c (Finsert_file_contents):
1133 * insdel.c (prepare_to_modify_buffer):
1134 * xdisp.c (pos_visible_p):
1135 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1136 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1137 Use B_ for the MS-Windows build.
1138
1139 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1140
1141 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1142 resource that specifies helvetica for menus and dialogs.
1143
1144 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1145 (apply_systemfont_to_menu): Set resources *menubar*font and
1146 *popup*font. Remove defflt.
1147 (set_frame_menubar, create_and_show_popup_menu):
1148 Call apply_systemfont_to_menu before lw_create_widget.
1149
1150 2011-02-14 Tom Tromey <tromey@redhat.com>
1151
1152 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1153
1154 * keyboard.h: Remove obsolete comment.
1155
1156 2011-02-14 Tom Tromey <tromey@parfait>
1157
1158 * composite.c (fill_gstring_header)
1159 (composition_compute_stop_pos, composition_adjust_point)
1160 (Ffind_composition_internal): Use B_.
1161 * intervals.c (set_point_both, get_local_map): Use B_.
1162 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1163 * process.c (get_process, list_processes_1, Fstart_process)
1164 (Fmake_serial_process, Fmake_network_process)
1165 (read_process_output, send_process, exec_sentinel)
1166 (status_notify, setup_process_coding_systems): Use B_.
1167 * bytecode.c (Fbyte_code): Use B_.
1168 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1169 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1170 (skip_syntaxes, scan_lists): Use B_.
1171 * lread.c (readchar, unreadchar, openp, readevalloop)
1172 (Feval_buffer, Feval_region): Use B_.
1173 * print.c (printchar, strout, print_string, PRINTDECLARE)
1174 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1175 (print_object): Use B_.
1176 * font.c (font_at): Use B_.
1177 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1178 Use B_.
1179 * callint.c (check_mark, Fcall_interactively): Use B_.
1180 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1181 (save_excursion_restore, Fprevious_char, Fchar_before)
1182 (general_insert_function, Finsert_char, Finsert_byte)
1183 (make_buffer_string_both, Finsert_buffer_substring)
1184 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1185 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1186 (Ftranslate_region_internal, save_restriction_restore)
1187 (Fchar_equal): Use B_.
1188 * data.c (swap_in_symval_forwarding, set_internal)
1189 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1190 Use B_.
1191 * undo.c (record_point, record_insert, record_delete)
1192 (record_marker_adjustment, record_first_change)
1193 (record_property_change, Fundo_boundary, truncate_undo_list)
1194 (Fprimitive_undo): Use B_.
1195 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1196 (string_match_1, fast_looking_at, newline_cache_on_off)
1197 (search_command, search_buffer, simple_search, boyer_moore)
1198 (Freplace_match): Use B_.
1199 * indent.c (buffer_display_table, recompute_width_table)
1200 (width_run_cache_on_off, current_column, scan_for_column)
1201 (Findent_to, position_indentation, compute_motion, vmotion):
1202 Use B_.
1203 * casefiddle.c (casify_object, casify_region): Use B_.
1204 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1205 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1206 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1207 (Ffile_regular_p, Ffile_selinux_context)
1208 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1209 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1210 (Finsert_file_contents, choose_write_coding_system)
1211 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1212 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1213 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1214 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1215 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1216 (set_marker_both, set_marker_restricted_both, unchain_marker):
1217 Use B_.
1218 * insdel.c (check_markers, insert_char, insert_1_both)
1219 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1220 (adjust_after_replace, replace_range, del_range_2)
1221 (modify_region, prepare_to_modify_buffer)
1222 (Fcombine_after_change_execute): Use B_.
1223 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1224 (unlock_buffer): Use B_.
1225 * keymap.c (Flocal_key_binding, Fuse_local_map)
1226 (Fcurrent_local_map, push_key_description)
1227 (Fdescribe_buffer_bindings): Use B_.
1228 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1229 (read_key_sequence): Use B_.
1230 * fringe.c (get_logical_cursor_bitmap)
1231 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1232 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1233 * xfaces.c (compute_char_face): Use B_.
1234 * character.c (chars_in_text, Fget_byte): Use B_.
1235 * category.c (check_category_table, Fcategory_table)
1236 (Fset_category_table, char_category_set): Use B_.
1237 * coding.c (decode_coding, encode_coding)
1238 (make_conversion_work_buffer, decode_coding_gap)
1239 (decode_coding_object, encode_coding_object)
1240 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1241 (Funencodable_char_position, Fcheck_coding_systems_region):
1242 Use B_.
1243 * charset.c (Ffind_charset_region): Use B_.
1244 * window.c (window_display_table, unshow_buffer, window_loop)
1245 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1246 (select_window, Fforce_window_update, temp_output_buffer_show)
1247 (Fset_window_configuration, save_window_save): Use B_.
1248 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1249 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1250 (with_echo_area_buffer, setup_echo_area_for_printing)
1251 (set_message_1, update_menu_bar, update_tool_bar)
1252 (text_outside_line_unchanged_p, redisplay_internal)
1253 (try_scrolling, try_cursor_movement, redisplay_window)
1254 (try_window_reusing_current_matrix, row_containing_pos)
1255 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1256 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1257 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1258 (get_window_cursor_type, note_mouse_highlight): Use B_.
1259 * frame.c (make_frame_visible_1): Use B_.
1260 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1261 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1262 (WINDOW_WANTS_MODELINE_P): Use B_.
1263 * syntax.h (Vstandard_syntax_table): Update.
1264 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1265 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1266 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1267 * character.h (FETCH_CHAR_ADVANCE): Update.
1268 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1269 * category.h (Vstandard_category_table): Update.
1270 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1271 names.
1272 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1273 * buffer.c (swapfield_): New macro.
1274 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1275 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1276 (Fget_buffer_create, clone_per_buffer_values)
1277 (Fmake_indirect_buffer, reset_buffer)
1278 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1279 (Fbuffer_local_value, buffer_lisp_local_variables)
1280 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1281 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1282 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1283 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1284 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1285 (Fbuffer_swap_text, Fset_buffer_multibyte)
1286 (swap_out_buffer_local_variables, record_overlay_string)
1287 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1288 Use B_.
1289 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1290 (BUFFER_INTERNAL_FIELD, B_): New macro.
1291 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1292
1293 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1294
1295 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1296 is null.
1297
1298 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1299
1300 * callproc.c (Fcall_process):
1301 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1302 comment.
1303
1304 2011-02-12 Martin Rudalics <rudalics@gmx.at>
1305
1306 * window.c (select_window): Check inhibit_point_swap argument when
1307 deciding whether to return immediately.
1308
1309 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
1310
1311 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1312 zero (Bug#7348).
1313
1314 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
1315
1316 * config.in (TERMINFO): New definition.
1317
1318 * s/netbsd.h: Use it to choose between terminfo and termcap
1319 (Bug#7642).
1320
1321 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1322
1323 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1324 The difference doesn't matter here, in practice, and sizeof is
1325 more portable to non-GCC compilers. Also, this makes the code
1326 match the already-existing comment.
1327
1328 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1329
1330 * process.c (create_process): Reset SIGPIPE handler in the child.
1331 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1332
1333 2011-02-12 Eli Zaretskii <eliz@gnu.org>
1334
1335 * xdisp.c <this_line_min_pos>: New variable.
1336 (move_it_in_display_line_to): Record in this_line_min_pos the
1337 smallest position iterated across.
1338 (display_line): Use this_line_min_pos to record the smallest
1339 position in the line even if it is not displayed due to
1340 hscrolling. (Bug#7939)
1341
1342 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1343
1344 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1345 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1346 (struct md5_ctx): Use it.
1347
1348 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1349 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1350 defined.
1351 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1352 FC_HINT_STYLE is supported.
1353
1354 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1355
1356 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1357 Make sure we don't do x_catch_errors twice.
1358
1359 2011-02-10 Glenn Morris <rgm@gnu.org>
1360
1361 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1362
1363 2011-02-09 Eli Zaretskii <eliz@gnu.org>
1364
1365 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1366 New macros.
1367 (globals.h, gl-stamp): New targets.
1368 (clean): Clean gl-stamp and globals.h.
1369
1370 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1371
1372 * Makefile.in (gl-stamp): Create globals.h here.
1373 (globals.h): Don't do it here.
1374 (mostlyclean): Clean globals.h and gl-stamp.
1375
1376 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1377
1378 * Makefile.in ($(otherobj)): Depend on globals.h.
1379 Otherwise 'make -j10' failed on my host, because the build lacked
1380 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1381
1382 2011-02-08 Tom Tromey <tromey@redhat.com>
1383
1384 * Makefile.in (NS_OBJC_OBJ): New variable.
1385 (base_obj): Rename from 'obj'.
1386 (obj): New variable.
1387 (globals.h, gl-stamp, $(obj)): New targets.
1388 (GLOBAL_SOURCES): New variable.
1389 * globals.h: Remove.
1390 * nsselect.m (Vselection_alist): Define. Reverts part of
1391 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1392 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1393 variable.
1394 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1395
1396 2011-02-08 Kenichi Handa <handa@m17n.org>
1397
1398 * font.c (Ffont_get): Do not cache :otf value.
1399
1400 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1401
1402 conform to C89 pointer rules
1403
1404 * dired.c (scmp, file_name_completion):
1405 Change types between char * and unsigned char *, to satisfy C89
1406 rules about pointer type compatibility.
1407 * casefiddle.c (casify_object, casify_region): Likewise.
1408 * search.c (Freplace_match, Fregexp_quote): Likewise.
1409 * alloc.c (make_string, make_specified_string, make_pure_string):
1410 Likewise.
1411 * data.c (Fstring_to_number): Likewise.
1412 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1413 (print_object): Likewise.
1414 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1415 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1416 (Fformat): Likewise.
1417 * callint.c (Fcall_interactively): Likewise.
1418 * fns.c (string_make_multibyte, string_to_multibyte):
1419 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1420 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1421 Likewise.
1422 * lread.c (read1, hash_string): Likewise.
1423 * process.c (read_process_output, send_process, Fprocess_send_region):
1424 Likewise.
1425 * callproc.c (Fcall_process): Likewise.
1426 * doprnt.c (doprnt): Likewise.
1427 * indent.c (compute_motion): Likewise.
1428 * xfont.c (xfont_decode_coding_xlfd): Likewise.
1429 * ralloc.c (resize_bloc): Likewise.
1430 * image.c (tiff_load): Likewise.
1431 * xml.c (make_dom, parse_region): Likewise.
1432 * character.c (strwidth): Make its argument const char *, not const
1433 unsigned char *, since more callers prefer it that way. All callers
1434 changed.
1435
1436 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1437
1438 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1439 Emacs assumes two's complement elsewhere, but the assumption is
1440 easy to remove here, and this suppresses a warning with Sun C 5.8.
1441
1442 conform to C89 pointer rules
1443
1444 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1445 (same_x_server, x_term_init):
1446 Change types between char * and unsigned char *, to satisfy C89
1447 rules about pointer type compatibility.
1448 * doc.c (get_doc_string, Fsnarf_documentation):
1449 (Fsubstitute_command_keys): Likewise.
1450 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1451 * bitmaps/gray.xbm (gray_bits): Likewise.
1452 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
1453 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1454 Likewise.
1455 * keymap.c (Ftext_char_description): Likewise.
1456 * minibuf.c (Fread_buffer): Likewise.
1457 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1458 (DRIVE_LETTER) [defined DOS_NT]:
1459 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1460 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1461 (search_embedded_absfilename, Fsubstitute_in_file_name):
1462 (barf_or_query_if_file_exists, Fmake_directory_internal):
1463 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1464 (Finsert_file_contents, Fwrite_region):
1465 Likewise.
1466 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1467 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1468 Likewise. This changes these functions' signatures, which is
1469 more convenient since most callers use char *. All remaining
1470 callers changed.
1471 * editfns.c (general_insert_function): Change signature to
1472 match changes to insert functions' signatures.
1473 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1474 Use explicit cast when converting between void * and function pointer
1475 types, as C89 requires this.
1476
1477 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1478
1479 don't ignore chdir failure
1480 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1481 failure and exit.
1482 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1483 remaining unchecked chdir calls in this function; some DOS/NT
1484 expert needs to fix them.
1485 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1486 in this function; some NextStep expert needs to fix them.
1487
1488 2011-02-05 Glenn Morris <rgm@gnu.org>
1489
1490 * xfaces.c (Finternal_set_lisp_face_attribute):
1491 Try to clarify some error messages. (Bug#2659)
1492
1493 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
1494
1495 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1496 current_column cache (bug#7946).
1497
1498 2011-02-05 Kenichi Handa <handa@m17n.org>
1499
1500 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1501
1502 * xftfont.c (xftfont_open): Likewise.
1503
1504 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
1505
1506 * window.c (Fselect_window): Add missing return value.
1507
1508 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1509
1510 xstrcasecmp: conform to C89 pointer rules
1511 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1512 to const char *, since they're usually low-level C strings, and
1513 this stays compatible with C89 pointer rules. All callers changed.
1514
1515 * charset.c: Conform to C89 pointer rules.
1516 (define_charset_internal): Switch between char * and unsigned char *.
1517
1518 * xmenu.c: Conform to C89 const rules.
1519 (xmenu_show, xdialog_show): Declare local var as char *, not
1520 const char *, to stay compatible with C89 const rules.
1521
1522 * xdisp.c: Conform to C89 pointer rules.
1523 (store_mode_line_noprop, display_string, reseat_to_string):
1524 (c_string_pos, number_of_chars, message_dolog):
1525 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1526 (display_mode_element, display_string):
1527 Switch between char * and unsigned char * to stay compatible wth
1528 C89 pointer rules.
1529
1530 * regex.c: Conform to C89 pointer rules.
1531 (re_wctype): Add cast, as C89 does not allow assigning between
1532 char * and unsigned char *.
1533 (regex_compile): Likewise.
1534
1535 sync from gnulib to remove HAVE_STDBOOL_H
1536 * config.in: Regenerate.
1537
1538 2011-02-04 Eli Zaretskii <eliz@gnu.org>
1539
1540 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1541 Replace all uses of lisp.h with $(LISP_H), and all uses of
1542 process.h with $(PROCESS_H).
1543 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1544 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1545
1546 * deps.mk: Update for recent changes: gnutls support, gnulib
1547 imports, addition of globals.h.
1548
1549 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1550 ../lib/ignore-value.h.
1551
1552 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1553
1554 allow C code to suppress warnings about ignored return values
1555
1556 We need to go through the code and for each such warning, either
1557 fix the code to pay attention to the returned value, or tell GCC
1558 that we really do want to ignore the returned value. Here is one
1559 example of how to do the latter.
1560 * sysdep.c: Include <ignore-value.h>.
1561 (sys_subshell): Suppress an undesirable warning about not checking
1562 the returned value of 'write', as there's nothing useful one can
1563 do with that returned value.
1564
1565 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1566
1567 * xterm.c (x_connection_closed): Remove all calls that calls
1568 XSync (Bug#7949).
1569
1570 2011-02-01 Eli Zaretskii <eliz@gnu.org>
1571
1572 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1573 TIFFClientOpen.
1574
1575 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1576
1577 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1578 (x_session_check_input): Change args and return type so it can be used
1579 as argument to add_read_fd. Make static. Remove call to select.
1580 Call kbd_buffer_store_event for emacs_event.
1581 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1582 (ice_conn_watch_CB): Call add_read_fd.
1583
1584 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1585 x_session_check_input.
1586 (x_session_initialized): Remove definition.
1587 (x_initialize): Remove setting of x_session_initialized.
1588
1589 * xterm.h (x_session_check_input): Remove declaration.
1590
1591 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1592
1593 format-time-string now supports subsecond time stamp resolution
1594 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
1595 for consistency with its new argument and with gnulib nstrftime.
1596 All callers changed. New argument NS.
1597 (Fformat_time_string): Check that the time argument's microseconds
1598 component, if any, is in range; this avoids integer overflow and
1599 also nstrftime needs this. Document %N.
1600
1601 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
1602
1603 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1604 of int. All uses adjusted.
1605 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1606 (svg_load_image): Remove casts.
1607
1608 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
1609
1610 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1611 function definitions for compiling with libpng-1.5.
1612 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1613 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1614 (Bug#7908).
1615
1616 2011-01-31 Eli Zaretskii <eliz@gnu.org>
1617
1618 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1619
1620 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1621 ($(BLD)/strftime.$(O)): Remove prerequisites.
1622
1623 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1624
1625 src/emacs.c now gets version number from configure.in
1626 * emacs.c (emacs_version): Set to VERSION so that it
1627 is determined automatically from ../configure.in.
1628
1629 2011-01-31 Jim Meyering <meyering@redhat.com>
1630
1631 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1632 Use xmalloc rather than malloc.
1633
1634 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1635
1636 strftime: import from gnulib
1637 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1638 * deps.mk (strftime.o): Remove.
1639 * editfns.c: Include <strftime.h>, supplied by gnulib.
1640 (emacs_strftimeu): Remove decl.
1641 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1642 emacs_strftimeu.
1643 * config.in: Regenerate.
1644 * strftime.c: Remove; we now use strftime from gnulib.
1645
1646 Use SSDATA when the context wants char *.
1647 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1648 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1649 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1650 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1651 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1652 Use SSDATA (not SDATA) when the context of the expression wants
1653 char * (not unsigned char *).
1654
1655 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1656
1657 * .gdbinit: Read global lisp variables as globals.f_V*.
1658
1659 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1660
1661 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1662 All uses changed.
1663 (PROP_SAVE): Likewise.
1664
1665 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
1666
1667 * keyboard.c (make_lispy_position): Fix typo in last change
1668 (Bug#7935).
1669
1670 2011-01-29 Eli Zaretskii <eliz@gnu.org>
1671
1672 * s/ms-w32.h (HAVE_MKTIME): Remove.
1673
1674 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1675 (GNULIB): New variable.
1676 (LIBS): Add $(GNULIB).
1677 $(TEMACS): Depend on $(GNULIB).
1678 <top-level>: Fix font-lock disrupted by a lone `"'.
1679
1680 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1681
1682 * nsselect.m (ns_string_from_pasteboard): Get length of string
1683 and use make_string instead of build_string (Bug#7934).
1684 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1685 instead of stringWithUTF8String (Bug#7934).
1686
1687 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
1688
1689 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1690 descenders would not become one pixel too tall (Bug#7887).
1691
1692 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
1693
1694 * keyboard.c (make_lispy_position): For clicks on right fringe or
1695 margin, compute text position using the X coordinate relative to
1696 the left of the text area (Bug#7839).
1697
1698 2011-01-28 Kenichi Handa <handa@m17n.org>
1699
1700 * ftfont.c (ftfont_spec_pattern): Check each extra property
1701 value.
1702
1703 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1704
1705 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1706
1707 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
1708
1709 * font.c (font_parse_fcname): Undefine a temporary macro.
1710
1711 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1712
1713 Let the debugger continue to the normal handler (bug#7825).
1714 * eval.c (maybe_call_debugger): Declare before new use.
1715 (find_handler_clause): Don't call debugger any more.
1716 Ignore Vstack_trace_on_error.
1717 Use XCAR/XCDR.
1718 (syms_of_eval): Remove Vstack_trace_on_error.
1719 (Fsignal): Only modify handlerlist when we know we need to do it.
1720 Call the debugger when necessary.
1721 * globals.h (Vstack_trace_on_error): Remove.
1722
1723 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
1724
1725 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1726
1727 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
1728
1729 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1730 the buffer's point-max (bug#7876).
1731
1732 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
1733
1734 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
1735 Remove unused case (Bug#6811).
1736
1737 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1738
1739 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1740 setFrameTopLeftPoint is constrained.
1741
1742 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1743
1744 Check return values of some library calls.
1745 * emacs.c (main): Check dup result.
1746 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1747 (frame_name_fnn_p): Check strtol result.
1748
1749 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
1750 when calling XpmCreatePixmapFromData.
1751
1752 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1753 * lisp.h (SSDATA): New macro.
1754 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1755 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1756 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1757 * xsmfns.c (SSDATA): Likewise.
1758
1759 2011-01-22 Martin Rudalics <rudalics@gmx.at>
1760
1761 * window.c (select_window): New function.
1762 (Fselect_window): Call it.
1763 (inhibit_point_swap): Variable deleted.
1764 (Fset_window_configuration): Call select_window directly.
1765
1766 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1767
1768 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1769
1770 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1771
1772 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1773 screen, not the window screen.
1774 (x_set_window_size): Remove constraints.
1775 Calculate origin.y only if zooming is 0 and without referring to a
1776 screen.
1777 (windowWillResize): Don't modify frameSize.
1778 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1779 (initFrameFromEmacs): Initialize ns_userRect.
1780 (windowShouldZoom): Set zooming to one. Remove all other code.
1781 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1782 Zero it after restore.
1783 (constrainFrameRect): New method for EmacsWindow.
1784 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1785 windowWillResize.
1786
1787 * nsterm.h (ns_output): Add dont_constrain and zooming.
1788 (EmacsView): Add ns_userRect.
1789
1790 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1791 if ns_alternate_modifier is none.
1792
1793 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1794
1795 * unexmacosx.c: Add comment about include order.
1796
1797 2011-01-20 Glenn Morris <rgm@gnu.org>
1798
1799 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1800 Give it a doc string.
1801 * globals.h: Add Vread_expression_history.
1802
1803 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1804 Give it a doc string.
1805 * globals.h: Add Vkbd_macro_termination_hook.
1806
1807 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
1808
1809 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1810
1811 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1812
1813 Fix X11 compilation failure.
1814 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1815 * xselect.c (Vselection_alist): Remove declaration, moving its
1816 documentation to globals.h. This fixes a compilation failure
1817 induced by the earlier change to globals.h today.
1818
1819 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1820
1821 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1822
1823 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1824 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1825 (ns_input_spi_name, ns_input_spi_arg)
1826 (ns_alternate_modifier, ns_right_alternate_modifier)
1827 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1828 (ns_right_control_modifier, ns_function_modifier)
1829 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1830 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1831 (x_underline_at_descent_line): Remove declaration.
1832 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1833
1834 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
1835 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1836 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1837
1838 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1839 Remove declaration.
1840
1841 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1842 globals.h.
1843 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1844
1845 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1846 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1847 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1848
1849 * globals.h (struct emacs_globals): Add f_ns_input_file,
1850 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1851 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1852 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1853 f_ns_right_alternate_modifier, f_ns_command_modifier,
1854 f_ns_right_command_modifier, f_ns_control_modifier,
1855 f_ns_right_control_modifier, f_ns_function_modifier,
1856 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1857 f_Vns_version_string, f_Vns_sent_selection_hooks,
1858 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1859 and corresponding defines.
1860
1861 2011-01-19 Sam Steingold <sds@gnu.org>
1862
1863 * w32.c (check_windows_init_file): Remove declarations of
1864 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
1865 * w32fns.c: Fix an error introduced by the previous patch.
1866
1867 2011-01-19 Tom Tromey <tromey@redhat.com>
1868
1869 * window.c: Fix error introduced by previous patch.
1870
1871 2011-01-18 Tom Tromey <tromey@parfait>
1872
1873 * globals.h: New file.
1874 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1875 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1876 (Vwindow_system_version): Remove declaration.
1877 * w32term.h (Vw32_enable_palette)
1878 (Vx_pixel_size_width_font_regexp): Remove declaration.
1879 * w32menu.c (Voverriding_local_map)
1880 (Voverriding_local_map_menu_flag): Remove declaration.
1881 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1882 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1883 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1884 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1885 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1886 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1887 (w32_use_full_screen_buffer): Remove declaration.
1888 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1889 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1890 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1891 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1892 (no_redraw_on_reenter, visible_bell): Remove declaration.
1893 * sysdep.c (Vsystem_name): Remove declaration.
1894 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1895 * menu.h (Vmenu_updating_frame): Remove declaration.
1896 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1897 Remove declaration.
1898 * lisp.h (Vafter_init_time, Vafter_load_alist)
1899 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1900 (Vcompletion_regexp_list, Vcurrent_load_list)
1901 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1902 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1903 (Vexec_directory, Vexec_path, Vexec_suffixes)
1904 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1905 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1906 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1907 (Vinstallation_directory, Vinvocation_directory)
1908 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1909 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1910 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1911 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1912 (Vscalable_fonts_allowed, Vselect_active_regions)
1913 (Vshell_file_name, Vstandard_input, Vstandard_output)
1914 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1915 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1916 (Vuser_login_name, Vwindow_scroll_functions)
1917 (Vwindow_system_version, Vx_no_window_manager)
1918 (Vx_resource_class, Vx_resource_name, baud_rate)
1919 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1920 (history_delete_duplicates, inhibit_x_resources)
1921 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1922 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
1923 (use_dialog_box, use_file_dialog): Remove declaration.
1924 Include globals.h.
1925 * keymap.h (Voverriding_local_map)
1926 (Voverriding_local_map_menu_flag, meta_prefix_char):
1927 Remove declaration.
1928 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1929 (Vinput_method_function, Vkey_translation_map)
1930 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1931 (do_mouse_tracking, extra_keyboard_modifiers)
1932 (num_nonmacro_input_events): Remove declaration.
1933 * intervals.h (Vchar_property_alias_alist)
1934 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1935 (Vtext_property_default_nonsticky): Remove declaration.
1936 * gtkutil.h (x_gtk_file_dialog_help_text)
1937 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1938 (x_gtk_whole_detached_tool_bar): Remove declaration.
1939 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1940 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1941 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1942 (focus_follows_mouse): Remove declaration.
1943 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1944 (Vignore_relative_composition, Votf_script_alist)
1945 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1946 Remove declaration.
1947 * font.h (Vfont_log): Remove declaration.
1948 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1949 (Vdos_windows_version, dos_codepage, dos_country_code)
1950 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
1951 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1952 Remove declaration.
1953 * disptab.h (Vglyph_table, Vstandard_display_table):
1954 Remove declaration.
1955 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1956 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1957 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1958 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1959 (inverse_video, mode_line_in_non_selected_windows)
1960 (tool_bar_button_relief, tool_bar_max_label_size)
1961 (underline_minimum_offset)
1962 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1963 Remove declaration.
1964 * composite.h (Vauto_composition_function)
1965 (Vcomposition_function_table): Remove declaration.
1966 * commands.h (Vexecuting_kbd_macro)
1967 (Vminibuffer_local_completion_map)
1968 (Vminibuffer_local_filename_completion_map)
1969 (Vminibuffer_local_filename_must_match_map)
1970 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1971 (Vminibuffer_local_ns_map, Vthis_command)
1972 (Vunread_command_events, cursor_in_echo_area)
1973 (last_command_event, last_nonmenu_event, unread_command_char):
1974 Remove declaration.
1975 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1976 (Vdefault_file_name_coding_system)
1977 (Vdefault_process_coding_system, Vfile_name_coding_system)
1978 (Vlast_coding_system_used, Vlocale_coding_system)
1979 (Vselect_safe_coding_system_function)
1980 (Vtranslation_table_for_input, coding_system_require_warning)
1981 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1982 (eol_mnemonic_unix, inherit_process_coding_system):
1983 Remove declaration.
1984 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1985 Remove declaration.
1986 * character.h (Vauto_fill_chars, Vchar_direction_table)
1987 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1988 (Vscript_representative_chars, Vtranslation_table_vector)
1989 (Vunicode_category_table): Remove declaration.
1990 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1991 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1992 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1993 (inhibit_modification_hooks): Remove declaration.
1994 * xterm.c (syms_of_xterm): Update.
1995 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1996 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1997 (x_mouse_click_focus_ignore_position)
1998 (x_underline_at_descent_line)
1999 (x_use_underline_position_properties): Remove.
2000 * xsmfns.c (syms_of_xsmfns): Update.
2001 (Vx_session_id, Vx_session_previous_id): Remove.
2002 * xsettings.c (syms_of_xsettings): Update.
2003 (Vxft_settings, use_system_font): Remove.
2004 * xselect.c (syms_of_xselect): Update.
2005 (Vselection_converter_alist, Vx_lost_selection_functions)
2006 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2007 * xfns.c (syms_of_xfns): Update.
2008 (Vgtk_version_string, Vmotif_version_string)
2009 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2010 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2011 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2012 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2013 (Vx_sensitive_text_pointer_shape)
2014 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2015 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2016 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2017 Remove.
2018 * xfaces.c (syms_of_xfaces): Update.
2019 (Vface_default_stipple, Vface_font_rescale_alist)
2020 (Vface_ignored_fonts, Vface_new_frame_defaults)
2021 (Vface_remapping_alist, Vfont_list_limit)
2022 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2023 * xdisp.c (syms_of_xdisp): Update.
2024 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2025 (Vdisplay_pixels_per_inch, Vfontification_functions)
2026 (Vframe_title_format, Vglobal_mode_string)
2027 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2028 (Vicon_title_format, Vinhibit_redisplay)
2029 (Vline_number_display_limit, Vline_prefix)
2030 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2031 (Vmenu_updating_frame, Vmessage_log_max)
2032 (Vmouse_autoselect_window, Vnobreak_char_display)
2033 (Voverlay_arrow_position, Voverlay_arrow_string)
2034 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2035 (Vresize_mini_windows, Vshow_trailing_whitespace)
2036 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2037 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2038 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2039 (Vwindow_text_change_functions, Vwrap_prefix)
2040 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2041 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2042 (highlight_nonselected_windows, hscroll_margin)
2043 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2044 (inhibit_menubar_update, inhibit_try_cursor_movement)
2045 (inhibit_try_window_id, inhibit_try_window_reusing)
2046 (line_number_display_limit_width)
2047 (make_cursor_line_fully_visible_p, message_truncate_lines)
2048 (mode_line_inverse_video, multiple_frames, overline_margin)
2049 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2050 (tool_bar_max_label_size, underline_minimum_offset)
2051 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2052 Remove.
2053 * window.c (syms_of_window): Update.
2054 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2055 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2056 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2057 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2058 (mode_line_in_non_selected_windows, next_screen_context_lines)
2059 (window_min_height, window_min_width): Remove.
2060 (scroll_margin): Remove declaration.
2061 * w32term.c (syms_of_w32term): Update.
2062 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2063 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2064 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2065 (w32_use_visible_system_caret, x_underline_at_descent_line)
2066 (x_use_underline_position_properties): Remove.
2067 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2068 Remove declaration.
2069 * w32select.c (syms_of_w32select): Update.
2070 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2071 * w32proc.c (syms_of_ntproc): Update.
2072 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2073 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2074 (Vw32_start_process_inherit_error_mode)
2075 (Vw32_start_process_share_console)
2076 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2077 (Vsystem_name): Remove declaration.
2078 * w32font.c (syms_of_w32font): Update.
2079 (Vw32_charset_info_alist): Remove.
2080 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2081 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2082 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2083 (Vw32_enable_palette, Vw32_lwindow_modifier)
2084 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2085 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2086 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2087 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2088 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2089 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2090 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2091 (Vx_sensitive_text_pointer_shape)
2092 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2093 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2094 (w32_mouse_move_interval)
2095 (w32_pass_extra_mouse_buttons_to_system)
2096 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2097 (w32_strict_fontnames, w32_strict_painting): Remove.
2098 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2099 (Vw32_recognize_altgr, Vwindow_system_version)
2100 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2101 Remove declaration.
2102 * w32console.c (syms_of_ntterm): Update.
2103 (w32_use_full_screen_buffer): Remove.
2104 (Vtty_defined_color_alist): Remove declaration.
2105 * w16select.c (syms_of_win16select): Update.
2106 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2107 * undo.c (syms_of_undo): Update.
2108 (Vundo_outer_limit, Vundo_outer_limit_function)
2109 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2110 Remove.
2111 * textprop.c (syms_of_textprop): Update.
2112 (Vchar_property_alias_alist, Vdefault_text_properties)
2113 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2114 Remove.
2115 * terminal.c (syms_of_terminal): Update.
2116 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2117 * term.c (syms_of_term): Update.
2118 (Vresume_tty_functions, Vsuspend_tty_functions)
2119 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2120 Remove.
2121 * syntax.c (syms_of_syntax): Update.
2122 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2123 (open_paren_in_column_0_is_defun_start)
2124 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2125 (words_include_escapes): Remove.
2126 * search.c (syms_of_search): Update.
2127 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2128 * process.c (syms_of_process): Update.
2129 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2130 (delete_exited_processes): Remove.
2131 * print.c (syms_of_print): Update.
2132 (Vfloat_output_format, Vprint_charset_text_property)
2133 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2134 (Vprint_length, Vprint_level, Vprint_number_table)
2135 (Vstandard_output, print_escape_multibyte)
2136 (print_escape_newlines, print_escape_nonascii, print_quoted):
2137 Remove.
2138 * msdos.c (syms_of_msdos): Update.
2139 (Vdos_unsupported_char_glyph): Remove.
2140 (unibyte_display_via_language_environment): Remove declaration.
2141 * minibuf.c (syms_of_minibuf): Update.
2142 (Vcompletion_regexp_list, Vhistory_add_new_input)
2143 (Vhistory_length, Vminibuffer_completing_file_name)
2144 (Vminibuffer_completion_confirm)
2145 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2146 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2147 (Vminibuffer_history_position, Vminibuffer_history_variable)
2148 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2149 (Vread_buffer_function, Vread_expression_map)
2150 (completion_ignore_case, enable_recursive_minibuffers)
2151 (history_delete_duplicates, minibuffer_allow_text_properties)
2152 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2153 Remove.
2154 * marker.c (syms_of_marker): Update.
2155 (byte_debug_flag): Remove.
2156 * macros.c (syms_of_macros): Update.
2157 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2158 * lread.c (syms_of_lread): Update.
2159 (Vafter_load_alist, Vbyte_boolean_vars)
2160 (Vbytecomp_version_regexp, Vcurrent_load_list)
2161 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2162 (Vload_history, Vload_path, Vload_read_function)
2163 (Vload_source_file_function, Vload_suffixes, Vobarray)
2164 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2165 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2166 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2167 (force_load_messages, load_convert_to_unibyte)
2168 (load_dangerous_libraries, load_force_doc_strings)
2169 (load_in_progress): Remove.
2170 * keymap.c (syms_of_keymap): Update.
2171 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2172 (Vminibuffer_local_completion_map)
2173 (Vminibuffer_local_filename_completion_map)
2174 (Vminibuffer_local_filename_must_match_map)
2175 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2176 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2177 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2178 Remove.
2179 * keyboard.c (syms_of_keyboard): Update.
2180 (Vauto_save_timeout, Vcommand_error_function)
2181 (Vcommand_hook_internal, Vdeactivate_mark)
2182 (Vdeferred_action_function, Vdeferred_action_list)
2183 (Vdisable_point_adjustment, Vdouble_click_time)
2184 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2185 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2186 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2187 (Vinput_method_function, Vinput_method_previous_message)
2188 (Vkey_translation_map, Vlast_event_frame)
2189 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2190 (Vminibuffer_message_timeout, Voverriding_local_map)
2191 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2192 (Vpre_command_hook, Vprefix_help_command)
2193 (Vsaved_region_selection, Vselect_active_regions)
2194 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2195 (Vthis_command, Vthis_command_keys_shift_translated)
2196 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2197 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2198 (Vtty_erase_char, Vunread_command_events)
2199 (Vunread_input_method_events, Vunread_post_input_method_events)
2200 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2201 (double_click_fuzz, extra_keyboard_modifiers)
2202 (inhibit_local_menu_bar_menus, last_command_event)
2203 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2204 (menu_prompting, meta_prefix_char, num_input_keys)
2205 (num_nonmacro_input_events, polling_period, unread_command_char):
2206 Remove.
2207 * insdel.c (syms_of_insdel): Update.
2208 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2209 * indent.c (syms_of_indent): Update.
2210 (indent_tabs_mode): Remove.
2211 * image.c (syms_of_image): Update.
2212 (Vimage_cache_eviction_delay, Vimage_types)
2213 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2214 (cross_disabled_images): Remove.
2215 * fringe.c (syms_of_fringe): Update.
2216 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2217 * frame.c (syms_of_frame): Update.
2218 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2219 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2220 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2221 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2222 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2223 Remove.
2224 * fontset.c (syms_of_fontset): Update.
2225 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2226 (Vfontset_alias_alist, Vignore_relative_composition)
2227 (Votf_script_alist, Vuse_default_ascent)
2228 (Vvertical_centering_font_regexp): Remove.
2229 * font.c (syms_of_font): Update.
2230 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2231 (Vfont_weight_table, Vfont_width_table): Remove.
2232 * fns.c (syms_of_fns): Update.
2233 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2234 * filelock.c (syms_of_filelock): Update.
2235 (Vtemporary_file_directory): Remove.
2236 * fileio.c (syms_of_fileio): Update.
2237 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2238 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2239 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2240 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2241 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2242 (Vwrite_region_annotate_functions)
2243 (Vwrite_region_annotations_so_far)
2244 (Vwrite_region_post_annotation_function)
2245 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2246 (Vw32_get_true_file_attributes): Remove declaration.
2247 * eval.c (syms_of_eval): Update.
2248 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2249 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2250 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2251 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2252 (max_lisp_eval_depth, max_specpdl_size): Remove.
2253 * emacs.c (syms_of_emacs): Update.
2254 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2255 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2256 (Vinstallation_directory, Vinvocation_directory)
2257 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2258 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2259 (Vsystem_configuration, Vsystem_configuration_options)
2260 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2261 (inhibit_x_resources, noninteractive1): Remove.
2262 * editfns.c (syms_of_editfns): Update.
2263 (Vbuffer_access_fontified_property)
2264 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2265 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2266 (Vuser_login_name, Vuser_real_login_name): Remove.
2267 * dosfns.c (syms_of_dosfns): Update.
2268 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2269 (dos_codepage, dos_country_code, dos_decimal_point)
2270 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2271 (dos_super_key, dos_timezone_offset): Remove.
2272 * doc.c (syms_of_doc): Update.
2273 (Vbuild_files, Vdoc_file_name): Remove.
2274 * dispnew.c (syms_of_display): Update.
2275 (Vglyph_table, Vinitial_window_system)
2276 (Vredisplay_preemption_period, Vstandard_display_table)
2277 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2278 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2279 * dired.c (syms_of_dired): Update.
2280 (Vcompletion_ignored_extensions): Remove.
2281 (Vw32_get_true_file_attributes): Remove declaration.
2282 * dbusbind.c (syms_of_dbusbind): Update.
2283 (Vdbus_debug, Vdbus_registered_buses)
2284 (Vdbus_registered_objects_table): Remove.
2285 * data.c (syms_of_data): Update.
2286 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2287 * composite.c (syms_of_composite): Update.
2288 (Vauto_composition_function, Vauto_composition_mode)
2289 (Vcompose_chars_after_function, Vcomposition_function_table):
2290 Remove.
2291 * coding.c (syms_of_coding): Update.
2292 (Vcharset_revision_table, Vcoding_category_list)
2293 (Vcoding_system_alist, Vcoding_system_for_read)
2294 (Vcoding_system_for_write, Vcoding_system_list)
2295 (Vdefault_process_coding_system, Venable_character_translation)
2296 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2297 (Vlast_coding_system_used, Vlatin_extra_code_table)
2298 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2299 (Vprocess_coding_system_alist)
2300 (Vselect_safe_coding_system_function)
2301 (Vstandard_translation_table_for_decode)
2302 (Vstandard_translation_table_for_encode)
2303 (Vtranslation_table_for_input, coding_system_require_warning)
2304 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2305 (eol_mnemonic_unix, inherit_process_coding_system)
2306 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2307 (inhibit_null_byte_detection): Remove.
2308 * cmds.c (syms_of_cmds): Update.
2309 (Vpost_self_insert_hook): Remove.
2310 * charset.c (syms_of_charset): Update.
2311 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2312 (inhibit_load_charset_map): Remove.
2313 * character.c (syms_of_character): Update.
2314 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2315 (Vchar_width_table, Vprintable_chars)
2316 (Vscript_representative_chars, Vtranslation_table_vector)
2317 (Vunicode_category_table): Remove.
2318 * ccl.c (syms_of_ccl): Update.
2319 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2320 (Vtranslation_hash_table_vector): Remove.
2321 * category.c (syms_of_category): Update.
2322 (Vword_combining_categories, Vword_separating_categories): Remove.
2323 * callproc.c (syms_of_callproc): Update.
2324 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2325 (Vexec_directory, Vexec_path, Vexec_suffixes)
2326 (Vinitial_environment, Vprocess_environment)
2327 (Vshared_game_score_directory, Vshell_file_name): Remove.
2328 * callint.c (syms_of_callint): Update.
2329 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2330 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2331 * bytecode.c (syms_of_bytecode): Update.
2332 (Vbyte_code_meter, byte_metering_on): Remove.
2333 * buffer.c (syms_of_buffer): Update.
2334 (Vafter_change_functions, Vbefore_change_functions)
2335 (Vchange_major_mode_hook, Vfirst_change_hook)
2336 (Vinhibit_read_only, Vkill_buffer_query_functions)
2337 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2338 * alloc.c (syms_of_alloc): Update.
2339 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2340 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2341 (cons_cells_consed, floats_consed, garbage_collection_messages)
2342 (gc_cons_threshold, gcs_done, intervals_consed)
2343 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2344 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2345
2346 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2347 (DEFVAR_INT): Assume global is in `globals'.
2348 * alloc.c (globals): Define.
2349
2350 2011-01-18 Tom Tromey <tromey@redhat.com>
2351
2352 * image.c (Vimagemagick_render_type): Remove redundant
2353 definition.
2354
2355 2011-01-18 Tom Tromey <tromey@redhat.com>
2356
2357 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2358 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2359 (redisplay_window): Update.
2360 (syms_of_xdisp): Update.
2361
2362 2011-01-18 Tom Tromey <tromey@redhat.com>
2363
2364 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2365 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2366 Declare.
2367 * gtkutil.c (xg_uses_old_file_dialog):
2368 (xg_get_file_with_chooser):
2369 (xg_tool_bar_detach_callback): Don't redeclare globals.
2370
2371 2011-01-18 Tom Tromey <tromey@redhat.com>
2372
2373 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2374 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2375
2376 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2377
2378 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2379 defined __GNUC__. ../configure now checks for this GCC feature,
2380 which is now also supported by IBM and Oracle compilers.
2381 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2382 since Solaris malloc returns mult-of-8.
2383
2384 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
2385
2386 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2387
2388 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
2389
2390 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2391 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2392 * data.c (Fnumber_to_string): Use it.
2393 * print.c (float_to_string, print_object): Likewise.
2394
2395 Include <unistd.h> unilaterally.
2396 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2397 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2398 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2399 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2400 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2401 * xterm.c:
2402 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2403 unistd.h is always present now, possibly supplied by gnulib.
2404
2405 * mktime.c: Remove; moving to ../lib.
2406
2407 Use gnulib's mktime module.
2408 * deps.mk (mktime.o): Remove rule.
2409
2410 Use gnulib's ftoastr module.
2411 * print.c: Include ftoastr.h.
2412 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2413 Remove; no longer needed.
2414 (float_to_string): Use dtoastr rather than rolling our own code,
2415 which had an off-by-one bug on non-IEEE hosts.
2416
2417 Automate syncing from gnulib.
2418 * Makefile.in (lib): New macro.
2419 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2420 ($(lib)/libgnu.a): New rule.
2421 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2422
2423 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2424 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2425 so change the type of 'ign' to unsigned int from int.
2426
2427 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2428
2429 * xterm.h (struct x_display_info): Remove stray semicolon.
2430 The extra semicolon didn't conform to the C standard.
2431 Problem reported by Sun cc.
2432
2433 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2434 These changes make compilation easier to follow with Sun cc.
2435 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2436 EMACS_INT values without provoking overflow diagnostics.
2437 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2438 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2439 diagnostic with signed left shift.
2440
2441 * fileio.c (make_temp_name): Remove unreachable code.
2442
2443 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2444 Previously it was marked by preceding it with "return;", but
2445 Sun cc complains about this.
2446
2447 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2448 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2449 which fixed Bug#2370. Caught by Sun cc.
2450
2451 2011-01-15 Martin Rudalics <rudalics@gmx.at>
2452
2453 * window.c (inhibit_point_swap): New variable.
2454 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2455 point this time.
2456 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2457 of setting selected_window to nil (Bug#7728).
2458
2459 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2460
2461 * image.c (imagemagick_load_image, Finit_image_library):
2462 Free intermediate image after creating a MagickWand from it.
2463 Terminate MagickWand environment after image loading.
2464
2465 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
2466
2467 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2468 unexpected return values.
2469 (Fdbus_register_method): Remove connection initialization.
2470
2471 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
2472
2473 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2474 used by Fdbus_register_service.
2475 (QCdbus_request_name_replace_existing): Likewise.
2476 (QCdbus_request_name_do_not_queue): Likewise.
2477 (QCdbus_request_name_reply_primary_owner): Likewise.
2478 (QCdbus_request_name_reply_in_queue): Likewise.
2479 (QCdbus_request_name_reply_exists): Likewise.
2480 (QCdbus_request_name_reply_already_owner): Likewise.
2481 (Fdbus_register_service): New function.
2482 (Fdbus_register_method): Use Fdbus_register_service to do the name
2483 registration.
2484 (syms_of_dbusbind): Add symbols dbus-register-service,
2485 :allow-replacement, :replace-existing, :do-not-queue,
2486 :primary-owner, :existing, :in-queue and :already-owner.
2487
2488 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
2489
2490 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2491 when removing extra buttons.
2492
2493 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
2494
2495 * fns.c (Fyes_or_no_p): Doc fix.
2496
2497 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2498
2499 * fns.c (Fyes_or_no_p): Add usage.
2500
2501 2011-01-08 Glenn Morris <rgm@gnu.org>
2502
2503 * makefile.w32-in ($(EMACS)):
2504 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2505
2506 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2507 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2508
2509 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2510
2511 * image.c (imagemagick_load_image): Fix some resource leaks and
2512 error handling.
2513
2514 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
2515
2516 * fns.c (Fyes_or_no_p): Accept format string args.
2517
2518 2011-01-07 Glenn Morris <rgm@gnu.org>
2519
2520 * emacs.c (no_site_lisp): New int.
2521 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2522 (main): Set no_site_lisp.
2523 (standard_args): Add --no-site-lisp.
2524 * lisp.h (no_site_lisp): New int.
2525 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2526 directories to Vload_path.
2527
2528 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2529
2530 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2531
2532 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2533
2534 * dbusbind.c (Fdbus_register_method): Add optional parameter
2535 dont_register_service. Updated docstring accordingly.
2536
2537 2011-01-04 Glenn Morris <rgm@gnu.org>
2538
2539 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2540
2541 2011-01-03 Eli Zaretskii <eliz@gnu.org>
2542
2543 * image.c (png_jmpbuf): Remove definition.
2544 (my_png_error, png_load): Don't use png_jmpbuf.
2545
2546 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2547
2548 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2549
2550 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2551
2552 * image.c <Qlibpng_version>: New variable.
2553 (syms_of_image): Intern and staticpro it. Set its value to the
2554 version of PNG library we were compiled with.
2555 (my_png_error, png_load): Avoid GCC warnings about direct access
2556 to png_ptr->jmpbuf. (Bug#7716)
2557 (png_jmpbuf): New macro.
2558 (my_png_error, png_load): Use it instead of #ifdef'ing according
2559 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
2560
2561 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2562
2563 * .gdbinit (xgetptr): Fix the union+lsb case.
2564 (xbacktrace): Fix the union case.
2565
2566 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2567
2568 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2569 different from selected-window's.
2570
2571 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2572
2573 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2574 equivalent of a menu item when the key sequence is given by the
2575 `:keys' attribute. (Bug#7662)
2576
2577 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2578 the basic faces are supported.
2579
2580 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
2581
2582 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2583
2584 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2585
2586 * xdisp.c (Fformat_mode_line): Fix last change.
2587
2588 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
2589
2590 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2591 faces (Bug#7587).
2592
2593 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2594
2595 * fileio.c (Fexpand_file_name): One more doc fix.
2596
2597 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
2598
2599 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2600 image or label in the container.
2601 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2602 (xg_show_toolbar_item): Function deleted.
2603 (xg_tool_item_stale_p): New function.
2604 (update_frame_tool_bar): Calculate tool-bar style once per call.
2605 Instead of hiding text labels, omit them. Don't use
2606 xg_show_toolbar_item; create new GtkToolItems from scratch if
2607 necessary, instead of trying to re-use them. This avoids an
2608 annoying animation when changing tool-bars.
2609
2610 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2611
2612 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2613 title and buffer filename only for RepresentedFilename.
2614 Handle bad UTF-8 in buffer name (Bug#7517).
2615
2616 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2617
2618 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2619
2620 * nsfns.m (ns_set_name_iconic): Remove.
2621 (ns_set_name_internal): New function (Bug#7517).
2622 (Vicon_title_format): Extern declare.
2623 (ns_set_name): Call ns_set_name_internal.
2624 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2625 (x_implicitly_set_name): Ditto.
2626 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2627 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2628
2629 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2630
2631 * window.c (syms_of_window): Add missing defsubr for
2632 window-use-time.
2633
2634 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2635
2636 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2637 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2638
2639 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2640
2641 * buffer.c: Remove unused declarations.
2642 * buffer.h: Likewise.
2643 * charset.h: Likewise.
2644 * composite.h: Likewise.
2645 * dispextern.h: Likewise.
2646 * dispnew.c: Likewise.
2647 * font.h: Likewise.
2648 * fontset.c: Likewise.
2649 * fontset.h: Likewise.
2650 * intervals.h: Likewise.
2651 * keymap.h: Likewise.
2652 * lisp.h: Likewise.
2653 * syntax.c: Likewise.
2654 * syntax.h: Likewise.
2655 * termhooks.h: Likewise.
2656 * window.h: Likewise.
2657 * xsettings.h: Likewise.
2658 * xterm.c: Likewise.
2659 * xterm.h: Likewise.
2660
2661 * chartab.c (sub_char_table_ref): Make static.
2662 * dispnew.c (line_hash_code, required_matrix_height)
2663 (required_matrix_width): Likewise.
2664 * eval.c (interactive_p, apply_lambda): Likewise.
2665 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2666 Likewise.
2667 * font.c (QCadstyle, QCregistry, font_make_spec)
2668 (font_parse_fcname, font_encode_char, font_at): Likewise.
2669 * frame.c (x_frame_get_arg): Likewise.
2670 * keymap.c (get_keyelt): Likewise.
2671 * lread.c (read_filtered_event): Likewise.
2672 * print.c (write_string_1): Likewise.
2673 * window.c (delete_window, window_height, window_width)
2674 (foreach_window): Likewise.
2675 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2676 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2677 (xembed_send_message): Likewise.
2678
2679 * eval.c (run_hook_list_with_args): Delete.
2680 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2681 * terminal.c (get_terminal_param): Likewise.
2682 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2683
2684 * scroll.c: Fix comment.
2685
2686 * dispnew.c (add_window_display_history)
2687 (add_frame_display_history, glyph_row_slice_p)
2688 (find_glyph_row_slice, flush_stdout)
2689 (check_matrix_pointer_lossage, matrix_row)
2690 (check_matrix_invariants, check_window_matrix_pointers)
2691 (check_matrix_pointers, window_to_frame_vpos)
2692 (window_to_frame_hpos): Prototize.
2693 * textprop.c (erase_properties): Likewise.
2694
2695 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2696
2697 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2698 (print_preprocess): Fix handling of uninterned symbols in last change.
2699
2700 * print.c (print, print_preprocess, print_object): Use a hash table
2701 rather than a linear table for Vprint_number_table.
2702
2703 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2706
2707 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
2708
2709 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2710 (parse_tool_bar_item): Use it to obtain image separators for
2711 displays not using native tool-bar separators.
2712
2713 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2714 specially, since this is now done in parse_tool_bar_item.
2715
2716 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2717
2718 Minor clean up to silence some gcc warnings.
2719 * window.c (Fset_window_buffer):
2720 * xterm.c (x_set_frame_alpha): Restructure code to silence
2721 compiler warning.
2722 (handle_one_xevent): Remove unused var `p'.
2723 (do_ewmh_fullscreen): Remove unused var `lval'.
2724 (xembed_set_info): Remove unused var `atom'.
2725 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2726 compiler warning.
2727 * fontset.c (fontset_id_valid_p, dump_fontset):
2728 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2729 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2730 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2731 label only when it's used.
2732 * image.c (x_create_bitmap_from_xpm_data):
2733 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2734 its callers.
2735 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2736 `consumed_chars'.
2737 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2738 (decode_coding_emacs_mule): Remove unused label `retry'.
2739 (detect_eol): Add parens to silence compiler warning.
2740 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2741 it's used to silence the compiler.
2742 (make_number): Modernize k&r declaration.
2743 (mark_char_table): Add parens to silence compiler warning.
2744
2745 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
2746
2747 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2748 tool-bar maps.
2749 (menu_separator_name_p): New function, from gtkutil.c.
2750 (separator_names): Move from gtkutil.c.
2751
2752 * keyboard.h (menu_separator_name_p): Add prototype.
2753
2754 * gtkutil.c (XG_BIN_CHILD): New macro.
2755 (xg_get_menu_item_label, xg_update_menubar)
2756 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2757 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2758 (separator_names, xg_separator_p): Move to keyboard.c.
2759 (create_menus, xg_update_submenu, update_frame_tool_bar):
2760 Use menu_separator_name_p.
2761
2762 * nsmenu.m (name_is_separator): Function deleted.
2763 (addItemWithWidgetValue): Use menu_separator_name_p.
2764
2765 * w32menu.c (name_is_separator): Function deleted.
2766 (add_menu_item): Use menu_separator_name_p.
2767
2768 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2769
2770 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2771 same as the background, use the face forground as cursor.
2772
2773 2010-12-13 Eli Zaretskii <eliz@gnu.org>
2774
2775 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2776
2777 2010-12-13 Eli Zaretskii <eliz@gnu.org>
2778
2779 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2780 (face_before_or_after_it_pos, next_element_from_string)
2781 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2782 calculations of maximum string length before calling
2783 string_char_and_length and STRING_CHAR_AND_LENGTH.
2784 (string_char_and_length): Update commentary: MAXLEN is no longer
2785 needed.
2786
2787 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2788
2789 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2790 as (Qsave_session arg).
2791
2792 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2793 (smc_die_CB): Make an event with arg Qt.
2794 (Fhandle_save_session): If event has Qt as argument,
2795 call Fkill_emacs (Bug#7552).
2796
2797 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2800
2801 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2802
2803 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2804
2805 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
2806
2807 * dispextern.h (struct it): New member overlay_strings_charpos.
2808
2809 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2810 charpos where we computed n_overlay_strings.
2811 (next_overlay_string): Load overlay strings at recorded position,
2812 which may not be the same as the iterator's charpos (Bug#7016).
2813
2814 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
2815
2816 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2817 obscured due to a vscroll (Bug#7537).
2818
2819 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2820
2821 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2822
2823 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2824 Use FRAME_TOOLBAR_HEIGHT.
2825 (x_set_offset): Handle XNegative and YNegative in
2826 f->size_hint_flags (Bug#7510).
2827
2828 2010-12-11 Eli Zaretskii <eliz@gnu.org>
2829
2830 * w32fns.c (Fx_show_tip): Call try_window with last argument
2831 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2832 solved. Round up the tip height to an integral multiple of the
2833 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2834 (Bug#7398)
2835
2836 2010-12-08 Glenn Morris <rgm@gnu.org>
2837
2838 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2839
2840 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2841
2842 * xml.c (parse_region): Ignore blank HTML nodes.
2843 (make_dom): Return CDATA sections (like <style>foo</style>) as
2844 text nodes.
2845
2846 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2847
2848 * lread.c (read1): Allow newstyle unquote outside of backquote.
2849 Disallow old-style backquotes inside new-style backquotes.
2850 Don't count unquotes to figure out when we're "syntactically inside
2851 but semantically outside of a backquote" any more.
2852 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2853 to all contexts.
2854
2855 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
2856
2857 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2858
2859 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2860
2861 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2862 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2863 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2864
2865 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2866
2867 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2868 bit-field.
2869 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2870 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2871 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2872 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2873 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2874 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2875 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2876 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2877 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2878 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2879 * m/hp800.h: Remove file.
2880 * m/mips.h: Remove file.
2881
2882 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2883
2884 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2885 with cursor color and draw a rectangle around the image (Bug#7412).
2886
2887 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2888
2889 * frame.c (x_set_font): Remove unused variable.
2890
2891 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2892
2893 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2894
2895 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2896 drawing text under filled box cursor (Bug#7479).
2897
2898 2010-11-27 Kenichi Handa <handa@m17n.org>
2899
2900 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2901 i.e. integer.
2902 (Fdefine_charset_internal): Adjust for the above change.
2903 (init_charset_once): Likewise.
2904
2905 * charset.h (emacs_mule_charset): Adjust the prototype.
2906 Delete duplicated extern.
2907
2908 * coding.c (emacs_mule_char): Adjust for the change of
2909 emacs_mule_charset.
2910
2911 * lread.c (read_emacs_mule_char): Adjust for the change of
2912 emacs_mule_charset.
2913
2914 2010-11-27 Eli Zaretskii <eliz@gnu.org>
2915
2916 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2917 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2918
2919 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2920
2921 * alloc.c (mark_terminals): Ensure that the image cache is marked
2922 even if the terminal object was marked earlier (Bug#6301).
2923
2924 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
2925
2926 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2927
2928 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
2929
2930 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2931 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
2932 Use 23 as menubar height if 0. (Bug#7425).
2933
2934 2010-11-26 Eli Zaretskii <eliz@gnu.org>
2935
2936 * xdisp.c (set_message_1): Force paragraph direction in echo area
2937 be left-to-right.
2938
2939 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2940 when the click is on the header or mode line.
2941
2942 2010-11-25 Eli Zaretskii <eliz@gnu.org>
2943
2944 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2945 `cursor' property of the first character in overlay strings.
2946 (Bug#7474) (Bug#7481)
2947
2948 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2949
2950 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2951 (NSLeftAlternateKeyMask): New defines.
2952 (keyDown): Parse left and right keys separately (Bug#7458).
2953 Compare Left key masks exactly (Bug#7458).
2954
2955 2010-11-23 Eli Zaretskii <eliz@gnu.org>
2956
2957 * intervals.c (temp_set_point_both): Define before calling, to
2958 avoid GCC warnings.
2959
2960 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2961
2962 * nsmenu.m: Use #include <config.h> instead of "config.h".
2963
2964 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2965 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
2966 Move declarations ...
2967 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2968 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
2969 ... here.
2970
2971 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2972 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2973 (gdb_pvec_type):
2974 * print.c (print_output_debug_flag):
2975 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2976 (safe_debug_print): New declaration.
2977
2978 * xterm.c:
2979 * systty.h:
2980 * sound.c: Include <sys/ioctl.h> unconditionally.
2981
2982 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2983
2984 * alloc.c (mark_maybe_object): Return early if given a Lisp
2985 integer (Bug#6301).
2986
2987 2010-11-21 Ken Brown <kbrown@cornell.edu>
2988
2989 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2990
2991 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2992
2993 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2994 Define (Bug#7458).
2995 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2996 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2997 NSRightControlKeyMask also (Bug#7458).
2998 (keyDown): Ditto (Bug#7458).
2999 (syms_of_nsterm): Defvar ns-right-command-modifier and
3000 ns-right-control-modifier (Bug#7458).
3001
3002 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3003
3004 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3005 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3006
3007 * intervals.h (temp_set_point, temp_set_point_both):
3008 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3009
3010 2010-11-20 Ken Brown <kbrown@cornell.edu>
3011
3012 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3013
3014 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3015
3016 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3017 \xNNNNNN for hex-code display of glyphless characters.
3018
3019 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3022 Set important to ! vert_only.
3023 (xg_show_toolbar_item): Don't show label horizontally if
3024 tool item isn't important.
3025 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3026 xg_make_tool_item, or update important on existing tool item.
3027
3028 * keyboard.c (QCvert_only): New variable.
3029 (parse_tool_bar_item): Check for QCvert_only.
3030 (syms_of_keyboard): Initialize QCvert_only.
3031
3032 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3033
3034 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3035
3036 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3037 same in-line.
3038
3039 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3040
3041 * xfaces.c (lookup_face): Make static.
3042 * dispnew.c (copy_row_except_pointers): Likewise.
3043 * syntax.c (dec_bytepos): Likewise.
3044 (inc_bytepos): Remove.
3045 * dispextern.h (lookup_face): Remove declaration.
3046
3047 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3048
3049 * xdisp.c (set_cursor_from_row): Display cursor after all the
3050 glyphs that come from an overlay. Don't overstep the last glyph
3051 when skipping glyphs from an overlay. (Bug#6687)
3052
3053 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3054
3055 * alloc.c (refill_memory_reserve): Move declaration ...
3056 * lisp.h (refill_memory_reserve): ... here.
3057
3058 * strftime.c (_strftime_copytm): Add declaration.
3059
3060 * callproc.c (syms_of_callproc): Use intern_c_string.
3061
3062 Move declarations from .c files to .h files.
3063 * process.c (timers_run):
3064 * minibuf.c (quit_char):
3065 * lread.c (read_emacs_mule_char):
3066 * keyboard.c (minibuf_level, message_enable_multibyte)
3067 (pending_malloc_warning):
3068 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3069 (Qonly): Remove declarations.
3070 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3071 (Vselect_active_regions):
3072 * keyboard.h (timers_run): Add declarations.
3073
3074 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3075 (tm_diff): Convert definitions to standard C.
3076 (extra_args_spec_iso): Remove, unused.
3077
3078 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3079
3080 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3081
3082 * config.in (HAVE_G_TYPE_INIT): New symbol.
3083
3084 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3085
3086 * lread.c (Fload): Mention `load-in-progress' and
3087 `load-file-name'. (Bug#7346)
3088
3089 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3090 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3091 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3092 subprocesses. Use buffer_free only ifdef subprocesses.
3093
3094 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3095 the subprocesses version, not in the non-subprocesses one.
3096
3097 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3098
3099 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3100
3101 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3102 lines on text-mode terminals. (bug#7417)
3103
3104 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3105
3106 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3107 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3108
3109 2010-11-17 Kenichi Handa <handa@m17n.org>
3110
3111 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3112 change (set charset-ID list instead of charset-symbol list).
3113
3114 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3115
3116 * keyboard.c (make_lispy_position): For text area clicks, record Y
3117 pixel position relative to the text area, excluding header line.
3118 Also change X and Y to Lisp_Objects, not pointers; don't return
3119 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3120 buffer_posn_from_coords counting from the start of the text area.
3121 (Fposn_at_x_y, make_lispy_event): Callers changed.
3122
3123 * window.c (coordinates_in_window): Change X and Y to ints rather
3124 than pointers; don't return coordinates via pointers.
3125 (struct check_window_data): Change X and Y from pointers to ints.
3126 (window_from_coordinates): Remove args WX and WY; don't return
3127 coordinates via pointers.
3128 (Fcoordinates_in_window_p, window_from_coordinates):
3129 (check_window_containing, Fwindow_at): Callers changed.
3130 (window_relative_x_coord): New function.
3131
3132 * window.h (window_from_coordinates, window_relative_x_coord):
3133 Update prototypes.
3134
3135 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3136 the start of the text area.
3137
3138 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3139 call. Use window_relative_x_coord.
3140 (note_mouse_highlight): Change window_from_coordinates call.
3141
3142 * w32term.c (w32_read_socket):
3143 * msdos.c (dos_rawgetc):
3144 * xterm.c (handle_one_xevent): Likewise.
3145
3146 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3147
3148 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3149 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3150 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3151 Convert definitions to standard C.
3152 * regex.c: Do not include <stdlib.h>, config.h does it.
3153 Include unistd.h.
3154 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3155 (regerror, regfree): Convert definitions to standard C.
3156 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3157 (__mktime_internal): Convert definitions to standard C.
3158
3159 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3160
3161 * w32proc.c:
3162 * w32inevt.c:
3163 * w32heap.c:
3164 * w32.c: Remove config.h include guards.
3165
3166 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3167 No code changes.
3168
3169 * process.c: Include <sys/ioctl.h> unconditionally,
3170 keyboard.c already does it.
3171
3172 * keyboard.c (pending_malloc_warning): Add const to match
3173 definition in alloc.c.
3174 (Fset_input_interrupt_mode): Simplify #ifdefs.
3175
3176 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3177
3178 Clean up systty.h macros.
3179 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3180 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3181 definition in all uses.
3182 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3183 * sysdep.c (discard_tty_input, child_setup_tty)
3184 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3185 * emacs.c (shut_down_emacs):
3186 * callproc.c (child_setup):
3187 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3188
3189 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3190
3191 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3192
3193 * w32fns.c (Fx_create_frame):
3194 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3195 resource here; it's now done at startup.
3196
3197 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3198
3199 * xterm.c (set_wm_state): Add Qnil to final cons.
3200
3201 * xselect.c (x_send_client_event): Remove unused variables cons and
3202 size.
3203
3204 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3205
3206 * keyboard.c (modify_event_symbol): Add const to array elements of
3207 arg NAME_TABLE.
3208 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3209 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3210 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3211 Add const to array elements.
3212 (scroll_bar_parts): Make static. Fix position of const.
3213
3214 * w32fns.c (lispy_function_keys): Add const to extern.
3215
3216 * w32inevt.c (lispy_function_keys): Likewise.
3217
3218 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3219
3220 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3221 resource here; it's now done at startup.
3222
3223 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3224
3225 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3226
3227 Fix compilation on Solaris.
3228 * sysdep.c: Do not #include <term.h>.
3229 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3230
3231 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3232
3233 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3234
3235 * xterm.c (set_wm_state): Don't put Atom in cons, call
3236 make_fixnum_or_float on them first.
3237 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3238 Xatom_net_supported correctly.
3239
3240 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3241 (Fx_send_client_event): to here.
3242
3243 2010-11-13 Martin Rudalics <rudalics@gmx.at>
3244
3245 * window.c (Fwindow_use_time): New function.
3246
3247 2010-11-13 Eli Zaretskii <eliz@gnu.org>
3248
3249 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3250 zero-width characters.
3251
3252 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3253
3254 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3255 box before drawing the glyphs inside it.
3256
3257 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3258
3259 * dispextern.h (enum glyphless_display_method):
3260 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3261 All users changed.
3262
3263 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3264 Fix comments.
3265 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3266 whitespace in "[]", to simulate a box. Don't use uninitialized
3267 variable `width'.
3268
3269 2010-11-11 Julien Danjou <julien@danjou.info>
3270
3271 * xsettings.c (init_xsettings): Use already fetch atoms.
3272
3273 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3274 from dpyinfo.
3275
3276 * xselect.c (Fx_send_client_event): Split and create
3277 x_send_client_event.
3278
3279 * lisp.h: Do not EXFUN Fx_send_client_event.
3280
3281 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3282 from dpyinfo.
3283 (wm_supports): Use atoms from dpyinfo.
3284 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3285 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3286 (xembed_set_info): Use atoms from dpyinfo.
3287 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3288 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3289 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3290 Get all atoms in one round-trip.
3291 (set_wm_state): Use x_send_client_event rather than
3292 Fx_send_client_event, using Atom directly.
3293 (x_ewmh_activate_frame): Ditto.
3294 (x_set_sticky): Pass atoms to set_wm_state.
3295 (do_ewmh_fullscreen): Ditto.
3296
3297 * xterm.h (x_display_info): Add Xatom_net_supported,
3298 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3299 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3300
3301 * xfns.c (Fx_show_tip): Fix typo in docstring.
3302
3303 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3304
3305 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3306 it's not negative.
3307
3308 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3309
3310 * font.c (font_filter_properties): Add const to array elements of
3311 properties args.
3312
3313 * font.h (font_filter_properties): Likewise.
3314
3315 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3316 elements.
3317
3318 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3319
3320 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
3321
3322 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3323 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3324 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3325 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3326 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3327
3328 2010-11-10 Glenn Morris <rgm@gnu.org>
3329
3330 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3331
3332 2010-11-09 Eli Zaretskii <eliz@gnu.org>
3333
3334 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
3335
3336 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
3337
3338 * image.c (free_image): Don't garbage the frame here, since this
3339 function can be called while redisplaying (Bug#7210).
3340 (uncache_image): Garbage the frame here (Bug#6426).
3341
3342 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
3343
3344 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3345 parent is the root window. Check this after traversing window tree.
3346
3347 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
3348
3349 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
3350
3351 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3352 before traversing window tree (Bug#5721).
3353
3354 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3355
3356 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3357
3358 * xdisp.c (note_mode_line_or_margin_highlight):
3359 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
3360
3361 2010-11-06 Eli Zaretskii <eliz@gnu.org>
3362
3363 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3364 adjust width of tool-tip frame to the width of text, excluding the
3365 stretch glyph at the beginning of R2L glyph rows.
3366
3367 * w32fns.c (Fx_show_tip): Likewise.
3368
3369 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3370
3371 * nsfont.m: Include termchar for new mouse-highlight.
3372 (nsfont_draw): Use MOUSE_HL_INFO.
3373
3374 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3375
3376 Unify mouse-highlight code for all GUI and TTY sessions.
3377
3378 * term.c: Remove static mouse_face_* variables. All users
3379 changed.
3380 (term_show_mouse_face, term_clear_mouse_face)
3381 (fast_find_position, term_mouse_highlight): Functions deleted.
3382 (tty_draw_row_with_mouse_face): New function.
3383 (term_mouse_movement): Call note_mouse_highlight instead of
3384 term_mouse_highlight.
3385
3386 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3387 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3388 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3389 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3390 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3391 Replace Display_Info with Mouse_HLInfo everywhere where
3392 mouse_face_* members were accessed for mouse highlight purposes.
3393
3394 * xterm.c (x_update_window_begin, x_update_window_end)
3395 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
3396 (handle_one_xevent, x_free_frame_resources, x_term_init):
3397 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
3398 members were accessed for mouse highlight purposes.
3399
3400 * w32term.c (x_update_window_begin, x_update_window_end)
3401 (x_update_end, w32_read_socket, x_free_frame_resources)
3402 (w32_initialize_display_info): Replace Display_Info with
3403 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3404 for mouse highlight purposes.
3405
3406 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3407 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3408 unless the frame is on a window-system.
3409 (get_tool_bar_item, handle_tool_bar_click)
3410 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3411 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3412 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3413 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3414 Replace Display_Info with Mouse_HLInfo everywhere where
3415 mouse_face_* members were accessed for mouse highlight purposes.
3416 (coords_in_mouse_face_p): Move prototype out of the
3417 HAVE_WINDOW_SYSTEM conditional.
3418 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3419 HAVE_WINDOW_SYSTEM block.
3420 (try_window_id) [HAVE_GPM || MSDOS]:
3421 Call x_clear_window_mouse_face.
3422 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
3423 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3424 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3425 calling draw_glyphs directly.
3426 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3427 (cursor_in_mouse_face_p, rows_from_pos_range)
3428 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3429 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3430 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3431 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3432 fragments.
3433 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3434 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3435 integer.
3436 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
3437 (x_consider_frame_title, tool_bar_lines_needed):
3438 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
3439 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3440 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3441 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3442 part.
3443
3444 * dispnew.c (mirror_make_current): Set Y coordinate of the
3445 mode-line and header-line rows.
3446 (init_display): Setup initial frame's output_data for text
3447 terminal frames.
3448
3449 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3450 its own definition on msdos.c.
3451
3452 * msdos.c (show_mouse_face, clear_mouse_face)
3453 (fast_find_position, IT_note_mode_line_highlight)
3454 (IT_note_mouse_highlight): Functions deleted.
3455 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3456 instead of IT_note_mouse_highlight.
3457 (draw_row_with_mouse_face, popup_activated): New functions.
3458 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3459 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3460 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3461 where mouse_face_* members were accessed for mouse highlight
3462 purposes.
3463
3464 * msdos.h (initialize_msdos_display): Add prototype.
3465
3466 * frame.h (MOUSE_HL_INFO): New macro.
3467
3468 * lisp.h (Mouse_HLInfo): New data type.
3469
3470 * xterm.h (struct x_display_info):
3471 * w32term.h (struct w32_display_info):
3472 * nsterm.h (struct ns_display_info):
3473 * termchar.h (struct tty_display_info): Use it instead of
3474 mouse_face_* members.
3475
3476 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3477 1st argument.
3478 (frame_to_window_pixel_xy, note_mouse_highlight)
3479 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3480 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3481 HAVE_WINDOW_SYSTEM conditional.
3482 (draw_row_with_mouse_face): Declare prototype.
3483 (tty_draw_row_with_mouse_face): Declare prototype.
3484
3485 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3486
3487 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3488 Remove unused variables.
3489
3490 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3491
3492 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3493 logic pointed out by Eli Zaretskii.
3494
3495 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3496
3497 * coding.c (coding-category-list): Refer to set-coding-system-priority
3498 instead of the obsolete set-coding-priority in the doc string.
3499
3500 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3501
3502 * nsfont.m (nsfont_draw): Correct previous patch to return
3503 correct value.
3504 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3505 don't change the method signature, change the return.
3506
3507 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3508
3509 * nsfont.m (nsfont_draw)
3510 * nsimage.m (EmacsImage-setXBMColor:)
3511 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3512
3513 2010-11-03 Julien Danjou <julien@danjou.info>
3514
3515 * image.c (gif_load): Add support for transparency and specified
3516 :background.
3517
3518 2010-11-01 Kenichi Handa <handa@m17n.org>
3519
3520 * dispextern.h (lookup_glyphless_char_display): Extern it.
3521
3522 * termhooks.h (struct terminal): New member charset_list.
3523
3524 * coding.c (Fset_terminal_coding_system_internal): Set the
3525 `charset_list' member of struct terminal.
3526
3527 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
3528 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3529
3530 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3531 (lookup_glyphless_char_display): Set it->what at the end.
3532 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3533 (last_glyphless_glyph_merged_face_id): Make them non-static.
3534
3535 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3536 Fix the arg with_background for font->driver->draw.
3537
3538 2010-11-01 Kenichi Handa <handa@m17n.org>
3539
3540 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3541 Surround chp by parentheses.
3542
3543 2010-11-01 Kenichi Handa <handa@m17n.org>
3544
3545 Implement various display methods for glyphless characters.
3546
3547 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3548 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3549 (Qzero_width): New variables.
3550 (THIN_SPACE_WIDTH): New macro.
3551 (lookup_glyphless_char_display): New function.
3552 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3553 (last_glyphless_glyph_merged_face_id): New variables.
3554 (get_next_display_element): Check glyphless characters.
3555 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3556 last_glyphless_glyph_face_id.
3557 (fill_glyphless_glyph_string): New function.
3558 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3559 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3560 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3561 (x_produce_glyphs): If a suitable font is not found, produce a
3562 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3563 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3564 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3565 Qzero_width.
3566 (Vglyphless_char_display): Declare it as a Lisp variable.
3567
3568 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
3569 (struct glyph): Change the size of the member "type" to 3.
3570 Add glyphless to the union slice and u.
3571 (enum display_element_type): Add IT_GLYPHLESS.
3572 (enum glyphless_display_method): New enum.
3573 (struct it): New member glyphless_method.
3574 (Vglyphless_char_display): Extern it.
3575
3576 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3577 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3578
3579 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
3580 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3581
3582 * nsterm.m (ns_draw_glyph_string): Handle the case
3583 GLYPHLESS_GLYPH (the detail is not yet implemented).
3584
3585 2010-10-31 Glenn Morris <rgm@gnu.org>
3586
3587 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3588
3589 * frame.c (syms_of_frame) <tool-bar-mode>:
3590 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3591
3592 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
3593
3594 * xterm.c (x_connection_closed): Print informative error message
3595 when aborting on GTK. This requires using shut_down_emacs
3596 directly instead of Fkill_emacs.
3597
3598 2010-10-29 Eli Zaretskii <eliz@gnu.org>
3599
3600 * emacs.c (main): Call syms_of_filelock unconditionally.
3601
3602 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3603 clause, but keep part of it conditioned on CLASH_DETECTION.
3604
3605 2010-10-29 Glenn Morris <rgm@gnu.org>
3606
3607 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3608 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3609 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3610 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3611 Sync docs between X, W32, NS.
3612
3613 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3614 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3615
3616 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
3617
3618 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3619 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3620
3621 2010-10-26 Eli Zaretskii <eliz@gnu.org>
3622
3623 * cmds.c (internal_self_insert): Don't insert if argument N is
3624 zero or negative. (Bug#7281)
3625
3626 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3627
3628 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3629
3630 2010-10-25 Glenn Morris <rgm@gnu.org>
3631
3632 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3633
3634 2010-10-24 Glenn Morris <rgm@gnu.org>
3635
3636 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3637 (Fx_window_property, Fx_file_dialog):
3638 * xfns.c (Fx_synchronize, Fx_change_window_property)
3639 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3640
3641 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3644
3645 2010-10-24 Eli Zaretskii <eliz@gnu.org>
3646
3647 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3648
3649 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3650 Deprecate use as a boolean flag.
3651
3652 2010-10-24 Jim Meyering <jim@meyering.net>
3653
3654 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3655
3656 2010-10-24 Glenn Morris <rgm@gnu.org>
3657
3658 * w16select.c (syms_of_win16select) <selection-coding-system>:
3659 <next-selection-coding-system>:
3660 * w32select.c (syms_of_w32select) <selection-coding-system>:
3661 <next-selection-coding-system>:
3662 Sync docs with select.el.
3663
3664 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3665 Lisp version.
3666
3667 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3668 Sync doc with the xterm.c version.
3669
3670 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3671 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3672
3673 2010-10-23 Glenn Morris <rgm@gnu.org>
3674
3675 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
3676 * frame.c (syms_of_frame) <menu-bar-mode>:
3677 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
3678 <hourglass-delay>: Sync docs with Lisp.
3679
3680 2010-10-23 Eli Zaretskii <eliz@gnu.org>
3681
3682 Implement mouse highlight for bidi-reordered lines.
3683
3684 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3685 (mouse_face_from_string_pos): New function, replaces
3686 fast_find_string_pos.
3687 (note_mouse_highlight): Call it instead of fast_find_string_pos.
3688 (note_mode_line_or_margin_highlight): Support bidi-reordered
3689 strings and R2L glyph rows. Fix comments.
3690 (note_mouse_highlight): When bidi reordering is turned on in a
3691 buffer, call next-single-property-change and
3692 previous-single-property-change with last argument nil.
3693 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
3694 glyph that stands for no text beyond the line end.
3695 (row_containing_pos): Don't return too early when CHARPOS is in a
3696 bidi-reordered continued line. Return immediately when the first
3697 hit is found in a line that is not continued, or when an exact
3698 match for CHARPOS is found.
3699 (rows_from_pos_range): New function.
3700 (mouse_face_from_buffer_pos): Use it instead of calling
3701 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3702 function to support mouse highlight in bidi-reordered lines and
3703 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3704 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3705 that the former is always above the latter or identical to it.
3706 (show_mouse_face): Support drawing highlighted R2L lines.
3707 (coords_in_mouse_face_p): New function, bidi-aware.
3708 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3709 Call it instead of comparing with mouse-face members of dpyinfo.
3710 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3711 usage of hpos and vpos.
3712
3713 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3714
3715 * xrdb.c: Include keyboard.h for MOTIF.
3716
3717 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3718 MOTIF (Bug#7263).
3719
3720 * xfns.c: Include Xm/TextF and Xm/List.
3721 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3722 Make ANSI prototypes.
3723
3724 2010-10-22 Glenn Morris <rgm@gnu.org>
3725
3726 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3727 Remove ccl and duplicate mouse.
3728
3729 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
3730
3731 * insdel.c (prepare_to_modify_buffer): Don't set
3732 saved-region-selection if modification hooks are disabled.
3733
3734 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
3735
3736 * cmds.c (Fdelete_char): Doc fix.
3737
3738 2010-10-19 Ken Brown <kbrown@cornell.edu>
3739
3740 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3741
3742 2010-10-19 Kenichi Handa <handa@m17n.org>
3743
3744 Fix incorrect font metrics when the same font is opened with
3745 different pixelsizes.
3746
3747 * xftfont.c: Include composite.h.
3748 (xftfont_shape): New function.
3749 (syms_of_xftfont): Set xftfont_driver.shape.
3750
3751 2010-10-18 Julien Danjou <julien@danjou.info>
3752
3753 * frame.c (Fframe_pointer_visible_p):
3754 Add `frame-pointer-visible-p' to get the pointer visibility.
3755
3756 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3757
3758 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3759 non-"EAGAIN"-like error to signal to Emacs that the socket should
3760 be closed.
3761
3762 2010-10-15 Eli Zaretskii <eliz@gnu.org>
3763
3764 * unexcoff.c (make_hdr): Fix prototype according to changes in
3765 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3766
3767 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3768
3769 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3770
3771 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3772 made building the X menu fail.
3773 (really-oldXMenu): Fix my previous fix.
3774
3775 2010-10-14 Damyan Pepper <damyanp@gmail.com>
3776
3777 Fix handling of font properties on Windows (bug#6303).
3778 * font.c (font_filter_properties): New function, refactored from
3779 ftfont_filter_properties.
3780 * font.h (font_filter_properties): Declare.
3781 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3782 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3783 (w32font_filter_properties): New function.
3784 (w32font_driver): Add w32font_filter_properties.
3785
3786 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
3787
3788 * font.c (Ffont_variation_glyphs):
3789 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3790
3791 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
3792
3793 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3794 * w32font.c (w32_generic_family):
3795 * w32inevt.c (key_event):
3796 * w32menu.c (fill_in_menu):
3797 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3798 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3799 * w32term.c (w32_read_socket): Make static.
3800
3801 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
3802
3803 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3804 prototypes; all callers changed.
3805
3806 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
3807
3808 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3809 (OBJ2): New macro.
3810 (WIN32OBJ, FONTOBJ): Remove.
3811 (OBJ1): Redistribute object files with OBJ2.
3812 (LIBS, $(TEMACS)): Use TLIB2.
3813 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3814 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3815
3816 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
3817
3818 * emacs.c (Vdynamic_library_alist)
3819 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3820 Doc fix.
3821
3822 * lisp.h (Vdynamic_library_alist): Declare extern.
3823
3824 * image.c (Vimage_library_alist)
3825 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3826 (lookup_image_type): Use Vdynamic_library_alist.
3827 (Finit_image_library): Doc fix.
3828
3829 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3830
3831 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3832 (lispdir): Remove trailing /, update all uses.
3833
3834 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
3835
3836 * nsterm.m (Qleft): Declare.
3837 (ns_right_alternate_modifier): New variable.
3838 (NSRightAlternateKeyMask): New define.
3839 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3840 ns_right_alternate_modifier isn't Qleft.
3841 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3842 as emacs modifier for NSRightAlternateKeyMask.
3843 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3844
3845 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3846
3847 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3848 gnutls is ready, return EAGAIN as the errno.
3849
3850 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3851
3852 * vm-limit.c:
3853 * unexhp9k800.c:
3854 * unexelf.c:
3855 * unexaix.c:
3856 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3857
3858 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3859 (PROFILING_LDFLAGS): Remove, not needed anymore.
3860
3861 * Makefile.in: Use $(...) everywhere instead of ${...}.
3862 (CRT_DIR): Move near potential user.
3863 (START_FILE): Move near CRT_DIR, it might use it.
3864
3865 * sysdep.c (LPASS8): Remove, unused.
3866 (emacs_ospeed): Change from being a global to a local in the only
3867 user: init_baud_rate.
3868
3869 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3870
3871 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
3872 (emacs_gnutls_write): Remove the debuggin fsync call.
3873 (emacs_gnutls_read): Return -1 if we got an error from
3874 gnutls_read. This allows us to actually read lots of data from
3875 the GnuTLS stream.
3876 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3877 According to the documentation, this is correct, and it seems to
3878 make things work.
3879
3880 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
3881
3882 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3883
3884 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
3885
3886 * keyboard.c: Revert last change; it was not intended to be
3887 synchronized with the trunk.
3888
3889 2010-10-08 Kenichi Handa <handa@m17n.org>
3890
3891 * coding.c (complement_process_encoding_system): Fix previous change.
3892
3893 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
3894
3895 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3896 (Fdbus_init_bus): ... here. (Bug#7113)
3897
3898 2010-10-08 Glenn Morris <rgm@gnu.org>
3899
3900 * buffer.c (before-change-functions, after-change-functions):
3901 Three-year overdue doc fix following 2007-08-13 change.
3902
3903 2010-10-08 Kenichi Handa <handa@m17n.org>
3904
3905 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3906 eol-format, inherit from the system's default.
3907 (complement_process_encoding_system): Make a new coding system
3908 inherit the original eol-format.
3909
3910 2010-10-08 Kenichi Handa <handa@m17n.org>
3911
3912 * coding.c (complement_process_encoding_system): New function.
3913
3914 * coding.h (complement_process_encoding_system): Extern it.
3915
3916 * callproc.c (Fcall_process): Complement the coding system for
3917 encoding arguments.
3918 (Fcall_process_region): Complement the coding system for encoding
3919 the input to the process.
3920
3921 * process.c (Fstart_process): Complement the coding system for
3922 encoding arguments.
3923 (send_process): Complement the coding system for encoding what
3924 sent to the process.
3925
3926 2010-10-08 Kenichi Handa <handa@m17n.org>
3927
3928 * xfont.c (xfont_open): Fix setting of font->average_width from
3929 :avgwidth property (Bug#7123).
3930
3931 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
3932
3933 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3934 is more portable.
3935
3936 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
3937 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
3938 has not defined SIGIO.
3939
3940 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
3941
3942 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3943 draw the outermost line using the black relief, for legibility.
3944 Omit drawing the four corner pixels.
3945
3946 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
3947
3948 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3949 (read_key_sequence): Inline echo_prompt.
3950 (echo_dash): Add a dash only if key is continued (Bug#7137).
3951
3952 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3953
3954 Remove O_RDONLY, O_WRONLY definitions, not needed.
3955 * unexcoff.c:
3956 * lread.c:
3957 * fileio.c:
3958 * doc.c:
3959 * callproc.c:
3960 * alloc.c:
3961 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3962
3963 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3964
3965 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3966
3967 * gnutls.c: Add property list symbol holders.
3968 (emacs_gnutls_handshake): Clarify how sockets are passed to
3969 GnuTLS.
3970 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3971 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3972 and keyfiles to be a list of file names. Default to "NORMAL" for
3973 the priority string. Improve logging.
3974
3975 2010-10-03 Glenn Morris <rgm@gnu.org>
3976
3977 * fileio.c (Vdirectory_sep_char): Remove.
3978
3979 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3980
3981 * termhooks.h: Remove #ifdef CONSP.
3982
3983 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3984
3985 Include <fcntl.h> unconditionally.
3986 * termcap.c:
3987 * sysdep.c:
3988 * lread.c:
3989 * keyboard.c:
3990 * filelock.c:
3991 * fileio.c:
3992 * doc.c:
3993 * callproc.c:
3994 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3995 does it.
3996
3997 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3998
3999 * sysdep.c (flush_pending_output): Remove code, does not do
4000 anything on any platform.
4001
4002 Remove unused code.
4003 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4004 Remove select emulation, all systems support select.
4005 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4006 * process.c (create_process): Remove #if 0 code.
4007
4008 Remove unused arguments for unexec.
4009 The third one is never used, and the last two are always passed as zero.
4010 * emacs.c (unexec): Add declaration.
4011 (Fdump_emacs): Only pass the first two arguments to unexec.
4012 Simplify #ifdef.
4013 * unexw32.c (unexec):
4014 * unexsol.c (unexec):
4015 * unexhp9k800.c (unexec):
4016 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4017 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4018 (find_section): Use const.
4019 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4020 (unexec_error): Declare it NO_RETURN.
4021 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4022 it as an argument, remove data_start and entry_address arguments, unused.
4023 (unexec): Remove bss_start, data_start and
4024 entry_address arguments.
4025 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4026 it as an argument, remove data_start and entry_address arguments, unused.
4027 (unexec): Remove bss_start, data_start and
4028 entry_address arguments.
4029
4030 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4033
4034 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4035 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4036 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4037 Fix typos in docstrings.
4038 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4039 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4040
4041 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4042
4043 * keyboard.c (command_loop_1): Make sure the mark is really alive
4044 before using it (Bug#7044).
4045
4046 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4047
4048 * makefile.w32-in (tags): Rename target to full-tags.
4049
4050 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4051
4052 * emacs.c (main): Remove !WINDOWSNT conditional.
4053 (Fkill_emacs): Don't mention exemption on MS-Windows.
4054
4055 2010-10-02 Glenn Morris <rgm@gnu.org>
4056
4057 * character.c (Fchar_bytes): Remove obsolete function.
4058 (syms_of_character): Remove Schar_bytes.
4059
4060 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4061 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4062 in batch-mode.
4063 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4064 (kill-emacs-hook): Doc fix.
4065
4066 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4067
4068 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4069 (parse_region): Rework to take regions instead of strings, and
4070 renamed to reflect that these are the libxml functions.
4071
4072 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4073
4074 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4075 screen dimensions in tty->Wcm.
4076
4077 * xdisp.c (set_cursor_from_row): When the row is truncated and
4078 point is outside the range of displayed characters, position the
4079 cursor inside the scroll margin. (Bug#6349)
4080
4081 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4082
4083 Do not include stdlib.h and string.h, config.h does it.
4084 * xfont.c:
4085 * w32term.c:
4086 * w32reg.c:
4087 * w32inevt.c:
4088 * w32heap.c:
4089 * w32console.c:
4090 * w16select.c:
4091 * unexsol.c:
4092 * term.c:
4093 * sound.c:
4094 * scroll.c (m):
4095 * gtkutil.c:
4096 * font.c:
4097 * filelock.c:
4098 * fileio.c:
4099 * dosfns.c:
4100 * dbusbind.c:
4101 * bidi.c:
4102 * callproc.c:
4103 * process.c:
4104 * msdos.c:
4105 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4106
4107 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4108 defines it.
4109
4110 * process.c: Move #include <pty.h> earlier.
4111 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4112 (pty_name): Move definition later.
4113
4114 * nsselect.m (syms_of_nsselect):
4115 * nsmenu.m (syms_of_nsmenu):
4116 * nsfns.m (syms_of_nsfns):
4117 * msdos.c (syms_of_msdos):
4118
4119 * image.c (syms_of_image):
4120 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4121
4122 * point.h: Remove, unused.
4123
4124 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4125
4126 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4127 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4128 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4129
4130 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4131
4132 * xml.c (parse_string): Use const.
4133
4134 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4135
4136 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4137 Also only override Vprint_level if it isn't already bound, and increase
4138 the level to 8 to produce more useful backtraces for bug reports.
4139
4140 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4141
4142 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4143
4144 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4145
4146 * w32console.c (vga_stdcolor_name): Remove unused function;
4147 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4148
4149 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4150
4151 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4152 (Fgnutls_boot): Start the handshake.
4153 (emacs_gnutls_read): Perform the handshake from the reader loop.
4154 (Fgnutls_boot): Remove some debugging messages.
4155 Change indentation throughout to use the Emacs style.
4156 (emacs_gnutls_handshake): Cast the fds to something that's
4157 possibly the expected length.
4158 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4159
4160 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4161
4162 * process.c (make_process): Set the gnutls_p field to zero by
4163 default.
4164 (read_process_output): Always call the gnutls_read function if the
4165 stream is a gnutls stream.
4166 (send_process): Ditto for writes.
4167
4168 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4169 or write anything until the state is GNUTLS_STAGE_READY.
4170 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4171
4172 2010-09-29 Eli Zaretskii <eliz@gnu.org>
4173
4174 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4175 NEUTRAL_DIR.
4176 (handle_invisible_prop, iterate_out_of_display_property)
4177 (next_element_from_buffer): If bidi_it.first_elt is set, call
4178 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4179 (Bug#7128)
4180
4181 * print.c (print_object): Fix format string and argument types for
4182 printing a Lisp_Misc_Marker.
4183
4184 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4185 (load_overlay_strings, get_overlay_strings_1)
4186 (get_overlay_strings, forward_to_next_line_start)
4187 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4188 (get_next_display_element, next_element_from_string)
4189 (next_element_from_c_string, next_element_from_buffer)
4190 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4191 (message_dolog, message_log_check_duplicate, message2_nolog)
4192 (message3, message3_nolog, vmessage, set_message, set_message_1)
4193 (hscroll_window_tree, text_outside_line_unchanged_p)
4194 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4195 (find_last_unchanged_at_beg_row)
4196 (find_first_unchanged_at_end_row, row_containing_pos)
4197 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4198 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4199 Use EMACS_INT for buffer and string positions.
4200
4201 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4202 (row_containing_pos): Adjust prototype.
4203
4204 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4205 (message2_nolog, set_message): Adjust prototypes.
4206
4207 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4208
4209 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4210 (Fgnutls_boot): Use SDATA.
4211 (Fgnutls_handshake): Remove unused var `max_log_level'.
4212
4213 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4214
4215 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4216 (Bug#7113)
4217
4218 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4219
4220 * xgselect.c (xg_select): Clear file descriptors not set from
4221 rfds and wfds.
4222
4223 * process.c (wait_reading_process_output): Add missing FD_CLR
4224 for write_mask (must mirror connect_wait_mask).
4225
4226 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4227
4228 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4229 prefix.
4230 (Fgnutls_boot): Use changed process members. Use log level with a
4231 function parameter to set it. Bring back Emacs-level debugging
4232 messages at log level 1 and 2.
4233
4234 * process.c (make_process): Initialize gnutls_log_level.
4235
4236 * process.h: Add gnutls_log_level and rename x509_cred and
4237 anon_cred to have the gnutls_ prefix for consistency.
4238
4239 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4240
4241 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
4242
4243 * w32.c (g_b_init_get_sid_identifier_authority)
4244 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4245 Remove, not used.
4246 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4247 (init_winsock): Remove useless assignment.
4248 (open_process_token, get_token_information, lookup_account_sid)
4249 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4250 (get_security_descriptor_owner, get_security_descriptor_group)
4251 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4252 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4253 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4254 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4255 (unc_volume_file_attributes, convert_from_time_t)
4256 (create_toolhelp32_snapshot, process32_first, process32_next)
4257 (open_thread_token, impersonate_self, revert_to_self)
4258 (get_process_memory_info, get_process_working_set_size)
4259 (global_memory_status, global_memory_status_ex, socket_to_fd)
4260 (shutdown_handler): Make static.
4261
4262 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4263
4264 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4265 (xd_pending_messages): Functions removed.
4266 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4267 order to be compatible with add_read_fd. Determine bus from data,
4268 and call xd_read_message just for this bus.
4269 (xd_add_watch): Use xd_read_queued_messages as callback function.
4270 Add data.
4271
4272 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4273
4274 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4275
4276 * gnutls.c (gnutls_log_function): Add more debugging.
4277 (emacs_gnutls_read): Don't infloop while reading.
4278
4279 2010-09-27 Kenichi Handa <handa@m17n.org>
4280
4281 These changes are to remove restriction on the number of glyphs in
4282 one composition.
4283
4284 * dispextern.h (struct glyph): Change the member "slice" to union.
4285 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
4286 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4287
4288 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4289 instead of glyph->slice.
4290 (marginal_area_string): Likewise.
4291
4292 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4293 glyph->u.cmp.
4294 (append_composite_glyph): Likewise.
4295
4296 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4297 glyph->u.cmp.
4298 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4299 (append_composite_glyph): Likewise.
4300 (fill_image_glyph_string): Use glyph->slice.img instead of
4301 glyph->slice.
4302 (append_glyph, produce_image_glyph, append_stretch_glyph)
4303 (note_mouse_highlight): Likewise.
4304
4305 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4306
4307 * process.c (add_keyboard_wait_descriptor)
4308 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4309 (wait_reading_process_output): Don't pass write_mask to select
4310 if SELECT_CANT_DO_WRITE_MASK is defined.
4311 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4312
4313 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4314 (delete_write_fd): Declare.
4315
4316 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4317 (write_mask): New variable.
4318 (max_input_desc): Rename from max_keyboard_desc.
4319 (fd_callback_info): New variable.
4320 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4321 New functions.
4322 (Fmake_network_process): FD_SET write_mask.
4323 (deactivate_process): FD_CLR write_mask.
4324 (wait_reading_process_output): Connecting renamed to Writeok.
4325 check_connect removed. check_write is new. Remove references to gpm.
4326 Use Writeok/check_write unconditionally (i.e. no #ifdef
4327 NON_BLOCKING_CONNECT) instead of Connecting.
4328 Loop over file descriptors and call callbacks in fd_callback_info
4329 if file descriptor is ready for I/O.
4330 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4331 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4332 (keyboard_bit_set): Use max_input_desc.
4333 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4334 Remove #ifdef subprocesses. Use max_input_desc.
4335 (init_process): Initialize write_mask and fd_callback_info.
4336
4337 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4338
4339 * dbusbind.c: Include process.h.
4340 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4341 (xd_read_message_1): New functions.
4342 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4343 Handle watch for both read and write.
4344 (Fdbus_init_bus): Also register xd_toggle_watch.
4345 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4346 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4347 to dbus_connection_flush.
4348 (xd_read_message): Move most of the code to xd_read_message_1.
4349 Call xd_read_message_1 until status is COMPLETE.
4350
4351 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4352
4353 * term.c: Do not include sys/ioctl.h, not needed.
4354 (init_tty): Reorder code to reduce the number of #ifdefs.
4355 No code changes.
4356
4357 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4358
4359 * process.h: Set up GnuTLS support.
4360
4361 * process.c (make_process, Fstart_process)
4362 (read_process_output, send_process): Set up GnuTLS support for
4363 process input/output file descriptors.
4364
4365 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4366
4367 * gnutls.c: The source code for GnuTLS support in Emacs.
4368
4369 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4370
4371 * config.in: Set up GnuTLS support.
4372
4373 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4374 (obj, LIBES): Set up GnuTLS support.
4375
4376 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
4377
4378 * w32.c (get_emacs_configuration_options): Fix previous change.
4379
4380 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
4381
4382 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4383 alive before using it (Bug#6977).
4384
4385 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4386
4387 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4388
4389 * dispextern.h: EMACS_INT/int fixup.
4390
4391 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4392 fixup.
4393
4394 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4395
4396 2010-09-25 Eli Zaretskii <eliz@gnu.org>
4397
4398 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4399 (Fselect_window, window_scroll_pixel_based)
4400 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4401 Use EMACS_INT for buffer positions.
4402
4403 * textprop.c (validate_interval_range, interval_of)
4404 (property_change_between_p, Fadd_text_properties)
4405 (set_text_properties_1, Fremove_text_properties)
4406 (Fremove_list_of_text_properties, Ftext_property_any)
4407 (Ftext_property_not_all, copy_text_properties)
4408 (text_property_list, extend_property_ranges)
4409 (verify_interval_modification): Use EMACS_INT for buffer
4410 positions.
4411
4412 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4413 for buffer positions.
4414
4415 * process.c (read_process_output, send_process)
4416 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4417 and string positions and size.
4418
4419 * print.c (print_object, print_string, strout): Use EMACS_INT for
4420 string indices.
4421
4422 * minibuf.c (string_to_object): Use EMACS_INT for string position
4423 and size.
4424
4425 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4426
4427 * lread.c <read_from_string_index, read_from_string_index_byte>
4428 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4429 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4430 buffer positions and string length.
4431
4432 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4433 EMACS_INT.
4434 (echo_truncate, adjust_point_for_property, read_char)
4435 (gen_help_event, make_lispy_event, modify_event_symbol)
4436 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4437 for buffer positions and string length.
4438
4439 * keyboard.h (gen_help_event): Adjust prototype.
4440
4441 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4442
4443 * commands.h <last_point_position>: Declare EMACS_INT.
4444
4445 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4446 (truncate_echo_area): Accept EMACS_INT argument.
4447
4448 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4449
4450 * lisp.h (truncate_echo_area): Adjust prototype.
4451
4452 * composite.c (composition_adjust_point): Return EMACS_INT.
4453
4454 * composite.h (composition_adjust_point): Adjust prototype.
4455
4456 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
4457
4458 * process.c (Fmake_network_process): When arg :host is 'local,
4459 use address 127.0.0.1, not name "localhost". (Bug#6781)
4460
4461 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4462
4463 * indent.c (Fcurrent_indentation, indented_beyond_p)
4464 (compute_motion): Use EMACS_INT for buffer position variables.
4465
4466 * lisp.h (indented_beyond_p): Adjust prototype.
4467
4468 * buffer.c (overlay_strings): Return EMACS_INT.
4469
4470 * buffer.h (overlay_strings): Adjust prototype.
4471
4472 * region-cache.c (pp_cache): Adjust format to arguments.
4473
4474 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4475 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4476 (verror): Use EMACS_INT for size of allocated buffer.
4477
4478 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4479 positions.
4480
4481 * xdisp.c (redisplay_internal, try_window_id)
4482 (set_cursor_from_row, find_first_unchanged_at_end_row):
4483 Use EMACS_INT for buffer positions.
4484
4485 * dispextern.h (set_cursor_from_row): Adjust prototype.
4486
4487 * dispnew.c (increment_matrix_positions)
4488 (increment_row_positions, copy_glyph_row_contents)
4489 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4490 positions.
4491
4492 * dispextern.h (mode_line_string, marginal_area_string)
4493 (increment_matrix_positions, increment_row_positions):
4494 Adjust prototypes.
4495
4496 * data.c (Faref, Faset): Use EMACS_INT for string length and
4497 positions.
4498
4499 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4500 characters to insert.
4501
4502 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4503 position and size.
4504
4505 * syntax.c (scan_words, update_syntax_table)
4506 (prev_char_comend_first, back_comment, skip_chars)
4507 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4508 Use EMACS_INT for buffer and string positions.
4509
4510 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4511
4512 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4513 positions.
4514
4515 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4516
4517 * scroll.c (calculate_scrolling, line_ins_del)
4518 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4519 conversion.
4520
4521 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4522 (region_cache_backward, region_cache_forward)
4523 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4524 conversion.
4525
4526 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4527
4528 * eval.c (verror): Fix EMACS_INT/int conversion.
4529
4530 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
4531 (print_preprocess, print_check_string_charset_prop)
4532 (print_object): Fix EMACS_INT/int conversion.
4533
4534 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4535
4536 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4537
4538 * callproc.c (Fcall_process): Use EMACS_INT for count of
4539 characters read from the subprocess.
4540
4541 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4542 positions.
4543 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4544 positions.
4545
4546 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4547 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4548 length.
4549 (advance_to_char_boundary, Fset_buffer_multibyte)
4550 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4551 (overlay_touches_p, record_overlay_string, overlay_strings)
4552 (recenter_overlay_lists, fix_start_end_in_overlays)
4553 (modify_overlay, Fmove_overlay, report_overlay_modification)
4554 (evaporate_overlays): Use EMACS_INT for buffer positions.
4555
4556 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4557 Adjust prototypes.
4558
4559 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4560 positions.
4561
4562 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4563 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4564 (Fsubstring_no_properties, substring_both, Ffillarray)
4565 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4566 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4567 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4568 (Fmd5): Use EMACS_INT for buffer and string positions and length
4569 variables and arguments.
4570
4571 * lisp.h (substring_both): Adjust prototype.
4572
4573 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
4574
4575 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4576 * w32fns.c (clipboard_sequence_fn): Don't declare.
4577 (globals_of_w32fns): Don't initialize it.
4578
4579 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
4580
4581 * syntax.c (back_comment): Detect the case where a 1-char comment
4582 starter is also the 2nd char of a 2-char comment ender.
4583
4584 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
4585
4586 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4587
4588 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4589
4590 * eval.c (verror): EMACS_INT/int cleanup.
4591
4592 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4593 unwind_protect more than 2GB worth of functions.
4594
4595 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4596
4597 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4598 string and avoid compiler warnings.
4599 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4600 all users.
4601
4602 * lread.c (oblookup): EMACS_INT/int cleanup.
4603
4604 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4605
4606 2010-09-23 Eli Zaretskii <eliz@gnu.org>
4607
4608 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4609
4610 * lisp.h (clip_to_bounds): Adjust prototype.
4611
4612 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4613
4614 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4615
4616 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4617
4618 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4619
4620 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4621 cleanup.
4622
4623 * lisp.h: Change the definition of all marker.c functions that
4624 take and return buffer stuff to be EMACS_INT instead of int.
4625
4626 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4627 (buf_charpos_to_bytepos, bytepos_to_charpos)
4628 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4629 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4630 for all buffer positions.
4631
4632 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
4633
4634 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4635 (split_interval_right, find_interval, next_interval)
4636 (delete_node, delete_interval, interval_deletion_adjustment)
4637 (adjust_intervals_for_deletion, merge_interval_right)
4638 (merge_interval_left, graft_intervals_into_buffer)
4639 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4640
4641 * intervals.h (traverse_intervals): Update prototype.
4642
4643 2010-09-23 Eli Zaretskii <eliz@gnu.org>
4644
4645 * indent.c (compute_motion): Use EMACS_INT for arguments to
4646 region_cache_forward.
4647
4648 * region-cache.c (struct boundary, struct region_cache):
4649 Use EMACS_INT for positions.
4650 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4651 (delete_cache_boundaries, set_cache_region)
4652 (invalidate_region_cache, know_region_cache)
4653 (region_cache_forward, region_cache_backward, pp_cache):
4654 Use EMACS_INT for buffer positions.
4655
4656 * region-cache.h (know_region_cache, invalidate_region_cache)
4657 (region_cache_forward, region_cache_backward): Adjust prototypes.
4658
4659 * search.c (string_match_1, fast_c_string_match_ignore_case)
4660 (looking_at_1, scan_buffer, scan_newline)
4661 (find_next_newline_no_quit, find_before_next_newline)
4662 (search_command, trivial_regexp_p, search_buffer, simple_search)
4663 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4664 and string positions and length.
4665
4666 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4667 (find_before_next_newline): Adjust prototypes.
4668
4669 * editfns.c (transpose_markers, update_buffer_properties)
4670 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4671 (get_pos_property, Fconstrain_to_field)
4672 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4673 (Fchar_after, Fchar_before, Finsert_char)
4674 (Finsert_buffer_substring, Fcompare_buffer_substrings)
4675 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4676 Use EMACS_INT for buffer and string position variables.
4677 (Finsert_char): Protect against too large insertions.
4678
4679 * lisp.h (clip_to_bounds): Adjust prototype.
4680
4681 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4682 (balance_an_interval, split_interval_right, split_interval_left)
4683 (find_interval, next_interval, update_interval)
4684 (adjust_intervals_for_insertion, delete_node, delete_interval)
4685 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4686 (offset_intervals, merge_interval_right, merge_interval_left)
4687 (graft_intervals_into_buffer, adjust_for_invis_intang)
4688 (move_if_not_intangible, get_local_map, copy_intervals)
4689 (copy_intervals_to_string, compare_string_intervals)
4690 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
4691 and for interval tree size.
4692
4693 * intervals.h (traverse_intervals, split_interval_right)
4694 (split_interval_left, find_interval, offset_intervals)
4695 (graft_intervals_into_buffer, copy_intervals)
4696 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4697 (update_interval): Adjust prototypes.
4698
4699 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4700 Use EMACS_INT for buffer position variables and arguments.
4701
4702 * composite.c (get_composition_id, find_composition)
4703 (run_composition_function, compose_text)
4704 (composition_gstring_width, autocmp_chars)
4705 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4706 for buffer positions and string length variables and arguments.
4707
4708 * composite.h (get_composition_id, find_composition, compose_text)
4709 (composition_gstring_width): Adjust prototypes.
4710
4711 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4712
4713 * xdisp.c (store_mode_line_noprop, display_mode_element):
4714 Use EMACS_INT for string positions.
4715
4716 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4717 position arguments.
4718
4719 * intervals.h (get_property_and_range): Adjust prototype.
4720
4721 * character.c (parse_str_as_multibyte, str_as_multibyte)
4722 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
4723 (string_count_byte8, string_escape_byte8, c_string_width)
4724 (strwidth, lisp_string_width, multibyte_chars_in_text):
4725 Use EMACS_INT for string length variables and arguments.
4726
4727 * character.h (parse_str_as_multibyte, str_as_multibyte)
4728 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
4729 (c_string_width, strwidth, lisp_string_width):
4730 Adjust prototypes.
4731
4732 * font.c (font_intern_prop): Use EMACS_INT for string length
4733 variables.
4734
4735 * font.c (font_intern_prop): Use EMACS_INT for string length
4736 variables.
4737
4738 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4739 variables.
4740
4741 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4742 (Fmake_string): Protect against too large strings.
4743 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4744 (live_misc_p): Use ptrdiff_t instead of int for pointer
4745 differences.
4746 (string_bytes, check_sblock, check_string_free_list)
4747 (allocate_string_data, compact_small_strings, Fmake_string)
4748 (Fmake_bool_vector, make_string, make_unibyte_string)
4749 (make_multibyte_string, make_string_from_bytes)
4750 (make_specified_string_string, Fmake_list, Fmake_vector):
4751 Use EMACS_INT for string length variables and arguments.
4752 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4753 (Fpurecopy): Use EMACS_INT for string size.
4754 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4755 for vector size.
4756
4757 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4758 (make_string_from_bytes, make_specified_string_string)
4759 (make_pure_string, string_bytes, check_point_in_composition):
4760 Adjust prototypes.
4761
4762 2010-09-22 Eli Zaretskii <eliz@gnu.org>
4763
4764 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4765 (check_translation): Use EMACS_INT for buffer positions and
4766 length.
4767
4768 * undo.c (record_marker_adjustment, record_delete)
4769 (record_change, record_point, record_insert)
4770 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4771 buffer positions.
4772
4773 * lisp.h (record_marker_adjustment, record_delete)
4774 (record_change, record_point, record_insert)
4775 (record_property_change, Fprimitive_undo): Adjust prototypes.
4776
4777 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
4778 Eli Zaretskii <eliz@gnu.org>
4779
4780 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4781
4782 2010-09-22 Eli Zaretskii <eliz@gnu.org>
4783
4784 * minibuf.c (Fminibuffer_contents)
4785 (Fminibuffer_contents_no_properties)
4786 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4787 positions.
4788
4789 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4790 mark.
4791
4792 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4793 (allocate_string_data): Accept EMACS_INT for string length.
4794
4795 * editfns.c (Ffield_string, Ffield_string_no_properties)
4796 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4797 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4798 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4799 (Ffield_end): Use EMACS_INT for buffer positions.
4800
4801 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4802 point with mark.
4803
4804 * lisp.h (allocate_string_data, make_uninit_string)
4805 (make_uninit_multibyte_string, make_buffer_string)
4806 (make_buffer_string_both): Adjust prototypes.
4807
4808 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
4809
4810 * xml.c: Switch to GNU indentation.
4811 (make_dom): Change parse tree format to match xml.el.
4812 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4813 (Fxml_parse_string_internal): Rename from xml-parse-string.
4814
4815 2010-09-22 Kenichi Handa <handa@m17n.org>
4816
4817 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4818 only if we are not at a composition.
4819 (set_iterator_to_next): Give it->end_charpos to
4820 composition_compute_stop_pos.
4821 (set_iterator_to_next, next_element_from_buffer): Likewise.
4822
4823 * dispnew.c (buffer_posn_from_coords): Fix position when the
4824 current display element is a grapheme cluster in bidi-reordered
4825 region.
4826
4827 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4828
4829 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4830 the regions may overlap.
4831
4832 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
4833
4834 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4835
4836 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4837
4838 * emacs.c: Do not include sys/ioctl.h, not needed.
4839
4840 * doprnt.c: Do not include stdlib.h, config.h does it.
4841 Move #include before macro definition.
4842
4843 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4844
4845 * Makefile.in (temacs): Link using $(CC) not $(LD).
4846 (LD_FIRSTFLAG): Define using autoconf.
4847 (LD): Remove.
4848
4849 Remove HAVE_TERMIOS definitions.
4850 * s/usg5-4-common.h (HAVE_TERMIOS):
4851 * s/template.h (HAVE_TERMIOS):
4852 * s/gnu-linux.h (HAVE_TERMIOS):
4853 * s/darwin.h (HAVE_TERMIOS):
4854 * s/cygwin.h (HAVE_TERMIOS):
4855 * s/bsd-common.h (HAVE_TERMIOS):
4856 * s/aix4-2.h (HAVE_TERMIOS):
4857 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4858 defined on all non-MS platforms.
4859 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4860
4861 * xterm.c (xt_action_hook): Use const.
4862
4863 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
4864
4865 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4866 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4867 (gethostname) [!HAVE_SOCKETS]: Remove.
4868 (SOCK_REPLACE_HANDLE): Remove macro.
4869 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4870 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4871 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4872 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4873
4874 2010-09-18 Eli Zaretskii <eliz@gnu.org>
4875
4876 * deps.mk (xml.o): Add dependencies.
4877
4878 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4879 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
4880
4881 * bidi.c (bidi_paragraph_init): Accept an additional argument
4882 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4883 search back until a paragraph with a strong directional character
4884 is found, and use that to determine paragraph's base direction.
4885
4886 * dispextern.h (bidi_paragraph_init): Update prototype.
4887
4888 2010-09-17 Eli Zaretskii <eliz@gnu.org>
4889
4890 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4891 of w32api >= 3.15. (Bug#6989)
4892
4893 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4894
4895 * process.c (wait_reading_process_output): Don't message about
4896 accept-process-output unless the time limit really is zero.
4897
4898 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4899
4900 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4901 int/Lisp_Object mixup).
4902
4903 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4904
4905 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4906 not HELP.
4907
4908 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
4909
4910 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4911 bar's pixel width to Lisp (Bug#7048).
4912
4913 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
4914
4915 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4916
4917 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4918
4919 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4920 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4921
4922 2010-09-17 Kenichi Handa <handa@m17n.org>
4923
4924 * ftfont.c (ftfont_check_otf): Fix previous change.
4925
4926 2010-09-14 Kenichi Handa <handa@m17n.org>
4927
4928 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4929 existence of GSUB or GPOS.
4930
4931 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
4932
4933 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4934
4935 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4936
4937 * xml.c (parse_buffer): Rename to parse_string(), since that's
4938 what it does.
4939 (parse_string): Return nil when the document can't be parsed.
4940
4941 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
4942
4943 * xterm.c (get_current_vm_state): New function.
4944 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4945 want_fullscreen so set_wm_state calls are few (Bug#7013).
4946 (x_handle_net_wm_state): Move code to get_current_vm_state and
4947 call that function.
4948
4949 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
4950
4951 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4952
4953 2010-09-14 Kenichi Handa <handa@m17n.org>
4954
4955 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4956 we may use designation or locking-shift.
4957
4958 2010-09-14 Kenichi Handa <handa@m17n.org>
4959
4960 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4961 sequence when the source is multibyte.
4962
4963 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4964
4965 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4966 Don't make first argument optional. Doc fix.
4967
4968 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4969
4970 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4971 parameters for the doc string.
4972
4973 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4974
4975 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4976
4977 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4978
4979 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4980 (syms_of_fns): Don't defsubr Sy_or_n_p.
4981 * lisp.h: Don't declare Fy_or_n_p.
4982 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4983
4984 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4985
4986 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4987
4988 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4989
4990 * xml.c: New file.
4991 (Fhtml_parse_buffer): New function to interface to the libxml2
4992 html parsing function.
4993
4994 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
4995
4996 * biditype.h: Regenerate.
4997
4998 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4999
5000 * nsimage.m (ns_load_image): Check argument types.
5001
5002 * image.c: Remove all uses of gcpro.
5003 (xpm_load): Check all lisp types.
5004 (pbm_load): Likewise.
5005 (png_load): Likewise.
5006 (jpeg_load): Likewise.
5007 (tiff_load): Likewise.
5008 (gif_load): Likewise.
5009 (imagemagick_load_image): Likewise.
5010 (imagemagick_load): Likewise.
5011 (svg_load): Likewise.
5012 (gs_load): Likewise.
5013
5014 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5015
5016 * w32uniscribe.c (uniscribe_shape): Update commentary.
5017 Don't try to reorder grapheme clusters, since LGSTRING should always
5018 hold them in the logical order.
5019 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5020 return glyph codes in the logical order.
5021
5022 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5023
5024 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5025 (imagemagick_load_image): Fix type mismatch.
5026 (Fimagemagick_types): Likewise. Doc fix.
5027
5028 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5029
5030 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5031
5032 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5033
5034 * xselect.c: Remove declaration of cut-buffer objects and functions.
5035 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5036 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5037 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5038 (Fx_rotate_cut_buffers_internal): Remove.
5039 (syms_of_xselect): Remove defsubr of above.
5040 Remove intern of QCUT_BUFFERn.
5041
5042 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5043
5044 * cmds.c (Vblink_paren_function): Remove.
5045 (internal_self_insert): Make it insert N chars at a time.
5046 Don't call blink-paren-function.
5047 (Fself_insert_command): Adjust accordingly.
5048 (syms_of_cmds): Don't declare blink-paren-function.
5049
5050 2010-08-31 Kenichi Handa <handa@m17n.org>
5051
5052 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5053 characters.
5054
5055 * term.c (encode_terminal_code): Fix the previous change.
5056 (produce_glyphs): Don't set it->char_to_display here.
5057 Don't handle unibyte-display-via-language-environment here.
5058 (produce_special_glyphs): Set temp_it.char_to_display before
5059 calling produce_glyphs.
5060
5061 * xdisp.c (get_next_display_element): Set it->char_to_display
5062 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5063 characters.
5064 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5065 calling PRODUCE_GLYPHS.
5066 (append_space_for_newline): Save and store it->char_to_display.
5067 Set it->char_to_display before calling PRODUCE_GLYPHS.
5068 (extend_face_to_end_of_line): Set it->char_to_display before
5069 calling PRODUCE_GLYPHS.
5070 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5071 character to its byte value.
5072 (get_char_glyph_code): New function.
5073 (produce_stretch_glyph): Set it2.char_to_display too before
5074 calling x_produce_glyphs.
5075 (x_produce_glyphs): Simplify by using the same code for ASCII and
5076 non-ASCII characters. Don't set it->char_to_display here.
5077 Don't handle unibyte-display-via-language-environment here. For a
5078 character of no glyph, use font->space_width instead of FONT_WIDTH.
5079
5080 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5081
5082 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5083
5084 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5085
5086 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5087
5088 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5089
5090 * marker.c (Fcopy_marker): Make the first arg optional.
5091
5092 2010-08-30 Kenichi Handa <handa@m17n.org>
5093
5094 * composite.c (composition_update_it): Fix computing of
5095 cmp_it->width.
5096
5097 2010-08-29 Kenichi Handa <handa@m17n.org>
5098
5099 * term.c (encode_terminal_code): Encode byte chars to the
5100 corresponding bytes.
5101
5102 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5103
5104 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5105
5106 2010-08-26 Kenichi Handa <handa@m17n.org>
5107
5108 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5109 on calling composition_compute_stop_pos.
5110
5111 2010-08-25 Kenichi Handa <handa@m17n.org>
5112
5113 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5114 :otf.
5115
5116 * composite.c (composition_compute_stop_pos): Don't break
5117 composition at PT.
5118 (composition_reseat_it): Likewise. Fix calculation of character
5119 position starting a composition.
5120 (Fcomposition_get_gstring): Don't limit the number of components
5121 for automatic composition.
5122
5123 2010-08-25 Kenichi Handa <handa@m17n.org>
5124
5125 * composite.c (composition_compute_stop_pos): In forward search,
5126 pay attention to the possibility that some character after ENDPOS
5127 will be composed with charactrs before ENDPOS.
5128
5129 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5130
5131 * keyboard.c (command_loop_1): Don't clobber primary selection
5132 during handle-switch-frame (Bug#6872).
5133
5134 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5135
5136 * dbusbind.c: Accept UNIX domain sockets as bus address.
5137 (Fdbus_close_bus): New function.
5138 (Vdbus_registered_buses): New variable.
5139 (xd_initialize): Implement string as bus address.
5140 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5141 (Fdbus_get_unique_name, Fdbus_call_method)
5142 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5143 (Fdbus_method_error_internal, Fdbus_send_signal)
5144 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5145 check. This is done in xd_initialize_bus. Adapt doc string, if
5146 necessary.
5147 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5148 Vdbus_registered_buses.
5149 (Vdbus_registered_objects_table): Create hash.
5150
5151 2010-08-22 Juri Linkov <juri@jurta.org>
5152
5153 * keyboard.c (Fexecute_extended_command): Move reading a command name
5154 with `completing-read' to a new Elisp function `read-extended-command'.
5155 Call it to read a command to `function' (bug#5364, bug#5214).
5156
5157 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5158
5159 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5160
5161 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5162
5163 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5164 instead of SAFE_ALLOCA.
5165
5166 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5167
5168 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5169 (Bug#6214).
5170
5171 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5172
5173 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5174
5175 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5176
5177 * doc.c (Fsnarf_documentation): Initialize skip_file before
5178 build-files test.
5179
5180 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
5181
5182 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5183 New definitions.
5184 (HAVE_TERMIO): Remove.
5185
5186 2010-08-22 Eli Zaretskii <eliz@gnu.org>
5187
5188 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5189
5190 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5191 for w32.
5192
5193 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5194 it's done in nt/config.nt.
5195
5196 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5197
5198 * unexcoff.c (report_error, make_hdr, write_segment)
5199 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5200 Convert argument lists and prototypes to ANSI C.
5201 (make_hdr, write_segment): Remove unused variables.
5202 (unexec): Remove commented-out line. Initialize `new' to shut up
5203 compiler warnings.
5204
5205 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5206
5207 Simplify termio code.
5208 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5209 HAVE_TERMIO code is obsolete.
5210 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5211 * systty.h: Do not define HAVE_TCATTR.
5212 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5213 Do not define EMACS_HAVE_TTY_PGRP. Only define
5214 EMACS_GET_TTY_PGRP for !DOS_NT.
5215 * sysdep.c: Include sysselect.h unconditionally. Do not include
5216 sys/ioctl.h and termios.h, systty.h does it.
5217 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5218 (init_baud_rate): Remove HAVE_TERMIO code.
5219 (child_setup_tty): Remove HAVE_TERMIO code.
5220 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5221 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5222 (new_ltchars, new_tchars): Remove, unused.
5223 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5224 code. Remove special casing for __mips__, it was a no-op.
5225 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5226 (init_sys_modes): Remove HPUX special case.
5227 * process.c: Include stdlib.h unconditionally. Do not include
5228 fcntl.h, systty.h does it. Remove conditional code for
5229 HAVE_SERIAL, it is always true.
5230 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5231 always true when SIGNALS_VIA_CHARACTERS is true.
5232 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5233 !WINDOWSNT means HAVE_TERMIOS.
5234 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5235 conditional, which is true for all HAVE_TERMIOS systems.
5236 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5237 instead of HAVE_TERMIOS.
5238 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5239 EMACS_HAVE_TTY_PGRP.
5240 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5241 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5242 anyway.
5243
5244 2010-08-21 Eli Zaretskii <eliz@gnu.org>
5245
5246 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5247 mirroring pixel positions.
5248
5249 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5250
5251 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5252 write only.
5253 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5254 malloc_sbrk_used, nothing uses them.
5255
5256 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5257 defined, unconditionally defined in lisp.h.
5258
5259 * term.c: Do not include <termios.h>, systty.h does it.
5260
5261 * s/unixware.h (HAVE_TCATTR):
5262 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5263 systty.h defines it when HAVE_TERMIOS is defined.
5264
5265 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5266
5267 * dispnew.c (buffer_posn_from_coords): Fix last change for text
5268 terminals: add one-character offset for R2L lines.
5269
5270 * emacs.c <emacs_version>: Add a comment regarding
5271 msdos/mainmake.v2's dependency on the syntax of this declaration.
5272
5273 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5274
5275 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5276 position for R2L lines by mirroring the pixel position wrt the
5277 text are box. Improve commentary.
5278
5279 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5280
5281 * image.c (imagemagick_clear_image): Remove debugging output.
5282
5283 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5284
5285 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5286 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5287 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5288 self-insert-face.
5289 (syms_of_cmds): Initialize the new vars.
5290
5291 2010-08-19 Jason Rumney <jasonr@gnu.org>
5292
5293 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5294
5295 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5296
5297 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5298
5299 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5300
5301 2010-08-18 Eli Zaretskii <eliz@gnu.org>
5302
5303 * xterm.c (x_draw_bar_cursor):
5304 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5305 R2L, draw the bar cursor on its right rather than on its left.
5306
5307 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5308
5309 * eval.c (Fdefmacro): Only obey one declaration.
5310
5311 * casefiddle.c (casify_region): Setup gl_state.
5312
5313 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5314
5315 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5316
5317 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5318
5319 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
5320
5321 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
5322
5323 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5324 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5325 QPRIMARY => NXPrimaryPboard.
5326 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5327 NXPrimaryPboard => QPRIMARY.
5328 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5329 NXSecondaryPboard = SecondarySelection.
5330 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5331
5332 2010-08-18 Joakim Verona <joakim@verona.se>
5333
5334 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5335 defined:
5336 (imagemagick_image_p): New function to test for ImageMagic image.
5337 (imagemagick_load): New function to load ImageMagick image.
5338 (imagemagick_load_image): New function, helper for imagemagick_load.
5339 (imagemagick-types): New function.
5340 (Qimagemagick): New Lisp_object.
5341 (imagemagick-render-type): New variable, decides which renderer to use.
5342
5343 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5344
5345 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5346 is a string.
5347
5348 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5349
5350 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5351 x_set_tool_bar_position handler.
5352
5353 2010-08-17 Eli Zaretskii <eliz@gnu.org>
5354
5355 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5356 x_set_tool_bar_position handler, needed to support changes from
5357 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5358
5359 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5360
5361 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
5362 declaration (Bug#6863).
5363 (syms_of_nsselect): Don't intern QPRIMARY.
5364
5365 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5366
5367 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5368
5369 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
5370
5371 * keyboard.c (command_loop_1): Avoid setting selection twice,
5372 since it's done in deactivate-mark as well.
5373 (Vselect_active_regions): Change default to t. Replace `lazy'
5374 with non-default value `only', meaning only set PRIMARY for
5375 temporarily active regions.
5376
5377 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5378 select-active-regions.
5379
5380 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5381
5382 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5383 isn't a string.
5384
5385 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5386
5387 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5388
5389 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5390
5391 * keyboard.c (parse_tool_bar_item): malloc buf.
5392 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5393 new_lbl (Bug#6855).
5394
5395 2010-08-14 Eli Zaretskii <eliz@gnu.org>
5396
5397 * xterm.c (x_draw_stretch_glyph_string):
5398 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5399 the cursor on the right edge of the stretch glyph.
5400
5401 * xdisp.c (window_box_right_offset, window_box_right):
5402 Fix commentary.
5403
5404 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5405 direction when point is inside a run of whitespace characters.
5406
5407 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5408
5409 2010-08-14 Jason Rumney <jasonr@gnu.org>
5410
5411 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5412
5413 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5416
5417 2010-08-13 Jason Rumney <jasonr@gnu.org>
5418
5419 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5420 (MessageBoxW_Proc): New function typedef.
5421 (unicode-message-box): New function pointer.
5422 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
5423
5424 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5425
5426 * frame.h (Qtool_bar_position): Declare.
5427
5428 * xfns.c (Fx_create_frame): Call x_default_parameter for
5429 Qtool_bar_position.
5430
5431 2010-08-13 Eli Zaretskii <eliz@gnu.org>
5432
5433 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5434 (report_error, report_error_1): Ditto.
5435 (write_segment): Remove "#if 0" unused code.
5436 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5437 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5438 (start_of_text): Remove unused function (was used only if NO_REMAP
5439 was NOT defined).
5440
5441 * msdos.c (IT_set_face): Fix format string to match argument
5442 types.
5443 (IT_write_glyphs, IT_note_mode_line_highlight)
5444 (IT_set_frame_parameters): Remove unused variables.
5445 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5446 (IT_set_terminal_modes): Disambiguate expression in if clause.
5447 (Fmsdos_remember_default_colors): Return Qnil.
5448 (IT_set_frame_parameters): Add parens to disambiguate boolean
5449 expression for logging the cursor type to termscript.
5450 (keyboard_layout_list, keypad_translate_map)
5451 (grey_key_translate_map): Add braces in inner initializers.
5452 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5453 (dos_rawgetc): Remove unused label.
5454 (XMenuActivate): Add braces to remove ambiguous `else'.
5455 (dos_ttraw): Always return a value.
5456 (spawnve): Declare.
5457 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5458
5459 * dosfns.h (x_set_title): Declare.
5460
5461 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5462 Remove unused variables.
5463
5464 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5465 variables.
5466 (init_dosfns): Declare get_lim_data.
5467 (system_process_attributes): Declare Fget_internal_run_time.
5468
5469 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5470 list to be consistent with menu.h.
5471
5472 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5473 warnings due to mixing of "char *" and "const char *".
5474
5475 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5476
5477 Introduce a new comment style "c" flag.
5478 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5479 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5480 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5481 (syntax_prefix_flag_p): New function.
5482 (Fstring_to_syntax): Understand new "c" flag.
5483 (Finternal_describe_syntax_value): Recognize new flag; use the
5484 SYNTAX_FLAGS_* macros.
5485 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5486 comment style to accomodate the new styles.
5487 (back_comment, forw_comment, Fforward_comment, scan_lists)
5488 (scan_sexps_forward): Update code to obey the new comment style flag.
5489
5490 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5491
5492 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5493
5494 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5495
5496 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5497 first.
5498 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
5499
5500 * gtkutil.h (xg_check_special_colors): Declare.
5501
5502 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5503 (xg_create_frame_widgets): Connect theme name changes to
5504 style_changed_cb.
5505
5506 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5507 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5508 (x_term_init): Use char[] display_opt and name_opt instead of
5509 string literal. file is const char*.
5510
5511 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5512 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5513 props. Free them at the end.
5514
5515 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5516
5517 * xrdb.c (get_system_app): Make path const and use char *p for
5518 non-const char.
5519
5520 * xmenu.c (Fx_popup_dialog): error_name is const char*.
5521 (xmenu_show): error parameter is const char **. pane_string is const
5522 char *.
5523 (button_names): Is const char *.
5524 (xdialog_show): error_name and pane_string is const.
5525
5526 * process.h (synch_process_death): Is const char*.
5527
5528 * w32menu.c (w32_menu_show):
5529 * nsmenu.m (ns_menu_show): error parameter is const char **.
5530
5531 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5532 is const char **.
5533
5534 * menu.c (Fx_popup_menu): error_name is const.
5535
5536 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5537 with unsigned char and XtPointer with void *.
5538
5539 * gtkutil.h: Replace widget_value with struct _widget_value.
5540 (enum button_type, struct _widget_value): Remove and use the one from
5541 keyboard.h.
5542
5543 * gtkutil.c (get_utf8_string): Always return an allocated string.
5544 Parameter is const.
5545 (create_dialog, xg_create_one_menuitem, create_menus)
5546 (xg_item_label_same_p, xg_update_menu_item): Free result from
5547 get_utf8_string.
5548 (xg_separator_p, xg_item_label_same_p): label is const.
5549
5550 * font.h (font_open_by_name): Make name const.
5551
5552 * font.c (font_open_by_name): Make name const.
5553
5554 * floatfns.c (matherr): Use a const char* variable for x->name.
5555
5556 * emacs.c (main): Pass char[] to putenv instead of literal.
5557
5558 * callproc.c (synch_process_death): Make const.
5559 (Fcall_process): Make signame const.
5560
5561 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5562 (addDisplayItemWithImage): Use const char*.
5563
5564 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5565 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5566
5567 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5568
5569 * keyboard.h (_widget_value): name, value and key are const char*.
5570
5571 * unexmacosx.c (unexec_error): Use const char *.
5572
5573 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5574
5575 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
5576 (font_parse_name, font_open_by_name):
5577 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
5578 (font_parse_name, font_open_by_name): Remove const.
5579
5580 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5581
5582 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5583 definition.
5584
5585 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5586 * m/amdx86-64.h: Likewise.
5587 * m/arm.h: Likewise.
5588 * m/hp800.h: Likewise.
5589 * m/ia64.h: Likewise.
5590 * m/ibmrs6000.h: Likewise.
5591 * m/ibms390.h: Likewise.
5592 * m/intel386.h: Likewise.
5593 * m/iris4d.h: Likewise.
5594 * m/m68k.h: Likewise.
5595 * m/macppc.h: Likewise.
5596 * m/mips.h: Likewise.
5597 * m/sh3.h: Likewise.
5598 * m/sparc.h: Likewise.
5599 * m/template.h: Likewise.
5600 * m/vax.h: Likewise.
5601 * m/xtensa.h: Likewise.
5602 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5603 WORDS_BIG_ENDIAN.
5604 * lisp.h: Likewise.
5605 * md5.c: Likewise.
5606 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5607
5608 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5609
5610 Use const char* instead of char*.
5611 Reduce the number of warnings with -Wwrite-strings.
5612 * xrdb.c (get_environ_db, get_system_name):
5613 * unexelf.c (find_section):
5614 * term.c (string_cost, string_cost_one_line, per_line_cost)
5615 (get_named_tty, init_tty):
5616 * sysdep.c (sys_subshell):
5617 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5618 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5619 * search.c (Freplace_match):
5620 * process.c (Fmake_network_process, send_process, init_process):
5621 * lread.c (Fload, init_lread):
5622 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5623 * keyboard.c (parse_tool_bar_item, struct event_head):
5624 * gtkutil.h (xg_get_font_name):
5625 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5626 (make_widget_for_menu_item, make_menu_item, create_menus)
5627 (xg_make_tool_item):
5628 * font.c (parse_matrix, font_parse_name):
5629 * floatfns.c (rounding_driver, float_error_fn_name):
5630 * filelock.c (get_boot_time_1, lock_file_1):
5631 * fileio.c (barf_or_query_if_file_exists, check_writable):
5632 * editfns.c (get_system_name, get_operating_system_release)
5633 (Fencode_time, Fset_time_zone_rule):
5634 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5635 * buffer.c (defvar_per_buffer): Use const.
5636
5637 2010-08-08 Kenichi Handa <handa@m17n.org>
5638
5639 * charset.c: Include <stdlib.h>.
5640 (struct charset_sort_data): New struct.
5641 (charset_compare): New function.
5642 (Fsort_charsets): New function.
5643 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5644
5645 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5646 number in CTEXT extended segment.
5647
5648 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5649
5650 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5651 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5652
5653 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5654
5655 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5656 (Fhash_table_size): Fix typos in docstrings.
5657 (Fmake_hash_table): Doc fix.
5658
5659 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5660
5661 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5662 Doc fix (bug#5625).
5663
5664 2010-08-08 Ken Brown <kbrown@cornell.edu>
5665
5666 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5667 the MSDOS definition.
5668
5669 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5670
5671 Use const char* instead of char*.
5672 * xterm.c (x_create_toolkit_scroll_bar):
5673 * xfont.c (xfont_list_pattern):
5674 * xfns.c (x_default_scroll_bar_color_parameter)
5675 (xic_create_fontsetname, x_default_font_parameter)
5676 (x_screen_planes):
5677 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5678 (store_mode_line_string, decode_mode_spec, display_string):
5679 * menu.c (digest_single_submenu):
5680 * keymap.h (initial_define_key, initial_define_lispy_key):
5681 * keymap.c (initial_define_key, initial_define_lispy_key):
5682 * image.c (image_error, image_keyword):
5683 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5684 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5685 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5686 (ftfont_list, ftfont_match):
5687 * frame.c (frame_parm_table):
5688 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5689 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5690 (font_add_log, font_deferred_log):
5691 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5692 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5693 (font_add_log, font_deferred_log):
5694 * emacs.c (argmatch):
5695 * dispextern.h (struct it):
5696 * coding.c (ENCODE_DESIGNATION):
5697 * charset.c (define_charset_internal): Use const.
5698
5699 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5700
5701 * xrdb.c: Remove include guard.
5702 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
5703 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5704 realloc->xrealloc instead of using #defines.
5705
5706 2010-08-08 Eli Zaretskii <eliz@gnu.org>
5707
5708 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
5709 * editfns.c (Fline_beginning_position, Fline_end_position):
5710 State in the doc strings that start and end of line are in the
5711 logical order.
5712
5713 * xdisp.c (display_line): Move the handling of overlay arrow after
5714 the call to find_row_edges. (Bug#6699)
5715
5716 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
5717
5718 * keyboard.c (command_loop_1):
5719 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5720
5721 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
5722
5723 * insdel.c (prepare_to_modify_buffer): Save active region text to
5724 Vsaved_region_selection.
5725
5726 * xselect.c (QPRIMARY): Move to keyboard.c.
5727
5728 * keyboard.c (Vselect_active_regions): Move from simple.el.
5729 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5730 (command_loop_1): Set window selection prior to deactivating the mark.
5731
5732 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
5733
5734 * alloc.c (lisp_malloc):
5735 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5736 * charset.h (emacs_mule_charset):
5737 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5738 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5739 (bitch_at_user):
5740 * lisp.h (Fcheck_coding_system, Fget_text_property)
5741 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5742 Remove duplicate declarations.
5743
5744 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5745
5746 * process.c: Simplify include logic.
5747
5748 * keyboard.h (quit_char): Add declaration.
5749 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
5750 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5751 Add declarations.
5752 * sysdep.c:
5753 * w32.c: Remove the above declarations.
5754
5755 Remove extern declarations in .c files, .h files have them.
5756 * xterm.c:
5757 * xdisp.c:
5758 * msdos.c:
5759 * image.c:
5760 * gtkutil.c:
5761 * fileio.c:
5762 * eval.c: Remove declarations.
5763
5764 * frame.c (frame_params): Make const.
5765
5766 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5767
5768 * emacs.c (emacs_copyright, emacs_version): Make static.
5769 (Vinitial_window_system, Vauto_save_list_file_name)
5770 (Vinhibit_redisplay): Remove declarations.
5771 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5772 for AIX.
5773
5774 Use const for some arrays and functions.
5775 * xterm.h (xg_set_icon_from_xpm_data):
5776 * xfns.c (xg_set_icon_from_xpm_data):
5777 * term.c (fkeys):
5778 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5779 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5780 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5781 (frame.c frame_parms):
5782 * emacs-icon.h (gnu_xpm_bits):
5783 * callint.c (callint_argfuns): Use const.
5784
5785 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5786
5787 * sysdep.c: Move include term.h last of includes (Bug#6812).
5788
5789 2010-08-06 Eli Zaretskii <eliz@gnu.org>
5790
5791 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5792
5793 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5794
5795 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5796
5797 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
5798
5799 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5800
5801 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5802
5803 * xterm.h (x_get_focus_frame): Declare.
5804
5805 * keyboard.h (poll_for_input_1): Unconditionally declare.
5806
5807 * nsterm.h (x_set_menu_bar_lines): Declare.
5808
5809 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5810
5811 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5812
5813 * window.c: Include menu.h.
5814
5815 * unexmacosx.c (print_region_list, print_regions)
5816 (build_region_list, find_emacs_zone_regions)
5817 (unexec_regions_merge, read_load_commands, dump_it)
5818 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5819
5820 * term.c: Check HAVE_SYS_IOCTL_H.
5821
5822 * sysdep.c: Check HAVE_TERM_H.
5823
5824 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
5825
5826 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5827 (ns_ring_bell, ns_defined_color, hide_hourglass)
5828 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5829 Convert to ANSI C prototypes.
5830 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5831 before code.
5832
5833 * nsterm.h : Include sysselect.h.
5834 (x_sync, x_get_focus_frame, x_set_mouse_position)
5835 (x_set_mouse_pixel_position, x_make_frame_visible)
5836 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5837 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5838 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5839 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
5840 Declare.
5841
5842 * nsmenu.m (popup_activated, name_is_separator)
5843 (syms_of_nsmenu): Convert to ANSI C prototypes.
5844 (runMenuAt): Prototypes and move declarations before code.
5845
5846 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5847
5848 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5849 prototypes.
5850
5851 * nsfns.m (have_menus_p, ns_display_info_for_name)
5852 (x_set_cursor_type, ns_appkit_version_str)
5853 (ns_appkit_version_int, ns_do_applescript)
5854 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5855 (syms_of_nsfns): Convert to ANSI C prototypes.
5856
5857 * menu.h (x_set_menu_bar_line): Declare.
5858 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5859
5860 * lisp.h (fmod_float): Declare.
5861
5862 * image.c (xpm_scan, xpm_make_color_table_v)
5863 (xpm_put_color_table_v, xpm_get_color_table_v)
5864 (xpm_make_color_table_h, xpm_put_color_table_h)
5865 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5866 (xpm_load): Convert to ANSI C prototypes.
5867
5868 * emacs.c: Include nsterm.h if HAVE_NS.
5869
5870 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5871
5872 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5873
5874 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5875 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5876 (socket_options): Use const char* for name.
5877
5878 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
5879
5880 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5881
5882 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5883 Don't declare xmalloc_widget_value and digest_single_submenu.
5884
5885 * w32font.c (Qlatin): Remove declaration.
5886
5887 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5888
5889 * dired.c (compile_pattern): Restore declaration.
5890
5891 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5892
5893 Remove extern declarations in .c files, .h files have them.
5894 * data.c:
5895 * dired.c:
5896 * editfns.c:
5897 * filelock.c:
5898 * fns.c:
5899 * font.c:
5900 * fontset.c:
5901 * frame.c:
5902 * fringe.c:
5903 * ftfont.c:
5904 * gtkutil.c:
5905 * indent.c:
5906 * keyboard.c:
5907 * keymap.c:
5908 * lread.c:
5909 * menu.c:
5910 * print.c:
5911 * search.c:
5912 * sound.c:
5913 * window.c:
5914 * xdisp.c:
5915 * xfaces.c:
5916 * xfns.c:
5917 * xfont.c:
5918 * xftfont.c:
5919 * xmenu.c:
5920 * xterm.c: Remove declarations.
5921
5922 Cleanup syssignal.h.
5923 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5924 (main_thread): Move down to remove #ifdef.
5925 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5926 Remove conditional definition following unconditional ones.
5927
5928 * lisp.h: Remove HAVE_SHM code, unused.
5929 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5930 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5931 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5932 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5933 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5934 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5935 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5936 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5937 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5938 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5939 (Qwindow_scroll_functions, Vafter_load_alist)
5940 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5941 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5942 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5943 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5944 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5945 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5946 (initial_argv, last_nonmenu_event, load_in_progress)
5947 (noninteractive_need_newline, scroll_margin): Add declarations.
5948
5949 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5950 Remove declarations, menu.h has them.
5951 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5952 (Vinput_method_function, Qinput_method_function)
5953 (Qevent_symbol_element_mask, last_event_timestamp):
5954 * dispextern.h (Voverflow_newline_into_fringe):
5955 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5956 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5957 (syms_of_w32font, syms_of_nsfont):
5958 * fontset.h (find_font_encoding, Qlatin):
5959 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5960 (Vtool_bar_mode, set_frame_menubar):
5961 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5962 * xterm.h (Qx_gtk_map_stock):
5963 * keymap.h (meta_prefix_char): Add declarations.
5964
5965 * term.c: Remove dead code.
5966
5967 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5968 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5969 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5970 which is what was there before BSD_PGRPS was removed.
5971
5972 2010-08-05 Eli Zaretskii <eliz@gnu.org>
5973
5974 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5975
5976 * unexcoff.c: Renamed from unexec.c.
5977
5978 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5979
5980 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5981
5982 2010-08-03 Johan Bockgård <bojohan@gnu.org>
5983
5984 * data.c (Flocal_variable_p): Handle variable aliases correctly.
5985 (Bug#6744)
5986
5987 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5988
5989 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5990 to TRUE if depth of screen is < 16.
5991
5992 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5993 USE_GTK_TOOLTIP.
5994 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5995 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
5996 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
5997 USE_GTK_TOOLTIP.
5998 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5999
6000 * xterm.h (USE_GTK_TOOLTIP): New define.
6001 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6002
6003 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6004 to Control-D (Bug#6771).
6005
6006 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6007
6008 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6009 Wording by Drew Adams <drew.adams@oracle.com>.
6010
6011 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6012
6013 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6014 ttip_lbl.
6015
6016 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6017 calling gtk_widget_queue_draw.
6018 (x_free_frame_resources): Call xg_free_frame_widgets.
6019
6020 * xfns.c (x_gtk_use_system_tooltips): New variable.
6021 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6022 new gtkutil tooltip functions to show the tooltip.
6023 (Fx_hide_tip): Call xg_hide_tooltip.
6024 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6025
6026 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6027 (xg_show_tooltip, xg_hide_tooltip): Declare.
6028
6029 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6030 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6031 New functions.
6032 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6033 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6034 Remove code that is commented out.
6035
6036 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6037
6038 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6039
6040 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * xselect.c (x_own_selection): Use list4.
6043
6044 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6045
6046 * buffer.c (Qwindow): Do not define, already defined in data.c.
6047 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6048
6049 2010-07-29 Chad Brown <yandros@mit.edu>
6050
6051 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6052 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6053 * config.in: Undef HAVE_DIRENT_H.
6054 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6055 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6056
6057 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6058
6059 Rename s/usg5-4.h -> s/usg5-4-common.h.
6060 * s/usg5-4.h: Rename file to ...
6061 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6062 * s/unixware.h:
6063 * s/sol2-6.h:
6064 * s/irix6-5.h: Update includes accordingly.
6065
6066 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6067
6068 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6069
6070 * xterm.h (struct x_output): Add toolbar_top_height,
6071 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6072 Remove toolbar_height.
6073 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6074 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6075 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6076 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6077
6078 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6079
6080 * xfns.c (x_set_tool_bar_position): New function.
6081 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6082 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6083 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6084
6085 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6086 and FRAME_TOOLBAR_LEFT_WIDTH.
6087
6088 * gtkutil.h (xg_change_toolbar_position): Declare.
6089
6090 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6091 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6092 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6093 (xg_create_frame_widgets): Create a hobox for placing widgets
6094 vertically. Use gtk_box_pack_start.
6095 (xg_height_or_width_changed): Rename from xg_height_changed.
6096 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6097 (xg_update_frame_menubar, free_frame_menubar): Change to
6098 xg_height_or_width_changed.
6099 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6100 size correctly. Remove hardcoded 4, instead use handlebox size -
6101 toolbar size.
6102 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6103 size correctly. Use handlebox size + toolbar size as additional size.
6104 (xg_pack_tool_bar): POS is a new parameter.
6105 Set orientation of tool bar based on pos.
6106 Only make handlebox_widget if NULL.
6107 Check if tool bar goes to vbox or hbox depending on pos.
6108 (xg_update_tool_bar_sizes): New function.
6109 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6110 height, call xg_update_tool_bar_sizes instead.
6111 (free_frame_tool_bar): Remove from hbox or vbox depending on
6112 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6113 (xg_change_toolbar_position): New function.
6114
6115 * frame.h (struct frame): Add tool_bar_position.
6116 (Qbottom): Declare.
6117
6118 * frame.c (Qtool_bar_position): New variable.
6119 (make_frame): Set tool_bar_position to Qtop.
6120 (frame_parms): Add tool-bar-position.
6121 (x_report_frame_params): Store tool_bar_position.
6122 (x_set_fringe_width): Reset wm size hint after fringe changes.
6123
6124 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6125
6126 Make lisp_time_argument declaration work on all systems.
6127 * lisp.h (lisp_time_argument): Move declaration ...
6128 * systime.h (lisp_time_argument): ... here
6129 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6130
6131 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6132
6133 * vm-limit.c (POINTER): Add typedef for it.
6134 (start_of_data): Change return type from POINTER to char *.
6135
6136 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6137 HAVE_WINDOW_SYSTEM.
6138
6139 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6140
6141 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6142 Remove reference to __osf__, unused.
6143
6144 * mem-limits.h: Remove duplicated includes.
6145 (NULL): Remove definition, unused.
6146 (POINTER): Remove definition.
6147 (start_of_data): Use char* in prototype, as the function
6148 definition does.
6149
6150 Remove extern declarations from .c files, and them to .h files.
6151 * keyboard.h (Qhelp_echo, waiting_for_input)
6152 (input_available_clear_time, ignore_mouse_drag_p)
6153 (Vdouble_click_time, real_this_command, Vthis_original_command):
6154 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6155 (Voverriding_local_map_menu_flag):
6156 * lisp.h (Qinteractive_form, use_file_dialog)
6157 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6158 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6159 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6160 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6161 (Qfunction, debug_on_next_call, Qfield)
6162 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6163 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6164 (Qfile_directory_p, Qinsert_file_contents)
6165 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6166 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6167 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6168 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6169 (Qminibuffer_prompt)
6170 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6171 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6172 (gray_bitmap_bits, xic_create_fontsetname):
6173 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6174
6175 * xsmfns.c (Vuser_login_name):
6176 * xrdb.c (Vdouble_click_time):
6177 * xfaces.c (xic_create_fontsetname):
6178 * w32select.c (waiting_for_input):
6179 * print.c (minibuffer_auto_raise):
6180 * msdos.c (Qhelp_echo):
6181 * macros.c (real_this_command):
6182 * keymap.c (Voverriding_local_map):
6183 * xterm.c (poll_for_input_1, gray_bitmap_width)
6184 (gray_bitmap_height, gray_bitmap_bits;
6185 * xmenu.c ( Voverriding_local_map)
6186 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6187 (use_file_dialog, Xt_app_con):
6188 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6189 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6190 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6191 (Qtool_bar_lines, ignore_mouse_drag_p):
6192 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6193 (Qrear_nonsticky, nconc2):
6194 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6195 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6196 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6197 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6198 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6199 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6200 (gc_in_progress):
6201 * doc.c (Voverriding_local_map, Qremap):
6202 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6203 (Vcompletion_regexp_list):
6204 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6205 (Qcompletion_ignore_case):
6206 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6207 (Vhistory_length, Vthis_original_command, real_this_command)
6208 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6209 * image.c (Qrisky_local_variable):
6210 * fontset.c (QCname):
6211 * fns.c (minibuffer_auto_raise, QCname):
6212 * dispnew.c (char_ins_del_cost):
6213 * composite.c (font_fill_lglyph_metrics):
6214 * cmds.c (Qface, Vtranslation_table_for_input):
6215 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6216 * ccl.c (charset_unicode):
6217 * callproc.c (Vtemporary_file_directory):
6218 * buffer.c (emacs_strerror): Remove extern declarations.
6219
6220 * data.c (Qwindow): Make non-static, used from other files too.
6221 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6222
6223 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6224 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6225 * s/usg5-4.h (COFF):
6226 * s/template.h:
6227 * s/msdos.h (COFF, NO_REMAP):
6228 * s/ms-w32.h (NO_REMAP):
6229 * s/hpux10-20.h (NO_REMAP):
6230 * m/sparc.h (SEGMENT_MASK):
6231 * m/m68k.h (NO_REMAP):
6232 * m/intel386.h (SEGMENT_MASK):
6233 * m/arm.h (NO_REMAP):
6234 * m/alpha.h (COFF):
6235 * m/template.h: Remove references to unused defines.
6236
6237 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6238
6239 * xsettings.c (Ftool_bar_get_system_style): Also check for
6240 Qtext_image_horiz.
6241
6242 * xdisp.c (Qtext_image_horiz): Define.
6243 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
6244 to documentation of tool-bar-style.
6245
6246 * lisp.h (Qtext_image_horiz): Declare.
6247
6248 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6249 style text_image_horiz.
6250
6251 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6252
6253 * emacs.c (Fkill_emacs): Remove return statement.
6254
6255 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6256 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6257 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6258 Remove local extern declarations.
6259
6260 * xmenu.c: Do not included lwlib.h, not needed.
6261
6262 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6263
6264 * process.c: Move definitions earlier to minimize #ifdefs.
6265
6266 * xterm.h (x_get_customization_string, x_load_resources)
6267 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6268 (x_check_errors, x_property_data_to_lisp, defined_color)
6269 (xic_set_xfontset, x_defined_color): Use const.
6270
6271 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6272 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6273
6274 * xselect.c (selection_data_to_lisp_data)
6275 (x_property_data_to_lisp):
6276 * xrdb.c (x_get_string_resource, file_p)
6277 (x_get_customization_string, magic_file_p, search_magic_path)
6278 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6279 (x_get_string_resource): Use const.
6280
6281 * xfns.c: Include xlwmenu.h when USE_LUCID.
6282 (x_defined_color, xic_set_xfontset): Use const.
6283 (Fx_hide_tip): Remove local extern declaration.
6284
6285 * xfaces.c (Qmouse_face): Remove declaration.
6286 (face_color_gray_p, tty_defined_color, defined_color)
6287 (face_color_gray_p, face_color_supported_p): Add const.
6288
6289 * xdisp.c (do_mouse_tracking): Remove declaration.
6290 (add_to_log): Use const.
6291
6292 * minibuf.c (Qmouse_face): Remove declaration.
6293
6294 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6295
6296 * keyboard.h (do_mouse_tracking): Add declaration.
6297
6298 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6299 (QCdata, QCtype, Qcenter): Remove declarations.
6300
6301 * frame.c (x_get_resource_string, x_get_string_resource)
6302 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6303 (x_default_parameter): Use const.
6304
6305 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6306 (QCheight, QCsize, QCname): Remove declarations.
6307
6308 * emacs.c (main): Remove local extern declaration.
6309
6310 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6311 declarations.
6312
6313 * dispnew.c: Remove duplicate #include <unistd.h>.
6314 (update_window, update_frame_1, init_display): Remove local extern
6315 declarations.
6316
6317 * dispextern.h (add_to_log): Remove declaration.
6318 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6319 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6320
6321 * dired.c (scmp): Add const.
6322 (directory_files_internal): Remove local extern declaration.
6323
6324 * data.c (Finteractive_form): Use const.
6325
6326 * composite.c (syms_of_composite): Remove local extern declarations.
6327
6328 * charset.c (add_to_log): Remove declaration.
6329
6330 * character.c (strwidth, parse_str_to_multibyte): Add const.
6331
6332 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6333
6334 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6335
6336 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
6337 (Lisp_Subr): Make doc and intspec constant.
6338 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6339 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6340 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6341 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6342 (display_arg): Add declarations.
6343
6344 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
6345
6346 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6347
6348 * window.c (Fwindow_height): Doc fix (bug#6518).
6349
6350 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
6351
6352 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6353
6354 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6355
6356 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6357 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6358 functions.
6359
6360 * frame.h (Qtty_color_mode): Add declaration.
6361
6362 * lisp.h (Ftop_level, Fexit_recursive_edit)
6363 (Fabort_recursive_edit): Mark as NO_RETURN.
6364
6365 2010-07-26 Kenichi Handa <handa@m17n.org>
6366
6367 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
6368 number of glyphs gets smaller than the original length. (Bug#6621)
6369
6370 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
6371
6372 * lread.c (unreadpure, mapatoms_1): Make static.
6373
6374 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6375
6376 * terminfo.c (tparam): Fix prototype of tparm.
6377
6378 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6379
6380 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6381 find start of text segment.
6382 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6383 is defined.
6384
6385 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6386
6387 2010-07-25 Ken Brown <kbrown@cornell.edu>
6388
6389 * vm-limit.c (check_memory_limits): Fix previous change;
6390 accidentally reverted an earlier change.
6391
6392 2010-07-25 Ken Brown <kbrown@cornell.edu>
6393
6394 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6395 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6396
6397 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6398
6399 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6400 * dired.c (opendir, readdir): Fix prototypes.
6401 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6402 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6403 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6404 (telldir): Remove declaration.
6405 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6406 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6407 * syssignal.h (strsignal): Fix prototype.
6408 * term.c (tparam): Fix prototype.
6409 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6410 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6411 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6412 and __morecore.
6413 * w32gui.h (XParseGeometry): Fix prototype.
6414 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6415 * w32term.c (my_set_focus): Declare inside #if 0.
6416 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6417 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6418 (drain_message_queue, get_next_msg, post_msg, parse_button)
6419 (ClipboardSequence_Proc): Fix prototypes.
6420 (wait_for_sync): Remove declaration.
6421
6422 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
6423
6424 * w32fns.c (w32_to_x_color): Remove, unused.
6425
6426 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6427
6428 * lisp.h: Remove leftover P_.
6429
6430 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6431
6432 * ecrt0.c, unexalpha.c: Remove files, unused.
6433
6434 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6435
6436 * cmds.c (internal_self_insert): Make static.
6437 * lisp.h (internal_self_insert): Remove declaration.
6438
6439 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
6440
6441 * alloc.c (free_float):
6442 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6443 * frame.c (delete_frame_handler):
6444 * ralloc.c (reorder_bloc):
6445 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6446 Remove unused static functions.
6447
6448 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6449 it is called only from NS code.
6450
6451 * w32term.c (my_set_focus): #ifdef away; it is called only from
6452 "#ifdef 0" code.
6453
6454 * w32fns.c (x_edge_detection):
6455 * xfaces.c (may_use_scalable_font_p):
6456 Remove obsolete static declarations.
6457
6458 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
6459
6460 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6461 (emacs_blocked_realloc, uninterrupt_malloc):
6462 * fringe.c (w32_reset_fringes):
6463 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6464 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6465 * sound.c (be2hs, do_play_sound):
6466 * vm-limit.c (get_lim_data, ret_lim_data):
6467 * w32term.c (x_free_frame_resources):
6468 * xfaces.c (x_create_gc, x_free_gc):
6469 Convert definitions to standard C.
6470
6471 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6472
6473 * eval.c (Feval, Ffuncall): Use the new names.
6474
6475 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6476 (DEFUN): Add braces around the union initialisation and use ## to
6477 specify the right union alternative and avoid a cast.
6478
6479 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
6480
6481 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6482
6483 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
6484
6485 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6486
6487 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6488
6489 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6490 is related to the menu bar (Bug#6499).
6491 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
6492
6493 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6494
6495 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6496
6497 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6498
6499 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6500 i.e. don't put back ButtonRelease (Bug#6608).
6501
6502 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6503 instead of Window. Call xg_event_is_for_menubar when
6504 USE_GTK (Bug#6499).
6505
6506 * gtkutil.h (xg_event_is_for_menubar): Declare.
6507
6508 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6509
6510 2010-07-16 Eli Zaretskii <eliz@gnu.org>
6511
6512 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6513 when it's the same as the old foreground. (Bug#6609)
6514
6515 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6516
6517 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6518 widget is non-null (Bug#6645).
6519
6520 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6521
6522 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6523 Convert old-style definition.
6524
6525 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6526 timestamp argument.
6527
6528 2010-07-15 Eli Zaretskii <eliz@gnu.org>
6529
6530 * fringe.c (update_window_fringes): Restore mistakenly reverted
6531 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6532
6533 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6534
6535 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6536 (SET_SAVED_KEY_EVENT): Remove (not used).
6537 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6538 remove size parameter.
6539 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6540 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6541 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6542 ButtonRelease.
6543 (x_set_window_size_1): scroll_bar_actual_width is always
6544 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
6545
6546 * xdisp.c (pending_menu_activation): Remove extern declaration.
6547 (prepare_menu_bars): Remove setting of pending_menu_activation.
6548
6549 * xmenu.c (pending_menu_activation): Remove.
6550 (x_activate_menubar): Set popup_activated_flag for Xt also.
6551 Remove setting of pending_menu_activation.
6552 (set_frame_menubar): Remove check of pending_menu_activation.
6553 Declare menubar_size before code. Correct spelling in comment.
6554
6555 2010-07-14 Kenichi Handa <handa@m17n.org>
6556
6557 * font.c (font_open_entity): Cancel previous change.
6558 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6559
6560 2010-07-13 Eli Zaretskii <eliz@gnu.org>
6561
6562 Remove subprocesses #ifdefs.
6563 * process.c <inhibit_sentinels>: Move to the common part.
6564 (Fwaiting_for_user_input_p): Move to the common part; return nil
6565 if async subprocesses aren't supported.
6566 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6567 MS-DOS. Remove "#ifdef subprocesses".
6568 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6569 (gettimeofday): Remove "#ifdef subprocesses".
6570 (wait_without_blocking): Remove function.
6571 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6572 Remove "#ifdef subprocesses".
6573 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6574 compiled on MS-DOS.
6575 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6576 wait_for_termination on MS-DOS.
6577 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6578 initialization of inhibit_sentinels.
6579 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6580 subprocesses" conditional.
6581 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6582 wait_for_termination, since `buffer' cannot be an integer when
6583 async subprocesses are not supported
6584 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6585 for ifdefing away the call to Fprocess_status.
6586
6587 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6588 away the entire body of the function.
6589
6590 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6591
6592 Remove subprocesses #ifdefs from term.c.
6593 * process.c (add_keyboard_wait_descriptor)
6594 (delete_keyboard_wait_descriptor): Move to common section, do
6595 nothing when subprocesses is not defined.
6596 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6597 Remove subprocesses #ifdefs.
6598
6599 Convert maybe_fatal to standard C.
6600 * lisp.h (verror): Declare.
6601 * eval.c (verror): New function containing the code from ...
6602 (error): ... this. Call verror.
6603 * term.c (vfatal): New function containing the code from ...
6604 (fatal): ... this. Call vfatal.
6605 (maybe_fatal): Convert to standard C, use variable number of
6606 arguments. Declare as non-return.
6607 (init_tty): Fix maybe_fatal call.
6608
6609 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6610
6611 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6612 (_scroll_bar_note_movement): Convert definitions to standard C.
6613 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6614 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6615
6616 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6617
6618 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6619 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6620 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6621 (xaw_jump_callback, xaw_scroll_callback)
6622 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
6623 (x_wm_set_size_hint, x_activate_timeout_atimer):
6624 Convert definitions to standard C.
6625 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6626 (popup_activate_callback, popup_deactivate_callback)
6627 (menu_highlight_callback, menubar_selection_callback)
6628 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6629 (free_frame_menubar, popup_selection_callback, as)
6630 (create_and_show_popup_menu, dialog_selection_callback)
6631 (create_and_show_dialog):
6632 * xfns.c (hack_wm_protocols, x_window):
6633 * xfaces.c (x_update_menu_appearance):
6634 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6635 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6636 (set_frame_size, update_wm_hints, setup_frame_gcs)
6637 (update_various_frame_slots, update_from_various_frame_slots)
6638 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6639 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6640 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6641
6642 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6643
6644 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
6645
6646 2010-07-12 Eli Zaretskii <eliz@gnu.org>
6647
6648 * process.c (setup_process_coding_systems): Move to the part
6649 shared by non-subprocesses systems, and make its body empty when
6650 subprocesses is not defined.
6651 (close_process_descs): Move to the part shared by non-subprocesses
6652 systems.
6653 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6654 ANSI C.
6655
6656 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6657
6658 * editfns.c (transpose_markers): Convert old-style definition.
6659 * emacs.c (abort, shut_down_emacs, fixup_locale)
6660 (synchronize_system_time_locale)
6661 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6662 * floatfns.c (extract_float, matherr, init_floatfns)
6663 (syms_of_floatfns): Likewise.
6664 * fns.c (make_hash_table): Likewise.
6665 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6666 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6667 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6668 (ftfont_variation_glyphs): Likewise.
6669 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6670 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6671 * lread.c (read_filtered_event): Likewise.
6672 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6673 * process.c (wait_reading_process_output): Likewise.
6674 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6675 * search.c (search_buffer, boyer_moore): Likewise.
6676 * syntax.c (scan_sexps_forward): Likewise.
6677 * xdisp.c (try_scrolling): Likewise.
6678 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6679 (face_at_string_position): Likewise.
6680 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6681 * xselect.c (x_get_window_property, receive_incremental_selection)
6682 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6683 Likewise.
6684 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6685
6686 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6687
6688 * callproc.c (child_setup): Remove subprocesses conditional.
6689 Remove code dealing with SET_EMACS_PRIORITY, unused.
6690
6691 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
6692 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6693
6694 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6695 (__do_global_dtors, __main): Use void in definition.
6696 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6697 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6698 the only users from ...
6699 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6700 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6701 (HAVE_VOLATILE): Remove, unused.
6702
6703 Convert more function definitions to standard C.
6704 * xdisp.c (window_box_edges, handle_single_display_spec)
6705 (display_string): Convert definition to standard C.
6706 * scroll.c (do_direct_scrolling, scrolling_1):
6707 * dispnew.c (allocate_matrices_for_frame_redisplay)
6708 (mirrored_line_dance):
6709 * coding.c (code_convert_string):
6710 * charset.c (map_charset_chars):
6711 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6712 (Fregister_ccl_program, Fregister_code_conversion_map):
6713 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6714 (head_table): Make static and const.
6715
6716 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6717
6718 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6719 (PROFILING_LDFLAGS): Set from substitution.
6720 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6721 CFLAGS last.
6722
6723 2010-07-12 Kenichi Handa <handa@m17n.org>
6724
6725 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6726 (shortlisp): Likewise.
6727
6728 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6729
6730 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6731 of FONT_ENTITY_INDEX.
6732 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6733 property, get the property value dynamically.
6734 (Ffont_put): Accept font-entity and font-object too.
6735 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
6736 return value changed.
6737 (syms_of_font): Adjust for the above change.
6738
6739 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6740
6741 * blockinput.h: Remove obsolete comment.
6742
6743 * lisp.h: Include <stddef.h>.
6744 (OFFSETOF): Don't define.
6745 (VECSIZE): Use offsetof instead of OFFSETOF.
6746 (PSEUDOVECSIZE): Likewise.
6747 * process.c (conv_sockaddr_to_lisp): Likewise.
6748 * alloc.c: Don't include <stddef.h>.
6749 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6750
6751 * process.c: Remove obsolete comment.
6752
6753 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
6754
6755 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6756
6757 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6758
6759 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6760 index, rindex.
6761 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6762 * editfns.c (Fuser_full_name, Fformat): Likewise.
6763 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6764 * fileio.c (Ffile_symlink_p): Likewise.
6765 * filelock.c (current_lock_owner): Likewise.
6766 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6767 * fontset.c (fontset_pattern_regexp): Likewise.
6768 * lread.c (read1): Likewise.
6769 * sysdep.c (init_system_name): Likewise.
6770 * xfns.c (select_visual): Likewise.
6771 * s/hpux10-20.h (index, rindex): Don't define.
6772 * s/ms-w32.h (index): Likewise.
6773 * s/usg5-4.h: Likewise.
6774
6775 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6776
6777 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6778 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6779 (egetenv): Likewise.
6780 * doprnt.c (doprnt): Likewise.
6781 * editfns.c (set_time_zone_rule, format2): Likewise.
6782 * emacs.c (decode_env_path): Likewise.
6783 * eval.c (signal_error, error): Likewise.
6784 * insdel.c (replace_range_2): Likewise.
6785 * keyboard.c (cmd_error_internal): Likewise.
6786 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6787 * print.c (write_string, write_string_1, print_error_message):
6788 Likewise.
6789 * vm-limit.c (warn_function, memory_warnings): Likewise.
6790 * xdisp.c (message1, message1_nolog, message_with_string)
6791 (vmessage, message, message_nolog): Likewise.
6792 * emacs.c: Remove duplicate declaration.
6793 * keyboard.h: Likewise.
6794 * lisp.h: Update prototypes.
6795
6796 * eval.c: Fix indentation problem.
6797
6798 * keyboard.c: Include "process.h".
6799
6800 * eval.c: Remove obsolete noinline declaration.
6801 * fns.c: Likewise.
6802
6803 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
6804
6805 * doprnt.c (doprnt): Take a va_list argument instead of count and
6806 pointer.
6807 * eval.c (error): Change to a standard-C variadic function.
6808 * xdisp.c (vmessage): Rename from message, made static, and
6809 changed to take a va_list argument.
6810 (message): New variadic wrapper.
6811 (message_nolog): Now a variadic function, calling vmessage.
6812 * lisp.h: Include stdarg.h for va_list.
6813 (doprnt, error, message, message_nolog): Decls updated.
6814
6815 2010-07-11 Eli Zaretskii <eliz@gnu.org>
6816
6817 * process.c (syms_of_process) <delete-exited-processes>: Define
6818 even if !subprocesses.
6819 (delete_exited_processes): Ditto.
6820
6821 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6822 (delete_exited_processes): Don't define.
6823
6824 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6825
6826 * frame.c (make_frame): Initialize menu_bar_lines and
6827 tool_bar_lines members.
6828 (make_initial_frame, make_terminal_frame):
6829 Initialize menu_bar_lines using value of menu-bar-mode.
6830
6831 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6832
6833 2010-07-10 Eli Zaretskii <eliz@gnu.org>
6834
6835 * process.c: Reshuffle #include's. Condition some of the global
6836 and static variables on `subprocesses'.
6837 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6838 Leave only one implementation.
6839 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6840 (kill_buffer_processes, Flist_system_processes)
6841 (Fprocess_attributes, init_process, syms_of_process): Unify the
6842 implementations for with subprocesses and without them.
6843
6844 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6845
6846 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6847 correct size for Motif.
6848 (free_frame_menubar): Call x_set_window_size to update frame size.
6849
6850 * xfns.c (x_window): Set borderWidth to 0 for pane and
6851 EmacsFrame. Frame size calculation is wrong otherwise.
6852
6853 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
6854
6855 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6856 allows to suppress errors when polling in Emacs' main loop.
6857 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6858 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6859 (Fdbus_method_error_internal, Fdbus_send_signal)
6860 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6861 (Fdbus_register_method): Use it. (Bug#6579)
6862
6863 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6864
6865 * alloc.c: Convert DEFUNs to standard C.
6866 * buffer.c:
6867 * bytecode.c:
6868 * callint.c:
6869 * callproc.c:
6870 * casefiddle.c:
6871 * casetab.c:
6872 * category.c:
6873 * character.c:
6874 * charset.c:
6875 * chartab.c:
6876 * cmds.c:
6877 * coding.c:
6878 * composite.c:
6879 * data.c:
6880 * dbusbind.c:
6881 * dired.c:
6882 * dispnew.c:
6883 * doc.c:
6884 * dosfns.c:
6885 * editfns.c:
6886 * emacs.c:
6887 * eval.c:
6888 * fileio.c:
6889 * filelock.c:
6890 * floatfns.c:
6891 * fns.c:
6892 * font.c:
6893 * fontset.c:
6894 * frame.c:
6895 * fringe.c:
6896 * image.c:
6897 * indent.c:
6898 * insdel.c:
6899 * keyboard.c:
6900 * keymap.c:
6901 * lread.c:
6902 * macros.c:
6903 * marker.c:
6904 * menu.c:
6905 * minibuf.c:
6906 * msdos.c:
6907 * nsfns.m:
6908 * nsmenu.m:
6909 * nsselect.m:
6910 * print.c:
6911 * process.c:
6912 * search.c:
6913 * sound.c:
6914 * syntax.c:
6915 * term.c:
6916 * terminal.c:
6917 * textprop.c:
6918 * undo.c:
6919 * w16select.c:
6920 * w32console.c:
6921 * w32fns.c:
6922 * w32font.c:
6923 * w32menu.c:
6924 * w32proc.c:
6925 * w32select.c:
6926 * window.c:
6927 * xdisp.c:
6928 * xfaces.c:
6929 * xfns.c:
6930 * xmenu.c:
6931 * xselect.c:
6932 * xsettings.c:
6933 * xsmfns.c: Likewise.
6934
6935 2010-07-08 Eli Zaretskii <eliz@gnu.org>
6936
6937 * process.c (kbd_is_on_hold, hold_keyboard_input)
6938 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6939
6940 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6941
6942 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6943 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6944 unless USE_LUCID.
6945
6946 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6947
6948 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6949 declaration.
6950
6951 Clean up include guards.
6952 * tparam.c: Remove include guards for config.h, string.h and code
6953 that assumes #ifndef emacs.
6954 * termcap.c:
6955 * unexalpha.c:
6956 * sysdep.c:
6957 * filemode.c:
6958 * filelock.c:
6959 * bidi.c: Likewise.
6960
6961 Remove prefix-args.c
6962 * prefix-args.c: Remove file.
6963 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6964 * Makefile.in (temacs${EXEEXT}): Remove references to
6965 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6966 (mostlyclean): Remove reference to prefix-args.
6967 (prefix-args): Remove.
6968
6969 Simplify cstart_of_data, start_of_code and related code.
6970 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6971 (start_of_data): Merge into start_of_data function.
6972 * sysdep.c (start_of_text): Remove. Move simplified versions of
6973 it in the only users: unexaix.c and unexec.c.
6974 (read_input_waiting): Remove local declaration of quit_char.
6975 (start, etext): Remove declarations.
6976 (start_of_data): Merge with the version in mem-limits.h and move
6977 to vm-limits.c.
6978 * vm-limit.c (start_of_data): Merged and simplified version of the
6979 code formerly in mem-limits.h and sysdep.c.
6980 * unexec.c (start): New declaration, moved from sysdep.c.
6981 (start_of_text): Simplified version of the code formerly in sysdep.c.
6982 * unexaix.c (start_of_text): Simplified version of the code
6983 formerly in sysdep.c.
6984 * m/alpha.h (HAVE_TEXT_START): Remove.
6985 (TEXT_START): Move ...
6986 * unexalpha.c (TEXT_START): ... here.
6987 * s/hpux10-20.h (TEXT_START): Remove.
6988 * s/darwin.h (TEXT_START):
6989 * m/mips.h (TEXT_START):
6990 * m/macppc.h (HAVE_TEXT_START):
6991 * m/m68k.h (TEXT_START):
6992 * m/iris4d.h (TEXT_START):
6993 * m/intel386.h (TEXT_START):
6994 * m/ibmrs6000.h (TEXT_START):
6995 * m/ia64.h (HAVE_TEXT_START):
6996 * s/msdos.h (TEXT_START): Likewise.
6997
6998 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6999
7000 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7001 (overrun_check_free, xstrdup, allocate_string)
7002 (allocate_string_data, compact_small_strings, Fmake_string)
7003 (make_unibyte_string, make_multibyte_string)
7004 (make_string_from_bytes, make_specified_string, make_float)
7005 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7006 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7007 memcpy, memmove, memset, memcmp.
7008 * atimer.c (start_atimer, set_alarm): Likewise.
7009 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7010 (mmap_realloc, init_buffer_once): Likewise.
7011 * callint.c (Fcall_interactively): Likewise.
7012 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7013 (getenv_internal_1): Likewise.
7014 * casefiddle.c (casify_object): Likewise.
7015 * ccl.c (ccl_driver): Likewise.
7016 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7017 * charset.c (load_charset_map_from_file)
7018 (load_charset_map_from_file, load_charset_map_from_vector)
7019 (Fdefine_charset_internal): Likewise.
7020 * cm.c (Wcm_clear): Likewise.
7021 * coding.c (decode_eol, decode_coding_object)
7022 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7023 * data.c (Faset): Likewise.
7024 * dired.c (directory_files_internal, file_name_completion_stat):
7025 Likewise.
7026 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7027 (clear_glyph_row, copy_row_except_pointers)
7028 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7029 (save_current_matrix, restore_current_matrix)
7030 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7031 (mirror_line_dance, scrolling_window): Likewise.
7032 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7033 Likewise.
7034 * doprnt.c (doprnt): Likewise.
7035 * editfns.c (Fuser_full_name, make_buffer_string_both)
7036 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7037 * emacs.c (sort_args): Likewise.
7038 * eval.c (Fapply, Ffuncall): Likewise.
7039 * fileio.c (Ffile_name_directory, make_temp_name)
7040 (Fexpand_file_name, search_embedded_absfilename)
7041 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7042 (auto_save_error): Likewise.
7043 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7044 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7045 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7046 (Fmake_hash_table): Likewise.
7047 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7048 * ftfont.c (ftfont_text_extents): Likewise.
7049 * getloadavg.c (getloadavg): Likewise.
7050 * image.c (define_image_type, make_image, make_image_cache)
7051 (x_create_x_image_and_pixmap, xbm_image_p)
7052 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7053 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7054 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7055 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7056 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7057 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7058 Likewise.
7059 * indent.c (scan_for_column, compute_motion): Likewise.
7060 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7061 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7062 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7063 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7064 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7065 (store_user_signal_events, menu_bar_items, tool_bar_items)
7066 (process_tool_bar_item, append_tool_bar_item)
7067 (read_char_minibuf_menu_prompt, read_key_sequence)
7068 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7069 Likewise.
7070 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7071 Likewise.
7072 * lisp.h (STRING_COPYIN): Likewise.
7073 * lread.c (Fload, read1, oblookup): Likewise.
7074 * msdos.c (Frecent_doskeys): Likewise.
7075 * nsfns.m (Fx_create_frame): Likewise.
7076 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7077 Likewise.
7078 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7079 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7080 Likewise.
7081 * nsmenu.m (ns_update_menubar): Likewise.
7082 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7083 * print.c (print_unwind, printchar, strout, print_string)
7084 (print_error_message): Likewise.
7085 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7086 (Fmake_network_process, Fnetwork_interface_list)
7087 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7088 (init_process): Likewise.
7089 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7090 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7091 Likewise.
7092 * scroll.c (do_scrolling, do_direct_scrolling)
7093 (scrolling_max_lines_saved): Likewise.
7094 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7095 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7096 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7097 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7098 (emacs_set_tty): Likewise.
7099 * term.c (encode_terminal_code, calculate_costs)
7100 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7101 Likewise.
7102 * termcap.c (tgetst1, gobble_line): Likewise.
7103 * termhooks.h (EVENT_INIT): Likewise.
7104 * tparam.c (tparam1): Likewise.
7105 * unexalpha.c (unexec): Likewise.
7106 * unexec.c (write_segment): Likewise.
7107 * unexmacosx.c (unexec_write_zero): Likewise.
7108 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7109 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7110 * w32font.c (w32font_list_family, w32font_text_extents)
7111 (w32font_list_internal, w32font_match_internal)
7112 (w32font_open_internal, compute_metrics, Fx_select_font):
7113 Likewise.
7114 * w32menu.c (set_frame_menubar, add_menu_item)
7115 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7116 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7117 * w32uniscribe.c (uniscribe_list_family): Likewise.
7118 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7119 * window.c (make_window, replace_window, set_window_buffer)
7120 (Fsplit_window): Likewise.
7121 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7122 (add_to_log, message3, x_consider_frame_title)
7123 (append_space_for_newline, extend_face_to_end_of_line)
7124 (decode_mode_spec_coding, init_glyph_string): Likewise.
7125 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7126 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7127 (face_attr_equal_p, make_realized_face, make_face_cache)
7128 (free_realized_faces, lookup_named_face, smaller_face)
7129 (face_with_height, lookup_derived_face)
7130 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7131 (Finternal_set_font_selection_order, realize_default_face)
7132 (compute_char_face, face_at_buffer_position)
7133 (face_for_overlay_string, face_at_string_position, merge_faces):
7134 Likewise.
7135 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7136 (Fx_window_property, x_create_tip_frame)
7137 (Fx_backspace_delete_keys_p): Likewise.
7138 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7139 (xfont_text_extents): Likewise.
7140 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7141 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7142 * xselect.c (x_queue_event, x_get_window_property)
7143 (receive_incremental_selection): Likewise.
7144 * xsmfns.c (x_session_check_input): Likewise.
7145 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7146 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7147 Likewise.
7148 * character.h (BCOPY_SHORT): Removed.
7149 * config.in: Regenerate.
7150 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7151 * emacs.c (main) [PROFILING]: Don't declare
7152 dump_opcode_frequencies.
7153 * lisp.h (safe_bcopy): Remove declaration.
7154 (memset) [!HAVE_MEMSET]: Declare.
7155 (memcpy) [!HAVE_MEMCPY]: Likewise.
7156 (memmove) [!HAVE_MEMMOVE]: Likewise.
7157 (memcmp) [!HAVE_MEMCMP]: Likewise.
7158 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7159 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7160 Don't define.
7161 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7162 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7163 (BCOPY_DOWNWARD_SAFE): Don't define.
7164 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7165 (memcpy) [!HAVE_MEMCPY]: Define.
7166 (memmove) [!HAVE_MEMMOVE]: Define.
7167 (memcmp) [!HAVE_MEMCMP]: Define.
7168
7169 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7170
7171 * process.c (kbd_is_on_hold): New variable.
7172 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7173 New functions.
7174 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7175 select on empty input mask.
7176 (init_process): Initialize kbd_is_on_hold to 0.
7177
7178 * process.h (hold_keyboard_input, unhold_keyboard_input)
7179 (kbd_on_hold_p): Declare.
7180
7181 * keyboard.c (input_available_signal): Declare.
7182 (kbd_buffer_nr_stored): New function.
7183 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7184 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7185 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7186 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7187 (tty_read_avail_input): If input is on hold, return.
7188 Don't read more that free slots in kbd_buffer (Bug#6571).
7189
7190 2010-07-07 Eli Zaretskii <eliz@gnu.org>
7191
7192 * msdos.h:
7193 * msdos.c:
7194 * dosfns.c:
7195 * w16select.c: Convert function definitions to ANSI C.
7196
7197 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7198 Remove unused prototypes.
7199
7200 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7201
7202 * coding.c, sysdep.c: Convert some more functions to standard C.
7203
7204 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7205
7206 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7207 (encode_coding_object): Use SPECPDL_INDEX.
7208 (syms_of_coding): Use DOS_NT.
7209
7210 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7211
7212 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7213
7214 Make the function member of Lisp_Subr use standard C prototypes.
7215 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7216 (DECL_ALIGN): Add a cast for the function.
7217 * eval.c (Feval, Ffuncall): Use the proper type for each type
7218 function call.
7219
7220 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
7221
7222 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7223 fringe face id, so face-remapping-alist works (Bug#6091).
7224
7225 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
7226
7227 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7228 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7229 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7230
7231 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7232
7233 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7234 * lisp.h: Declare x_get_keysym_name.
7235 * keyboard.c (modify_event_symbol): Don't declare
7236 x_get_keysym_name here.
7237
7238 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7239
7240 * ecrt0.c: Revert conversion to standard C.
7241
7242 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7243
7244 * vm-limit.c (memory_warnings):
7245 * keyboard.c (modify_event_symbol):
7246 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7247 (round2, emacs_rint):
7248 * process.c (send_process, old_sigpipe): Convert function
7249 definitions and declarations to standard C.
7250
7251 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
7252
7253 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7254 * xdisp.c: Convert function definitions to standard C.
7255
7256 * cm.c (cmputc): Arg C is now int, not char.
7257 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7258
7259 2010-07-05 James Cloos <cloos@jhcloos.com>
7260
7261 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7262
7263 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7264 _NET_WM_ICON_NAME atoms.
7265
7266 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7267 and _NET_WM_ICON_NAME properties, too, matching what is
7268 done in the Gtk+ case.
7269
7270 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7271
7272 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7273
7274 * xsmfns.c (SSDATA): New macro.
7275 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7276 passed to strlen/strcpy/strcat.
7277 (create_client_leader_window): Surround with #ifndef USE_GTK.
7278 Cast 7:th arg to XChangeProperty to (unsigned char *).
7279
7280 * xsettings.c (something_changedCB, parse_settings)
7281 (apply_xft_settings): Reformat prototype.
7282 (something_changedCB, init_gconf): Remove unused variable i.
7283 (read_settings): Remove unused variable long_len.
7284
7285 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7286 (xg_get_image_for_pixmap, create_dialog)
7287 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7288 (menuitem_highlight_callback, make_menu_item)
7289 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7290 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7291 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7292 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7293 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7294 (xg_tool_bar_item_expose_callback): Reformat prototype.
7295 (xg_update_menubar): GList *group => GSList *group.
7296 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7297 before use.
7298 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7299 to GTK_IMAGE (wimage).
7300
7301 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7302
7303 * atimer.c: Use "" instead of <> for local includes for
7304 consistency with the rest of the code.
7305
7306 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7307 * xrdb.c (get_system_name):
7308 * window.c (shrink_windows):
7309 * syntax.c (forw_comment):
7310 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7311 (ins_del_costs):
7312 * mem-limits.h (start_of_data):
7313 * lread.c (readevalloop):
7314 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7315 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7316 * frame.c (x_get_focus_frame):
7317 * floatfns.c (fmod_float):
7318 * fileio.c (choose_write_coding_system):
7319 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7320 (malloc_initialize_hook, sort_args, synchronize_locale):
7321 * doprnt.c (doprnt):
7322 * dired.c (compile_pattern):
7323 * data.c (fmod_float):
7324 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7325 (map_char_table_for_charset):
7326 * charset.c (define_charset_internal):
7327 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7328 to standard C.
7329
7330 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
7331 Stefan Monnier <monnier@iro.umontreal.ca>
7332
7333 * lread.c (read1): Fix up last change to not mess up `c'.
7334
7335 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7336
7337 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7338
7339 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7340
7341 Fix prototypes.
7342
7343 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
7344 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7345 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7346 arg, as required by internal_condition_case_1.
7347 * print.c (strout): Use const char* for arg PTR.
7348 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7349 (analyse_first): Fix "const const".
7350 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
7351 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
7352 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
7353
7354 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7355
7356 * alloc.c: Convert function definitions to standard C.
7357 * atimer.c:
7358 * bidi.c:
7359 * bytecode.c:
7360 * callint.c:
7361 * callproc.c:
7362 * casefiddle.c:
7363 * casetab.c:
7364 * category.c:
7365 * ccl.c:
7366 * character.c:
7367 * charset.c:
7368 * chartab.c:
7369 * cmds.c:
7370 * coding.c:
7371 * composite.c:
7372 * data.c:
7373 * dbusbind.c:
7374 * dired.c:
7375 * dispnew.c:
7376 * doc.c:
7377 * doprnt.c:
7378 * ecrt0.c:
7379 * editfns.c:
7380 * fileio.c:
7381 * filelock.c:
7382 * filemode.c:
7383 * fns.c:
7384 * font.c:
7385 * fontset.c:
7386 * frame.c:
7387 * fringe.c:
7388 * ftfont.c:
7389 * ftxfont.c:
7390 * gtkutil.c:
7391 * indent.c:
7392 * insdel.c:
7393 * intervals.c:
7394 * keymap.c:
7395 * lread.c:
7396 * macros.c:
7397 * marker.c:
7398 * md5.c:
7399 * menu.c:
7400 * minibuf.c:
7401 * prefix-args.c:
7402 * print.c:
7403 * ralloc.c:
7404 * regex.c:
7405 * region-cache.c:
7406 * scroll.c:
7407 * search.c:
7408 * sound.c:
7409 * strftime.c:
7410 * syntax.c:
7411 * sysdep.c:
7412 * termcap.c:
7413 * terminal.c:
7414 * terminfo.c:
7415 * textprop.c:
7416 * tparam.c:
7417 * undo.c:
7418 * unexelf.c:
7419 * window.c:
7420 * xfaces.c:
7421 * xfns.c:
7422 * xfont.c:
7423 * xftfont.c:
7424 * xgselect.c:
7425 * xmenu.c:
7426 * xrdb.c:
7427 * xselect.c:
7428 * xsettings.c:
7429 * xsmfns.c:
7430 * xterm.c: Likewise.
7431
7432 2010-07-03 Eli Zaretskii <eliz@gnu.org>
7433
7434 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7435 frames other than the initial one. Fix reversal of colors when
7436 `reverse' is specified in the frame parameters.
7437 Call update_face_from_frame_parameter instead of
7438 internal-set-lisp-face-attribute. Initialize screen colors from
7439 initial_screen_colors[] when f->default_face_done_p is zero,
7440 instead of depending on being called with default-frame-alist as
7441 the alist argument.
7442
7443 * xfaces.c (update_face_from_frame_parameter): Move out of
7444 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7445 with HAVE_WINDOW_SYSTEM.
7446
7447 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7448 to menu-bar-mode, if not set in the frame parameters or in
7449 default-frame-alist.
7450
7451 * w32console.c (sys_tputs): Adjust argument list to prototype in
7452 term.c.
7453
7454 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
7455
7456 * lisp.h (memory_warnings): Fix prototype.
7457
7458 * cm.h (evalcost): Fix prototype.
7459
7460 * cm.c (evalcost): Fix arg type.
7461
7462 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7463
7464 * term.c (term_clear_mouse_face, Fidentity):
7465 * syssignal.h (signal_handler_t):
7466 * lisp.h (memory_warnings):
7467 * coding.h (preferred_coding_system):
7468 * cm.h (evalcost):
7469 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7470
7471 2010-07-02 Eli Zaretskii <eliz@gnu.org>
7472
7473 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7474 from prototypes.
7475
7476 * msdos.h (load_pixmap): Don't define away.
7477
7478 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7479
7480 * lisp.h:
7481 * atimer.h: Remove define for P_.
7482
7483 * alloc.c: Remove __P and P_ from .c and .m files.
7484 * atimer.c:
7485 * buffer.c:
7486 * callint.c:
7487 * category.c:
7488 * charset.c:
7489 * chartab.c:
7490 * cm.c:
7491 * coding.c:
7492 * composite.c:
7493 * data.c:
7494 * dired.c:
7495 * dispnew.c:
7496 * doc.c:
7497 * editfns.c:
7498 * emacs.c:
7499 * eval.c:
7500 * fileio.c:
7501 * filelock.c:
7502 * fns.c:
7503 * font.c:
7504 * fontset.c:
7505 * frame.c:
7506 * ftfont.c:
7507 * ftxfont.c:
7508 * gmalloc.c:
7509 * gtkutil.c:
7510 * image.c:
7511 * indent.c:
7512 * intervals.c:
7513 * keyboard.c:
7514 * keymap.c:
7515 * lread.c:
7516 * marker.c:
7517 * menu.c:
7518 * minibuf.c:
7519 * print.c:
7520 * process.c:
7521 * scroll.c:
7522 * search.c:
7523 * sound.c:
7524 * strftime.c:
7525 * syntax.c:
7526 * sysdep.c:
7527 * term.c:
7528 * terminal.c:
7529 * textprop.c:
7530 * unexalpha.c:
7531 * w32console.c:
7532 * w32fns.c:
7533 * w32font.c:
7534 * w32menu.c:
7535 * w32term.c:
7536 * w32uniscribe.c:
7537 * window.c:
7538 * xdisp.c:
7539 * xfaces.c:
7540 * xfns.c:
7541 * xfont.c:
7542 * xftfont.c:
7543 * xmenu.c:
7544 * xselect.c:
7545 * xterm.c: Likewise.
7546
7547 Remove P_ and __P macros.
7548 * atimer.h: Remove P_ and __P macros.
7549 * buffer.h:
7550 * category.h:
7551 * ccl.h:
7552 * character.h:
7553 * charset.h:
7554 * cm.h:
7555 * coding.h:
7556 * composite.h:
7557 * dispextern.h:
7558 * disptab.h:
7559 * dosfns.h:
7560 * font.h:
7561 * fontset.h:
7562 * frame.h:
7563 * gtkutil.h:
7564 * indent.h:
7565 * intervals.h:
7566 * keyboard.h:
7567 * keymap.h:
7568 * lisp.h:
7569 * macros.h:
7570 * md5.h:
7571 * menu.h:
7572 * msdos.h:
7573 * nsterm.h:
7574 * puresize.h:
7575 * region-cache.h:
7576 * syntax.h:
7577 * syssignal.h:
7578 * systime.h:
7579 * termhooks.h:
7580 * w32font.h:
7581 * w32term.h:
7582 * widget.h:
7583 * window.h:
7584 * xgselect.h:
7585 * xsettings.h:
7586 * xterm.h: Likewise.
7587
7588 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7589
7590 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7591
7592 Cleanup old code.
7593 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7594 * syssignal.h: Remove code for Lynx, not supported anymore.
7595 * vm-limit.c: Remove unused code the depends on emacs not being
7596 defined and NO_LIM_DATA being defined.
7597 * mem-limits.h: Remove dead code.
7598
7599 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7600
7601 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7602
7603 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7604 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7605
7606 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7607 parameters, they are already absolute.
7608
7609 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7610 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
7611
7612 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
7613
7614 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7615 Update FRAME_TOOLBAR_HEIGHT.
7616
7617 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7618 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
7619
7620 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
7621
7622 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7623 Don't check default-frame-alist.
7624
7625 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7626
7627 * process.c (create_process): Avoid using invalid file descriptors.
7628
7629 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7630
7631 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7632
7633 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7634 Improve documentation. Return font regardless of use_system_font.
7635 (syms_of_xsettings): Improve documentation for font-use-system-font.
7636
7637 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7638
7639 * xfaces.c (realize_face): Garbage the frame if a face is removed
7640 (Bug#6593).
7641
7642 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7643
7644 * keyboard.c: Remove duplicate <setjmp.h>.
7645 (read_key_sequence): Remove volatile qualifiers.
7646
7647 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7648
7649 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7650 (struct glyph_row): New members left_fringe_offset and
7651 right_fringe_offset.
7652
7653 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7654 specially.
7655 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7656 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7657
7658 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
7659 Take account of bitmap offset.
7660 (draw_window_fringes): Take account of window vscroll.
7661 (update_window_fringes): Likewise. Extend top-aligned top indicator
7662 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7663 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7664 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7665
7666 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7667
7668 * w32fns.c (Qtooltip): Declare.
7669 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7670
7671 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7672
7673 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7674 grab on just Press (Bug#6499).
7675
7676 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
7677
7678 * frame.c (Qtooltip): New var.
7679 (delete_frame): Use it. Fix faulty if statement. Don't update
7680 mode line for tooltip frames. Suggested by Martin Rudalics.
7681
7682 * xfns.c (x_create_tip_frame):
7683 * w32fns.c (x_create_tip_frame): Use it.
7684
7685 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
7686
7687 * xftfont.c (xftfont_open): Check font width one by one also when
7688 spacing is dual.
7689
7690 * ftfont.c (ftfont_open): Ditto.
7691
7692 2010-06-30 Glenn Morris <rgm@gnu.org>
7693
7694 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7695
7696 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7697
7698 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7699 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7700 * s/darwin.h (SYSTEM_MALLOC):
7701 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7702
7703 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7704
7705 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7706 (ns_get_screen): Don't assign integer to f.
7707 (Fx_display_color_cells): Declarations before statements.
7708
7709 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7710
7711 * xfns.c (x_default_font_parameter): Remove got_from_system
7712 (Bug#6526).
7713
7714 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
7715 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7716 New defines based on what configure finds.
7717
7718 * xterm.c (XTflash): Use gtk_widget_get_window.
7719 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7720 gtk_adjustment_get_page_size.
7721 (handle_one_xevent): Use gtk_widget_get_mapped.
7722 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7723 messages.
7724
7725 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7726
7727 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7728 HAVE_GTK_FILE_SELECTION_NEW.
7729
7730 * gtkutil.c (xg_display_open, xg_display_close):
7731 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
7732 (xg_display_open): Return type is void.
7733 (gtk_widget_set_has_window)
7734 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7735 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7736 (gtk_adjustment_set_page_increment)
7737 (gtk_adjustment_get_step_increment): #define these if not found
7738 by configure.
7739 (remove_submenu): New define based on Gtk+ version.
7740 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7741 Use gtk_widget_get_window.
7742 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7743 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7744 (create_dialog): Use gtk_dialog_get_action_area and
7745 gtk_dialog_get_content_area.
7746 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7747 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7748 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
7749 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7750 Use g_object_ref and g_object_unref.
7751 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7752 Use gtk_widget_get_sensitive.
7753 (xg_update_submenu): Use remove_submenu.
7754 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7755 properties instead to get old x and y position.
7756 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7757 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
7758 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
7759 (xg_get_tool_bar_widgets): New function.
7760 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7761 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7762 (toolbar_set_orientation): New #define based on if configure
7763 finds gtk_orientable_set_orientation.
7764 (xg_create_tool_bar): Call toolbar_set_orientation.
7765 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7766 instead of gtk_box_pack_start_defaults.
7767
7768 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
7769
7770 * cmds.c (Fdelete_backward_char): Move into Lisp.
7771
7772 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7773
7774 * s/freebsd.h (BSD4_2): Remove redundant definition.
7775 bsd-common.h defines it already.
7776
7777 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
7778
7779 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7780 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7781 tool-bar-mode, which are now set using these X resources at
7782 startup, to determine the defaults (Bug#2249).
7783
7784 * w32fns.c (Fx_create_frame):
7785 * nsfns.m (Fx_create_frame): Likewise.
7786
7787 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7788
7789 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
7790
7791 * gtkutil.c (xg_update_scrollbar_pos):
7792 Avoid C99 mid-block variable declaration.
7793
7794 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7795
7796 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7797
7798 * gtkutil.h (xg_show_scroll_bar): Remove.
7799
7800 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7801 if height is less than scroll bar min size.
7802 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7803
7804 * xfns.c (x_default_font_parameter): Try to open font from system
7805 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7806
7807 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
7808
7809 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7810
7811 2010-06-20 Eli Zaretskii <eliz@gnu.org>
7812
7813 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7814 most-positive-fixnum, be extra accurate when scrolling window
7815 start, to avoid missing the cursor line.
7816
7817 2010-06-19 Eli Zaretskii <eliz@gnu.org>
7818
7819 * xdisp.c (try_scrolling): Compute the limit for searching point
7820 in forward scroll from scroll_max, instead of an arbitrary limit
7821 of 10 screen lines.
7822 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
7823 and
7824 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7825 for details.
7826
7827 2010-06-16 Glenn Morris <rgm@gnu.org>
7828
7829 * editfns.c (Fbyte_to_string): Pacify compiler.
7830
7831 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7832
7833 * lread.c (read1): Phase out old-style backquotes a bit more.
7834
7835 2010-06-12 Eli Zaretskii <eliz@gnu.org>
7836
7837 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7838 bidimirror.h.
7839
7840 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7841
7842 * bidi.c (bidi_initialize): Remove explicit initialization of
7843 bidi_type_table; include biditype.h instead. Don't support
7844 entries whose second codepoint is zero. Initialize bidi_mirror_table.
7845 (bidi_mirror_char): Use bidi_mirror_table.
7846
7847 * biditype.h: New file.
7848
7849 * bidimirror.h: New file.
7850
7851 * window.c (syms_of_window): Doc fix (bug#6409).
7852
7853 2010-06-12 Romain Francoise <romain@orebokech.com>
7854
7855 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7856 ediff-hook.
7857
7858 2010-06-10 Glenn Morris <rgm@gnu.org>
7859
7860 * editfns.c (Fbyte_to_string): Pacify compiler.
7861
7862 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7863
7864 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7865
7866 * alloc.c (Fmake_byte_code): Don't access undefined argument
7867 (Bug#6517).
7868
7869 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
7870
7871 * xdisp.c (next_element_from_image): Ensure that after-strings are
7872 read the next time we hit handle_stop (Bug#1336).
7873
7874 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7875
7876 * lread.c (read1): Signal error if #s is not followed by paren.
7877
7878 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
7879
7880 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7881
7882 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7883
7884 2010-06-15 Glenn Morris <rgm@gnu.org>
7885
7886 * editfns.c (Fbyte_to_string): Pacify compiler.
7887
7888 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7889
7890 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7891 Check `object's type before accessing its guts.
7892
7893 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7894
7895 * s/usg5-4.h: Fix previous change.
7896 Suggested by Lawrence Mitchell <wence@gmx.li>
7897
7898 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7899
7900 * minibuf.c (Fall_completions): Add more checks.
7901
7902 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
7903
7904 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7905
7906 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7907
7908 * lread.c (X_OK): Remove, unused.
7909
7910 * dispnew.c: Remove obsolete comment.
7911
7912 Remove INCLUDED_FCNTL.
7913 * xterm.c (INCLUDED_FCNTL):
7914 * callproc.c (INCLUDED_FCNTL):
7915 * alloc.c (INCLUDED_FCNTL):
7916 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7917 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7918
7919 2010-06-07 Martin Rudalics <rudalics@gmx.at>
7920
7921 * window.c (Fselect_window): Move `record_buffer' up to the
7922 beginning of this function, so the buffer gets recorded
7923 even if the selected window does not change.
7924 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7925
7926 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
7927
7928 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7929 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7930
7931 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7932
7933 Remove BSTRING related code, all platforms define it.
7934 * s/usg5-4.h (BSTRING): Remove definition.
7935 * s/template.h (BSTRING):
7936 * s/msdos.h (BSTRING):
7937 * s/ms-w32.h (BSTRING):
7938 * s/hpux10-20.h (BSTRING):
7939 * s/gnu-linux.h (BSTRING):
7940 * s/darwin.h (BSTRING):
7941 * s/cygwin.h (BSTRING):
7942 * s/bsd-common.h (BSTRING):
7943 * s/aix4-2.h (BSTRING): Likewise.
7944 * sysdep.c: Remove code depending on BSTRING not being defined.
7945
7946 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
7947
7948 Remove obsolete macro BASE_LEADING_CODE_P.
7949 * character.h (BASE_LEADING_CODE_P): Remove.
7950 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7951 * buffer.c (Fset_buffer_multibyte):
7952 * indent.c (scan_for_column, compute_motion):
7953 * insdel.c (count_combining_before, count_combining_after):
7954 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7955
7956 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
7957
7958 Turn `directory-sep-char' into a noop.
7959
7960 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7961 (DIRECTORY_SEP): Define unconditionally.
7962
7963 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7964
7965 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7966 call dostounix_filename directly.
7967
7968 * fileio.c (CORRECT_DIR_SEPS): Remove.
7969 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7970 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7971 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7972 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7973
7974 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7975 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7976
7977 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7978
7979 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7980 (Bug#6346)
7981
7982 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
7983
7984 * ccl.c (Fccl_program_p): Fix typo in docstring.
7985
7986 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7987
7988 Move UNEXEC definition to autoconf.
7989 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7990 * s/sol2-10.h (UNEXEC):
7991 * s/irix6-5.h (UNEXEC):
7992 * s/hpux10-20.h (UNEXEC):
7993 * s/gnu-linux.h (UNEXEC):
7994 * s/darwin.h (UNEXEC):
7995 * s/cygwin.h (UNEXEC):
7996 * s/bsd-common.h (UNEXEC):
7997 * s/aix4-2.h (UNEXEC):
7998 * m/alpha.h (UNEXEC): Likewise.
7999 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8000
8001 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8002
8003 Remove obsolete pre-unicode2 macros.
8004 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8005 * composite.c (composition_reseat_it):
8006 * data.c (Faset):
8007 * fns.c (Ffillarray):
8008 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8009 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8010
8011 2010-06-03 Juri Linkov <juri@jurta.org>
8012
8013 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8014 (Fswitch_to_buffer): Remove unused variable `err'.
8015
8016 2010-06-03 Glenn Morris <rgm@gnu.org>
8017
8018 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8019
8020 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8021 now that AH_BOTTOM does it.
8022
8023 * m/hp800.h (HAVE_ALLOCA):
8024 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8025
8026 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8027 Remove NOT_C_CODE tests, it is always true now.
8028
8029 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8030
8031 Fix config.h includes.
8032 * xsettings.c:
8033 * xgselect.c:
8034 * nsterm.m:
8035 * nsselect.m:
8036 * nsimage.m:
8037 * nsfont.m:
8038 * nsfns.m:
8039 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8040 other files do.
8041
8042 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8043
8044 * s/sol2-6.h: Remove obsolete comments.
8045
8046 Remove unnecessary alloca.h includes.
8047 * keymap.c: Do not include alloca.h, config.h does that.
8048 * sysdep.c: Likewise. Do not define fwrite, not used.
8049
8050 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8051
8052 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8053 the HAVE_TERMIO where it belongs (bug#6149).
8054
8055 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8056
8057 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8058 of bug#6305).
8059
8060 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8061
8062 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8063 state is always cached (bug#6306).
8064
8065 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8066
8067 Fix cursor motion in bidi-reordered continued lines.
8068 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8069 only after finding point's row. Fix the logic. Rewrite the loop
8070 over continuation lines in bidi-reordered buffers.
8071 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8072 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8073
8074 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8075
8076 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8077
8078 2010-05-28 Kenichi Handa <handa@m17n.org>
8079
8080 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8081 Don't sheck SPEC if it is nil.
8082 (font_list_entities): Call font_delete_unmatched if
8083 Vface_ignored_fonts is non-nil. (Bug#6287)
8084
8085 2010-05-28 Glenn Morris <rgm@gnu.org>
8086
8087 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8088
8089 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8090
8091 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8092 whether to trash.
8093 (internal_delete_file, Frename_file): Callers changed.
8094 (delete_by_moving_to_trash): Doc fix.
8095 (Fdelete_directory_internal): Don't move to trash.
8096
8097 * callproc.c (delete_temp_file):
8098 * buffer.c (Fkill_buffer): Callers changed.
8099
8100 * lisp.h: Update prototype.
8101
8102 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8103
8104 * xdisp.c (redisplay_window): After redisplay, check if point is
8105 still valid before setting it (Bug#6177).
8106
8107 2010-05-27 Glenn Morris <rgm@gnu.org>
8108
8109 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8110 Convert comments to Makefile format.
8111
8112 * Makefile.in (bootstrap-clean): No more Makefile.c.
8113
8114 2010-05-26 Glenn Morris <rgm@gnu.org>
8115
8116 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8117 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8118
8119 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8120 Remove.
8121 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8122
8123 2010-05-26 Kenichi Handa <handa@m17n.org>
8124
8125 * composite.c (composition_compute_stop_pos): Fix condition for
8126 backward scanning.
8127
8128 2010-05-25 Glenn Morris <rgm@gnu.org>
8129
8130 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8131 Move before TEMACS_LDFLAGS.
8132 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8133 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8134
8135 * Makefile.in (NOT_C_CODE): No longer define.
8136 (config.h): No longer include.
8137
8138 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8139 variables it may reference.
8140
8141 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8142 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8143
8144 2010-05-25 Kenichi Handa <handa@m17n.org>
8145
8146 * dispextern.h (struct composition_it): New members rule_idx and
8147 charpos.
8148
8149 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8150 that the character positions of IT point the last character of the
8151 current grapheme cluster.
8152 (next_element_from_composition): Don't change character positions
8153 of IT.
8154 (append_composite_glyph): Set glyph->charpos to
8155 it->cmp_it.charpos.
8156
8157 * composite.c (autocmp_chars): Change the first argument to RULE,
8158 and try composition with RULE only.
8159 (composition_compute_stop_pos): Record the index number of the
8160 composition rule in CMP_IT->rule_idx.
8161 (composition_reseat_it): Call autocmp_chars repeatedly until the
8162 correct rule of the composition is found.
8163 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8164 is at the last character of the current grapheme cluster when
8165 CMP_IT->reversed_p is nonzero.
8166
8167 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8168
8169 * editfns.c (Fbyte_to_string): New function.
8170
8171 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8172
8173 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8174 Suggested by Masatake YAMATO <yamato@redhat.com>.
8175
8176 2010-05-23 Eli Zaretskii <eliz@gnu.org>
8177
8178 * dispextern.h (init_iterator): Sync prototype with changed definition.
8179
8180 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8181
8182 * s/netbsd.h: If terminfo is found, use it in preference to
8183 termcap. (Bug#6190) [Backport from trunk]
8184
8185 2010-05-19 Eli Zaretskii <eliz@gnu.org>
8186
8187 Redesign and reimplement bidi-aware edge positions of glyph rows.
8188
8189 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8190 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8191 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8192 and maxpos members instead of start.pos and end.pos, respectively.
8193
8194 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8195 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8196 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8197 (try_window_reusing_current_matrix, try_window_id):
8198 Use ROW->minpos rather than ROW->start.pos.
8199 (init_from_display_pos, init_iterator): Use EMACS_INT for
8200 character and byte positions.
8201 (find_row_edges): Rename from find_row_end. Accept additional
8202 arguments for minimum and maximum buffer positions seen by
8203 display_line for this row. Don't use iterator to find the
8204 position following the maximum one; instead, increment the
8205 position found by display_line directly. Fix logic; eol_pos
8206 should be tested before the rest. Handle the case of characters
8207 delivered from display vector (bug#6036). Fix tests related to
8208 it->method. Handle the truncated_on_right_p rows.
8209 (RECORD_MAX_MIN_POS): New macro.
8210 (display_line): Use it to record the minimum and maximum buffer
8211 positions for glyphs in the row being assembled. Record the
8212 position of the newline that terminates the line. If word wrap is
8213 in effect, restore minimum and maximum positions seen up to the
8214 wrap point, when iterator returns to it.
8215 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8216 row and cursor not already at point. Restore original pre-bidi
8217 code for unidirectional buffers.
8218
8219 * dispnew.c (increment_row_positions, check_matrix_invariants):
8220 Increment and check row->start.pos and row->end.pos, in addition
8221 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8222
8223 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8224 Display truncated_on_left_p and truncated_on_right_p flags.
8225 Formatting fixes.
8226 (pmtxrows): Display the ordinal number of each row. Don't display
8227 rows beyond the last one.
8228
8229 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8230 it is not copied by bidi_copy_it.
8231
8232 2010-05-22 Eli Zaretskii <eliz@gnu.org>
8233
8234 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8235 (Bug#6237)
8236
8237 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
8238
8239 * image.c (Fimage_flush): Rename from image-refresh.
8240
8241 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
8242
8243 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8244 just one window.
8245
8246 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8247 (clear_image_cache): If the number of cached images is unusually
8248 large, decrease the cache eviction delay (Bug#6230).
8249
8250 2010-05-21 Glenn Morris <rgm@gnu.org>
8251
8252 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8253 Move these rules to ns.mk.
8254 * ns.mk: New file.
8255
8256 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8257
8258 * Makefile.in (CANNOT_DUMP): New, set by configure.
8259 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8260
8261 2010-05-20 Juri Linkov <juri@jurta.org>
8262
8263 * fileio.c (Fdelete_file): Change interative spec to use
8264 `read-file-name' like in `find-file-read-args' where the default
8265 value is `default-directory' instead of `buffer-file-name'.
8266 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8267
8268 2010-05-20 Kevin Ryde <user42@zip.com.au>
8269
8270 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8271 (Voverriding_terminal_local_map, Vsystem_key_alist)
8272 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8273
8274 2010-05-20 Glenn Morris <rgm@gnu.org>
8275
8276 * Makefile.in (DEPDIR): New constant.
8277 (DEPFLAGS): Set with configure, not cpp.
8278 (MKDEPDIR): New, set by configure.
8279 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8280 (clean): Use $DEPDIR.
8281 (deps_frag): Include from configure.
8282 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8283 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8284
8285 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8286 Fix reallocation of the cache. (Bug#6210)
8287
8288 2010-05-19 Glenn Morris <rgm@gnu.org>
8289
8290 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8291
8292 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8293 (GNULIB_VAR): Remove.
8294 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8295
8296 * m/ibms390x.h (LINKER):
8297 * m/macppc.h (LINKER) [GNU_LINUX]:
8298 * s/aix4-2.h (ORDINARY_LINK):
8299 * s/cygwin.h (LINKER):
8300 * s/darwin.h (ORDINARY_LINK):
8301 * s/gnu.h (ORDINARY_LINK):
8302 * s/netbsd.h (LINKER):
8303 * s/usg5-4.h (ORDINARY_LINK):
8304 Move to configure.
8305
8306 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8307
8308 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
8309
8310 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8311 prevent stack overflow if number of arguments is too large
8312 (Bug#6214).
8313
8314 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
8315
8316 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8317
8318 2010-05-18 Glenn Morris <rgm@gnu.org>
8319
8320 * s/gnu-linux.h: Combine two conditionals.
8321
8322 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
8323 $(POST_ALLOC_OBJ).
8324
8325 * Makefile.in (RALLOC_OBJ): New, set by configure.
8326 (rallocobj): Replace with the previous variable.
8327 (otherobj): Use $RALLOC_OBJ.
8328
8329 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8330 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8331
8332 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8333 (gmallocobj, vmlimitobj): Replace with previous two variables.
8334 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8335
8336 2010-05-17 Glenn Morris <rgm@gnu.org>
8337
8338 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8339 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8340
8341 2010-05-16 Glenn Morris <rgm@gnu.org>
8342
8343 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8344
8345 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8346
8347 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8348 trailing "/".
8349
8350 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8351 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8352
8353 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8354 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8355 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8356 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8357 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8358
8359 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8360 Remove ${STARTFLAGS}, nothing ever sets it.
8361
8362 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8363
8364 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8365
8366 2010-05-16 Glenn Morris <rgm@gnu.org>
8367
8368 * Makefile.in (LIBX_BASE): Always define.
8369
8370 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8371
8372 * Makefile.in (LIBXT): Always define.
8373
8374 2010-05-15 Glenn Morris <rgm@gnu.org>
8375
8376 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
8377
8378 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8379 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8380
8381 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
8382
8383 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
8384 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8385
8386 * emacs.c (main): Initialize initial-environment and
8387 process-environment before generating from env, not after.
8388
8389 Handle --version reasonably in CANNOT_DUMP configuration.
8390 * emacs.c (emacs_version, emacs_copyright): New string variables.
8391 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8392 (syms_of_emacs): Defvar them, and initialize them from the C
8393 string variables.
8394 (main): If initialization hasn't been done, print initial version
8395 info from the C strings, instead of starting an interactive session.
8396
8397 2010-05-15 Eli Zaretskii <eliz@gnu.org>
8398
8399 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8400 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
8401 (bidi_paragraph_init): Remove redundant assertion that we are at
8402 the beginning of a line after call to bidi_find_paragraph_start.
8403
8404 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8405 (syms_of_xdisp): Defsubr it.
8406
8407 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8408
8409 * Makefile.in: Fix MSDOS-related comments.
8410
8411 2010-05-15 Glenn Morris <rgm@gnu.org>
8412
8413 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8414 (really-lwlib, really-oldXMenu): Always define.
8415 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8416
8417 * Makefile.in: Simplify cpp conditional.
8418
8419 * Makefile.in (${ns_appdir}): Simplify using umask.
8420
8421 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8422
8423 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8424
8425 * eval.c (specbind): Remove left-over duplicate test.
8426 Disallow let-binding frame-local vars. Add comment.
8427
8428 2010-05-14 Eli Zaretskii <eliz@gnu.org>
8429
8430 Make the cache of bidi iterator states dynamically allocated.
8431 * bidi.c (bidi_cache_shrink): New function.
8432 (bidi_init_it): Call it.
8433 (bidi_cache_iterator_state): Enlarge the cache if needed.
8434
8435 * bidi.c (bidi_move_to_visually_next): Rename from
8436 bidi_get_next_char_visually. All callers changed.
8437
8438 2010-05-14 Kenichi Handa <handa@m17n.org>
8439
8440 * dispextern.h (struct composition_it): New member reversed_p.
8441
8442 * composite.c (composition_compute_stop_pos): Search backward if
8443 ENDPOS < CHARPOS.
8444 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8445 Set CMP_IT->reversed_p.
8446 (composition_update_it): Pay attention to CMP_IT->reversed_p.
8447
8448 * xdisp.c (set_iterator_to_next):
8449 Call composition_compute_stop_pos with negative ENDPOS if we are
8450 scanning backward. Call composition_compute_stop_pos if scan
8451 direction is changed.
8452 (next_element_from_buffer): Call composition_compute_stop_pos with
8453 negative ENDPOS if we are scanning backward.
8454 (next_element_from_composition): Pay attention to
8455 IT->cmp_it.reversed_p.
8456
8457 2010-05-14 Kenichi Handa <handa@m17n.org>
8458
8459 * font.c (font_range): Return the range for the font found at first.
8460
8461 2010-05-14 Glenn Morris <rgm@gnu.org>
8462
8463 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8464
8465 * Makefile.in (mktime, X11, register): Move undefs to configure.
8466
8467 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8468 (MSDOS_X_OBJ): New variable.
8469 (MSDOS_SUPPORT_REAL): New constant.
8470 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8471 (obj): Use MSDOS_X_OBJ.
8472 (lisp): Use MSDOS_SUPPORT as a variable.
8473
8474 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8475 (GPM_MOUSE_SUPPORT): Now it's a constant.
8476 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8477 not cpp.
8478
8479 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
8480 (ns_appresdir): Remove, unused.
8481
8482 * Makefile.in (SHELL): Move outside cpp section.
8483
8484 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8485
8486 2010-05-13 Glenn Morris <rgm@gnu.org>
8487
8488 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8489 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8490
8491 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8492 HAVE_WINDOW_SYSTEM must be too.
8493
8494 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8495 (lisp): Remove WINNT_SUPPORT.
8496
8497 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8498 Let configure set these variables (to empty) in this case as well.
8499
8500 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8501 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8502
8503 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8504 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8505 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8506 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8507 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
8508 the values output by configure.
8509 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8510
8511 2010-05-12 Glenn Morris <rgm@gnu.org>
8512
8513 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8514 (LINKER_WAS_SPECIFIED): Remove.
8515
8516 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8517 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8518 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8519 * s/cygwin.h (LIB_GCC):
8520 * s/freebsd.h (LIB_GCC):
8521 * s/gnu-linux.h (LIB_GCC):
8522 * s/msdos.h (LIB_GCC):
8523 * s/netbsd.h (LIB_GCC):
8524 Move to configure.
8525
8526 2010-05-11 Karel Klíč <kklic@redhat.com>
8527
8528 * ftfont.c: Fix incorrect parentheses of #if condition for
8529 definining M17N_FLT_USE_NEW_FEATURE.
8530
8531 2010-05-11 Glenn Morris <rgm@gnu.org>
8532
8533 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8534 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8535
8536 2010-05-10 Eli Zaretskii <eliz@gnu.org>
8537
8538 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8539 unibyte buffers. See
8540 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8541
8542 2010-05-10 Glenn Morris <rgm@gnu.org>
8543
8544 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8545 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8546 (LIBES): Use LIBS_SYSTEM as a variable.
8547 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8548 * s/aix4-2.h (LIBS_SYSTEM):
8549 * s/freebsd.h (LIBS_SYSTEM):
8550 * s/hpux10-20.h (LIBS_SYSTEM):
8551 * s/sol2-6.h (LIBS_SYSTEM):
8552 * s/unixware.h (LIBS_SYSTEM):
8553 Move to configure.
8554
8555 * s/aix4-2.h (MAIL_USE_LOCKF):
8556 * s/bsd-common.h (MAIL_USE_FLOCK):
8557 * s/darwin.h (MAIL_USE_FLOCK):
8558 * s/gnu-linux.h (MAIL_USE_FLOCK):
8559 * s/irix6-5.h (MAIL_USE_FLOCK):
8560 * s/template.h (MAIL_USE_FLOCK):
8561 Move to configure.
8562
8563 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
8564
8565 * Version 23.2 released.
8566
8567 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
8568
8569 * composite.c (autocmp_chars): Save point as marker before calling
8570 auto-composition-function (Bug#5984).
8571
8572 * lisp.h (restore_point_unwind): Add prototype.
8573
8574 * fileio.c (restore_point_unwind): Remove static attribute.
8575
8576 2010-05-08 Kenichi Handa <handa@m17n.org>
8577
8578 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8579 new feature of libotf and m17n-flt.
8580 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8581 Call OTF_check_features even if no specific feature is given.
8582 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8583 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8584 that OUT is NULL. Use OTF_drive_gsub_with_log and
8585 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8586 OTF_drive_gpos.
8587 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
8588 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8589 Setup mflt_enable_new_feature and mflt_try_otf.
8590
8591 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8592
8593 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8594
8595 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8596 box and toolbar (Bug #6139).
8597 (xg_create_tool_bar): Remove comment (Bug #6139).
8598 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8599 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8600
8601 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
8602
8603 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8604 Update dependencies.
8605
8606 2010-05-08 Eli Zaretskii <eliz@gnu.org>
8607
8608 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8609 R2L lines.
8610
8611 2010-05-08 Glenn Morris <rgm@gnu.org>
8612
8613 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8614
8615 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8616 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8617 (termcapobj): Replace with TERMCAP_OBJ.
8618 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8619 (LIBES): Use LIBS_TERMCAP as a variable.
8620
8621 * s/freebsd.h (osreldate.h): No longer include, since this file
8622 does not use __FreeBSD_version any more.
8623
8624 * s/aix4-2.h (TERMINFO):
8625 * s/cygwin.h (TERMINFO):
8626 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8627 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8628 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8629 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8630 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8631 * s/irix6-5.h (TERMINFO):
8632 * s/netbsd.h (LIBS_TERMCAP):
8633 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8634 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8635 * s/usg5-4.h (TERMINFO):
8636 Move to configure.
8637
8638 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8639
8640 * eval.c (unbind_to): Don't unbind a local binding into the global
8641 binding when the local binding disappeared. Inversely, don't unbind
8642 a global binding into a newly created local binding.
8643 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8644 can specify the frame to use, when applicable. Adjust callers.
8645
8646 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
8647 Stefan Monnier <monnier@iro.umontreal.ca>
8648
8649 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8650
8651 2010-05-07 Eli Zaretskii <eliz@gnu.org>
8652
8653 * w32fns.c: Include w32.h.
8654 (Fw32_shell_execute): Decode the error message before passing it
8655 to `error'. (Bug#6126)
8656
8657 * msdos.c (dos_set_window_size):
8658 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8659 instead of `XSYMBOL (foo)->value'.
8660
8661 2010-05-07 Eli Zaretskii <eliz@gnu.org>
8662
8663 Fix the MS-DOS build, broken by autoconfiscation.
8664
8665 * Makefile.in: Don't use Make-style comments past the "start of
8666 cpp stuff" line.
8667 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8668
8669 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8670 edited directly by msdos/sed1v2.inp).
8671
8672 2010-05-07 Glenn Morris <rgm@gnu.org>
8673
8674 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8675 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8676 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8677 move out of cpp section.
8678 * s/freebsd.h (LD_SWITCH_SYSTEM):
8679 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8680 * s/netbsd.h (LD_SWITCH_SYSTEM):
8681 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8682
8683 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8684
8685 Define LIB_STANDARD and START_FILES using autoconf.
8686 * s/usg5-4.h (LIB_STANDARD):
8687 * s/netbsd.h (START_FILES):
8688 * s/irix6-5.h (LIB_STANDARD):
8689 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8690 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8691 * s/freebsd.h (START_FILES):
8692 * s/darwin.h (START_FILES):
8693 * s/cygwin.h (START_FILES):
8694 * s/aix4-2.h (LIB_STANDARD):
8695 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8696 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8697 autoconf, not cpp.
8698
8699 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8700
8701 Remove NEED_BSDTTY and NEED_UNISTD_H.
8702 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8703 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8704 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8705 <sys/ptyio.h> and <unistd.h>.
8706
8707 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8708
8709 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8710 * s/gnu.h (START_FILES): Remove empty definition.
8711
8712 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8713
8714 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8715
8716 2010-05-06 Glenn Morris <rgm@gnu.org>
8717
8718 * Makefile.in (CPP, LN_S): Remove unused variables.
8719
8720 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8721
8722 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8723
8724 2010-05-05 Lawrence Mitchell <wence@gmx.li>
8725
8726 * m/sparc.h: Fix typo in earlier change.
8727
8728 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8729
8730 Misc tweaks.
8731 * eval.c (Fdefvaralias): Remove unintended nested if.
8732 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8733
8734 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
8735
8736 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8737
8738 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8739
8740 Remove BSD_PGRPS.
8741 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8742 * s/gnu-linux.h (BSD_PGRPS): Remove.
8743 * term.c (dissociate_if_controlling_tty):
8744 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8745 (init_sys_modes, reset_sys_modes):
8746 * emacs.c (main):
8747 * callproc.c (Fcall_process, child_setup): Remove code depending
8748 on BSD_PGRPS.
8749
8750 Remove POSIX_SIGNALS.
8751 * s/usg5-4.h (POSIX_SIGNALS):
8752 * s/netbsd.h (POSIX_SIGNALS):
8753 * s/msdos.h (POSIX_SIGNALS):
8754 * s/ms-w32.h (POSIX_SIGNALS):
8755 * s/hpux11.h (POSIX_SIGNALS):
8756 * s/gnu.h (POSIX_SIGNALS):
8757 * s/gnu-linux.h (POSIX_SIGNALS):
8758 * s/freebsd.h (POSIX_SIGNALS):
8759 * s/darwin.h (POSIX_SIGNALS):
8760 * s/cygwin.h (POSIX_SIGNALS):
8761 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8762 * s/unixware.h:
8763 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8764 * process.c (create_process):
8765 * syssignal.h:
8766 * sysdep.c (wait_for_termination, init_signals):
8767 * process.c (create_process):
8768 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8769 remove all code that assumes the contrary.
8770
8771 2010-05-04 Glenn Morris <rgm@gnu.org>
8772
8773 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8774 variable.
8775 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8776 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8777 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8778 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8779 LD_SWITCH_SYSTEM_tmp.
8780 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8781 New variables, set by configure.
8782
8783 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8784 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8785 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8786 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8787 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8788
8789 * s/aix4-2.h (C_SWITCH_SYSTEM):
8790 * m/alpha.h (C_SWITCH_MACHINE):
8791 Move to configure.in.
8792 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8793 New variables, set by configure.
8794 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8795 $c_switch_machine and $c_switch_system.
8796
8797 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8798
8799 * s/hpux10-20.h (LIB_STANDARD): New definition.
8800 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8801 on it, not used anymore.
8802
8803 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
8804
8805 * eval.c (internal_condition_case_n): Rename from
8806 internal_condition_case_2.
8807 (internal_condition_case_2): New function.
8808
8809 * xdisp.c (safe_call): Use internal_condition_case_n.
8810
8811 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8812 (internal_delete_file, Frename_file): Callers changed.
8813
8814 * buffer.c (Fkill_buffer):
8815 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8816
8817 * lisp.h: Update prototypes.
8818
8819 2010-05-03 Glenn Morris <rgm@gnu.org>
8820
8821 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8822 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8823 (LIBXT): Set with configure, not cpp.
8824 (LIBX): Remove.
8825 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8826
8827 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8828
8829 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8830 The FreeBSD is not needed, the default works, Solaris version is
8831 not needed, and the remaining case is not supported by configure.
8832
8833 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8834
8835 * xsmfns.c (CHDIR_OPT): New define.
8836 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8837 restarting emacs.
8838
8839 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8840 shut_down_emacs.
8841
8842 * emacs.c (USAGE1): Mention --chdir.
8843 (main): Handle --chdir.
8844 (standard_args): Add --chdir.
8845 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8846 #5552).
8847
8848 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8849
8850 Remove LD_SWITCH_MACHINE.
8851 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8852 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8853
8854 Clean up IRIX code.
8855 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8856 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8857
8858 Clean up AIX code.
8859 * m/ibmrs6000.inp: Remove file, unused.
8860 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8861 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8862 definition ...
8863 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8864
8865 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8866 unused.
8867
8868 2010-05-01 Eli Zaretskii <eliz@gnu.org>
8869
8870 Emulate POSIX_SIGNALS on MS-Windows.
8871
8872 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8873 (SIG_SETMASK, SIG_UNBLOCK): Define.
8874
8875 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8876 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8877 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8878
8879 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8880 New stubs.
8881
8882 Miscellaneous fixes of bidi display.
8883
8884 * xdisp.c (find_row_end): New function, refactored from display_line.
8885 (display_line): Use it.
8886 (extend_face_to_end_of_line): In almost-filled rows, extend only
8887 if the row is R2L and not continued.
8888 (display_line): Fix prepending of truncation glyphs to R2L rows.
8889 Preserve overlay and string info in row->end.
8890 (insert_left_trunc_glyphs): Support addition of left truncation
8891 glyphs to R2L rows.
8892 (set_cursor_from_row): Don't place cursor on the vertical border
8893 glyph between adjacent windows. Fix a crash when a display string
8894 is continued to the next line. Don't return zero if cursor was
8895 found by `cursor' property of a display string.
8896 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8897 test for that explicitly.
8898
8899 2010-05-01 Glenn Morris <rgm@gnu.org>
8900
8901 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8902 for clarity.
8903 (OTHER_OBJ): Remove.
8904 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8905 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8906
8907 2010-05-01 Karel Klíč <kklic@redhat.com>
8908
8909 * fileio.c (Ffile_selinux_context): Context functions may return null.
8910
8911 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8912
8913 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
8914
8915 2010-04-30 Glenn Morris <rgm@gnu.org>
8916
8917 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8918 (OTHER_OBJ): Define as a separate variable, for clarity.
8919
8920 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8921
8922 * xsettings.c: Include limits.h and update file comment.
8923
8924 2010-04-30 Glenn Morris <rgm@gnu.org>
8925
8926 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8927 Set with configure, not cpp.
8928 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8929
8930 * Makefile.in (mallocobj): Remove.
8931 (otherobj): Simplify using @OTHER_OBJ@.
8932
8933 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8934 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8935 Don't bother making nsgui.h dependency platform-specific.
8936
8937 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8938
8939 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8940
8941 * process.c (read_process_output, exec_sentinel): Don't burp if the
8942 sentinel/filter kills the current buffer (bug#6060).
8943
8944 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
8945 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8946 Remove unused var `args'.
8947 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8948 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8949 * doc.c (store_function_docstring): Use XSETCAR.
8950
8951 2010-04-28 Glenn Morris <rgm@gnu.org>
8952
8953 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8954 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8955
8956 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8957
8958 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8959 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8960
8961 * Makefile.in (FONT_OBJ): New, set by configure.
8962 (FONT_DRIVERS): Use $FONT_OBJ.
8963
8964 * Makefile.in (LIBXMU): Set with configure, not cpp.
8965 * s/aix4-2.h (LIBXMU):
8966 * s/hpux10-20.h (LIBXMU):
8967 Remove definition, now set in configure.
8968
8969 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8970
8971 * m/amdx86-64.h [i386]: Move this test to configure.in.
8972
8973 2010-04-27 Glenn Morris <rgm@gnu.org>
8974
8975 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8976 * s/unixware.h (NEED_LIBW): Remove definition.
8977
8978 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8979 (TOOLKIT_LIBW): New, set by configure.
8980 (@X_TOOLKIT_TYPE@): No longer define it.
8981
8982 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8983 (MOTIF_LIBW): Set with configure, not cpp.
8984 * s/aix4-2.h (LIB_MOTIF):
8985 * s/gnu-linux.h (LIB_MOTIF):
8986 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8987
8988 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8989
8990 Reduce CPP usage.
8991 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8992 (obj): Use autoconf for unexec instead of cpp.
8993 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8994 Remove definitions and undefs. Inline definitions in the only user.
8995 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
8996
8997 2010-04-27 Glenn Morris <rgm@gnu.org>
8998
8999 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9000 since the defaults (set by the system file) are fine in most cases.
9001 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9002 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9003 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9004 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9005 Remove definitions, since they are set correctly in s/gnu-linux.h.
9006 * s/freebsd.h (START_FILES, LIB_STANDARD):
9007 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9008 * s/hpux10-20.h (START_FILES):
9009 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9010 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9011
9012 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9013 (MOTIF_LIBW): Use $LIBXP.
9014 (otherobj): Use $WIDGET_OBJ.
9015
9016 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9017
9018 * Makefile.in (LIBS_MACHINE): Remove, unused.
9019
9020 Use autoconf instead of cpp for LIB_MATH.
9021 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9022 * s/cygwin.h (LIB_MATH): Likewise.
9023 * Makefile.in (LIB_MATH): Do not define with cpp.
9024 (LIBES): Use autoconf for LIB_MATH.
9025
9026 2010-04-26 Kenichi Handa <handa@m17n.org>
9027
9028 * composite.c (Ffind_composition_internal): Fix the return value
9029 for an automatic composition.
9030
9031 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9032
9033 Remove all NO_ARG_ARRAY uses.
9034 * fns.c (concat2, concat3, nconc2):
9035 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9036 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9037 * m/xtensa.h (NO_ARG_ARRAY):
9038 * m/template.h (NO_ARG_ARRAY):
9039 * m/sparc.h (NO_ARG_ARRAY):
9040 * m/sh3.h (NO_ARG_ARRAY):
9041 * m/mips.h (NO_ARG_ARRAY):
9042 * m/macppc.h (NO_ARG_ARRAY):
9043 * m/iris4d.h (NO_ARG_ARRAY):
9044 * m/intel386.h (NO_ARG_ARRAY):
9045 * m/ibms390x.h (NO_ARG_ARRAY):
9046 * m/ibms390.h (NO_ARG_ARRAY):
9047 * m/ibmrs6000.h (NO_ARG_ARRAY):
9048 * m/ia64.h (NO_ARG_ARRAY):
9049 * m/hp800.h (NO_ARG_ARRAY):
9050 * m/arm.h (NO_ARG_ARRAY):
9051 * m/amdx86-64.h (NO_ARG_ARRAY):
9052 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9053
9054 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9055
9056 * xdisp.c (display_line): Don't assume 2nd call to
9057 get_next_display_element cannot return zero. (Bug#6030)
9058 (iterate_out_of_display_property): New function, body from pop_it.
9059 (pop_it): Use it.
9060
9061 2010-04-24 Glenn Morris <rgm@gnu.org>
9062
9063 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9064 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9065 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9066 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9067
9068 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9069
9070 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9071 use `get_next_display_element' and `set_iterator_to_next' to
9072 advance to the next character, when looking for the character that
9073 begins the next row.
9074
9075 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9076 definition of "struct Lisp_Symbol".
9077
9078 2010-04-24 Glenn Morris <rgm@gnu.org>
9079
9080 * Makefile.in (CRT_DIR): New variable, set by configure.
9081 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9082 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9083
9084 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9085
9086 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9087
9088 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9089
9090 Remove redundant flags.
9091 * s/freebsd.h (C_SWITCH_SYSTEM):
9092 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9093 * s/netbsd.h (C_SWITCH_SYSTEM):
9094 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9095 of these.
9096
9097 Simplify m/intel386.h.
9098 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9099 user: ecrt0.c.
9100 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9101 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9102 the only user: s/unixware.h.
9103 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9104 from m/intel386.h.
9105 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9106 Definitions moved here from m/intel386.h.
9107
9108 * m/mips.h: Remove #if 0 code.
9109
9110 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9111
9112 Fix display of composed characters from L2R scripts in bidi buffers.
9113 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9114 After advancing IT past the composition, resync the bidi iterator
9115 with IT's position. (Bug#5977)
9116
9117 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9118
9119 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9120 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9121
9122 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9123
9124 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9125
9126 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9127
9128 Support `display' text properties and overlay strings in bidi buffers.
9129 * xdisp.c (pop_it): When the stack is popped after displaying
9130 from a string, bidi-iterate to exit from the text portion covered
9131 by the `display' property or overlay. (Bug#5988, bug#5920)
9132
9133 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9134
9135 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9136 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9137
9138 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9139 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9140
9141 Simplify STARTFILES definition.
9142 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9143 relying on Makefile.in to define it.
9144 * s/cygwin.h (START_FILES): Likewise.
9145 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9146
9147 Clean up Solaris code.
9148 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9149 (LIB_MOTIF): Remove, configure takes care of this.
9150 (NOT_USING_MOTIF): Remove, unused.
9151 * xrdb.c: Remove #if 0-ed #include.
9152 (SYSV): Remove conditional for old SysV.
9153 * sysdep.c (closedir): Remove conditional code for Solaris,
9154 Solaris has closedir.
9155
9156 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9157
9158 * xsettings.c (read_and_apply_settings): Check if current_font is
9159 NULL before strcmp (Bug#6001).
9160
9161 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9162
9163 Clean up HP-UX files.
9164 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9165 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9166 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9167 * s/hpux10-20.h: ... to the only user, here.
9168
9169 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9170
9171 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9172 use buffer-local values of paragraph-start and paragraph-separate.
9173 <paragraph_start_re, paragraph_separate_re>: Rename from
9174 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9175 (Bug#5992)
9176
9177 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9178
9179 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9180 current_tool_bar_style are new.
9181 (store_config_changed_event): Rename from store_font_changed_event.
9182 (XSETTINGS_TOOL_BAR_STYLE): New define.
9183 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9184 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9185 HAVE_XFT.
9186 (something_changedCB): store_font_changed_event is now
9187 store_config_changed_event.
9188 (parse_settings): Rename from parse_xft_settings.
9189 Read non-xft xsettings outside #ifdef HAVE_XFT.
9190 (read_settings): Rename from read_xft_settings.
9191 (apply_xft_settings): Take current settings as parameter. Do not
9192 call read_(xft)_settings.
9193 (read_and_apply_settings): New function.
9194 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9195 Call read_and_apply_settings if there are settings to be read.
9196 (init_xsettings): Rename from init_xfd_settings.
9197 Call read_and_apply_settings unconditionally.
9198 (xsettings_initialize): Call init_xsettings.
9199 (Ftool_bar_get_system_style): New function.
9200 (syms_of_xsettings): Define Qmonospace_font_name and
9201 Qtool_bar_style. Initialize current_tool_bar_style to nil.
9202 defsubr Stool_bar_get_system_style. Fprovide on
9203 dynamic-setting.
9204 Move misplaced HAVE_GCONF.
9205
9206 * xsettings.h (Ftool_bar_get_system_style): Declare.
9207
9208 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9209 Qtext, Qboth, Qboth_horiz are new.
9210 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9211 Vtool_bar_style, tool_bar_max_label_size.
9212
9213 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9214
9215 * keyboard.c: QClabel is new.
9216 (parse_tool_bar_item): Take out QClabel from tool bar items.
9217 Try to construct a label if ther is no QClabel.
9218 (syms_of_keyboard): Intern :label as QClabel.
9219
9220 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9221 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9222 New.
9223
9224 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9225 dynamic-setting.el.
9226
9227 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9228 (xg_make_tool_item, xg_show_toolbar_item): New function.
9229 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9230 Call xg_make_tool_item to make a tool bar item.
9231 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9232
9233 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9234 into account for toolbars.
9235
9236 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9237
9238 * data.c (make_blv): Declarations before code (Bug#5993).
9239
9240 2010-04-21 Glenn Morris <rgm@gnu.org>
9241
9242 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9243 Define using autoconf, not cpp.
9244 (LIBXSM): New variable, set by autoconf.
9245 (LIBXT): Use $LIBXSM.
9246
9247 2010-04-21 Dan Nicolaescu <local_user@dannlt>
9248
9249 Remove NOMULTIPLEJOBS, unused.
9250 * s/template.h (NOMULTIPLEJOBS):
9251 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9252
9253 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9254 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9255 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9256 detects -znocombreloc and passes it to the linker
9257 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9258
9259 2010-04-21 Glenn Morris <rgm@gnu.org>
9260
9261 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9262
9263 2010-04-21 Karel Klíč <kklic@redhat.com>
9264
9265 * Makefile.in (LIBSELINUX_LIBS): New.
9266 (LIBES): Add $LIBSELINUX_LIBS.
9267 * eval.c, lisp.h (call7): New function.
9268 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9269 (Ffile_selinux_context, Fset_file_selinux_context):
9270 New functions.
9271 (Fcopy_file): New parameter preserve-selinux-context.
9272 (Frename_file): Preserve selinux context when renaming by copy-file.
9273
9274 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
9275 Eli Zaretskii <eliz@gnu.org>
9276
9277 Don't depend on cm.c or termcap.c on Windows, use stubs.
9278 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9279 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9280 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9281 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9282 (sys_tputs, sys_tgetstr): New stubs.
9283 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9284 (tputs, tgetstr): New; define to sys_*.
9285
9286 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
9287
9288 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9289
9290 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9291
9292 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9293 Just signal a warning rather than an error when inside a let.
9294 (Fmake_variable_frame_local): Add the same test.
9295
9296 * font.c (syms_of_font): Make the style table vars read-only.
9297
9298 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9299 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9300
9301 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9302
9303 2010-04-20 Eli Zaretskii <eliz@gnu.org>
9304
9305 Fix R2L paragraph display on TTY.
9306
9307 * xdisp.c (unproduce_glyphs): New function.
9308 (display_line): Use it when produced glyphs are discarded from R2L
9309 glyph rows.
9310 (append_composite_glyph): In R2L rows, prepend the glyph rather
9311 than appending it.
9312
9313 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9314 rather than append it. Set up the resolved_level and bidi_type
9315 attributes of the appended glyph.
9316 (produce_special_glyphs): Mirror the backslash continuation
9317 character in R2L lines.
9318
9319 Implement display of R2L paragraphs in GUI sessions.
9320
9321 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9322 append_stretch_glyph.
9323 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9324 Fix off-by-one error in computing x at end of text in the row.
9325 (append_stretch_glyph): In reversed row, prepend the glyph rather
9326 than append it. Set resolved_level and bidi_type of the glyph.
9327 (extend_face_to_end_of_line): If the row is reversed, prepend a
9328 stretch glyph whose width is such that the rightmost glyph will be
9329 drawn at the right margin of the window. Fix off-by-one error on
9330 TTY frames in testing whether a line needs face extension.
9331 Fix face extension at ZV. If this is the last glyph row, use
9332 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9333 region face.
9334 (set_cursor_from_row, display_line):
9335 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
9336 row->continuation_lines_width.
9337 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9338 are at ZV. Fixes a crash when reseated to ZV by
9339 try_window_reusing_current_matrix.
9340 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9341 which happens with R2L glyph rows. Fixes a crash when inserting a
9342 character at end of an R2L line.
9343 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9344 treat them as having zero-width characters. Improve comments.
9345 Don't reverse pos_before and pos_after for reversed glyph rows.
9346 Set cursor.x to negative value when the cursor might be on the
9347 left fringe.
9348 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9349 left fringe, not the right one.
9350 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9351 (erase_phys_cursor): For reversed cursor_row, support cursor on
9352 the left fringe.
9353
9354 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9355 of continuation indicators on the fringes.
9356 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9357 left fringe.
9358
9359 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9360 draw cursor on the left fringe.
9361
9362 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9363 cursor on the left fringe.
9364
9365 * dispnew.c (update_text_area): Handle reversed desired rows when
9366 the cursor is on the left fringe.
9367 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9368 below, not by 0, for when the cursor is on the left fringe.
9369
9370 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9371
9372 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9373 widget is a scrollbar.
9374
9375 2010-04-20 Kenichi Handa <handa@m17n.org>
9376
9377 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9378 only when the arg CHARSET_LIST is nil.
9379
9380 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9381
9382 Make variable forwarding explicit rather the using special values.
9383 Basically, this makes the structure of buffer-local values and object
9384 forwarding explicit in the type of Lisp_Symbols rather than use
9385 special Lisp_Objects for that. This tends to lead to slightly more
9386 verbose code, but is more C-like, simpler, and makes it easier to make
9387 sure we handled all cases, among other things by letting the compiler
9388 help us check it.
9389 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9390 Removing forwarding objects.
9391 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9392 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9393 explicit rather than hiding them inside Lisp_Object "values".
9394 (XFWDTYPE): New macro.
9395 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9396 (XBUFFER_LOCAL_VALUE): Remove.
9397 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9398 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9399 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9400 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9401 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9402 Remove the Lisp_Misc_* header.
9403 (struct Lisp_Buffer_Local_Value): Redefine.
9404 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9405 (struct Lisp_Misc_Any): Add filler to get the right size.
9406 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9407 Lisp_Intfwd.
9408 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9409 (DEFVAR_KBOARD): Allocate a forwarding object.
9410 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9411 (let_shadows_global_binding_p): New function.
9412 (union Lisp_Val_Fwd): New type.
9413 (make_blv): New function.
9414 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9415 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9416 (swap_in_symval_forwarding, find_symbol_value, Fset)
9417 (let_shadows_buffer_binding_p, set_internal, default_value)
9418 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9419 (Fkill_local_variable, Fmake_variable_frame_local)
9420 (Flocal_variable_p, Flocal_variable_if_set_p)
9421 (Fvariable_binding_locus):
9422 * xdisp.c (select_frame_for_redisplay):
9423 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9424 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9425 * frame.c (store_frame_param):
9426 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9427 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9428 value structure.
9429 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9430 (clone_per_buffer_values): Only adjust markers into the current buffer.
9431 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9432 (Fbuffer_local_value, set_buffer_internal_1)
9433 (swap_out_buffer_local_variables):
9434 Adapt to the new symbol value structure.
9435 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9436 (defvar_per_buffer): Take a new arg for the fwd object.
9437 (buffer_lisp_local_variables): Return a proper alist (different fix
9438 for bug#4138).
9439 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9440 (Fgarbage_collect): Don't handle buffer_defaults specially.
9441 (mark_object): Handle new symbol value structure rather than the old
9442 special Lisp_Misc_* objects.
9443 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9444 * term.c (set_tty_color_mode):
9445 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9446 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9447 a buffer_local_flags.
9448 * print.c (print_object): Get rid of impossible forwarding objects.
9449
9450 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9451
9452 * bidi.c (bidi_get_type, bidi_get_category)
9453 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
9454 (bidi_type_of_next_char, bidi_level_of_next_char):
9455 Declare static. Use `INLINE' rather than `inline'.
9456
9457 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
9458
9459 * dired.c (Ffile_attributes): Fix typo in docstring.
9460
9461 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9462
9463 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9464 NSInteger (Bug#5811).
9465
9466 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9467
9468 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9469 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9470
9471 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9472
9473 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9474
9475 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
9476
9477 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9478 terminal frames (Bug#5837).
9479
9480 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9481
9482 * .gdbinit (xsubchartable): New command.
9483
9484 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9485
9486 * xdisp.c (display_line): Don't write beyond the last glyph row in
9487 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
9488 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9489 and
9490 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9491
9492 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9493
9494 * alloc.c (Fpurecopy): Hash-cons if requested.
9495 (syms_of_alloc): Update purify-flag docstring.
9496
9497 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9498
9499 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9500 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9501
9502 2010-04-17 Eli Zaretskii <eliz@gnu.org>
9503
9504 Fix a crash when an NSM character is inserted at BEGV.
9505
9506 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9507 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9508 NEUTRAL_B or UNKNOWN_BT.
9509
9510 2010-04-16 Eli Zaretskii <eliz@gnu.org>
9511
9512 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9513 other rows with cursor unless they are different from this row and
9514 this row is part of a continued line. (Bug#5943)
9515
9516 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9517
9518 * s/freebsd.h: Restore osreldate.h include.
9519 Suggested by Naohiro Aota.
9520
9521 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9522
9523 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9524
9525 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9526
9527 * s/cygwin.h: Avoid linking against static libgcc.
9528
9529 2010-04-15 Juri Linkov <juri@jurta.org>
9530
9531 * window.c: Add Qscroll_command.
9532 Remove Vscroll_preserve_screen_position_commands.
9533 (window_scroll_pixel_based, window_scroll_line_based): Check the
9534 `scroll-command' property on the last command instead of searching
9535 the last command in Vscroll_preserve_screen_position_commands.
9536 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9537 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9538 (scroll-preserve-screen-position): Doc fix.
9539 (Vscroll_preserve_screen_position_commands): Remove variable.
9540
9541 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9542
9543 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9544
9545 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9546
9547 Reduce cpp use in Makefile.in.
9548 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9549 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9550 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9551 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9552 (CRT0_COMPILE): Remove, inline it in the only user.
9553
9554 2010-04-14 Juri Linkov <juri@jurta.org>
9555
9556 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9557 `scroll-up-command' and `M-v' from `scroll-down' to
9558 `scroll-down-command'.
9559
9560 2010-04-14 Juri Linkov <juri@jurta.org>
9561
9562 * window.c (Vscroll_preserve_screen_position_commands): New variable
9563 with the default value as the list of Qscroll_down and Qscroll_up.
9564 (window_scroll_pixel_based, window_scroll_line_based): Search the
9565 last command in the list Vscroll_preserve_screen_position_commands
9566 instead of comparing with Qscroll_up and Qscroll_down.
9567
9568 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9569
9570 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9571 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9572 does that.
9573
9574 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9575 to zero.
9576
9577 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9578
9579 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9580
9581 Try to solve the problem of spurious EOF chars in long lines of text
9582 sent to interactive subprocesses.
9583 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9584 (system_process_attributes): Remove unused var `ttotal'.
9585 * process.c (send_process): Don't bother breaking long line with EOF
9586 chars when talking to ttys any more.
9587 (wait_reading_process_output): Output a warning when called in such
9588 a way that it could block without being interruptible.
9589
9590 Try to detect file modification within the same second.
9591 * buffer.h (struct buffer): New field modtime_size.
9592 * buffer.c (reset_buffer): Initialize it.
9593 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9594 (Fverify_visited_file_modtime): Check it.
9595 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9596 (Fset_visited_file_modtime): Set (or clear) it.
9597
9598 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9599
9600 * process.c (status_notify): Remove unused var `ro'.
9601
9602 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9603
9604 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9605 more than one visual (Bug#5938).
9606
9607 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9608
9609 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9610 Undefine.
9611
9612 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9613
9614 Remove C_SWITCH_SYSTEM_TEMACS.
9615 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9616 (malloc, realloc, free): Use emacs, not temacs for conditional
9617 definition.
9618
9619 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9620 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9621
9622 Use autoconf, not cpp for some variables.
9623 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9624 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9625 (ALL_CFLAGS): Use them as make variables.
9626 (really-lwlib, really-oldXMenu): Do not pass them.
9627
9628 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9629
9630 * xmenu.c (apply_systemfont_to_dialog): New.
9631 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9632
9633 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9634
9635 * process.c (exec_sentinel): Preserve current-buffer.
9636
9637 * process.c (read_process_output): Move the save-current-buffer to
9638 apply to both the filter and the non-filter branches.
9639
9640 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9641
9642 * s/msdos.h (UNEXEC): New definition.
9643
9644 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9645
9646 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9647 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9648
9649 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9650 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9651 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9652 TRY_WINDOW_CHECK_MARGINS.
9653
9654 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
9655 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9656 width only when it is for padding.
9657
9658 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9659
9660 * xfns.c (Fx_show_tip): Call try_window in a loop until
9661 fonts_changed_p is zero (Bug#2423).
9662
9663 2010-04-08 Eli Zaretskii <eliz@gnu.org>
9664
9665 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9666 the end of TEXT_AREA. (Bug#5856)
9667
9668 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9669
9670 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9671 HAVE_GCONF.
9672
9673 2010-04-08 Eli Zaretskii <eliz@gnu.org>
9674
9675 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9676 prev.orig_type, for resolving type of NSM. (Bug#5858)
9677
9678 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9679
9680 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9681 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9682 in current_font.
9683 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
9684 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9685 New functions.
9686 (syms_of_xsettings): Initialize current_font.
9687 defsubr Sfont_get_system_normal_font.
9688
9689 * xsettings.h (Ffont_get_system_normal_font)
9690 (xsettings_get_system_normal_font): Declare.
9691
9692 * xfns.c (extern xlwmenu_default_font): Remove.
9693 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9694 to xlwmenu.c.
9695
9696 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9697 menu items in UTF-8.
9698
9699 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
9700 (apply_systemfont_to_menu): New function.
9701 (set_frame_menubar, create_and_show_popup_menu):
9702 Call apply_systemfont_to_menu.
9703
9704 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9705
9706 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9707 FRAME_LINE_TO_PIXEL_Y.
9708
9709 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9710 pixelwidth/height.
9711
9712 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9713
9714 Simplify code for HP machines.
9715 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9716 for GNU_LINUX, not needed.
9717 (UNEXEC, NEED_BSDTTY): Move definitions...
9718 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9719
9720 * m/iris4d.h (UNEXEC): Move definition ...
9721 * s/irix6-5.h (UNEXEC): ... here.
9722
9723 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9724
9725 * xfns.c (set_machine_and_pid_properties): New function.
9726 (Fx_create_frame): Call set_machine_and_pid_properties.
9727
9728 2010-04-03 Eli Zaretskii <eliz@gnu.org>
9729
9730 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9731 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
9732 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9733
9734 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9735 in this function. (Bug#5703)
9736
9737 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
9738
9739 * nsterm.h: Fix last change.
9740
9741 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9742
9743 * m/intel386.h (NO_REMAP): Move definition ...
9744 * s/msdos.h (NO_REMAP): ... here.
9745
9746 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9747
9748 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9749 used on those platforms.
9750
9751 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9752
9753 Remove extern errno declarations.
9754 * xterm.c:
9755 * xrdb.c:
9756 * w32term.c:
9757 * unexec.c:
9758 * unexaix.c:
9759 * sysdep.c:
9760 * process.c:
9761 * lread.c:
9762 * keyboard.c:
9763 * floatfns.c:
9764 * filelock.c:
9765 * fileio.c:
9766 * emacs.c (main):
9767 * ecrt0.c:
9768 * dispnew.c:
9769 * callproc.c:
9770 * buffer.c: Remove errno extern declarations.
9771 * s/netbsd.h (NEED_ERRNO): Remove.
9772
9773 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9774
9775 Remove all uses of LIBX11_SYSTEM.
9776 * Makefile.in (LIBX11_SYSTEM): Remove.
9777 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9778 instead.
9779
9780 2010-04-01 Eli Zaretskii <eliz@gnu.org>
9781
9782 Remove support for DJGPP v1.x (bug#5813).
9783
9784 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
9785 * s/msdos.h:
9786 * unexec.c (make_hdr, copy_text_and_data):
9787 * sysdep.c (wait_for_termination, sys_subshell):
9788 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
9789 (IT_set_terminal_modes, __write, _rename, gethostname)
9790 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9791 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9792 the value of __DJGPP__.
9793 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9794 compatibility code.
9795 * lread.c:
9796 * gmalloc.c (memalign):
9797 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9798 * emacs.c (main):
9799 * dosfns.c (init_dosfns):
9800 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9801
9802 2010-04-01 Eli Zaretskii <eliz@gnu.org>
9803
9804 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9805 string with `cursor' property comes from an `after-string'
9806 overlay. (Bug#5816)
9807
9808 2010-04-01 Glenn Morris <rgm@gnu.org>
9809
9810 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9811 Define as Makefile variables.
9812 (LIBX): Use above variables rather than directly using autoconf.
9813
9814 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9815
9816 Clean up BSD_SYSTEM use.
9817 * xterm.c:
9818 * process.c:
9819 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9820 for including <sys/ioctl.h>.
9821 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9822 code is only used for MSDOS.
9823
9824 2010-03-31 Juri Linkov <juri@jurta.org>
9825
9826 * image.c: Add `Qextension_data'.
9827 (syms_of_image): Initialize and staticpro `Qextension_data'.
9828 (Fimage_metadata): Rename from `Fimage_extension_data'.
9829 (gif_load): Put GIF extension data to the property
9830 `Qextension_data'.
9831
9832 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
9833
9834 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9835 * nsterm.h: Fix prototype.
9836
9837 2010-03-31 Eli Zaretskii <eliz@gnu.org>
9838
9839 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9840 trailing whitespace in right-to-left rows.
9841
9842 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9843
9844 Get rid of the direct_output optimizations.
9845 * keyboard.c (nonundocount): Remove extern declaration.
9846 (command_loop_1): Remove brittle optimisation for cheap and
9847 common operations.
9848 * xdisp.c (redisplay_internal): Don't bother checking
9849 redisplay_performed_directly_p any more.
9850 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9851 any more.
9852 * dispnew.c (redisplay_performed_directly_p)
9853 (direct_output_for_insert, direct_output_forward_char):
9854 * dispextern.h (redisplay_performed_directly_p)
9855 (direct_output_for_insert, direct_output_forward_char): Remove.
9856 * cmds.c (nonundocount): Make it static.
9857
9858 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
9859
9860 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9861
9862 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
9863
9864 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9865 invisible (Bug#5766).
9866
9867 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9868
9869 * xdisp.c (x_consider_frame_title, update_window_cursor):
9870 Remove HAVE_NS conditionals.
9871 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9872
9873 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9874 filename for the title.
9875 (ns_set_doc_edited): Do nothing if the selected window is a
9876 minibuffer window.
9877
9878 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9879 ns_set_doc_edited.
9880
9881 * nsterm.m: Remove unneeded prototype.
9882
9883 2010-03-31 Glenn Morris <rgm@gnu.org>
9884
9885 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9886 in the DOC file. (Bug#5336)
9887
9888 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
9889
9890 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9891
9892 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9893
9894 * window.c (keys_of_window): Remove redundant/overridden bindings.
9895
9896 2010-03-30 Eli Zaretskii <eliz@gnu.org>
9897
9898 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9899 Restore original behavior when the iterator is not bidi_p.
9900
9901 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9902
9903 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9904
9905 2010-03-30 Eli Zaretskii <eliz@gnu.org>
9906
9907 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9908 are outside the range of cached character positions.
9909
9910 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
9911
9912 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9913
9914 2010-03-30 Eli Zaretskii <eliz@gnu.org>
9915
9916 Initial support for bidirectional editing.
9917
9918 * Makefile.in (obj): Include bidi.o.
9919 (bidi.o): New target.
9920
9921 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9922 ($(BLD)/bidi.$(O)): New target.
9923
9924 * bidi.c: New file.
9925
9926 * buffer.h (struct buffer): New members bidi_display_reordering
9927 and bidi_paragraph_direction.
9928
9929 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9930 and bidi_paragraph_direction.
9931 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9932 and bidi-paragraph-direction.
9933 (Fbuffer_swap_text): Swap the values of
9934 bidi_display_reordering and bidi_paragraph_direction.
9935
9936 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9937 (bidi_type_t, bidi_dir_t): New types.
9938 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9939 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9940 prev_stop, base_level_stop, and eol_pos.
9941 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9942 (IT_STACK_SIZE): Enlarge to 5.
9943 (struct glyph_row): New member reversed_p.
9944 <string_buffer_position>: Update prototype.
9945 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9946 glyph_row if bidi_it.paragraph_dir == R2L.
9947 (struct glyph): New members resolved_level and bidi_type.
9948
9949 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9950 processing or buffer's direction is right-to-left.
9951 (prepare_desired_row): Preserve the reversed_p flag.
9952 (row_equal_p): Compare the reversed_p attributes as well.
9953
9954 * xdisp.c (init_iterator): Initialize it->bidi_p.
9955 Call bidi_init_it and set it->paragraph_embedding from the current
9956 buffer's value of bidi_paragraph_direction.
9957 (reseat_1): Initialize bidi_it.first_elt.
9958 (set_iterator_to_next, next_element_from_buffer): Use the value of
9959 paragraph_embedding to determine the paragraph direction.
9960 (set_iterator_to_next): Under bidi reordering, call
9961 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9962 new_paragraph flag is set in the bidi iterator.
9963 (next_element_from_buffer): If bidi_it.first_elt is set,
9964 initialize paragraph direction and find the first character to
9965 display in the visual order. If reseated to a middle of a line,
9966 prime the bidi iterator starting at the line's beginning.
9967 Handle the situation where we overstepped stop_charpos due to
9968 non-linearity of the bidi iteration. Likewise for when we back up
9969 beyond the previous stop_charpos. When moving across stop_charpos,
9970 record it in prev_stop.
9971 (display_line): Set row->end and it->start for the next row to the
9972 next character in logical order. Always extend reversed_p rows to
9973 the end of line, even if they end at ZV. Copy the reversed_p flag
9974 to the next glyph row. Keep calling set_cursor_from_row for
9975 bidi-reordered rows even if we already have a possible candidate
9976 for cursor position. Set row_end after all the row's glyphs have
9977 been produced, by looping over the glyphs. Record the position
9978 after EOL in it->eol_pos, and use it to set end_pos of the last
9979 row produced for a continued line.
9980 <Qright_to_left, Qleft_to_right>: New variables.
9981 (syms_of_xdisp): Initialize and staticpro them.
9982 (string_buffer_position_lim): New function.
9983 (string_buffer_position): Most of code moved to
9984 string_buffer_position_lim. Last argument and return value are
9985 now EMACS_INT; all callers changed.
9986 (set_cursor_from_row): Rewritten to support bidirectional text and
9987 reversed glyph rows.
9988 (text_outside_line_unchanged_p, try_window_id):
9989 Disable optimizations if we are reordering bidirectional text and the
9990 paragraph direction can be affected by the change.
9991 (append_glyph, append_composite_glyph)
9992 (produce_image_glyph, append_stretch_glyph): Set the
9993 resolved_level and bidi_type members of each glyph.
9994 (append_glyph): If the glyph row is reversed, prepend the glyph
9995 rather than appending it.
9996 (handle_stop_backwards): New function.
9997 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
9998 (reseat): Call handle_stop_backwards to recompute prev_stop and
9999 base_level_stop for the new position.
10000 (handle_invisible_prop): Under bidi iteration, skip invisible text
10001 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10002 paragraph direction. Update IT->prev_stop after skipping
10003 invisible text.
10004 (move_it_in_display_line_to): New variables prev_method
10005 and prev_pos. Compare for strict equality in
10006 BUFFER_POS_REACHED_P.
10007 (try_cursor_movement): Examine all the candidate rows that occlude
10008 point, to return the best match. If rows are bidi-reordered
10009 and point moved backwards, back up to the row that is not a
10010 continuation line, and start looking for a suitable row from
10011 there.
10012
10013 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10014 rather than appending, if the glyph_row's reversed_p flag is set.
10015 Set the resolved_level and bidi_type members of each glyph.
10016
10017 * .gdbinit (pbiditype): New command.
10018 (pgx): Use it to display bidi level and type of the glyph.
10019 (pitx): Display some bidi information about the iterator.
10020 (prowlims, pmtxrows): New commands.
10021
10022 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10023
10024 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10025 * s/usg5-4.h (LIBS_DEBUG):
10026 * s/irix6-5.h (C_DEBUG_SWITCH):
10027 * s/gnu-linux.h (LIBS_DEBUG):
10028 * s/darwin.h (LIBS_DEBUG):
10029 * s/bsd-common.h (LIBS_DEBUG):
10030 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10031 * m/iris4d.h (LIBS_DEBUG):
10032 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10033
10034 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10035 (LIBS_DEBUG): Remove definition.
10036
10037 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10038
10039 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10040 Windows.
10041
10042 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10043
10044 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10045 `connect' (Bug#5723).
10046
10047 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10048
10049 * process.c (Fmake_network_process): Call `select' for interrupted
10050 `connect' rather than creating new socket (Bug#5173).
10051
10052 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10053
10054 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10055
10056 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10057
10058 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10059
10060 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10061
10062 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10063 XLoadQueryFont.
10064
10065 2010-03-24 Kenichi Handa <handa@m17n.org>
10066
10067 * coding.c (decode_coding_ccl): Fix previous change for the
10068 multibyte case.
10069 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10070 case that the output buffer is fullfilled.
10071 (encode_coding): Setup ccl program here.
10072
10073 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10074
10075 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10076
10077 Simplify LIBS_MACHINE definitions.
10078 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10079 * m/iris4d.h (LIBS_MACHINE): Likewise.
10080 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10081 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10082 * s/netbsd.h: Remove commented out code.
10083
10084 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10085
10086 Remove dead code dealing with POSIX_SIGNALS.
10087 * atimer.c (set_alarm): Remove dead code, all USG systems define
10088 POSIX_SIGNALS.
10089 * data.c (arith_error): Likewise.
10090 * keyboard.c (input_available_signal, handle_user_signal)
10091 (interrupt_signal): Likewise.
10092 * process.c (sigchld_handler): Likewise.
10093 (create_process): Remove if 0 code. Remove HPUX conditional when
10094 !defined (POSIX_SIGNALS), it cannot be true.
10095 * syssignal.h: Remove USG5_4 and USG conditionals when
10096 !POSIX_SIGNALS, they cannot be true.
10097
10098 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10099 NO_SOCK_SIGIO, not used anymore.
10100
10101 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10102
10103 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10104 support vax on BSDs.
10105
10106 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10107 * s/aix4-2.h (ORDINARY_LINK): ... here.
10108
10109 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10110
10111 * Makefile.in (abs_builddir): Define.
10112 (bootstrap_exe): Use it.
10113 (VPATH): Use $(srcdir) instead of @srcdir@.
10114
10115 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10116
10117 * Makefile.in (bootstrap_exe): Use an absolute name.
10118
10119 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10120
10121 Remove support for old GNU/Linux using libc version 5.
10122 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10123 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10124
10125 Consolidate redundant definitions in s/bsd-common.h.
10126 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10127 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10128 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10129 doing it in all files that include this one.
10130 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10131 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10132 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10133 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10134 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10135 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10136 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10137 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10138 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10139
10140 Consolidate redundant definitions.
10141 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10142 it's undefined in all files that include this one.
10143 (POSIX_SIGNALS): Define here instead of doing it in all files that
10144 include this one.
10145 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10146 (POSIX_SIGNALS): Do not define.
10147 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10148 (POSIX_SIGNALS): Do not define.
10149 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10150 (POSIX_SIGNALS): Do not define.
10151
10152 Remove support for old UNIX System V systems.
10153 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10154 * s/usg-5-4-2.h: Remove.
10155
10156 Remove support for Solaris on PPC and for old versions.
10157 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10158 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10159 that cancel each other.
10160 * s/sol2-3.h:
10161 * s/sol2-4.h:
10162 * s/sol2-5.h: Remove.
10163 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10164 (NO_REMAP): Remove, unused.
10165 (UNEXEC): Move definition ...
10166 * s/aix4-2.h (UNEXEC): ... here.
10167
10168 * s/openbsd.h: Remove support for non-ELF and for systems that do
10169 not support shared libraries.
10170 * s/netbsd.h:
10171 * s/freebsd.h: Likewise.
10172
10173 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10174
10175 Remove non-working support for lynxos 3.0.
10176 * s/lynxos.h: Remove file.
10177
10178 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10179 COFF_BSD_SYMBOLS, nothing defines it anymore.
10180
10181 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10182
10183 Remove obsolete uses of HAVE_SHM.
10184 * emacs.c (standard_args):
10185 (Fdump_emacs):
10186 (syms_of_emacs): Remove code depending on HAVE_SHM.
10187
10188 * alloc.c: Remove HAVE_SHM dependent definition.
10189
10190 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10191
10192 2010-03-18 Glenn Morris <rgm@gnu.org>
10193
10194 * emacs.c (USAGE4): Hard-code bug address.
10195 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10196 (bug_reporting_address): Remove.
10197 (main): Don't call bug_reporting_address.
10198
10199 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10200 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10201
10202 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
10203
10204 * xfns.c (Fx_create_frame):
10205 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10206 on left.
10207
10208 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10209
10210 * editfns.c (Fformat): Account for string precision when computing
10211 field width (Bug#5710).
10212
10213 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
10214
10215 * xfns.c (Fx_create_frame): Set default to Qright.
10216
10217 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10218 all window systems.
10219
10220 2010-03-12 Eli Zaretskii <eliz@gnu.org>
10221
10222 These changes remove termcap.c from the build on Posix platforms.
10223 * Makefile.in (termcapobj): Move termcap.o from here...
10224 (MSDOS_OBJ): ...to here.
10225 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10226 now identical to when LIBS_TERMCAP is defined.
10227
10228 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10229
10230 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10231
10232 * config.in: Regenerated. (See top-level ChangeLog.)
10233
10234 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
10235
10236 * Branch for 23.2.
10237
10238 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10239
10240 Cleanup setup of gl_state in various parts of the code.
10241 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10242 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10243 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10244 (skip_chars):
10245 * regex.c (regex_compile): Use it.
10246 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10247 it's now set in regex_compile when/if we need it.
10248
10249 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10250
10251 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10252 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10253 (QUIT): Use it to consolidate code and remove redundancy.
10254 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10255
10256 * regex.c (regex_compile): Setup gl_state as well.
10257
10258 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10259 (in_classes): Use CONSP before XCAR/XCDR.
10260
10261 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10264 definitions, so that keyboard macros are correctly handled
10265 (Bug#5481).
10266
10267 2010-03-02 Eli Zaretskii <eliz@gnu.org>
10268
10269 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10270 text that could be relocated inside the call to emacs_mule_char.
10271 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10272 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10273
10274 2010-03-02 Kenichi Handa <handa@m17n.org>
10275
10276 * character.c (parse_str_as_multibyte): Fix handling of the
10277 multibyte form of raw-bytes.
10278 (str_as_multibyte): Likewise.
10279
10280 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10281 form of raw-bytes.
10282
10283 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
10284
10285 * charset.c (load_charset_map_from_file)
10286 (load_charset_map_from_vector): Zero out allocated
10287 charset_map_entries before using them.
10288
10289 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10290
10291 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10292
10293 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
10294
10295 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10296 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10297
10298 2010-02-26 Kenichi Handa <handa@m17n.org>
10299
10300 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10301
10302 * xdisp.c (reseat_to_string): Fix previous change.
10303
10304 2010-02-26 David Reitter <david.reitter@gmail.com>
10305
10306 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10307 Lisp_Object (Bug#4736).
10308
10309 2010-02-25 Kenichi Handa <handa@m17n.org>
10310
10311 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10312
10313 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10314
10315 * xterm.c (XTflash): Move declarations before statements.
10316
10317 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10318 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10319 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10320 (xg_create_tool_bar): Remove unused variables.
10321 (x_wm_set_size_hint): Move declarations before statements.
10322 (xg_create_frame_widgets): Remove variable grav.
10323
10324 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10327
10328 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10329
10330 * term.c (fatal): Add a final \n if needed (bug#5596).
10331
10332 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
10333
10334 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10335
10336 2010-02-18 Glenn Morris <rgm@gnu.org>
10337
10338 * callint.c (Finteractive): Doc fix.
10339
10340 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10341
10342 * coding.c (record_conversion_result):
10343 Handle CODING_RESULT_INSUFFICIENT_DST.
10344 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10345 memory allocation error.
10346
10347 2010-02-17 Kenichi Handa <handa@m17n.org>
10348
10349 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10350 Fix for the case that the output buffer is fullfilled.
10351 (decode_coding): Setup ccl program here. Keep looping when the
10352 decoder stopped because the output buffer is
10353 fullfilled (bug#5534).
10354
10355 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10356
10357 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10358
10359 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
10360 bug #5571.
10361 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
10362 overdrawn.
10363
10364 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10365
10366 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10367 doing_interact here.
10368 (ice_connection_closed): New function.
10369 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10370 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10371 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10372 returns I/O error.
10373 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10374 bug #5512.
10375
10376 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
10377
10378 * nsfont.m (nsfont_open): The system's value for the font descent
10379 is negative, so round it down to avoid clipping.
10380
10381 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
10382
10383 * charset.c (load_charset_map_from_file)
10384 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
10385 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
10386
10387 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
10388
10389 * charset.c (load_charset_map_from_file): Allocate large
10390 charset_map_entries structure on the heap rather than the stack.
10391 (Bug#5526).
10392
10393 2010-01-31 Kenichi Handa <handa@m17n.org>
10394
10395 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
10396 size in NAME is invalid, return -1 (Bug#5396).
10397
10398 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
10399
10400 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10401 <deactivated@gmail.com> (Bug#3605).
10402
10403 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
10404
10405 * fileio.c (Frename_file): Correctly rename symlinks to
10406 directories (Bug#5496).
10407
10408 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10409
10410 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10411
10412 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10413
10414 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10415
10416 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
10417
10418 * frame.c (DEFAULT_ROWS): Change default to 35.
10419
10420 * xfns.c (x_default_font_parameter): Change default XFT font to
10421 monospace-10 (Bug#3643).
10422
10423 2010-01-29 Eli Zaretskii <eliz@gnu.org>
10424
10425 * w32inevt.c (key_event): Remove unnecessary comparison of
10426 event->uChar.AsciiChar with 128.
10427
10428 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
10429
10430 * fileio.c (Frename_file): Fix last change (Bug#5487).
10431
10432 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10433
10434 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10435
10436 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10437
10438 * xfns.c (Fx_create_frame): Remove window size matching code from
10439 2010-01-15.
10440 (x_get_current_desktop, x_get_desktop_workarea): Remove.
10441
10442 2010-01-27 Jason Rumney <jasonr@gnu.org>
10443
10444 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
10445 (key_event): Use unicode for characters 128 and higher (Bug#4567).
10446
10447 2010-01-27 Kenichi Handa <handa@m17n.org>
10448
10449 * regex.c (analyse_first): Fix setting of fastmap for unibyte
10450 pattern string (Bug#4209).
10451
10452 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
10453
10454 * fileio.c (Frename_file): Call copy-directory and
10455 delete-directory for directories, in order to handle cross-device
10456 renaming (Bug#3353).
10457
10458 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10459
10460 * xfns.c (Fx_create_frame): If frame height is too big, try
10461 sizes 24 and 10. Bug #3643.
10462
10463 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10464
10465 Try and fix bug#788, hopefully for real this time.
10466 * keymap.c (shadow_lookup): Add `remap' arg.
10467 (describe_map, describe_vector): Update calls to shadow_lookup.
10468 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10469 `remapped' so this flag is applicable to `sequence'. Be careful to
10470 perform remapping during shadow_lookup check of remapped_sequences.
10471
10472 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10473
10474 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10475 png_check_sig, which has been removed in libpng 1.4.
10476
10477 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10478
10479 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10480 lacks this header file).
10481
10482 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10483
10484 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10485 as in Emacs 22.
10486
10487 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10488
10489 * lisp.h (make_pure_string): String pointer arg now points to const.
10490
10491 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10492 args now point to const.
10493
10494 2010-01-22 Eli Zaretskii <eliz@gnu.org>
10495
10496 * lread.c (Fload): Don't treat files without .elc extension as
10497 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10498 them. (bug#5303)
10499
10500 2010-01-20 Kenichi Handa <handa@m17n.org>
10501
10502 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10503 treat the source as actual byte sequence.
10504
10505 2010-01-19 Alan Mackenzie <acm@muc.de>
10506
10507 Fix spurious before-change-functions invocation from (insert ?\n).
10508 * textprop.c (set_text_properties): Rename parameter
10509 `signal_after_change_p' to `coherent_change_p', and make the
10510 invocation of `modify_region' conditional on it.
10511
10512 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10513
10514 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10515 for debug purpose.
10516 (syms_of_xsettings): Declare xft-settings.
10517
10518 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
10519
10520 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10521
10522 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10523
10524 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10525
10526 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
10527
10528 * emacs.c (standard_args): Adjust arg priorities to reflect how
10529 they are processed in startup.el.
10530
10531 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10532
10533 * Makefile.in (lisp, shortlisp): Update.
10534
10535 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10536
10537 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10538 code, link the new kboard into all_kboard before running Lisp code,
10539 and protect the new terminal with GCPRO (Bug#5365).
10540 (x_term_init): Remove unused var `atom'.
10541 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10542
10543 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10544
10545 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10546 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10547 to find out usable size of the desktop. Don't make frames larger than
10548 this. Bug #3643.
10549
10550 2010-01-15 Kenichi Handa <handa@m17n.org>
10551
10552 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10553
10554 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * nsterm.m (Qnone): Define.
10557
10558 * nsfns.m (Qnone): Move definition to nsterm.m.
10559
10560 2010-01-14 Kenichi Handa <handa@m17n.org>
10561
10562 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10563 systems.
10564
10565 2010-01-14 Kenichi Handa <handa@m17n.org>
10566
10567 Make auto-composition work on all buffers even if they are
10568 fundamental mode.
10569
10570 * composite.c (Vauto_composition_mode): New variable.
10571 (composition_compute_stop_pos): Check Vauto_composition_mode
10572 instead of Vauto_composition_function.
10573 (composition_adjust_point, Ffind_composition_internal): Likewise.
10574 (syms_of_composite): Declare Lisp variable
10575 "auto-composition-mode" here.
10576
10577 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
10578
10579 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10580 during call to vendor-specific-keysyms (Bug#5365).
10581
10582 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10583
10584 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10585 Call SIGNAL_THREAD_CHECK (Bug#5333).
10586
10587 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10588 Call SIGNAL_THREAD_CHECK.
10589
10590 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10591
10592 Try to fix bug#5314. This is probably not the final word, tho.
10593 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10594 recent-auto-save-p as a side-effect.
10595 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10596 * buffer.c (Fkill_buffer, reset_buffer):
10597 * editfns.c (Fsubst_char_in_region):
10598 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10599 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10600
10601 2010-01-13 Kenichi Handa <handa@m17n.org>
10602
10603 Display buffer name, etc. in mode line by composing correctly.
10604
10605 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10606 STRING is not nil.
10607 (display_mode_element): Adjust for the change of
10608 decode_mode_spec and display_line.
10609 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10610 (display_string): Handle the case that STRING is non-null and
10611 LISP_STRING is not nil.
10612
10613 * xterm.c (x_draw_composite_glyph_string_foreground):
10614 Pay attention to s->face->overstrike.
10615
10616 * composite.c (composition_reseat_it): Don't check PT if STRING is
10617 non nil.
10618
10619 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10620
10621 * keyboard.c (read_char): Don't apply previous change when current
10622 buffer is unchanged by command execution.
10623
10624 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10625
10626 * keyboard.c (read_char): Return after executing from special map.
10627
10628 2010-01-12 Glenn Morris <rgm@gnu.org>
10629
10630 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10631 bug-gnu-emacs rather than emacs-pretest-bug.
10632
10633 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
10634
10635 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10636 initializing the Lisp variables that depend on them.
10637
10638 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10639
10640 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10641 Clear areas that will not be updated after change of menu bar lines.
10642 Clear the menu bar window's current matrix when the window gets empty.
10643
10644 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
10645
10646 * intervals.h, textprop.c (extend_property_ranges): Return value
10647 and args changed. Discard properties that begin at or after the
10648 new end (Bug#5306).
10649
10650 * editfns.c (Fformat): Caller changed.
10651
10652 * nsterm.m (ns_set_default_prefs): Delete function.
10653 (syms_of_nsterm): Initialize ns_command_modifier,
10654 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10655 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10656
10657 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10658 position (Bug#4040).
10659
10660 2010-01-09 Eli Zaretskii <eliz@gnu.org>
10661
10662 * editfns.c (Ffloat_time): Doc fix.
10663
10664 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10665
10666 * xfns.c (Fx_create_frame): Don't create frame larger than display
10667 by default bug#3643.
10668
10669 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10670
10671 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10672 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10673 windows above internal border.
10674
10675 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10676 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10677 windows above internal border.
10678
10679 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10680 tool bar windows specially.
10681
10682 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10683
10684 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10685 specially.
10686 (XTflash): Take account of menu bar height.
10687
10688 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10689 specially.
10690
10691 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10692
10693 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
10694 also be true before we can return early (bug #5339).
10695
10696 2010-01-06 David Reitter <david.reitter@gmail.com>
10697
10698 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10699 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10700 (Bug#3233).
10701
10702 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10703
10704 * font.c (font_open_entity): Enable chache and call cached_font_ok
10705 for the driver if defined.
10706 (QCuser_spec): New symbol.
10707 (font_spec_from_name): Save name as user-spec.
10708 (font_load_for_lface): Keep user-spec instead of name.
10709 (font_open_by_name): Save name as user-spec.
10710 (syms_of_font): Initialize QCuser_spec.
10711 (font_clear_prop): Clear name if it exists in font (bug#5157).
10712
10713 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10714 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10715 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10716
10717 * font.h (struct font_driver): Add cached_font_ok.
10718
10719 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10720
10721 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10722
10723 * xterm.c (x_new_font): Move code for setting rows/cols before
10724 resizing ...
10725 (x_set_window_size): ... to here. Bug #2568.
10726
10727 * gtkutil.c (xg_clear_under_internal_border): New function.
10728 (xg_frame_resized, xg_frame_set_char_size):
10729 Call xg_clear_under_internal_border.
10730 (xg_update_scrollbar_pos): Clear under old scroll bar position.
10731
10732 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
10733
10734 * keyboard.c (read_key_sequence): Catch keyboard switch after
10735 making a new tty frame (Bug#5095).
10736
10737 2010-01-05 Kenichi Handa <handa@m17n.org>
10738
10739 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10740
10741 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10742
10743 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10744 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10745 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10746
10747 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
10748
10749 * dbusbind.c (xd_add_watch): Improve debug message.
10750 (xd_remove_watch): Improve debug message. If DATA is the session
10751 bus, unset D-Bus session environment.
10752 (Fdbus_init_bus): Pass the bus as argument to
10753 dbus_connection_set_watch_functions. (Bug#5283)
10754
10755 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
10756
10757 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10758
10759 * lread.c (syms_of_lread): Make it clearer that these are the
10760 names of loaded files (Bug#5068).
10761
10762 * eval.c (run_hook_with_args): Handle the case where the global
10763 value has the obsolete single-function form (Bug#5026).
10764
10765 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
10766
10767 * minibuf.c (Fall_completions): Minor optimization.
10768
10769 2009-12-26 Eli Zaretskii <eliz@gnu.org>
10770
10771 * .gdbinit (pgx): Fix display of composite glyphs.
10772 Display cmp.from and cmp.to as well.
10773 (pitx): Fix last change.
10774
10775 2009-12-25 Kenichi Handa <handa@m17n.org>
10776
10777 * composite.h (composition_adjust_point): Update prototype.
10778
10779 * composite.c (composition_reseat_it): Don't make a composition
10780 spanning over point.
10781 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10782 composable characters.
10783 (composition_adjust_point): New arg NEW_PT. Callers changed.
10784
10785 * keyboard.c (command_loop_1): Force redisplay if the last point
10786 was within a composition.
10787 (adjust_point_for_property): Don't adjust point for automatic
10788 composition when called after buffer modification.
10789
10790 2009-12-19 Eli Zaretskii <eliz@gnu.org>
10791
10792 * .gdbinit (pitx): Don't use enum names, use their values.
10793 Remove reference to non-existing value GET_FROM_COMPOSITION.
10794 (pgx): Don't use enum names, use their values.
10795 (pitmethod): New helper command.
10796 (pitx): Use it to display iteration method.
10797 (pgrowit): New command.
10798
10799 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10800
10801 Update dependencies in Makefile.in.
10802
10803 * Makefile.in (alloc.o): Depend on termhooks.h.
10804 (atimer.o): Depend on blockinput.h.
10805 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10806 and frame.h.
10807 (callint.o): Depend on systime.h, coding.h, and composite.h.
10808 (callproc.o): Depend on buffer.h.
10809 (casefiddle.o): Don't depend on charset.h.
10810 (casetab.o): Depend on character.h.
10811 (ccl.o): Depend on composite.h.
10812 (chartab.o): Depend on ccl.h.
10813 (cm.o): Depend on dispextern.h.
10814 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10815 (coding.o): Don't depend on $(INTERVALS_H).
10816 (composite.o): Don't depend on dispextern.h explicitly (it's in
10817 $(INTERVALS_H)). Depend on ccl.h.
10818 (data.o): Depend on systime.h, coding.h, composite.h,
10819 dispextern.h, font.h, and ccl.h.
10820 (dired.o): Depend on composite.h.
10821 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10822 composite.h (it's in $(INTERVALS_H)).
10823 (doc.o): Depend on systime.h, coding.h, and composite.h.
10824 (editfns.o): Don't depend explicitly on dispextern.h.
10825 (emacs.o): Depend on frame.h and coding.h.
10826 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10827 (fileio.o): Depend on frame.h and commands.h. Don't depend
10828 explicitly on dispextern.h.
10829 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10830 composite.h.
10831 (fns.o): Don't depend on termhooks.h.
10832 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10833 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10834 coding.h, $(INTERVALS_H), window.h, xterm.h.
10835 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10836 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10837 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10838 fontset.h, ccl.h, and ftfont.h.
10839 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10840 (gtkutil.o): Depend on dispextern.h and composite.h.
10841 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10842 termhooks.h, and ccl.h.
10843 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10844 (intervals.o): Depend on systime.h and coding.h.
10845 (keyboard.o): Depend on composite.h and coding.h.
10846 (keymap.o): Depend on coding.h and frame.h.
10847 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10848 (macros.o): Depend on systime.h, coding.h, and composite.h.
10849 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10850 and atimer.h.
10851 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10852 dispextern.h explicitly.
10853 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10854 Don't depend explicitly on dispextern.h and composite.h.
10855 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10856 (regex.o): Don't depend on charset.h.
10857 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10858 (search.o): Don't depend explicitly on composite.h.
10859 (sound.o): Depend on atimer.h and systime.h.
10860 (syntax.o): Don't depend explicitly on composite.h.
10861 (sysdep.o): Depend on coding.h and composite.h.
10862 (term.o): Depend on xterm.h and buffer.h.
10863 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10864 (textprop.o): Don't depend on dispextern.h explicitly.
10865 (undo.o): Depend on dispextern.h.
10866 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10867 dispextern.h and composite.h explicitly.
10868 (xdisp.o): Depend on ccl.h.
10869 (xfaces.o): Depend on coding.h and ccl.h.
10870 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10871 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10872 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10873 ftfont.h.
10874 (xgselect.o): New dependency.
10875 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10876 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10877 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10878 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10879 (xsmfns.o): Depend on frame.h and dispextern.h.
10880 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10881 sysselect.h.
10882
10883 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10884
10885 * font.c (Fclear_font_cache): Pass correct cache argument to
10886 font_clear_cache.
10887
10888 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10889
10890 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10891 twice.
10892
10893 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
10894
10895 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10896 calling file-remote-p. Reported by Jim Meyering.
10897
10898 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
10899
10900 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
10901 avoid compiler warnings. (Bug #5217)
10902
10903 2009-12-14 Kenichi Handa <handa@m17n.org>
10904
10905 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10906 in 8-bit encoding.
10907
10908 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
10909
10910 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10911 tooltip windows.
10912
10913 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10914
10915 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10916 Xatom_net_window_type.
10917
10918 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10919 Xatom_net_window_type.
10920
10921 * xterm.c (my_log_handler): New function.
10922 (x_term_init): Set my_log_handler as log handler during gtk_init
10923 so we can filter out buggy messages. (Bug #5120).
10924
10925 * xterm.c (xg_scroll_callback): Parameter list changed,
10926 use parameter GtkScrollType to determine scroll/line/page.
10927 Only allow dragging if a button < 4 is grabbed (bug #5177).
10928 (xg_end_scroll_callback): New function.
10929 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10930 xg_create_scroll_bar.
10931
10932 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10933 (scroll_end_callback): Remove.
10934 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10935 button-release-event. Replace value-changed event with change-value,
10936 bug #5177.
10937 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10938 bug #5177.
10939
10940 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10941 (xg_create_scroll_bar): Add GCallback end_callback.
10942
10943 * xftfont.c (QClcdfilter): New variable.
10944 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10945 (syms_of_xftfont): Initialize QClcdfilter.
10946
10947 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10948
10949 * xsettings.c (struct xsettings): Add member seen.
10950 (parse_xft_settings): Update member seen with what we have read.
10951 Return non-zero if Xft-settings have been parsed, 0 otherwise.
10952 (apply_xft_settings): Only update Xft settings with what member seen
10953 indicates as new.
10954
10955 2009-12-12 Eli Zaretskii <eliz@gnu.org>
10956
10957 * dispextern.h (struct text_pos): Use EMACS_INT.
10958 (struct glyph): Use EMACS_INT for charpos.
10959 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10960 region_beg_charpos, region_end_charpos,
10961 redisplay_end_trigger_charpos, and also for
10962 iterator_stack_entry.end_charpos and
10963 iterator_stack_entry.stop_charpos.
10964
10965 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10966
10967 * gtkutil.c (scroll_end_callback): New function (bug #5177).
10968 (xg_create_scroll_bar): Call scroll_end_callback on button release
10969 event (bug #5177).
10970 (xg_event_is_for_scrollbar): != replaced with ==.
10971
10972 2009-12-12 Kenichi Handa <handa@m17n.org>
10973
10974 * ftfont.c (struct ftfont_info): New member matrix.
10975 (ftfont_open): Setup xftfont_info->matrix.
10976 (MFLTFontFT): New member matrix.
10977 (FLOOR, CEIL, ROUND): New macros.
10978 (ftfont_get_metrics): Handle matrix transformation.
10979 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10980
10981 * xftfont.c (struct xftfont_info): New member matrix.
10982 (xftfont_open): Setup xftfont_info->matrix.
10983
10984 2009-12-10 Kenichi Handa <handa@m17n.org>
10985
10986 * xdisp.c (append_space_for_newline): Consider face-remapping.
10987
10988 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10989
10990 * xsettings.c: Include "keyboard.h".
10991
10992 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10993
10994 Fix implicit function declarations.
10995 * cmds.c: Include "frame.h".
10996 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10997 * frame.h: Move declaration of delete_frame outside of
10998 HAVE_WINDOW_SYSTEM.
10999
11000 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11001
11002 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11003
11004 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11005 GTK builds.
11006
11007 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11008
11009 * unexelf.c (unexec): Don't search for .data twice.
11010
11011 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11012
11013 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11014 if push failed.
11015 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11016 of push_display_prop (Bug#5000).
11017
11018 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11019 value of font_list_entities (Bug#5085).
11020
11021 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11022
11023 Fix `string-to-number' to deal consistently with integers and floats.
11024 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11025 trailing characters, not just whitespace.
11026 (read1): Pass new arg 0 to keep old behavior.
11027 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11028 trailing chars, as it is already done for integers. Doc fixes.
11029 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11030
11031 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11032
11033 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11034 Delete unused enumeration value.
11035
11036 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11037
11038 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11039
11040 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11041
11042 * process.c (Fmake_network_process): Fix up the tests for
11043 "connectionless socket", so they DTRT for seqpacket sockets as well.
11044
11045 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11046
11047 * process.c (Qseqpacket): New symbol.
11048 (HAVE_SEQPACKET): New macro.
11049 (Fmake_network_process): Accept new :type `seqpacket'.
11050 (init_process): Add `seqpacket' feature when applicable.
11051 (syms_of_process): Initialize Qseqpacket.
11052
11053 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11054
11055 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11056 if entity is Qnil.
11057
11058 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11059
11060 * print.c (print_preprocess): Preprocess the key_and_value table of
11061 hashtables, even tho they're "hidden" (bug#5082).
11062
11063 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11064
11065 * frame.c (frame_make_pointer_invisible)
11066 (frame_make_pointer_visible): Declare f before statements.
11067
11068 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11069
11070 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11071 omitted dependencies on lisp.h.
11072
11073 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11074
11075 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11076 is NULL.
11077
11078 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11079
11080 * frame.c (frame_make_pointer_invisible)
11081 (frame_make_pointer_visible): Just return if there isn't any selected
11082 frame.
11083
11084 * search.c (simple_search): Remove warning by making *p const.
11085
11086 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11087
11088 * xdisp.c (power_letter): Remove duplicate const.
11089
11090 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11091
11092 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11093
11094 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11095 defaults (bug #5025).
11096
11097 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11098
11099 * insdel.c (adjust_markers_for_delete): Move it in the
11100 right direction! (bug#4803)
11101
11102 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11103
11104 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11105
11106 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11107
11108 2009-11-24 Glenn Morris <rgm@gnu.org>
11109
11110 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11111
11112 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11113
11114 * Makefile.in: Must create deps for ecrt0.o in its rule.
11115
11116 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11117 because that is what Gtk+ font dialog understands.
11118
11119 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11120 of Fcopy_sequence.
11121 (font_open_by_name): Put name given into QCname for font-object returned.
11122
11123 * frame.c (x_set_font): Save original font name as frame parameter
11124 font-parameter.
11125
11126 * xsettings.c (set_default_xft_settings): New function.
11127 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11128 is found.
11129
11130 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11131
11132 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11133 searching backwards through multibyte buffer.
11134
11135 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11136
11137 * xterm.c: #include xgselect.h.
11138 (x_initialize): Call xgselect_initialize.
11139
11140 * xsettings.c (something_changedCB): C++ comments => C comments.
11141 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11142 does that now.
11143
11144 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11145 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11146 (scroll_bar_button_cb): Remove.
11147 (create_menus): C++ comments => C comments. Don't bind grab-notify
11148 event.
11149 (xg_create_scroll_bar): Don't bind button-press-event and
11150 button-release-event.
11151
11152 * process.c: Include xgselect.h if defined (USE_GTK) ||
11153 defined (HAVE_GCONF).
11154 (wait_reading_process_output): Call xg_select for the same condition.
11155
11156 * xgselect.c (xg_select): New function to better integrate with
11157 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11158
11159 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11160
11161 * Makefile.in (XOBJ): Add xgselect.o.
11162
11163 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11164
11165 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11166 Remove ignored second argument. All callers changed.
11167 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11168 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11169 * xdisp.c (string_char_and_length): Likewise.
11170
11171 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11172
11173 * xterm.c (x_new_font):
11174 * print.c (print_object):
11175 * cmds.c (Fself_insert_command): Move declarations before statements.
11176
11177 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11178
11179 * s/cygwin.h: Remove unneeded linker flags.
11180
11181 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11182
11183 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11184
11185 * xsettings.h: Declare xsettings_get_system_font.
11186
11187 * xsettings.c (xsettings_get_system_font): New function.
11188 (init_gconf): No use initiating gconf unless we have Xft also.
11189 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11190 HAVE_GCONF.
11191
11192 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11193 add a blank entry so it doesn't collapse into nothing.
11194
11195 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11196
11197 * lread.c (Funintern): Comment out last change.
11198
11199 2009-11-19 Richard Stallman <rms@gnu.org>
11200
11201 * lread.c (Funintern): Error if symbol is t or nil.
11202
11203 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11204
11205 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11206 representation of Lisp integers.
11207 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11208
11209 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11210
11211 * lisp.h: Remove declaration of Ffont_get_system_font.
11212 * xfns.c: Move include of "xsettings.h".
11213 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11214
11215 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11216
11217 * xsettings.c (something_changedCB, Ffont_get_system_font):
11218 Check use_system_font.
11219 (syms_of_xsettings): DEFVAR font-use-system-font.
11220
11221 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11222
11223 * xfns.c (x_default_font_parameter): Remove dead assignment.
11224
11225 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11226
11227 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11228
11229 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11230 not have FC_LCD_*. #define them if not there.
11231
11232 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11233
11234 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11235
11236 * xterm.c (handle_one_xevent): Call xft_settings_event for
11237 ClientMessage, PropertyNotify and DestroyNotify.
11238 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11239 Call xsettings_initialize.
11240
11241 * xftfont.c (xftfont_fix_match): New function.
11242 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11243 Call xftfont_fix_match after XftFontMatch.
11244
11245 * xfont.c (xfont_driver): Initialize all members.
11246
11247 * xfns.c (x_default_font_parameter):
11248 Try font from Ffont_get_system_font.
11249 Do not get font from x_default_parameter if we got one from
11250 Ffont_get_system_font.
11251 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11252
11253 * w32font.c (w32font_driver): Initialize all members.
11254
11255 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11256
11257 * lisp.h: Declare syms_of_xsettings.
11258
11259 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11260 Handle CONFIG_CHANGED_EVENT.
11261
11262 * ftfont.c (ftfont_filter_properties): New function.
11263
11264 * frame.c (x_set_font): Remove unused variable lval.
11265
11266 * font.h (struct font_driver): Add filter_properties.
11267
11268 * font.c (font_put_extra): Don't return if val is nil, it means
11269 boolean option is off.
11270 (font_parse_fcname): Collect all extra properties in extra_props
11271 and call filter_properties for all drivers with extra_props and
11272 font as parameter.
11273 (font_open_entity): Do not use cache, it does not pick up new
11274 fontconfig settings like hinting.
11275 (font_load_for_lface): If spec had a name in it, store it in entity.
11276
11277 * emacs.c (main): Call syms_of_xsettings.
11278
11279 * config.in: HAVE_GCONF is new.
11280
11281 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11282 xsettings.o is new.
11283
11284 2009-11-17 Kenichi Handa <handa@m17n.org>
11285
11286 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11287 back to the default font in case that no suitable font is found.
11288
11289 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11290
11291 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11292 Suggested by Chad Brown <yandros@mit.edu>.
11293 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11294
11295 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11296
11297 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11298
11299 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11300
11301 * Makefile.in: Ignore errors from mkdir when creating deps directory.
11302
11303 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11304
11305 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11306 has a parent.
11307
11308 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11309 dependency files in deps/. Include those files into Makefile.
11310
11311 * config.in: Generated (AUTO_DEPEND).
11312
11313 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
11314
11315 * dbusbind.c (Vdbus_registered_objects_table): Rename from
11316 Vdbus_registered_functions_table, because it contains also
11317 properties. Fix docstring.
11318 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
11319
11320 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11321
11322 * alloc.c (mark_object): Don't reprocess marked strings.
11323 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11324 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11325
11326 2009-11-13 Kenichi Handa <handa@m17n.org>
11327
11328 * category.c (word_boundary_p): Adjust for the change of the
11329 semantics of Vword_combining_categories.
11330 (Vword_combining_categories): Describe the slight change of the
11331 semantics.
11332
11333 2009-11-13 Eli Zaretskii <eliz@gnu.org>
11334
11335 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11336
11337 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11338
11339 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11340
11341 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11342
11343 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
11344
11345 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11346
11347 2009-11-11 David Reitter <david.reitter@gmail.com>
11348
11349 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11350 variables to fix 2009-11-09 change.
11351
11352 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11353
11354 * process.c (ifflag_def): Make flag_sym constant.
11355 (Fnetwork_interface_info): Use a constant pointer.
11356 (ifflag_table):
11357 * xfns.c (cursor_bits):
11358 * xdisp.c (power_letter):
11359 * termcap.c (speeds, esctab):
11360 * sysdep.c (baud_convert):
11361 * keyboard.c (lispy_accent_codes, modifier_names):
11362 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11363 (jpeg_format, tiff_format, gif_format, svg_format)
11364 (interlace_start, interlace_increment, gs_format):
11365 * gtkutil.c (separator_names):
11366 * fringe.c (swap_nibble):
11367 * fns.c (base64_value_to_char, base64_char_to_value):
11368 * fileio.c (make_temp_name_tbl):
11369 * coding.c (suffixes): Make constant.
11370
11371 * frame.c (make_initial_frame):
11372 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11373 build_string.
11374 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11375
11376 * s/freebsd.h:
11377 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11378
11379 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11380 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11381
11382 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11383 * xterm.c (syms_of_xterm):
11384 * xfaces.c (syms_of_xfaces):
11385 * xdisp.c (syms_of_xdisp):
11386 * lread.c (syms_of_lread):
11387 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11388 build_string.
11389
11390 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11391
11392 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11393
11394 * fns.c (Fplist_get): Merge the active and the commented out code.
11395
11396 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11397
11398 * keyboard.h: Declare timer_check.
11399
11400 * keyboard.c (timer_check_2): New function that does what the old
11401 timer_check did.
11402 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11403 returned, i.e. don't return -1 with timers pending.
11404
11405 * process.c: Remove extern declaration of timer_check.
11406
11407 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11408 even if timer_check returned -1.
11409
11410 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11411 xg_dialog_data.
11412 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11413 the event loop.
11414 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11415 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11416 Destroy the dialog after xg_dialog_run.
11417
11418 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11419
11420 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11421
11422 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11423
11424 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11425
11426 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
11427
11428 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11429
11430 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11431
11432 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11433 w32menu.c, and nsmenu.m.
11434 Simplify the obsolete case where position is nil.
11435 (cleanup_popup_menu): New function, moved from nsmenu.m.
11436 (struct skp): Remove slot `notreal'.
11437 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11438 adjust callers.
11439 (single_menu_item): Adjust call to parse_menu_item.
11440 (syms_of_menu): Defsubr x-popup-menu.
11441 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11442 (keymap_panes): Don't export any more.
11443 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11444 (xmenu_show): Declare.
11445 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11446 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11447 * keyboard.h (parse_menu_item): Update declaration.
11448 * xmenu.c (Fx_popup_menu): Remove.
11449 (syms_of_xmenu): Don't defsubr x-popup-menu.
11450 * w32menu.c (Fx_popup_menu): Remove.
11451 (syms_of_w32menu): Don't defsubr x-popup-menu.
11452 * nsmenu.m (cleanup_popup_menu): Remove.
11453 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11454 moved to menu.c's Fx_popup_menu.
11455 (Fx_popup_menu): Remove.
11456 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11457 menu_items (it's done in menu.c already).
11458
11459 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11460
11461 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11462 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11463
11464 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
11465
11466 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
11467 xmenu_show. Hide any tooltip before opening a menu.
11468 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11469 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11470
11471 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11472
11473 Let integers use up 2 tags to give them one extra bit and thus double
11474 their range.
11475 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11476 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11477 New macros.
11478 (enum Lisp_Type): Use them. Give explicit values.
11479 (Lisp_Type_Limit): Remove.
11480 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11481 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11482 Pay attention to USE_2_TAGS_FOR_INTS.
11483 (INTEGERP): Use LISP_INT_TAG_P.
11484 * fns.c (internal_equal): Simplify the default case.
11485 (sxhash): Use case_Lisp_Int.
11486 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11487 any more.
11488 (Ftype_of): Use case_Lisp_Int.
11489 (store_symval_forwarding): Take into account the fact that Ints can
11490 now have more than one tag.
11491 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
11492 (buffer_slot_type_mismatch):
11493 * xfaces.c (face_attr_equal_p):
11494 * print.c (print_object):
11495 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11496 Use case_Lisp_Int.
11497
11498 2009-11-06 Eli Zaretskii <eliz@gnu.org>
11499
11500 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11501
11502 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11503 warning.
11504
11505 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11506
11507 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11508
11509 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11510
11511 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11512 ButtonPressRelease and MotionNotify (bug#4870).
11513
11514 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11515
11516 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11517
11518 * xterm.c (syms_of_xterm):
11519 * xselect.c (syms_of_xselect):
11520 * xmenu.c (syms_of_xmenu):
11521 * xfns.c (syms_of_xfns):
11522 * xfaces.c (syms_of_xfaces):
11523 * xdisp.c (syms_of_xdisp):
11524 * window.c (syms_of_window):
11525 * w32fns.c (syms_of_w32fns):
11526 * undo.c (syms_of_undo):
11527 * textprop.c (syms_of_textprop):
11528 * terminal.c (syms_of_terminal):
11529 * syntax.c (syms_of_syntax):
11530 * sound.c (syms_of_sound):
11531 * search.c (syms_of_search):
11532 * print.c (syms_of_print):
11533 * minibuf.c (syms_of_minibuf):
11534 * macros.c (syms_of_macros):
11535 * keymap.c (syms_of_keymap, initial_define_key)
11536 (initial_define_lispy_key):
11537 * keyboard.c (syms_of_keyboard):
11538 * insdel.c (syms_of_insdel):
11539 * image.c (syms_of_image):
11540 * fringe.c (syms_of_fringe):
11541 * frame.c (syms_of_frame):
11542 * fontset.c (syms_of_fontset):
11543 * fns.c (syms_of_fns):
11544 * fns.c (syms_of_fns):
11545 * fileio.c (syms_of_fileio):
11546 * fileio.c (syms_of_fileio):
11547 * eval.c (syms_of_eval):
11548 * doc.c (syms_of_doc):
11549 * dispnew.c (syms_of_display):
11550 * dired.c (syms_of_dired):
11551 * dbusbind.c (syms_of_dbusbind):
11552 * data.c (syms_of_data):
11553 * composite.c (syms_of_composite):
11554 * coding.c (syms_of_coding):
11555 * cmds.c (syms_of_cmds):
11556 * charset.c (define_charset_internal, syms_of_character):
11557 * ccl.c (syms_of_ccl):
11558 * category.c (syms_of_category, init_category_once):
11559 * casetab.c (syms_of_casetab):
11560 * casefiddle.c (syms_of_casefiddle):
11561 * callint.c (syms_of_callint):
11562 * bytecode.c (syms_of_bytecode):
11563 * buffer.c (keys_of_buffer, syms_of_buffer):
11564 * alloc.c (syms_of_alloc):
11565 * process.c (syms_of_process, init_process):
11566 * lread.c (syms_of_lread, init_obarray):
11567 * font.c (build_style_table):
11568 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11569 intern_c_string, calls to make_pure_string with
11570 make_pure_c_string. Use pure_cons instead of Fcons.
11571
11572 * process.c (socket_options): Make it const.
11573 (set_socket_option, init_process): Use a const pointer.
11574
11575 * lread.c (intern_c_string): New function.
11576 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11577 (defvar_int): Uset it. Make the name const char*.
11578
11579 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11580 (defvar_int): Update prototypes.
11581 (DEFUN, EXFUN): Support for prototypes is now required.
11582 (intern_c_string): New prototype.
11583 (struct Lisp_Subr): Make symbol_name constant.
11584
11585 * font.c (struct table_entry): Remove unused member. Make NAMES
11586 constant.
11587 (weight_table, slant_table, width_table): Make constant.
11588
11589 * emacs.c (struct standard_args): Make name and longname constant.
11590
11591 * character.h (DEFSYM): Use intern_c_string.
11592
11593 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11594
11595 * alloc.c (make_pure_c_string): New function.
11596
11597 * eval.c (Fautoload): Purecopy all arguments.
11598
11599 2009-11-05 Kenichi Handa <handa@m17n.org>
11600
11601 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11602 the buffer in case of replace.
11603
11604 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11605
11606 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11607
11608 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11609
11610 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11611 when applicable (bug#4851).
11612
11613 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11614 (P_): Support for prototypes is now required.
11615
11616 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
11617
11618 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11619 (Bug#4827).
11620
11621 2009-10-30 Eli Zaretskii <eliz@gnu.org>
11622
11623 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
11624
11625 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11626
11627 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11628
11629 * lread.c (Fload): Purecopy the file name when building
11630 Vpreloaded_file_list.
11631
11632 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11633
11634 * w32fns.c (syms_of_w32fns): Change default value of
11635 w32-scroll-lock-modifier to nil. (Bug#2827)
11636
11637 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
11638
11639 * minibuf.c (Fall_completions): Fix typos in docstring.
11640
11641 2009-10-26 Andreas Schwab <schwab@redhat.com>
11642
11643 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11644
11645 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
11646
11647 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11648 For delta < 0, skip check that only makes sense when the mini-window
11649 is going to be enlarged. (Bug#4534)
11650
11651 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
11652
11653 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11654 string in menu maps (Bug#4471).
11655
11656 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
11657
11658 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11659 FRAME_NS_VIEW on terminal frames (Bug#4765).
11660
11661 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11662
11663 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11664 DBUS_TYPE_UINTnn separately to get proper sign extension.
11665
11666 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11667 can properly handle unsigned types.
11668 (make_uid, make_gid): Remove.
11669
11670 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11671 types again.
11672
11673 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
11674 (system_process_attributes): Likewise.
11675
11676 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11677
11678 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11679
11680 * eval.c (Fautoload): Purecopy the filename. Simplify.
11681
11682 * category.c (Fdefine_category): Purecopy docstring.
11683
11684 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11685
11686 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11687
11688 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11689
11690 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
11691
11692 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11693 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11694 (Bug#4775).
11695
11696 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11697
11698 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11699 (init_fileio_once):
11700 * lisp.h (init_fileio_once): Remove.
11701 * emacs.c (main): Don't call init_fileio_once.
11702
11703 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11704
11705 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11706
11707 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11708
11709 * doprnt.c (doprnt): Fix overflow check.
11710
11711 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11712
11713 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11714
11715 * xterm.h (x_wait_for_event): Declare it.
11716
11717 * xterm.c (pending_event_wait): New variable.
11718 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11719 see pending_event_wait.eventtype.
11720 (handle_one_xevent): Don't change gravity when parent changes.
11721 (x_new_font): Call change_frame_size with new rows/columns before we
11722 try to resize the frame.
11723 (x_wait_for_event): New function.
11724 (x_set_window_size_1): Don't change gravity unless change_gravity
11725 is set.
11726 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11727 don't change frame size, instead wait for the ConfigureNotify.
11728 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11729 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11730 (x_initialize): Initialize pending_event_wait.
11731
11732 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11733 size.
11734
11735 * widget.c (EmacsFrameSetValues): Add comment.
11736 (EmacsFrameSetCharSize): Just call x_set_window_size.
11737
11738 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11739 x_wait_for_event.
11740 (flush_and_sync): Remove again.
11741 (xg_get_font_name): Suggest monospace if no previous font is known.
11742
11743 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
11746 8th bit, since that only made sense in the ASCII world (bug#4751).
11747
11748 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11749
11750 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11751 processing pending events when event is filtered for input method.
11752 (Bug#3681)
11753
11754 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
11755
11756 * fns.c: Add #endif accidentally removed in previous change.
11757
11758 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11759
11760 * fns.c: Remove code for unsupported system: MAC_OS.
11761 * image.c: Likewise. Include setjmp.h.
11762
11763 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11764
11765 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11766 pixel -1 (bug #4742).
11767
11768 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11769
11770 * process.c (create_pty): Remove conditionals for no longer
11771 supported systems: UNIPLUS and RTU.
11772
11773 * xterm.c:
11774 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11775
11776 * alloc.c: Do not define struct catchtag.
11777 * eval.c: Move struct catchtag definition ...
11778 * lisp.h: ... here.
11779
11780 * image.c: Move png.h #include earlier to avoid warnings.
11781
11782 * xterm.c:
11783 * xsmfns.c:
11784 * xselect.c:
11785 * xrdb.c:
11786 * xmenu.c:
11787 * xftfont.c:
11788 * xfont.c:
11789 * xfns.c:
11790 * xfaces.c:
11791 * xdisp.c:
11792 * window.c:
11793 * widget.c:
11794 * w32xfns.c:
11795 * w32uniscribe.c:
11796 * w32term.c:
11797 * w32select.c:
11798 * w32reg.c:
11799 * w32proc.c:
11800 * w32menu.c:
11801 * w32inevt.c:
11802 * w32heap.c:
11803 * w32font.c:
11804 * w32fns.c:
11805 * w32console.c:
11806 * w32.c:
11807 * w16select.c:
11808 * vm-limit.c:
11809 * unexsol.c:
11810 * unexec.c:
11811 * unexcw.c:
11812 * unexaix.c:
11813 * undo.c:
11814 * tparam.c:
11815 * textprop.c:
11816 * terminfo.c:
11817 * terminal.c:
11818 * termcap.c:
11819 * term.c:
11820 * syntax.c:
11821 * sound.c:
11822 * sheap.c:
11823 * search.c:
11824 * scroll.c:
11825 * region-cache.c:
11826 * regex.c:
11827 * ralloc.c:
11828 * process.c:
11829 * print.c:
11830 * nsterm.m:
11831 * nsselect.m:
11832 * nsmenu.m:
11833 * nsimage.m:
11834 * nsfont.m:
11835 * nsfns.m:
11836 * msdos.c:
11837 * minibuf.c:
11838 * menu.c:
11839 * marker.c:
11840 * macros.c:
11841 * keymap.c:
11842 * keyboard.c:
11843 * intervals.c:
11844 * insdel.c:
11845 * indent.c:
11846 * gtkutil.c:
11847 * ftxfont.c:
11848 * ftfont.c:
11849 * fringe.c:
11850 * frame.c:
11851 * fontset.c:
11852 * font.c:
11853 * fns.c:
11854 * floatfns.c:
11855 * filelock.c:
11856 * fileio.c:
11857 * emacs.c:
11858 * editfns.c:
11859 * dosfns.c:
11860 * doprnt.c:
11861 * doc.c:
11862 * dispnew.c:
11863 * dired.c:
11864 * dbusbind.c:
11865 * data.c:
11866 * composite.c:
11867 * coding.c:
11868 * cmds.c:
11869 * cm.c:
11870 * chartab.c:
11871 * charset.c:
11872 * character.c:
11873 * ccl.c:
11874 * category.c:
11875 * casetab.c:
11876 * casefiddle.c:
11877 * callproc.c:
11878 * callint.c:
11879 * bytecode.c:
11880 * buffer.c:
11881 * atimer.c: Include setjmp.h. (Bug#4643)
11882
11883 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11884
11885 Remove leftover table unibyte_to_multibyte_table.
11886 * character.c (unibyte_to_multibyte_table): Remove.
11887 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11888 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11889 * character.h (UNIBYTE_TO_CHAR): New macro.
11890 (MAKE_CHAR_MULTIBYTE): Use it.
11891 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11892 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11893 (message_dolog, set_message_1):
11894 * search.c (Freplace_match):
11895 * editfns.c (Fcompare_buffer_substrings):
11896 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11897 (concat):
11898 * insdel.c (copy_text, count_size_as_multibyte):
11899 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11900 * term.c (produce_glyphs):
11901 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11902 * regex.c (RE_CHAR_TO_MULTIBYTE):
11903 * cmds.c (internal_self_insert):
11904 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11905
11906 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11907
11908 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11909
11910 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11911
11912 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
11913
11914 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11915
11916 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11917
11918 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11919 still needed under Tiger.
11920
11921 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11922
11923 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11924 __Apple__.
11925
11926 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11927
11928 2009-10-15 Kenichi Handa <handa@m17n.org>
11929
11930 * print.c (print_object): Escape a symbol like "2E10" too.
11931
11932 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
11933
11934 Cleanups and changes for 64-bit compile under Snow Leopard.
11935 Based on suggestions by Erik Charlebois.
11936
11937 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11938
11939 * nsfont.m (ns_char_width): Replace deprecated call.
11940 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11941 cast argument.
11942 (nsfont_open): Use ns_char_width() everywhere.
11943 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
11944
11945 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11946
11947 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11948 where appropriate.
11949
11950 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11951 where appropriate.
11952 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11953 Use stringWithUTF8String.
11954 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11955
11956 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11957 Add formal protocol mention to inheritance.
11958 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11959
11960 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11961 Fix printf format.
11962 (ns_query_color): Use CGFloat where appropriate.
11963 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
11964 (EmacsScroller-mouseDown:): Use long format in printf, and cast
11965 argument.
11966
11967 * config.in (NS_HAVE_NSINTEGER): Drop.
11968
11969 * dbusbind.c (dbus-method-return-internal)
11970 (dbus-method-error-internal): Use long format in printf, and cast
11971 argument.
11972
11973 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11974 in printf, and cast argument.
11975
11976 * process.c (list_processes_1): Use long format in printf, and
11977 cast argument.
11978
11979 2009-10-11 Glenn Morris <rgm@gnu.org>
11980
11981 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11982
11983 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11984
11985 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11986 menu bar with a small width so it doesn't enlarge the frame.
11987
11988 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
11989
11990 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11991
11992 2009-10-06 Glenn Morris <rgm@gnu.org>
11993
11994 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11995 SOME_MACHINE_LISP (this enters indirectly via DOC).
11996
11997 2009-10-05 Eli Zaretskii <eliz@gnu.org>
11998
11999 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12000
12001 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12002
12003 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12004 Doc fix.
12005
12006 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12007
12008 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12009
12010 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12011
12012 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12013 used anymore outside fileio.c.
12014
12015 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12016
12017 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12018
12019 * lisp.h (Qdelete_directory_internal):
12020 Declare, instead of Qdelete_directory.
12021
12022 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12023
12024 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12027
12028 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12029
12030 * fileio.c (Fdelete_directory_internal): Rename from
12031 Fdelete_directory. It is not a command anymore. It has no file
12032 name handler.
12033
12034 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12035
12036 * xdisp.c (get_next_display_element): Use an enum in last change.
12037
12038 2009-09-28 Kenichi Handa <handa@m17n.org>
12039
12040 * xdisp.c (get_next_display_element): Pay attention to
12041 unibyte_display_via_language_environment in handling
12042 Vnobreak_char_display.
12043
12044 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12045
12046 * nsterm.h (ns_app_name): New extern variable.
12047
12048 * nsterm.m (ns_app_name): New variable.
12049 (ns_term_init): Set and use it.
12050 (ns_term_shutdown): Use it.
12051
12052 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12053 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12054
12055 * nsfns.m (ns_set_name_iconic, ns_set_name)
12056 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12057 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12058
12059 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12060 Remove double-casting in client_data comparison.
12061
12062 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12063
12064 * keyboard.c (make_lispy_event): Remember last wheel direction.
12065 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12066
12067 2009-09-26 Glenn Morris <rgm@gnu.org>
12068
12069 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12070 internal.elc. Add term/pc-win.elc.
12071 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12072 term/x-win.elc.
12073 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12074 term/w32-win.elc.
12075 (NS_SUPPORT): New.
12076 (lisp): Add NS_SUPPORT.
12077 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12078
12079 2009-09-25 David Reitter <david.reitter@gmail.com>
12080
12081 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12082 on Mac OS X 10.6+ (bug#4513).
12083
12084 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12085
12086 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12087 some parts of Emacs code (like font selection) don't grok them.
12088 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12089
12090 2009-09-24 Andreas Schwab <schwab@redhat.com>
12091
12092 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12093
12094 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12095
12096 * dired.c (Fdirectory_files): Fix typo in docstring.
12097
12098 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12099
12100 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12101 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12102 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12103 under GNUstep.
12104 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12105
12106 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12107 glyph advancement.
12108
12109 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12110
12111 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12112 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12113
12114 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12115 deleted (bug #4492).
12116
12117 * nsfont.m (Vns_reg_to_script): New lisp variable.
12118 (syms_of_nsfont): Declare it.
12119 (ns_registry_to_script): New function.
12120 (ns_get_req_script): Call it.
12121 (ns_findfonts): Don't give up on non-unicode registry.
12122
12123 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12124
12125 2009-09-20 Tom Tromey <tromey@redhat.com>
12126
12127 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12128 batch mode (bug#4228).
12129
12130 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12131
12132 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12133 carefully. (Bug #4339)
12134
12135 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12136
12137 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12138
12139 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12140
12141 * emacs.c (inhibit_x_resources): Update doc string for NS.
12142 (main) [HAVE_NS]: Don't process --no-init-file option.
12143 Remove legacy code for -NXHost. Fix error printf in daemon case.
12144
12145 * nsterm.h (ns_no_defaults): Remove.
12146
12147 * nsterm.m (ns_no_defaults): Remove.
12148 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12149 (ns_use_qd_smoothing): Remove legacy variable.
12150 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12151 don't update the NSWindow itself.
12152 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12153 Improve state detection and store user rect ourselves. (Bug #3581)
12154
12155 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12156 ns_use_qd_smoothing.
12157
12158 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12159 platform versions. Drop support for emacs-20-style face specs.
12160 (x-close-connection): Drop PSFlush() under OS X.
12161 (x-focus-frame): Activate the app first. (Bug #4180)
12162
12163 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12164
12165 * emacs.c (inhibit_x_resources): New variable.
12166 (main) [HAVE_NS]: Don't process --quick command line option.
12167 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12168
12169 * lisp.h (inhibit_x_resources): Declare it extern.
12170
12171 * w32reg.c (x_get_string_resource):
12172 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12173
12174 2009-09-17 Eli Zaretskii <eliz@gnu.org>
12175
12176 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12177 Add lisp/term/internal.elc.
12178
12179 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12180
12181 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12182 (bug#4461).
12183
12184 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12185
12186 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12187
12188 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12189 (OBJECTS_MACHINE): Remove, unused.
12190
12191 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12192
12193 * frame.c (x_get_resource_string): Remove unused.
12194
12195 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12196
12197 * xterm.c (x_new_font): Call change_frame_size before calling
12198 x_set_window_size, in case frame size won't change.
12199
12200 * frame.c (x_set_font): Remove dead code.
12201
12202 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12203
12204 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12205
12206 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12207
12208 * lread.c (Fload): Don't output a message after loading an obsolete
12209 package any more (done in Lisp now).
12210
12211 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
12212
12213 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12214
12215 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12216
12217 * keymap.c (Fwhere_is_internal): Use nconc2.
12218
12219 2009-09-11 Alan Mackenzie <acm@muc.de>
12220
12221 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12222 batch mode.
12223
12224 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12225
12226 * xdisp.c (display_mode_element): Detect cycles.
12227
12228 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12229
12230 * keymap.c (where_is_internal): Don't erroneously return nil right after
12231 filling the cache.
12232 (where_is_internal_1): Fix up typo.
12233
12234 2009-09-11 Glenn Morris <rgm@gnu.org>
12235
12236 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12237 share a common doc-string.
12238
12239 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12242 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12243
12244 * keymap.c (QCadvertised_binding): New constant.
12245 (syms_of_keymap): Initialize it.
12246 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12247 if applicable.
12248
12249 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12250
12251 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12252 (parse_menu_item): Streamline since bindings are recomputed all the
12253 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12254 more and don't support lmenu's menu-alias any more either.
12255
12256 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12257 (where_is_internal): Strip it down to only traverse the keymaps.
12258 Move the cache handling from Fwhere_is_internal to here.
12259 (Fwhere_is_internal): Move the handling of remapping and the choice of
12260 the best binding from where_is_internal to here.
12261 Unify the cached/noncached paths, so remapping is also handled
12262 correctly when the cache is used, and so the cache can be used to
12263 speed up remap-handling when applicable.
12264 Give preference to non-remapped bindings.
12265 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12266 non-remapped bindings.
12267 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12268 command remapping.
12269
12270 * xdisp.c (display_mode_element): Move list length limit from 50 to
12271 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12272
12273 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
12274
12275 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12276
12277 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12278
12279 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12280 (Bug#4334)
12281
12282 * keymap.c (where_is_internal): Filter out shadowed remappings.
12283 Assume that where_is_internal returns unshadowed bindings to simplify
12284 the code and get rid of the gotos. Use ASIZE.
12285
12286 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12287
12288 * xterm.c (x_focus_changed): If we get a focusout and pointer
12289 is invisible, make it visible.
12290
12291 * xterm.h: Remove condition for declaration of
12292 x_*_window_to_frame.
12293
12294 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12295
12296 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12297 initial terminal as well.
12298
12299 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12300
12301 * xterm.h: Rename x_non_menubar_window_to_frame to
12302 x_menubar_window_to_frame.
12303
12304 * xterm.c: Remove declarations also in xterm.h.
12305 (XTmouse_position): Do not return valid positions
12306 for clicks in the menubar and the toolbar for Gtk+.
12307
12308 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12309 if the widget for the event has the same top level as a frame,
12310 return the frame.
12311 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12312 internal windows, bug #4122.
12313 (x_non_menubar_window_to_frame): Remove.
12314
12315 2009-09-02 Glenn Morris <rgm@gnu.org>
12316
12317 * buffer.c (default-major-mode): Move most of the doc from here...
12318 (major-mode): ... to here.
12319
12320 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
12321
12322 * process.c (wait_reading_process_output): Keep the descriptor
12323 when pty is used by a non-child process, e.g., in I/O buffer of
12324 GDB this allows inferior to be restarted.
12325
12326 2009-08-29 Eli Zaretskii <eliz@gnu.org>
12327
12328 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12329 both branches into one.
12330
12331 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12332
12333 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12334 (main): Use enable-multibyte-characters rather than
12335 default-enable-multibyte-characters. Output a warning message when
12336 running a unibyte session.
12337
12338 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12339
12340 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12341 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12342 (copy_data_segment): Also copy __program_vars section.
12343 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12344 (dump_it) [LC_DYLD_INFO]: Use it.
12345
12346 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12347
12348 2009-08-28 Eli Zaretskii <eliz@gnu.org>
12349
12350 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12351 $(SRC)/buildobj.h.
12352 (buildobj.h): Rename from $(SRC)/buildobj.h.
12353 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12354 $(SRC)/buildobj.h.
12355 (clean): Add buildobj.h.
12356
12357 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12358
12359 * print.c (print_object): Set escapeflag to 1 when printing
12360 hashtable keys and values.
12361
12362 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * lread.c (read_integer): Use doubles (and potentially return a float
12365 number) as we do in string-to-number.
12366 (read1): Use strtol to read integers, signal errors on strtol's
12367 overflow and use floats if strtol's output is too large for
12368 Elisp integers.
12369
12370 2009-08-27 Eli Zaretskii <eliz@gnu.org>
12371
12372 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12373 (make-buildobj-SH): Fix last change.
12374 (SRC): Move to before where it's first used.
12375
12376 2009-08-27 Kenichi Handa <handa@m17n.org>
12377
12378 * process.c (send_process): Use encode_coding_object instead of
12379 encode_coding_string to perform eol-conversion even if the string
12380 is unibyte.
12381
12382 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12383 character.
12384
12385 * cmds.c (Fself_insert_command): Avoid unnecessay
12386 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
12387
12388 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12389
12390 * callproc.c (Fcall_process): Remove always true #if.
12391
12392 * lisp.h: Replace #if 0 code for checking with text pointing to
12393 the --enable-checking configure flag.
12394
12395 * emacs.c (main): Mention the --enable-profiling configure flag
12396 instead of using CFLAGS.
12397
12398 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
12399
12400 * Makefile.in (buildobj.h): New target.
12401 (doc.o): Depend on it.
12402 (temacs${EXEEXT}): Don't generate buildobj.lst.
12403 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12404 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12405 ($(BLD)/doc.$(O)): Depend on it.
12406 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12407 provided by Eli Zaretskii.)
12408 ($(TEMACS)): Don't generate buildobj.lst.
12409 * doc.c: Include buildobj.h.
12410 (buildobj): New static variable.
12411 (Fsnarf_documentation): Use it, instead of opening and reading
12412 buildobj.lst.
12413
12414 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
12415
12416 * dbusbind.c (Fdbus_call_method)
12417 (Fdbus_call_method_asynchronously): Use English numeric format for
12418 timeout values in doc string.
12419
12420 2009-08-25 Kenichi Handa <handa@m17n.org>
12421
12422 * alloc.c (mark_char_table): New function.
12423 (mark_object): Use mark_char_table for a char-table.
12424
12425 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12426 (CHAR_TABLE_REF): Use it.
12427
12428 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
12429
12430 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12431 before invoking the newly build emacs to check for load-path
12432 shadowing.
12433
12434 2009-08-22 Glenn Morris <rgm@gnu.org>
12435
12436 * Makefile.in (bootstrap_exe): New variable.
12437 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12438 Use ${bootstrap_exe}.
12439
12440 2009-08-22 Eli Zaretskii <eliz@gnu.org>
12441
12442 * coding.h (encode_coding_string): Don't encode unibyte strings.
12443 (Bug#4047)
12444
12445 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
12446
12447 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12448
12449 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12450 intended as hotfix only.
12451 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12452
12453 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12454
12455 * nsterm.m (ns_get_color): Update documentation properly for last
12456 change, and clean up loose ends in the code left by it.
12457 Fix longstanding bug with 16-bit hex parsing, and add support for
12458 yet another X11 format (rgb:r/g/b) for compatibility.
12459 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12460 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12461
12462 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12463
12464 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12465
12466 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
12467
12468 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12469 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12470 (xd_initialize, xd_pending_messages): Check, whether
12471 $DBUS_SESSION_BUS_ADDRESS is set.
12472
12473 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12474
12475 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12476
12477 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12478
12479 2009-08-20 Glenn Morris <rgm@gnu.org>
12480
12481 * emacs.c (system-type): Doc fix.
12482
12483 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12484
12485 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12486 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12487
12488 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
12489
12490 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12491 New functions.
12492 (xd_initialize): Revert change from 2009-08-16.
12493
12494 2009-08-18 Kenichi Handa <handa@m17n.org>
12495
12496 * fontset.c (Ffontset_font): If a nil element is found in a
12497 font-group vector, return nil.
12498
12499 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
12500
12501 * process.c (status_notify): Don't perform redisplay.
12502 (Fdelete_process, list_processes_1, process_send_signal):
12503 Expliticly perform redisplay.
12504 (wait_reading_process_output): Always check process status, but
12505 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12506
12507 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
12508
12509 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
12510 (XFLOAT_INIT): New macro for storing a float value.
12511 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12512 * fns.c (sxhash): Copy out the value of a float in order to
12513 examine its bytes.
12514 * dbusbind.c (xd_append_arg): Likewise.
12515
12516 * emacs.c (main): Don't call syms_of_data twice.
12517
12518 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
12519
12520 * dbusbind.c (xd_initialize): Add connection file descriptor to
12521 input_wait_mask, in order to let select() detect, whether a new
12522 message has been arrived.
12523 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
12524
12525 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
12526
12527 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12528 New functions.
12529
12530 * lisp.h (xd_pending_messages): Declare.
12531
12532 * keyboard.c (readable_events): Call xd_pending_messages.
12533
12534 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
12535
12536 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
12537
12538 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12539
12540 * buffer.c (set_buffer_internal_1)
12541 (swap_out_buffer_local_variables): Check for unbound local
12542 variables (Bug#4138).
12543
12544 2009-08-14 Eli Zaretskii <eliz@gnu.org>
12545
12546 * process.c (create_pty): Fix last change.
12547
12548 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
12549
12550 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12551 (xbm_load_image): Caller changed.
12552 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
12553
12554 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
12555
12556 * process.c (create_pty): New function.
12557 (Fstart_process): Use it to allow Emacs to just associate a pty
12558 with the buffer. See associated change in gdb-mi.el.
12559 (list_processes_1): Deal with no program name.
12560 (start_process_unwind): Use pid == -2 to mean no process.
12561
12562 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12563
12564 * cmds.c (nonundocount): New global variable.
12565 (keys_of_cmds): Initialize it.
12566 (Fself_insert_command): Use it to combine upto 20 sequential chars
12567 into a single undo entry, just like the Qself_insert_command code in
12568 keyboard.c does.
12569 Call frame_make_pointer_invisible, also like the Qself_insert_command
12570 code in keyboard.c does.
12571 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12572 than its own local replacement for it.
12573
12574 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
12575
12576 * fns.c (concat): Don't re-set string length to its current value.
12577
12578 * coding.h (decode_coding_string, encode_coding_string):
12579 Use SBYTES macro.
12580
12581 * doprnt.c (doprnt_lisp): Delete unused function.
12582 (doprnt): Merge with doprnt1, discarding lispstrings code.
12583 * lisp.h (doprnt_lisp): Don't declare.
12584
12585 2009-08-07 Juri Linkov <juri@jurta.org>
12586
12587 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12588
12589 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12590
12591 * print.c (syms_of_print): Undo previous change.
12592
12593 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12594
12595 * lread.c (read1, syms_of_lread): Read hashtables back from the
12596 readable format.
12597
12598 * print.c (print_preprocess, print_object): Print hashtables fully
12599 and readably.
12600 (syms_of_print): Provide 'hashtable-print-readable.
12601
12602 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12603
12604 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12605 no family set.
12606 (nsfont_open): Handle case when entity has no family.
12607
12608 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12609
12610 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12611 element, not a list, for match case.
12612
12613 2009-07-28 Kenichi Handa <handa@m17n.org>
12614
12615 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12616 rigidly.
12617
12618 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12619 font_parse_xlfd. Check font properties more rigidly.
12620
12621 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12622
12623 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12624 bsd-common.h.
12625
12626 2009-07-27 Kenichi Handa <handa@m17n.org>
12627
12628 * xfaces.c (face_with_height): Call font_clear_prop.
12629
12630 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
12631
12632 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12633
12634 * xterm.c (x_term_init): Use Qx.
12635
12636 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12637
12638 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
12639 (ns_get_color): Revert 2009-07-16 change.
12640
12641 2009-07-25 Eli Zaretskii <eliz@gnu.org>
12642
12643 * lread.c (syms_of_lread) <force_load_messages>: New variable.
12644 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
12645
12646 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
12647
12648 * coding.h (decode_coding_string, encode_coding_string):
12649 Use SCHARS macro.
12650
12651 * lread.c: Rewrite 2009-07-21 changes.
12652 (load_depth): Delete.
12653 (Qload_in_progress): New variable.
12654 (load_unwind): Don't reference load_depth or load_in_progress.
12655 (Fload): Likewise; specbind Qload_in_progress instead.
12656 (init_lread): Don't initialize load_depth.
12657 (syms_of_lread): Initialize and protect Qload_in_progress.
12658
12659 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12660
12661 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12662
12663 2009-07-23 Yavor Doganov <yavor@gnu.org>
12664
12665 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12666
12667 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12668
12669 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
12670 Bugs 3792, 3720, 2402.
12671 (ns_lookup_indexed_color): Check for bad index.
12672 (ns_index_color): Init unused slot to 0.
12673 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12674 Bug 3714, possibly 3082.
12675
12676 2009-07-22 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12679 Position IME window at cursor (Bug#2570).
12680 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12681 (globals_of_w32fns): Dynamically load functions required above.
12682
12683 * w32term.c (w32_draw_window_cursor): Send message to reposition
12684 any IME window.
12685
12686 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
12687
12688 * fileio.c: Revert 2009-07-16 changes.
12689 (Vauto_save_include_big_deletions): New variable.
12690 (Fdo_auto_save): Disable auto-save only if
12691 auto-save-include-big-deletions is nil.
12692
12693 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
12694
12695 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12696 the overflowed pixels into account (Bug#3879).
12697
12698 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
12699
12700 * lread.c (load_depth): New variable.
12701 (Fload, load_unwind, init_lread): Set it to the load recursion
12702 depth; set load_in_progress as a simple boolean based on the
12703 current load_depth. (Bug#3892)
12704
12705 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12706
12707 * nsfont.m (ns_has_attribute): Remove.
12708 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12709
12710 2009-07-18 Juri Linkov <juri@jurta.org>
12711
12712 * process.c (Fset_process_query_on_exit_flag): Mention killing
12713 a buffer in docstring.
12714
12715 2009-07-17 Kenichi Handa <handa@m17n.org>
12716
12717 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12718
12719 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12720
12721 * nsfns.m (Fns_set_alpha): Remove function.
12722 (syms_of_nsfns): Don't defsubr it.
12723
12724 * nsterm.m (ns_get_color): Remove incompatible color formats.
12725 (ns_color_to_lisp): Generate #rrggbb color format string.
12726
12727 2009-07-16 Richard Stallman <rms@gnu.org>
12728
12729 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12730 (Fset_buffer_auto_saved): Handle save_length = -2.
12731
12732 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * xterm.c (Qx_gtk_map_stock): New var.
12735
12736 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12737 of calling intern each time.
12738
12739 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12740
12741 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12742 does tiling.
12743
12744 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12745
12746 2009-07-14 Kenichi Handa <handa@m17n.org>
12747
12748 * font.c (font_vconcat_entity_vectors): New function.
12749 (struct font_sort_data): New member font_driver_preference.
12750 (font_compare): Check font_driver_preference.
12751 (font_sort_entities): The format of the first argument changed.
12752 (font_delete_unmatched): Likewise.
12753 (font_list_entities): The return type changed.
12754 (font_select_entity): The format of the second argument changed.
12755 (font_find_for_lface): Adjuste for the above changes.
12756 Don't suppress the checking of C even if the repertory supports it.
12757 (Flist_fonts): Adjust for the above changes.
12758
12759 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12760 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
12761 Reject a font who has adstyle property that is different from a
12762 langname derived from registry property.
12763 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
12764
12765 2009-07-13 Eli Zaretskii <eliz@gnu.org>
12766
12767 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12768 local copy of dirfilename.
12769
12770 2009-07-13 Kenichi Handa <handa@m17n.org>
12771
12772 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12773 against max_char.
12774
12775 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12776 calling XSYMBOL (sym).
12777
12778 2009-07-11 Eli Zaretskii <eliz@gnu.org>
12779
12780 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12781 New function.
12782 (directory_files_internal) [WINDOWSNT]:
12783 Bind w32-get-true-file-attributes to either t or nil, depending whether
12784 the filesystem of the directory is fast or slow.
12785
12786 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12787 file name.
12788 (is_slow_fs): New function.
12789 (stat): Use it to determine whether to issue more system calls to
12790 get accurate file attributes, when w32-get-true-file-attributes is
12791 `local'.
12792
12793 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12794
12795 * xfns.c (Fx_select_font): Remember last font selected in
12796 x_last_font_name and use that the next time. Also try the frame
12797 parameter font-parameter as default to the font dialog.
12798
12799 2009-07-10 Kenichi Handa <handa@m17n.org>
12800
12801 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12802
12803 2009-07-09 Eli Zaretskii <eliz@gnu.org>
12804
12805 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12806
12807 * w32.c (stat): Treat UNC file names as residing on remote
12808 drives. (Bug#3542)
12809
12810 2009-07-09 Kenichi Handa <handa@m17n.org>
12811
12812 * fontset.c (fontset_find_font): Fix previous change.
12813
12814 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
12815
12816 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12817 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12818 error flag.
12819
12820 2009-07-08 Kenichi Handa <handa@m17n.org>
12821
12822 * fontset.c (fontset_find_font): Fix the logic of handling
12823 charset_matched.
12824 (font_for_char): Delete unused var.
12825 (generate_ascii_font_name): Delete it.
12826
12827 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12828
12829 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12830 (encode_coding_sjis): Fix the code range check.
12831
12832 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
12833
12834 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12835 (Fexpand_file_name): Copy string data properly (Bug#3772).
12836
12837 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12838
12839 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12840 first MapNotify.
12841
12842 2009-07-07 Kenichi Handa <handa@m17n.org>
12843
12844 * character.h (unibyte_has_multibyte_table): Delete extern.
12845 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12846
12847 * charset.c (Fset_charset_priority): Update charset_unibyte.
12848 (syms_of_charset): Initialize charset_unibyte.
12849
12850 * character.c (unibyte_has_multibyte_table): Delete it.
12851 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12852 charset_unibyte.
12853 (multibyte_char_to_unibyte_safe): Likewise.
12854 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12855
12856 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
12857 (x_produce_glyphs): Likewise.
12858
12859 * .gdbinit (xcharset): Fix the treating $arg0.
12860
12861 2009-07-04 Eli Zaretskii <eliz@gnu.org>
12862
12863 Emulation of `getloadavg' on MS-Windows.
12864 * w32.c: Include float.h.
12865 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12866 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12867 (get_native_system_info, get_system_times): New functions.
12868 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12869 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12870 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12871 g_b_init_get_system_times, and num_of_processors.
12872
12873 2009-07-03 Jason Rumney <jasonr@gnu.org>
12874
12875 * w32term.c (w32_initialize): Use standard types.
12876
12877 2009-07-03 Eli Zaretskii <eliz@gnu.org>
12878
12879 * dired.c (Ffile_attributes): Decode user and group names by the
12880 locale's encoding. (Bug#3443)
12881
12882 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12883
12884 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12885 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12886
12887 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12888
12889 * term.c (init_tty): Remove spurious #ifdef.
12890
12891 * m/mips.h: Mention this file is also used for netbsd.
12892 * m/pmax.h: Remove file.
12893
12894 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12895
12896 * xterm.h (struct x_display_info): Add invisible_cursor.
12897 (struct x_output): Add current_cursor.
12898
12899 * xterm.c (XTtoggle_invisible_pointer): New function.
12900 (x_define_frame_cursor): Don't define cursor if invisible or the
12901 same as before. Set current_cursor.
12902 (x_create_terminal): Set toggle_invisible_pointer_hook.
12903
12904 * xfns.c (make_invisible_cursor): New function.
12905 (x_set_mouse_color): Call make_invisible_cursor.
12906 Set current_cursor.
12907 (x_window): Set current_cursor.
12908
12909 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12910
12911 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12912 inserting a character.
12913 (read_avail_input): Call frame_make_pointer_visible.
12914
12915 * frame.c (Vmake_pointer_invisible): New variable.
12916 (frame_make_pointer_invisible, frame_make_pointer_visible):
12917 New functions.
12918 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12919
12920 * frame.h: Declare frame_make_pointer_invisible and
12921 frame_make_pointer_visible.
12922 (struct frame): Add pointer_invisible.
12923
12924 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12925
12926 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12927 frame isn't visible.
12928 (xg_frame_resized): If width/height is -1, get size of window
12929 from X server.
12930
12931 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12932 for MapNotify.
12933
12934 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
12935 here or call change_frame_size. Just call flush_and_sync.
12936 (flush_and_sync): Reintroduce.
12937
12938 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
12939
12940 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
12941
12942 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12943 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12944
12945 * frame.h: Declare Qsticky.
12946
12947 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12948
12949 * nsfns.m (ns_frame_parm_handlers): Ditto.
12950
12951 * frame.c: Declare Qsticky.
12952 (frame_parms): Add sticky.
12953
12954 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12955
12956 * xterm.h: Declare x_set_sticky.
12957
12958 * xterm.c (x_set_sticky): New function.
12959
12960 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12961 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12962 xg_tool_bar_proxy_help_callback.
12963
12964 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12965
12966 * frame.c: Qmaximized is new.
12967 (x_set_frame_parameters): Do not handle fullscreen specially.
12968 Only set width and height if explicitly set.
12969 (x_set_fullscreen): Handle Qmaximized.
12970 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12971 (syms_of_frame): Initialize Qmaximized.
12972
12973 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12974 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
12975
12976 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
12977 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12978 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
12979 set gravity to NorthWestGravity when USE_GTK.
12980 (set_wm_state): New function.
12981 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
12982 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12983 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
12984 or the case when no window manager is running. That means remove calls
12985 to x_real_positions and x_fullscreen_adjust.
12986
12987 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12988 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12989 flush_and_sync.
12990 (xg_height_changed): New function.
12991 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
12992 and gtk_window_set_policy. Set frame gravity after parsing the
12993 geometry string.
12994 (xg_update_frame_menubar, free_frame_menubar)
12995 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12996 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12997 Remove calls to xg_frame_set_char_size.
12998
12999 2009-07-01 Kenichi Handa <handa@m17n.org>
13000
13001 * keyboard.c (decode_keyboard_code): New function.
13002 (tty_read_avail_input): Decode the input bytes if necessary.
13003
13004 * coding.c (setup_coding_system):
13005 Initialize coding->carryover_bytes to 0.
13006 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13007 use Qno_conversion.
13008
13009 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13010
13011 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13012
13013 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13014
13015 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13016
13017 2009-06-30 Jason Rumney <jasonr@gnu.org>
13018
13019 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13020 is already loaded.
13021 Set user model ID if supported (bug#1849).
13022
13023 2009-06-29 Jim Meyering <meyering@redhat.com>
13024
13025 Remove useless if-before-xfree test.
13026 * nsfont.m (nsfont_close): Remove useless test.
13027 * term.c (delete_tty): Likewise.
13028 * w32.c (system_process_attributes): Likewise.
13029 * w32font.c (w32font_close): Likewise.
13030 * xfaces.c (x_free_gc): Likewise.
13031 * xselect.c (buffer): Likewise.
13032
13033 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13034
13035 * process.c (send_process): Keep decoded string in a local
13036 variable and protect it from GC. (Bug#3521)
13037
13038 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13039
13040 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13041 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13042
13043 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13044
13045 * xdisp.c (start_display, handle_face_prop)
13046 (move_it_vertically_backward, cursor_row_fully_visible_p)
13047 (redisplay_window, try_window_id, produce_image_glyph):
13048 Delete some #ifdef-ed out code chunks that are now obsolete.
13049
13050 * xterm.c (x_update_window_begin, x_new_focus_frame)
13051 (x_scroll_bar_handle_click, handle_one_xevent)
13052 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13053 (x_make_frame_visible, x_make_frame_invisible)
13054 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13055 code chunks that are now obsolete.
13056
13057 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13058
13059 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13060 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13061 for hours, when optimzation is enabled.
13062 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13063 (xd_read_message): Make them static.
13064
13065 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13066
13067 * term.c (turn_on_face): Allow simultaneously bold and dim
13068 terminal faces (Bug#3530).
13069
13070 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13071
13072 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13073
13074 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13075 truncation glyphs (Bug#3686).
13076
13077 2009-06-27 Glenn Morris <rgm@gnu.org>
13078
13079 * m/pmax.h: Restore file, with only netbsd portions.
13080
13081 2009-06-26 David Reitter <david.reitter@gmail.com>
13082
13083 * nsterm.m (keydown): Avoid infinite loop.
13084
13085 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13086
13087 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13088 the arg FORCE_SYMBOL.
13089
13090 2009-06-25 Kenichi Handa <handa@m17n.org>
13091
13092 * fontset.c (fontset_find_font): When a usable rfont_def is found
13093 in a fallback font-group, make it the first element of the group.
13094
13095 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13096
13097 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13098
13099 2009-06-24 Kenichi Handa <handa@m17n.org>
13100
13101 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13102 set for C.
13103 (fontset_font): Record the availability of a font for C both in
13104 the realized fontsets of the current one and the default one.
13105
13106 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13107
13108 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13109 conditional, it is always defined on AIX.
13110
13111 2009-06-23 Miles Bader <miles@gnu.org>
13112
13113 * window.c (Vrecenter_redisplay): New variable.
13114 (syms_of_window): Initialize it.
13115 (Qtty): New extern declaration.
13116 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13117
13118 2009-06-23 Jim Meyering <meyering@redhat.com>
13119
13120 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13121 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13122 pointer dereferences are guaranteed to be valid.
13123
13124 2009-06-23 Kenichi Handa <handa@m17n.org>
13125
13126 * emacs.c (main): Call init_font ().
13127
13128 * font.h (Vfont_log): Extern it.
13129 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13130
13131 * font.c (font_sort_entities, font_list_entities)
13132 (font_matching_entity, font_open_entity)
13133 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13134 (Vfont_log): Delete static.
13135 (font_log_env_checked): Delete this variable.
13136 (font_add_log): Don't check font_log_env_checked.
13137 (font_deferred_log): Check Vfont_log.
13138 (init_font): New function.
13139
13140 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13141
13142 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13143
13144 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13145
13146 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13147
13148 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13149 (face_for_char): Don't call font_deferred_log here.
13150 (font_for_char): Likewise.
13151
13152 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13153
13154 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13155 rather than its background_width for drawing the overline and
13156 underline (Bug#489).
13157
13158 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13159 rather than its background_width for drawing the overline and
13160 underline (Bug#489).
13161 (xg_default_icon_file): New variable.
13162 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13163 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13164
13165 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13166 (load_overlay_strings): Remove externs.
13167 (fast_find_position): Function deleted.
13168 (mouse_face_from_buffer_pos): New function, based on
13169 fast_find_position. Correctly handle before-strings,
13170 display-strings, and after-strings (Bug#1220).
13171 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13172
13173 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13174
13175 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13176 (move_it_in_display_line_to, move_it_in_display_line_to)
13177 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13178
13179 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13180
13181 * Branch for 23.1.
13182
13183 2009-06-21 Jason Rumney <jasonr@gnu.org>
13184
13185 * w32term.c (keyboard_codepage): New static variable.
13186 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13187 (w32_read_socket) [WM_CHAR]: Use it to decode character
13188 input (bug#3237).
13189 (w32_initialize): Initialize it.
13190 (codepage_for_locale): New function.
13191
13192 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
13193
13194 * process.c (status_message): Pass Faset index argument as a lisp
13195 object, so as to work with USE_LISP_UNION_TYPE.
13196
13197 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13198
13199 * coding.c (Ffind_coding_systems_region_internal):
13200 Cache checked characters.
13201
13202 2009-06-18 Kenichi Handa <handa@m17n.org>
13203
13204 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13205
13206 2009-06-18 Andreas Schwab <aschwab@redhat.com>
13207
13208 * xdisp.c (redisplay_internal): Check that the frame is still
13209 live after redisplay of its windows.
13210 (redisplay_windows): Check that the window is still live.
13211
13212 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13213
13214 * coding.c (detect_coding_utf_16): Fix previous change.
13215
13216 2009-06-16 Kenichi Handa <handa@m17n.org>
13217
13218 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13219 UTF-16 by checking the dispersion of Eth and Oth bytes.
13220
13221 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13222
13223 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13224
13225 2009-06-15 Kenichi Handa <handa@m17n.org>
13226
13227 * process.c (status_message): Fix previous change. Be sure to
13228 decode a localized string.
13229
13230 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13231
13232 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13233 add comment explaining why.
13234
13235 2009-06-14 Sidney Markowitz <sidney@sidney.com>
13236
13237 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13238
13239 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13240
13241 * nsfont.m (ns_attribute_value): Remove.
13242 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13243 (ns_has_attribute): Shrink the normal range.
13244 (ns_findfonts): Don't worry about requested spec in determining
13245 need for synthItal.
13246 (ns_get_covering_families): Retain scriptToFamilies.
13247
13248 2009-06-14 Seiji Zenitani <zenitani@mac.com>
13249
13250 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13251
13252 2009-06-11 Kenichi Handa <handa@m17n.org>
13253
13254 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13255 overhang for the static composition case.
13256
13257 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13258
13259 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13260 overhang for the automatic composition case.
13261
13262 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13263 composition case.
13264
13265 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
13266
13267 * xdisp.c (get_next_display_element): When handling wrap-prefix
13268 and line-prefix, treat \n as a control character (bug#3502).
13269
13270 2009-06-10 Kenichi Handa <handa@m17n.org>
13271
13272 * font.c (font_parse_family_registry): Fix for one-char foundry.
13273 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13274
13275 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13276
13277 * process.c (status_message): Fix handling of multibyte signal
13278 string (Bug#3499).
13279
13280 2009-06-09 Jim Meyering <meyering@redhat.com>
13281
13282 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13283 color name is missing.
13284
13285 2009-06-09 Kenichi Handa <handa@m17n.org>
13286
13287 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13288 FROM-CODE and TO-CODE are codepoints of CHARSET.
13289
13290 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13291
13292 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13293
13294 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13295
13296 Changes to support :script/:lang/:otf in NS font driver.
13297 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13298 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13299 indicate not part of font driver interface, and change callers.
13300 (ns_get_family): Remove pointless null check.
13301 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13302 ns_spec_to_descriptor, ns_descriptor_to_entity.
13303 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13304 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13305 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13306 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13307 (ns_get_req_script, ns_accumulate_script_ranges)
13308 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13309 New functions.
13310 (nsfont_list, nsfont_match): Use ns_findfonts.
13311 (nsfont_open): Use font descriptor instead of traits.
13312 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13313 (dump_glyphstring): Rename to ns_dump_glyphstring.
13314
13315 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13316
13317 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13318
13319 * fontset.c (fontset_from_font): Remove NS-specific code.
13320
13321 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
13322
13323 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13324 nonactive windows.
13325
13326 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
13327
13328 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
13329
13330 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13331
13332 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13333
13334 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
13335
13336 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13337 account for the overflowing of newlines into the last glyph on the
13338 display line (Bug#3482).
13339
13340 2009-06-05 David Reitter <david.reitter@gmail.com>
13341
13342 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13343 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
13344 Fns_selection_exists_p, Fns_selection_owner_p.
13345
13346 2009-06-03 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13349 available. (Bug#3379)
13350
13351 2009-05-29 Kenichi Handa <handa@m17n.org>
13352
13353 * coding.c (get_translation_table):
13354 Check Venable_character_translation.
13355
13356 2009-05-26 David Reitter <david.reitter@gmail.com>
13357
13358 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13359 (x_make_frame_visible): Move frame to front rather than calling
13360 ns_raise_frame().
13361 (keyDown:): Do not swallow events that aren't re-sent if frame
13362 isn't key window.
13363 (drawRect:): Do not set visibility/iconified flags because
13364 drawRect may be called by NSView even if the frame is hidden.
13365
13366 * nsfns.m (Fx_create_frame): Follow other ports in
13367 determining visibility; default to t. Ensure async_visible is set.
13368
13369 2009-05-23 Eli Zaretskii <eliz@gnu.org>
13370
13371 * dired.c (Ffile_attributes): Doc fix.
13372
13373 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
13374
13375 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13376
13377 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13378
13379 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13380 and xfont_scratch_props.
13381 (syms_of_xfont): Do it here instead.
13382 (xfont_find_ccl_program): Delete, unused.
13383 (xfont_open): Delete unused var `i'.
13384
13385 2009-05-21 Kenichi Handa <handa@m17n.org>
13386
13387 * fontset.c (Qlatin): Don't make it static.
13388
13389 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13390 New functions.
13391 (xfont_scripts_cache, xfont_scratch_props): New variables.
13392 (Qlatin, Vscalable_fonts_allowed): Extern it.
13393 (xfont_list_pattern): Argument changed. Callers changed.
13394 Check Vscalable_fonts_allowed. Check the support of a script.
13395 (xfont_list): Don't reject a font spec with :script property.
13396 (xfont_has_char): Fix setting of encoding.
13397 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13398 xfont_scratch_props.
13399
13400 2009-05-19 Kenichi Handa <handa@m17n.org>
13401
13402 * font.c (font_sort_entities): Rename from font_sort_entites.
13403 Callers changed.
13404
13405 2009-05-18 Kenichi Handa <handa@m17n.org>
13406
13407 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13408
13409 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13410
13411 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13412 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13413
13414 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13415
13416 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13417 (x_delete_terminal): Dissociate resource database from display and
13418 then call XrmDestroyDatabase before closing display.
13419
13420 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13421
13422 * nsterm.m (ns_read_socket): Remove unused variable.
13423 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13424 whether selected frame is viable before raising it (based on patch
13425 by David Reitter), and improve commentary.
13426 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
13427
13428 2009-05-15 Kenichi Handa <handa@m17n.org>
13429
13430 * font.c (Ffont_spec): Check arguments.
13431
13432 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
13433
13434 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13435 weight when testing attributes (Bug#3282).
13436
13437 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13438
13439 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13440 what we expect to get in the next ConfigureNotify event.
13441
13442 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13443 before Xft one (Bug#1696).
13444
13445 2009-05-07 David Reitter <david.reitter@gmail.com>
13446
13447 * nsfns.m (Fx_display_planes): Compute bitplanes using
13448 NSBitsPerPixelFromDepth (Bug#3207).
13449
13450 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
13451
13452 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13453
13454 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
13455
13456 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13457
13458 2009-05-07 David Reitter <david.reitter@gmail.com>
13459
13460 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13461 Respect mouse face background.
13462
13463 2009-05-07 David Reitter <david.reitter@gmail.com>
13464
13465 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13466 Mouse movement/highlight: bracket drawing operations
13467 in ns_update_begin and ns_update_end.
13468
13469 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13470
13471 * nsfns.m (ns_get_screen): Rewrite.
13472 Don't presume selected-frame is of type `ns'.
13473
13474 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13475 all drivers.
13476
13477 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13478
13479 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13480
13481 * keyboard.h (add_user_signal): Fix typo in extern.
13482
13483 * lisp.h (add_user_signal): Remove extern.
13484
13485 * unexelf.c (unexec): Consider a section to precede the .bss section
13486 if its addresses overlap that of .bss.
13487 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13488 instead of dumping process.
13489
13490 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13491
13492 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13493
13494 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13495
13496 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13497
13498 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13499
13500 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13501 any statements.
13502
13503 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13504
13505 * process.c (read_process_output): Make sure the current buffer is
13506 always restored.
13507
13508 * coding.c (record_conversion_result): Don't modify
13509 Vlast_code_conversion_error for successful result.
13510 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13511
13512 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13513
13514 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
13515 (load_charset_map): Remove unnecessary code.
13516
13517 2009-04-30 David Reitter <david.reitter@gmail.com>
13518
13519 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
13520 through f24.
13521
13522 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
13523
13524 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13525
13526 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13527 face_at_buffer_position.
13528 (face_before_or_after_it_pos, get_next_display_element)
13529 (note_mouse_highlight): Update face_at_buffer_position call.
13530
13531 * term.c (term_mouse_highlight):
13532 * msdos.c (IT_note_mouse_highlight):
13533 * fontset.c (Finternal_char_font):
13534 * font.c (font_at, font_range): Update face_at_buffer_position call.
13535
13536 * dispextern.h (face_at_buffer_position): Update prototype.
13537
13538 2009-04-30 Kenichi Handa <handa@m17n.org>
13539
13540 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
13541
13542 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13543
13544 * callproc.c (Fcall_process): Fix GC protection. Make sure
13545 current buffer is always restored.
13546
13547 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13548
13549 * atimer.c (init_atimer): Also clear stopped_atimers.
13550
13551 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13552
13553 * process.c (create_process): Clean up merger residues of
13554 2008-07-17 change.
13555
13556 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
13557
13558 * lread.c (Vread_circle): New variable.
13559 (read1): Disable recursive read if Vread_circle is nil.
13560
13561 2009-04-29 Kenichi Handa <handa@m17n.org>
13562
13563 * fontset.h (set_default_ascii_font): Delete extern.
13564
13565 * fontset.c (set_default_ascii_font): Delete this unused function.
13566
13567 * frame.c (x_set_font): When ARG is a font-object, check if the
13568 font-object matches with the ASCII font-spec of the frame's
13569 fontset. If not, create a new fontset for the frame. (Bug #3075)
13570
13571 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13572
13573 * fns.c (Flocale_info): Protect vector from GC during decoding.
13574
13575 * process.c (Fstart_process): Protect argv strings from GC during
13576 encoding.
13577
13578 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13579
13580 * sysdep.c: Include <ctype.h>.
13581
13582 2009-04-27 David Reitter <david.reitter@gmail.com>
13583
13584 * nsfont.m (nsfont_open): Remove unused variable shrink.
13585 Remove commented-out code.
13586
13587 2009-04-26 Johan Bockgård <bojohan@gnu.org>
13588
13589 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13590
13591 2009-04-25 Jason Rumney <jasonr@gnu.org>
13592
13593 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13594
13595 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13596
13597 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13598 Swap bytes in short integer if fringe bitmap width > 8.
13599
13600 2009-04-23 Kenichi Handa <handa@m17n.org>
13601
13602 * xfaces.c (Fx_list_fonts): If a font size is specified in
13603 PATTERN, set it in returned scalable fonts.
13604
13605 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
13606
13607 * keyboard.c (Fset_input_meta_mode): Doc fix.
13608
13609 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13610
13611 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
13612
13613 * coding.c (Fterminal_coding_system): Doc fix.
13614
13615 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13616 (Fx_display_pixel_height, Fx_display_planes)
13617 (Fx_display_color_cells, Fx_server_max_request_size)
13618 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13619 (Fx_display_mm_height, Fx_display_mm_width)
13620 (Fx_display_backing_store, Fx_display_visual_class)
13621 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13622 Doc fixes, replacing "terminal id" with "terminal object".
13623 (check_x_display_info): Handle terminal objects instead of
13624 terminal ids.
13625
13626 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13627 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
13628 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13629 Doc fixes, replacing "terminal id" with "terminal object".
13630
13631 2009-04-21 Kenichi Handa <handa@m17n.org>
13632
13633 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
13634 (font_score): Check AVGWIDTH too.
13635
13636 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13637 worst case.
13638 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13639 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
13640
13641 2009-04-19 Jason Rumney <jasonr@gnu.org>
13642
13643 The following changes fix Bug#3005 for wide glyphs on each platform,
13644 without reintroducing Bug#1258 for stretch glyphs.
13645
13646 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13647 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13648 get_phys_cursor_geometry.
13649
13650 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
13651 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13652 using get_phys_cursor_geometry.
13653
13654 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13655 correctly calculated.
13656
13657 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13658
13659 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13660 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
13661 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13662 is deprecated.
13663
13664 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13665
13666 * font.c (font_put_frame_data): Use xfree instead of free.
13667
13668 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
13669
13670 * w32font.c (Qja, Qko): Remove declarations.
13671 (syms_of_w32font): Don't DEFSYM them.
13672
13673 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
13674
13675 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13676
13677 * font.h (Qja, Qko): Extern them.
13678
13679 * ftfont.c (Qja, Qko): Remove declarations.
13680
13681 * xfont.c (Qja, Qko): Remove declarations.
13682
13683 2009-04-17 Kenichi Handa <handa@m17n.org>
13684
13685 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13686 string from a vector to handle Latin-1 characters correctly.
13687
13688 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13689 entity even if the cache hits.
13690
13691 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13692
13693 * search.c (boyer_moore): Use zero as marker value for a possible
13694 match instead of depending on overflow behavior. (Bug#2844)
13695
13696 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13697 * lisp.h: Adjust prototypes.
13698
13699 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
13700
13701 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13702 change (Bug#3003).
13703
13704 2009-04-16 Kenichi Handa <handa@m17n.org>
13705
13706 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
13707
13708 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13709 adstyle.
13710
13711 * ftfont.c (Qja, Qko): Don't make them static.
13712 (enum ftfont_cache_for): New enum.
13713 (fc_charset_table): Undo the previous change.
13714 (ftfont_get_latin1_charset): Delete it.
13715 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13716 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
13717 non-scarable font, try to get AVERAGE_WIDTH.
13718 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13719 Change ft_face_cache from a list of a hash-table. Don't check
13720 `ja' and `ko' adstyle here.
13721 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13722 FTFONT_CACHE_FOR_CHARET.
13723 (ftfont_get_charset): Undo the previous change.
13724 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
13725 (ftfont_close): Likewise.
13726 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13727
13728 * font.c (font_sort_entites): Change the meaning of the arg
13729 BEST-ONLY. Don't optimize for VEC of lenght 1.
13730 (font_select_entity): Just return the value of font_sort_entites.
13731
13732 * xfaces.c (merge_face_vectors): Reflect font properties in
13733 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13734 font_clear_prop if a face attribute doesn't change.
13735
13736 * charset.h (charset_ksc5601): Extern it.
13737
13738 * charset.c (charset_ksc5601): New variable.
13739 (Fdefine_charset_internal): Set charset_ksc5601.
13740 (init_charset_once): Initialize charset_ksc5601 to -1.
13741
13742 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13743
13744 * fileio.c (history_delete_duplicates): Remove unused declaration.
13745
13746 * callint.c (history_delete_duplicates): New declaration.
13747 (Fcall_interactively): Remove command history duplicates when
13748 history_delete_duplicates is true.
13749
13750 2009-04-14 Eli Zaretskii <eliz@gnu.org>
13751
13752 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13753
13754 2009-04-14 Kenichi Handa <handa@m17n.org>
13755
13756 * font.c (Ffont_info): Fix docstring. Fix the second element of
13757 the returned value (bug#2949).
13758
13759 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
13760
13761 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13762
13763 2009-04-14 Kenichi Handa <handa@m17n.org>
13764
13765 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13766 encoding charset is ascii_compatible.
13767
13768 * charset.c (Fdefine_charset_internal): Make charset
13769 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13770 code_offset is 0, and covers all ASCII characters.
13771
13772 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13773
13774 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13775 (ns_string_to_pasteboard_internal):
13776 * nsmenu.m (process_dialog):
13777 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13778 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13779 * lisp.h (Fx_load_color_file): Declare.
13780
13781 2009-04-13 Kenichi Handa <handa@m17n.org>
13782
13783 * font.c (font_delete_unmatched): Preserve the order of list elements.
13784 (font_select_entity): Suppress the code to optimize for the same
13785 kind of fonts.
13786 (font_load_for_lface): Get a font that supports at least ASCII
13787 characters.
13788
13789 * ftfont.c (Qja, Qko): New variables.
13790 (fc_charset_table): Delete uniquifier data for iso8859-1.
13791 (ftfont_get_latin1_charset): New function.
13792 (get_adstyle_property): New function.
13793 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13794 bitmap fonts.
13795 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13796 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13797 `ko' or `ja'.
13798 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
13799 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
13800 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13801 property.
13802 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13803 (syms_of_ftfont): DEFSYM Qja and Qko.
13804
13805 2009-04-09 Kenichi Handa <handa@m17n.org>
13806
13807 * charset.c (map_charset_chars): For a charset of `superset'
13808 method, fix calculation of code range.
13809
13810 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13811 from the list of extra properties.
13812 (font_clear_prop): Be sure to delete `:name' font property.
13813
13814 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13815
13816 * dispnew.c (redraw_overlapping_rows): Fix detection of
13817 overlapping for topmost and bottommost rows.
13818
13819 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
13820
13821 2009-04-06 Jason Rumney <jasonr@gnu.org>
13822
13823 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13824
13825 2009-04-06 Kenichi Handa <handa@m17n.org>
13826
13827 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13828
13829 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13830
13831 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13832
13833 * ftfont.c (ftfont_open): Fix checking of the return value of
13834 FT_Load_Char. Fix setting font->underline_thickness.
13835
13836 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
13837
13838 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13839 (Fterminal_parameters, Fterminal_parameter)
13840 (Fset_terminal_parameter): In doc string, refer to terminal
13841 objects rather than terminal ids.
13842
13843 2009-04-04 Eli Zaretskii <eliz@gnu.org>
13844
13845 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13846 ret_lim_data. (Bug#2867)
13847
13848 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
13849
13850 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13851 so they don't get wider than the window, matching 2006-01-23
13852 change to the partner function in xdisp.c (Bug#2800).
13853
13854 2009-04-03 Kenichi Handa <handa@m17n.org>
13855
13856 * print.c (print_object): Make each lowest sub_char_table start a
13857 new line (Bug#2866).
13858
13859 2009-04-02 Kenichi Handa <handa@m17n.org>
13860
13861 * fontset.c (fontset_font): Record no-font when a fontset
13862 explicitly tells not to try another font-specs.
13863
13864 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13865
13866 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13867
13868 2009-03-30 Kenichi Handa <handa@m17n.org>
13869
13870 * fontset.c (fontset_from_font): Specify only registry in a
13871 font-spec for all characters supported by that registry.
13872
13873 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13874 even if HAVE_M17N_FLT is not defined.
13875
13876 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13877
13878 * ftfont.c: Conditionalize prototyping and use of
13879 ftfont_variation_glyphs.
13880
13881 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13882
13883 * frame.c (delete_frame): Work around compiler bug.
13884
13885 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13886 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13887 Some more EMACS_INT.
13888 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13889
13890 * xdisp.c (dump_glyph): Fix typo.
13891
13892 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13893 (adjust_markers_gap_motion, adjust_markers_for_delete)
13894 (adjust_markers_for_insert, adjust_point)
13895 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13896 (make_gap, copy_text, count_size_as_multibyte, insert)
13897 (insert_and_inherit, insert_before_markers)
13898 (insert_before_markers_and_inherit, insert_1)
13899 (count_combining_before, count_combining_after, insert_1_both)
13900 (insert_from_string, insert_from_string_before_markers)
13901 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13902 (insert_from_buffer_1, adjust_after_replace)
13903 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13904 (replace_range_2, del_range, del_range_1, del_range_byte)
13905 (del_range_both, del_range_2, modify_region)
13906 (prepare_to_modify_buffer, signal_before_change)
13907 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13908 for buffer positions and sizes.
13909 * lisp.h: Adjust prototypes accordingly.
13910
13911 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13912 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13913 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13914
13915 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13916
13917 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13918
13919 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13920 lines and columns so we keep the same pixel height and width.
13921
13922 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13923 the property _NET_WM_STATE has changed.
13924 (x_handle_net_wm_state): New function to update frame parameter
13925 fullscreen.
13926 (x_term_init): Initialize atoms for _NET_WM_STATE.
13927
13928 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13929
13930 2009-03-27 Kevin Ryde <user42@zip.com.au>
13931
13932 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13933 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13934 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13935 (Fgpm_mouse_stop): Pass that new parameter.
13936 * termhooks.h (close_gpm): Adjust prototype.
13937
13938 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13939
13940 * lisp.h (Fx_focus_frame): Declare.
13941
13942 * callint.c (Fcall_interactively): For '^' just delegate the work to
13943 handle-shift-selection.
13944 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13945
13946 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
13947
13948 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13949
13950 * data.c (Qinteractive_form): New variable.
13951 (Finteractive_form): Use it.
13952
13953 * eval.c (Fcommandp): Use Qinteractive_form.
13954
13955 2009-03-24 Jason Rumney <jasonr@gnu.org>
13956
13957 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13958 Calculate total size precisely. Decode environment variables
13959 before substituting. (Bug#38)
13960
13961 2009-03-24 Kenichi Handa <handa@m17n.org>
13962
13963 * font.c (find_font_encoding): Return Qnil for unsupported
13964 encoding (Bug#2722).
13965
13966 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13967
13968 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13969 that gdpy is set.
13970
13971 2009-03-22 Alan Mackenzie <acm@muc.de>
13972
13973 * callint.c (Finteractive): Clarify the doc string - even
13974 promptless elements need \n separators.
13975
13976 2009-03-22 Jason Rumney <jasonr@gnu.org>
13977
13978 * w32term.c (syms_of_w32term): Doc fix for
13979 x-use-underline-position-properties.
13980
13981 2009-03-21 Eli Zaretskii <eliz@gnu.org>
13982
13983 * w32.c (getpwuid): Change argument type to unsigned.
13984 (struct w32_id): Change type of `rid' member to unsigned.
13985 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13986 argument ID to unsigned. All callers changed.
13987 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13988
13989 2009-03-20 Eli Zaretskii <eliz@gnu.org>
13990
13991 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13992 negative, produce a float value.
13993
13994 * dired.c (make_uid, make_gid): New functions.
13995 (Ffile_attributes): Use them to avoid negative UID and GID.
13996
13997 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
13998
13999 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14000 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14001 Fix typos in docstrings.
14002
14003 2009-03-19 Kenichi Handa <handa@m17n.org>
14004
14005 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14006 changed, use font_load_for_lface to get a new font object.
14007 Call free_realized_fontset after handling ASCII font change.
14008
14009 * frame.c (x_set_font): Handle the case that ARG is a cons.
14010
14011 2009-03-19 Glenn Morris <rgm@gnu.org>
14012
14013 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14014
14015 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14016
14017 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14018
14019 2009-03-19 Kenichi Handa <handa@m17n.org>
14020
14021 * charset.c (load_charset_map_from_file): When a mapfile can't be
14022 loaded, signal an error.
14023
14024 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14025
14026 * dired.c (Ffile_attributes): Make sure UID and GID are always
14027 positive, even if the value is too large for a positive EMACS_INT.
14028 Doc fix.
14029
14030 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14031
14032 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14033
14034 * xmenu.c (xdialog_show): Move Fredisplay call ...
14035 (Fx_popup_dialog): ... here.
14036
14037 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14038
14039 * dired.c (file_name_completion): Disable the first optimization just
14040 installed, since it is not implemented correctly.
14041
14042 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14043
14044 * dired.c (file_name_completion): Check completion-ignored-extensions
14045 only if the entry can affect bestmatch.
14046 Stop the search early, as Ftry_completion already does.
14047
14048 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14049
14050 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14051
14052 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14053
14054 * keyboard.c (parse_menu_item): Don't display remappings as menu
14055 equivalent bindings (Bug#788).
14056
14057 2009-03-15 Jason Rumney <jasonr@gnu.org>
14058
14059 * w32term.h (WM_EMACS_PAINT): New message.
14060 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14061 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14062 before passing to lisp thread. (Bug#950)
14063
14064 2009-03-14 David Reitter <david.reitter@gmail.com>
14065
14066 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14067 variable as it was never reset.
14068 (ns_term_init): Remove initialization of Lisp-settable defaults
14069 and ns_expand_space.
14070 (-setPanelFromDefaultValues): Remove ns_expand_space.
14071 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14072 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14073 i.e. no additional spacing, similar to Carbon port.
14074
14075 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14076 * nsfns.m (ns-popup-prefs-panel): Remove.
14077
14078 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14079
14080 * sound.c (alsa_configure): Remove call to deprecated
14081 snd_pcm_sw_params_set_xfer_align.
14082
14083 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14084
14085 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14086 after clicking in a detached tool bar.
14087 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14088
14089 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14090
14091 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14092 int/Lisp_Object mixup).
14093
14094 2009-03-13 Kenichi Handa <handa@m17n.org>
14095
14096 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14097 Handle NAME nil and t correctly. Callers changed.
14098 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14099 (set_fontset_font): Change ARG to a vector. Handle range_list in
14100 ARG correctly.
14101 (Fset_fontset_font): Fix the case that TARGET is both a script
14102 name and charset name. Adjust the arg to set_fontset_font for
14103 the above change.
14104 (fontset_from_font): Fix previous change.
14105 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14106 entry. If FONTSET is the default fontset, don't set the extra
14107 slot of the returning char-table.
14108
14109 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14110
14111 * nsfns.m (Fx_close_connection): Doc fix.
14112 (Fns_do_applescript): Reflow docstring.
14113 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14114 (Fx_display_pixel_width, Fx_display_pixel_height)
14115 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14116 Fix typos in docstrings.
14117 (Fns_set_alpha): Fix typos in error messages.
14118
14119 2009-03-12 David Reitter <david.reitter@gmail.com>
14120
14121 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14122 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14123 were used for such events.
14124
14125 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14126 (toggleToolbar, performDragOperation, runHelp): Use it.
14127
14128 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14129 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14130
14131 2009-03-11 Kenichi Handa <handa@m17n.org>
14132
14133 * font.h (font_open_by_spec): Extern it.
14134
14135 * font.c (font_open_by_spec): New function.
14136 (font_open_by_name): Use font_open_by_spec.
14137
14138 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14139 fontset of the frame.
14140
14141 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14142 modify the default font of frames that use this fontset.
14143 (num_auto_fontsets): New variable.
14144 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14145 name. Be sure to set FONTSET_ASCII to the correct font name.
14146 (update_auto_fontset_alist): New function.
14147
14148 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14149
14150 * makefile.w32-in: Update dependencies.
14151
14152 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14153
14154 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14155
14156 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14157
14158 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14159
14160 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14161
14162 * lread.c (Feval_buffer): Doc fix.
14163
14164 2009-03-09 Kenichi Handa <handa@m17n.org>
14165
14166 * charset.c (Qfile_name_handler_alist): Extern it.
14167 (load_charset_map_from_file): Temporarily bind
14168 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14169
14170 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
14171
14172 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14173 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
14174
14175 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14176
14177 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14178 (x_set_window_size): Change back to calculated method of setting
14179 toolbar height under Cocoa. (Bug#2546)
14180 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14181 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14182
14183 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14184
14185 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14186 accelerator in parens under GNUstep.
14187
14188 2009-03-06 Kenichi Handa <handa@m17n.org>
14189
14190 These changes are to detect incorrect composition sequence without
14191 looking ahead the source. (Bug#2370)
14192
14193 * coding.h: Include "composite.h".
14194 (enum compisition_state): New enum.
14195 (struct compisition_status): New struct.
14196 (struct iso_2022_spec): New member cmp_status.
14197 (struct emacs_mule_spec): New struct.
14198 (struct coding_system): New members ctext_extended_segment_len and
14199 embedded_utf_8. Change the union member
14200 spec.emacs_mule_full_support to spec.emacs_mule.
14201
14202 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14203 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14204 (MAX_ANNOTATION_LENGTH): Define to 5.
14205 (ADD_COMPOSITION_DATA): New arg nbytes.
14206 (emacs_mule_char): New arg cmp_status.
14207 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14208 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14209 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14210 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14211 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14212 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14213 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14214 (EMACS_MULE_COMPOSITION_END): New macro.
14215 (emacs_mule_finish_composition): New function.
14216 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14217 (decode_coding_emacs_mule): Avoid long looking ahead while
14218 handling composition.
14219 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14220 (ENCODE_COMPOSITION_RULE): New macro.
14221 (finish_composition): New function.
14222 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14223 (DECODE_COMPOSITION_START): New implementation.
14224 (DECODE_COMPOSITION_END): Likewise.
14225 (STORE_COMPOSITION_RULE): New macro.
14226 (decode_coding_iso_2022): Avoid long looking ahead while handling
14227 composition, CTEXT extended segment, and embedded UTF-8.
14228 (setup_coding_system): For a coding of type iso-2022, reset
14229 CODING_ISO_EXTSEGMENT_LEN (coding) and
14230 CODING_ISO_EMBEDDED_UTF_8 (coding).
14231 (get_translation): Delete arguments last_block, from_nchars,
14232 to_nchars. Callers changed.
14233 (produce_chars): Don't modify charbuf. Adjusted for the change of
14234 get_translation.
14235 (produce_composition): Adjust for the new annotation sequence.
14236 (handle_composition_annotation): Likewise.
14237 (consume_chars): Adjust for the change of get_translation.
14238
14239 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14240
14241 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
14242
14243 2009-03-05 Kenichi Handa <handa@m17n.org>
14244
14245 * font.c (font_select_entity): New function.
14246 (font_find_for_lface): Use font_select_entity to select a font.
14247
14248 * fontset.c (fontset_find_font): If a font found without
14249 restricting to the characters C doesn't support C, try to find a
14250 font with C restriction.
14251
14252 2009-03-04 Nikolaj Schumacher <me@nschum.de>
14253
14254 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14255
14256 2009-03-04 Jason Rumney <jasonr@gnu.org>
14257
14258 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14259 characters that have already been read. (Bug#2569)
14260
14261 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14262 Log an error message if check_image_size failed.
14263 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14264 (gs_load): Mention max-image-size in size error message. (Bug#2560)
14265
14266 2009-03-02 Eli Zaretskii <eliz@gnu.org>
14267
14268 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14269 when decoding process output.
14270
14271 2009-03-01 Richard M Stallman <rms@gnu.org>
14272
14273 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14274
14275 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14276
14277 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14278
14279 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14280 (decode_coding_emacs_mule, decode_coding_iso_2022)
14281 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14282 (decode_coding_raw_text, decode_coding_charset)
14283 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14284 Honor inhibit-eol-conversion. (Bug #2186)
14285
14286 2009-02-28 Jason Rumney <jasonr@gnu.org>
14287
14288 * coding.c (detect_coding_charset): If not checking latin extra,
14289 fail on characters between 0x80 and 0xA0. (Bug#2354)
14290
14291 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14292
14293 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14294 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
14295
14296 2009-02-27 Glenn Morris <rgm@gnu.org>
14297
14298 * callint.c (Finteractive): Doc fix.
14299
14300 2009-02-27 Kenichi Handa <handa@m17n.org>
14301
14302 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14303
14304 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
14305
14306 * font.c (font_style_to_value): Set value for unknown symbols to
14307 100 instead of 255.
14308 (weight_table, slant_table, width_table): Treat "unspecified" as
14309 the default value.
14310
14311 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
14312
14313 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14314
14315 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
14316
14317 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14318 error as soon as a recursive load is detected.
14319
14320 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14321
14322 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14323 before caching.
14324
14325 2009-02-24 Kenichi Handa <handa@m17n.org>
14326
14327 * fontset.c (fontset_find_font): Fix the condition for checking
14328 unavailable font.
14329
14330 2009-02-24 Glenn Morris <rgm@gnu.org>
14331
14332 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14333 whitespace that confuses documentation.
14334
14335 2009-02-23 Miles Bader <miles@gnu.org>
14336
14337 * process.c (Flist_system_processes, Fprocess_attributes)
14338 (syms_of_process): Rename `system-process-attributes' to
14339 `process-attributes'.
14340
14341 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14342
14343 * coding.h (struct coding_system): Make safe_charsets a pointer to
14344 unsigned char.
14345 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14346 being 255.
14347 (SAFE_CHARSET_P): Likewise.
14348 (setup_iso_safe_charsets): Properly setup safe_charsets.
14349 (Fdefine_coding_system_internal): Likewise.
14350 (setup_coding_system): Likewise. Remove unneeded casts.
14351 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
14352 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14353 Remove unneeded casts.
14354
14355 * insdel.c (del_range_2): Don't modify gap contents when called
14356 from decode_coding_object. (Bug#1809)
14357
14358 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
14359
14360 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14361 Qfont_object.
14362 (Ftype_of): Recognize font objects.
14363
14364 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14365
14366 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14367 Definitions moved to data.c.
14368
14369 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14370
14371 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14372 async_iconified. Based on a patch by Christian Lynbech
14373 <christian.lynbech@tieto.com>.
14374 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14375
14376 2009-02-20 Glenn Morris <rgm@gnu.org>
14377
14378 * syntax.c (Fskip_chars_forward): Fix doc typo.
14379
14380 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
14381
14382 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14383
14384 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
14385
14386 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14387
14388 2009-02-19 Kenichi Handa <handa@m17n.org>
14389
14390 * coding.c (detect_coding): Preserve coding->mode.
14391 Don't overflow coding->carryover. (Bug#2370)
14392
14393 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14394
14395 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14396
14397 2009-02-18 Kenichi Handa <handa@m17n.org>
14398
14399 * font.c (font_check_otf_features): Fix handling of `nil' element.
14400 (Ffont_spec): Describe :lang and :otf in the docstring.
14401
14402 2009-02-16 Andreas Schwab <schwab@suse.de>
14403
14404 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14405 string.
14406
14407 2009-02-16 Kenichi Handa <handa@m17n.org>
14408
14409 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
14410 (Bug#1723)
14411
14412 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
14413
14414 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
14415
14416 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14417 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14418
14419 2009-02-14 Eli Zaretskii <eliz@gnu.org>
14420
14421 * msdos.c (MAX_SCREEN_BUF): New macro.
14422 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14423 Encode the entire run of glyphs sharing the same face, instead of
14424 doing that one glyph at a time (fixes a bug with displaying
14425 double-size characters).
14426
14427 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14428
14429 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14430
14431 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14432 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
14433 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
14434
14435 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
14436 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
14437
14438 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14439
14440 * keyboard.c (adjust_point_for_property): Allow stopping between two
14441 invisible areas.
14442
14443 2009-02-12 Jason Rumney <jasonr@gnu.org>
14444
14445 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14446 (add_font_entity_to_list): Call check_face_name even when family
14447 is unspecified.
14448
14449 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14450 Release DC when finished. Use NULL window to refer to desktop.
14451 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
14452
14453 * w32font.c (add_font_entity_to_list): Fix check for substituted
14454 raster fonts. (Bug#2219)
14455
14456 2009-02-12 Kenichi Handa <handa@m17n.org>
14457
14458 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14459 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14460 (autocmp_chars): Use fast_looking_at. Don't compose more
14461 characters than MAX_COMPOSITION_COMPONENTS.
14462 (find_automatic_composition): While looking forward and backward,
14463 check static composition. Fix where to stop looking forward.
14464 (composition_adjust_point): Fix checking of static composition.
14465 (Fcomposition_get_gstring): Pay attention to
14466 MAX_COMPOSITION_COMPONENTS.
14467
14468 * lisp.h (fast_looking_at): Extern it.
14469
14470 * search.c (fast_looking_at): New function.
14471
14472 * term.c (encode_terminal_code): Adjust for the change of
14473 <struct glyph>.u.cmp.to.
14474 (append_composite_glyph): Likewise.
14475
14476 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
14477 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14478 composition.
14479 (append_composite_glyph): Adjust for the change of
14480 <strcut glyph>.u.cmp.to.
14481
14482 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
14483
14484 * casetab.c (init_casetab_once):
14485 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14486 * font.c (font_update_lface):
14487 * fontset.c (Fnew_fontset):
14488 * ftfont.c (ftfont_drive_otf):
14489 * xfont.c (xfont_open):
14490 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14491
14492 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14493
14494 * fileio.c (Fwrite_region): !NILP -> CONSP.
14495
14496 2009-02-10 Andreas Schwab <schwab@suse.de>
14497
14498 * process.c (send_process): Properly relocate pointer into data
14499 when using encoded data. (Bug#2272)
14500
14501 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14502
14503 * coding.c (detect_coding_charset): Fix previous change.
14504
14505 2009-02-08 Jason Rumney <jasonr@gnu.org>
14506
14507 * w32fns.c (w32_hide_hourglass): Handle case where frame
14508 disappeared while hourglass was displayed. (Bug #2193)
14509
14510 2009-02-07 Andreas Schwab <schwab@suse.de>
14511
14512 * unexelf.c (unexec): Fix error message.
14513
14514 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14515
14516 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
14517 when modal window is active. (Bug #2152)
14518 (applicationShouldTerminate:): Remove now-unneeded while loop
14519 around NSRunAlertPanel.
14520
14521 * nsmenu.m (popupSession): New file-global variable.
14522 (pop_down_menu): End the popupSession before closing dialog.
14523 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14524 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14525 don't query NSApp for events (just sleep instead).
14526
14527 2009-02-07 Eli Zaretskii <eliz@gnu.org>
14528
14529 * coding.c (syms_of_coding) <translation-table-for-input>:
14530 Modify doc string to discourage use for character code unification.
14531
14532 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14533
14534 * atimer.c (run_timers): Update pending_atimers.
14535
14536 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
14537
14538 * image.c (svg_load_image): Fix last change.
14539
14540 * xfns.c (Fx_create_frame): Signal an error if no font is
14541 found (Bug#2147).
14542
14543 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
14544
14545 * character.c (syms_of_character) <script-representative-chars>:
14546 Fix typo in docstring.
14547
14548 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14549
14550 * nsmenu.m (pop_down_menu): New function.
14551 (ns_popup_dialog): Call it on unwind.
14552 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14553 call timer_check() (Bug#2154).
14554 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14555 handling_signal is set.
14556 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14557
14558 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
14559
14560 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14561
14562 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14563
14564 * keyboard.c (poll_for_input_1, handle_async_input):
14565 Set handling_signal under HAVE_NS.
14566
14567 2009-02-04 Glenn Morris <rgm@gnu.org>
14568
14569 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14570
14571 2009-02-04 Kenichi Handa <handa@m17n.org>
14572
14573 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14574
14575 * charset.c (Fchar_charset): New optional arg restriction.
14576
14577 * coding.h (coding_system_charset_list): Extern it.
14578
14579 * coding.c (coding_system_charset_list): New function.
14580
14581 * composite.c: Include coding.h and termhooks.h.
14582 (composition_gstring_p): Fix for the terminal case.
14583 (composition_gstring_width): Likewise.
14584 (fill_gstring_body): Likewise.
14585 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14586 the frame.
14587 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14588 is within a composition.
14589 (Fcomposition_get_gstring): Fix the terminal case.
14590
14591 * term.c (encode_terminal_code): Fix handling of composition.
14592 (produce_composite_glyph): For static composition, get pixel_width
14593 from struct composition.
14594
14595 2009-02-02 Andreas Schwab <schwab@suse.de>
14596
14597 * unexelf.c (unexec): Handle unaligned bss offset.
14598
14599 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14600
14601 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14602 XT,w32read_socket changes to ns_read_socket.
14603
14604 * keyboard.c (handle_interrupt): Don't call
14605 quit_throw_to_read_char() under NS.
14606
14607 * blockinput.h: Remove NS-specific code.
14608
14609 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14610
14611 * dispnew.c (window_change_signal): Don't try to get the size of a
14612 suspended tty frame.
14613 * term.c (Fresume_tty): Resize if the size has changed while the
14614 tty was suspended.
14615
14616 * alloc.c (mark_stack): Properly conditionalize previous change.
14617
14618 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
14619
14620 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14621 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14622 Remove; this code is not used on Windows.
14623
14624 2009-01-30 Eli Zaretskii <eliz@gnu.org>
14625
14626 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14627 EOLs that also has stray ^M characters.
14628
14629 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
14630
14631 * atimer.c (run_timers, alarm_signal_handler):
14632 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14633 * w32inevt.c (w32_console_read_socket):
14634 * w32term.c (w32_read_socket):
14635 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14636
14637 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
14638
14639 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14640 Initialize it as a relative filename pattern.
14641 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14642 (Fcall_process_region): Simplify temp file creation using
14643 temporary-file-directory.
14644
14645 2009-01-29 Eli Zaretskii <eliz@gnu.org>
14646
14647 * msdos.c: Rename pending_signals to msdos_pending_signals.
14648 (sig_suspender, sigprocmask): Adjust.
14649
14650 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
14651
14652 * keyboard.c (pending_signals): New var.
14653 (poll_for_input, input_available_signal, init_keyboard): Set it.
14654 (process_pending_signals): New function.
14655
14656 * lisp.h (QUIT): Check pending_signals instead of
14657 interrupt_input_pending. Use process_pending_signals.
14658
14659 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
14660
14661 * process.c (wait_reading_process_output): Use process_pending_signals.
14662
14663 * sysdep.c (emacs_write): Use process_pending_signals.
14664
14665 * xterm.c (XTread_socket): Update pending_signals.
14666
14667 * w32term.c (w32_read_socket): Update pending_signals.
14668
14669 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14670
14671 2009-01-29 Kenichi Handa <handa@m17n.org>
14672
14673 * xftfont.c (xftfont_has_char): New function.
14674 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14675
14676 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14677
14678 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14679 under GNUstep.
14680 (ns_query_color): New declaration.
14681
14682 * nsterm.m (ns_confirm_quit): New variable.
14683 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14684 (EmacsApp-applicationShouldTerminate:): Use it.
14685 (EmacsPrefsController): Let user set it.
14686 (ns_query_color): New function.
14687 (ns_defined_color): Use it.
14688 (ns_initialize): Drop.
14689 (ns_term_init): Add two lines from ns_initialize(), and set
14690 input_interrupt_mode to nil.
14691
14692 * image.c (svg_load_image): Don't right-shift background RGB when
14693 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
14694
14695 2009-01-28 Kenichi Handa <handa@m17n.org>
14696
14697 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
14698 (fontset_get_font_group): Remember that no font-group is specified
14699 for C.
14700
14701 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
14702
14703 * fns.c (concat): Check for string overflow (bug#1787).
14704
14705 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14706 Quadruple undo limits (bug#1501).
14707
14708 2009-01-27 Kenichi Handa <handa@m17n.org>
14709
14710 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14711 directly use GT_Get_Char_index.
14712
14713 * xftfont.c (struct xftfont_info): New member `index'.
14714
14715 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
14716 (Ffontset_font): Adjust for the change of fontset entry.
14717
14718 2009-01-26 Kenichi Handa <handa@m17n.org>
14719
14720 * fontset.c (fontset_find_font): Fix handling of non-cons return
14721 value of fontset_get_font_group.
14722 (fontset_font): Revert last change.
14723
14724 2009-01-26 Jason Rumney <jasonr@gnu.org>
14725
14726 * w32font.c (w32font_list_internal): Return quickly if registry is
14727 unknown. Simplify final return.
14728 (add_font_entity_to_list): Break complex logic down into more
14729 manageable chunks. Move unknown registry check to
14730 w32font_list_internal.
14731
14732 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14733
14734 Changes to remove Feval calls from GUI under NS.
14735
14736 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14737 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
14738 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14739
14740 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14741 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14742 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14743 instead of NON_ASCII_KEYSTROKE_EVENT.
14744 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14745 (EmacsApp-applicationShouldTerminate:): Query user.
14746 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14747 instead of Feval.
14748
14749 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14750
14751 * keyboard.c (kbd_buffer_get_event): Check for it.
14752 (keys_of_keyboard): Define lispy keys for
14753 ns-put/unput-working-text.
14754
14755 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14756 versions.
14757 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14758
14759 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
14760
14761 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
14762 setting current_buffer directly. (Bug#2044)
14763
14764 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
14765
14766 * fontset.c (fontset_font): If we know there is no font, don't do
14767 any work. (Bug#1952, bug#1990).
14768
14769 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
14770
14771 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14772
14773 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
14774 (ns_no_defaults): New declaration.
14775 (main): Use it.
14776
14777 * nsterm.h (ns_no_defaults): New declaration.
14778
14779 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
14780
14781 * nsterm.m (ns_no_defaults): New variable.
14782 (ns_initialize): Don't read defaults when ns_no_defaults.
14783 (EmacsView-readSelectionFromPasteboard:)
14784 (writeSelectionToPasteboard:types:): New stubbed-out methods for
14785 NSServicesRequests protocol. (Bug#1435)
14786 (ns_dumpglyphs_stretch): New function.
14787 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
14788 of 2008-11-15 to other terms. (Bug#615)
14789
14790 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14791
14792 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14793
14794 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14795 call for Sparc64.
14796
14797 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14798
14799 * nsfns.m:
14800 * nsgui.h:
14801 * nsmenu.m:
14802 * nsselect.m:
14803 * nsterm.h:
14804 * nsterm.m: Remove '23' comments that indicated code added during
14805 update from emacs-20 -> emacs-23.
14806
14807 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14808
14809 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
14810 ns_alternate_modifier. (Bug#1217)
14811
14812 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14813 Display all shortcuts, including those w/o super modifier.
14814
14815 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14816
14817 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
14818
14819 * fileio.c (Vwrite_region_post_annotation_function)
14820 (Vwrite_region_annotation_buffers): New vars.
14821 (build_annotations_unwind): Just reset
14822 Vwrite_region_annotation_buffers.
14823 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14824 Call write-region-post-annotation-function.
14825 (build_annotations): Add to Vwrite_region_annotation_buffers if
14826 buffer changes.
14827
14828 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14829
14830 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14831 Tiger.
14832 * nsfns.m (ns_do_applescript):
14833 Conditionalize typeUTF16ExternalRepresentation on Tiger.
14834
14835 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14836
14837 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14838
14839 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14840
14841 * nsmenu.m (NSMENUPROFILE): Change #if style.
14842
14843 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14844
14845 * nsterm.m (x_set_frame_alpha): Add prototype.
14846 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14847 handle Ctrl-tab. (Bug#1841)
14848 (ns_get_color): Use unsigned long long for scanned hex string value.
14849 (ns_term_shutdown): Abort on non SIGTERM signals.
14850 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
14851 (EmacsPrefsController-setPanelFromDefaultValues): New function.
14852 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
14853 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
14854 (ns_defined_color): Fix settings of the XColor variable fields:
14855 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
14856
14857 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
14858 DPI. (Bug#1316)
14859 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14860 values in onTiger section.
14861
14862 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
14863
14864 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14865 Check return value of font_spec_from_name.
14866 (Fx_list_fonts): Doc fix. (Bug#1951)
14867
14868 * font.c (font_spec_from_name): Return Qnil if font name could not
14869 be parsed.
14870 (font_parse_name): Treat a `?' character as part of an XLFD.
14871
14872 * fns.c (Fsubstring): Doc fix.
14873
14874 2009-01-19 Kenichi Handa <handa@m17n.org>
14875
14876 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
14877 (ftfont_list): Likewise.
14878
14879 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
14880
14881 * dbusbind.c (Fdbus_register_signal):
14882 * process.c (conv_sockaddr_to_lisp):
14883 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14884
14885 * callproc.c (Fgetenv_internal): Doc fix.
14886
14887 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
14888
14889 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14890 it is not even used.
14891
14892 2009-01-16 Glenn Morris <rgm@gnu.org>
14893
14894 * font.c (Ffont_variation_glyphs): Silence compiler.
14895
14896 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
14897
14898 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14899 Reported by David Robinow <drobinow@gmail.com>.
14900
14901 2009-01-15 Kenichi Handa <handa@m17n.org>
14902
14903 * coding.c (detect_coding_system): Fix handling of null_byte_found.
14904
14905 2009-01-14 Jason Rumney <jasonr@gnu.org>
14906
14907 * frame.c (x_set_font): Always store a font to the font parameter,
14908 never a fontset. (Bug#1562)
14909
14910 2009-01-14 Kenichi Handa <handa@m17n.org>
14911
14912 * coding.c (TWO_MORE_BYTES): New macro.
14913 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
14914
14915 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
14916
14917 * font.c (font_clear_prop): If clearing the family, clear the font
14918 width index too.
14919
14920 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
14921
14922 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
14923
14924 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14925 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14926 functions, use sizeof.
14927
14928 2009-01-12 Martin Rudalics <rudalics@gmx.at>
14929
14930 * keyboard.c (read_char): Fix case where last_nonmenu_event
14931 returned a bad value with submenus. (Bug#447)
14932
14933 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
14934
14935 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14936 family, clear the font width index too.
14937
14938 2009-01-11 Jason Rumney <jasonr@gnu.org>
14939
14940 * keyboard.c (cmd_error_internal): Exit when errors occur before
14941 frame creation and not in daemon mode. (Bug#1836)
14942
14943 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
14944
14945 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14946 of a display vector, backtrack.
14947 (try_window_reusing_current_matrix): Check glyph type before
14948 referencing charpos member.
14949
14950 2009-01-10 Eli Zaretskii <eliz@gnu.org>
14951
14952 Fix Bug #876:
14953
14954 * coding.c (inhibit_null_byte_detection): New variable.
14955 (detect_coding, detect_coding_system): Don't pay attention to null
14956 bytes if inhibit_null_byte_detection is non-zero.
14957 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
14958 <inhibit-iso-escape-detection>: Doc fix.
14959
14960 2009-01-09 Jason Rumney <jasonr@gnu.org>
14961
14962 * w32font.c (add_font_entity_to_list): Don't report unknown
14963 Windows charset as any unrecognized registry. (Bug#1548)
14964 Only report Unicode Plane 2 fonts as unicode-sip.
14965
14966 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
14967
14968 * xfaces.c (Fx_font_family_list): Delete function.
14969 Move compatibility version to faces.el.
14970
14971 * font.c (Ffont_family_list): Return a list of strings, not symbols.
14972
14973 2009-01-09 Martin Rudalics <rudalics@gmx.at>
14974
14975 * frame.c (x_set_frame_parameters): Remember requested value for
14976 fullscreen before it's reset by the parameter handler.
14977
14978 2009-01-09 Glenn Morris <rgm@gnu.org>
14979
14980 * keyboard.c (last_command_char): For clarity, rename to...
14981 (last_command_event): ... and update all users.
14982 (last_input_char): For clarity, rename to...
14983 (last_input_event): ... and update all users.
14984 (last-command-char, last-input-char): Move to subr.el as aliases.
14985 * cmds.c, commands.h: Update for last_command_char rename.
14986
14987 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
14988
14989 * font.c (font_open_for_lface): Handle unspecified height attribute.
14990
14991 2009-01-08 Jason Rumney <jasonr@gnu.org>
14992
14993 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14994 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14995 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14996 Don't declare.
14997 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
14998 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14999
15000 2009-01-07 Kenichi Handa <handa@m17n.org>
15001
15002 * fileio.c (Finsert_file_contents): In the case of replace,
15003 remember the coding system used for decoding in
15004 coding_system (Bug#1039).
15005
15006 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15007 breaking the loop. (Bug#870)
15008 (decode_coding_utf_16, decode_coding_emacs_mule)
15009 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15010 (decode_coding_charset): Likewise.
15011
15012 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15013
15014 * frame.c (x_set_frame_parameters): Make sure height (width) get
15015 applied when fullwidth (fullheight) is set. (Bug#1522)
15016
15017 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15018
15019 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15020 (utc_base): Declare as ULONGLONG, not long double.
15021 (convert_time_raw): Delete.
15022 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15023 (initialize_utc_base): New function.
15024 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15025 (convert_from_time_t): Use initialize_utc_base; compute result with
15026 64-bit arithmetic.
15027 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15028
15029 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15030
15031 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15032 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15033 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15034 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15035 [!subprocesses]: Define.
15036 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15037 (Flist_system_processes, Fsystem_process_attributes)
15038 [!subprocesses]: Call list_system_processes and
15039 system_process_attributes instead of returning Qnil.
15040
15041 * dosfns.c (system_process_attributes, list_system_processes):
15042 New functions.
15043
15044 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15045
15046 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15047 Don't use the default (no-op) implementation.
15048
15049 2009-01-03 Jason Rumney <jasonr@gnu.org>
15050
15051 * keyboard.c (parse_modifiers_uncached): Wheel events are
15052 clicks (bug#687).
15053
15054 * w32term.c (x_query_colors, x_query_color): New functions.
15055
15056 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15057 (svg_load_image): Cast returned pointers from dynamically loaded
15058 functions. Eliminate W32 specific code.
15059
15060 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15061
15062 * nsfns.m (x_set_foreground_color, x_set_background_color)
15063 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15064 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15065 x_ prefix instead of ns_. Update references.
15066 (syms_of_nsfns): Add a FIXME comment.
15067
15068 * nsterm.m (x_set_cursor_type): New prototype.
15069 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15070
15071 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15072 for Solaris instead of incorrectly providing Qutime and Qcutime.
15073
15074 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15075
15076 * w32.c (process_times): Compute sum of utime and stime.
15077 (system_process_attributes): Add Qtime to the alist.
15078
15079 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15080 and add them to the alist.
15081
15082 * process.c (top level) <Qtime, Qctime>: New variables.
15083 (syms_of_process): staticpro them.
15084 (Fsystem_process_attributes): Add their documentation to the doc
15085 string.
15086
15087 * process.h: Declare Qtime and Qctime.
15088
15089 2009-01-02 Jason Rumney <jasonr@gnu.org>
15090
15091 * image.c (Qgobject): New symbol.
15092 (syms_of_image): Initialize it.
15093 (init_svg_functions): Load some functions from gobject library.
15094
15095 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15096
15097 * frame.c (make_terminal_frame): Remove redundant code and useless
15098 block.
15099
15100 2009-01-01 Andreas Schwab <schwab@suse.de>
15101
15102 * process.c (conv_sockaddr_to_lisp): Add workaround for
15103 getsockname bug on BSD.
15104
15105 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15106
15107 * xfns.c (x_create_tip_frame): Set border width of the X window.
15108
15109 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15110
15111 2009-01-01 Jason Rumney <jasonr@gnu.org>
15112
15113 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15114 Don't block input, as per earlier xterm.c changes.
15115
15116 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15117
15118 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15119 (ns_appkit_version_int): New function.
15120 (x-server-version): Use ns_appkit_version_int and follow 21+
15121 convention of returning 3 integers.
15122
15123 2008-12-30 Kenichi Handa <handa@m17n.org>
15124
15125 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15126 (CHAR_SURROGATE_PAIR_P): New macro.
15127
15128 * font.h (struct font_driver): New member get_variation_glyphs.
15129
15130 * font.c (font_range): Don't require a font for a variation selector.
15131 (Ffont_variation_glyphs): New function.
15132 (syms_of_font): Defsubr it.
15133
15134 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15135 ftfont_variation_glyphs.
15136 (setup_otf_gstring): New function.
15137 (ftfont_drive_otf): Use it.
15138 (ftfont_shape_by_flt): Handle variation selector.
15139 (ftfont_variation_glyphs): New function.
15140
15141 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15142
15143 * frame.c (Vemacs_iconified): Remove.
15144
15145 2008-12-30 Jason Rumney <jasonr@gnu.org>
15146
15147 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15148 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15149
15150 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15151
15152 * indent.c (Fvertical_motion): Don't advance iterator if we have
15153 reseated to the desired position.
15154
15155 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15156 checking for pos match.
15157
15158 2008-12-30 Kenichi Handa <handa@m17n.org>
15159
15160 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15161 just get the low 8-bit of the code.
15162
15163 * font.c (font_intern_prop): Validate str as multibyte.
15164
15165 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15166
15167 * dispextern.h (struct face): Move lface and hash from the middle
15168 of bitfields.
15169
15170 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15171
15172 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15173
15174 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15175 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15176 instead of intervals.h.
15177
15178 2008-12-26 Andreas Schwab <schwab@suse.de>
15179
15180 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15181 cons.
15182
15183 2008-12-26 Martin Rudalics <rudalics@gmx.at>
15184
15185 * textprop.c (Qminibuffer_prompt): New variable.
15186 (syms_of_textprop): Initialize it.
15187 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15188 in minibuffer-prompt face. (Bug#1662)
15189
15190 2008-12-25 Jason Rumney <jasonr@gnu.org>
15191
15192 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15193
15194 2008-12-24 Jason Rumney <jasonr@gnu.org>
15195
15196 * ralloc.c (r_alloc_reset_variable): New function.
15197
15198 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15199 record of what points where. (Bug#716)
15200
15201 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15202
15203 * minibuf.c (read_minibuf): Follow the non-interactive case when
15204 running as a daemon, before detaching.
15205
15206 2008-12-22 Andreas Schwab <schwab@suse.de>
15207
15208 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15209 * gtkutil.c (free_widget_value): Use xfree instead of free.
15210
15211 2008-12-22 Martin Rudalics <rudalics@gmx.at>
15212
15213 * frame.c (delete_frame): New function derived from
15214 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15215 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15216 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15217 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15218 * frame.h: Extern delete_frame.
15219 * window.c (window_loop):
15220 * terminal.c (delete_terminal):
15221 * xterm.c (x_connection_closed):
15222 * xfns.c (Fx_hide_tip):
15223 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15224
15225 2008-12-21 Jason Rumney <jasonr@gnu.org>
15226
15227 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15228 when character maps to .notdef character.
15229
15230 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15231
15232 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15233
15234 2008-12-20 Jason Rumney <jasonr@gnu.org>
15235
15236 * frame.c (Fmake_terminal_frame): Raise an error when called from
15237 a graphical frame on Windows. (Bug#1325)
15238
15239 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15240
15241 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15242
15243 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
15244
15245 * minibuf.c (Fread_buffer): Doc fix.
15246
15247 2008-12-20 Jason Rumney <jasonr@gnu.org>
15248
15249 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15250 server name in UNC paths. (Bug#719)
15251
15252 * coding.c (decode_coding): Clear chars_at_source flag when using
15253 charbuf. (Bug#1035)
15254
15255 2008-12-19 Daniel Engeler <engeler@gmail.com>
15256
15257 * sysdep.c (serial_configure): Fix typo.
15258
15259 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15260
15261 * sysdep.c: Include alloca.h.
15262 (system_process_attributes): Add implementation for Solaris.
15263
15264 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15265
15266 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15267
15268 Reorganize implementation of Flist_system_processes and
15269 Fsystem_process_attributes. No functional changes.
15270 * process.c: Don't #include pwd.h, grp.h and limits.h.
15271 (Flist_system_processes): Just call list_system_processes.
15272 (Fsystem_process_attributes): Just call system_process_attributes.
15273 (procfs_list_system_processes, time_from_jiffies)
15274 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15275 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15276
15277 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15278 (list_system_processes): Rename from
15279 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15280 Provide a do nothing implementation.
15281 (system_process_attributes): Rename from
15282 procfs_list_system_processes.
15283 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15284 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15285
15286 * w32.c (list_system_processes): Rename from
15287 w32_list_system_processes.
15288 (system_process_attributes): Rename from
15289 w32_system_process_attributes.
15290
15291 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15292
15293 * process.h (w32_list_system_processes)
15294 (w32_system_process_attributes): Remove.
15295 (list_system_processes, system_process_attributes):
15296 New prototypes.
15297
15298 2008-12-19 Kenichi Handa <handa@m17n.org>
15299
15300 * xfont.c (xfont_decode_coding_xlfd): New function.
15301 (xfont_encode_coding_xlfd): New function.
15302 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15303 (xfont_list): Decode and encode XLFD by iso-8859-1.
15304 (xfont_match): Likewise.
15305 (xfont_list_family): Likewise.
15306 (xfont_open): Likewise.
15307
15308 * ftfont.c (ftfont_open): Generate a multibyte string if given
15309 names are utf-8.
15310
15311 * xftfont.c (xftfont_open): Generate a multibyte string if given
15312 names are utf-8.
15313
15314 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15315
15316 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15317 changed.
15318 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15319 clicked on a detached tool bar button.
15320
15321 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15322
15323 * emacs.c (main): Print and error and exit when no data is read
15324 from the pipe.
15325
15326 2008-12-17 Jason Rumney <jasonr@gnu.org>
15327
15328 * w32font.c (w32font_has_char): Always return -1.
15329
15330 2008-12-16 Kenichi Handa <handa@m17n.org>
15331
15332 * font.c (font_open_entity): Fix previous change.
15333
15334 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15335
15336 * process.c: Include <limits.h>.
15337
15338 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
15339
15340 * font.c (font_update_drivers): Fix mistake in reconstructing the
15341 driver list.
15342
15343 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
15344
15345 * font.c (font_clear_cache): Fix format of font cache data.
15346
15347 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
15348
15349 * xftfont.c (xftfont_open): Free Xft font pattern if
15350 XftFontOpenPattern fails.
15351
15352 * xterm.c (x_free_frame_resources): Remove extraneous call to
15353 free_frame_faces.
15354
15355 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15356
15357 * xterm.c (x_delete_display): Move xim_close_dpy call to
15358 x_delete_terminal.
15359 (x_delete_terminal): Call xim_close_dpy.
15360
15361 2008-12-13 Jason Rumney <jasonr@gnu.org>
15362
15363 * w32font.c (intern_font_name): New function.
15364 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15365 (w32font_open_internal, Fx_select_font): Decode font name.
15366 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15367
15368 * w32font.h (intern_font_name): Declare new function.
15369
15370 * w32uniscribe.c (add_opentype_font_name_to_list):
15371 Use intern_font_name.
15372
15373 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15374
15375 * frame.c (Fdelete_frame): Call free_font_driver_list.
15376
15377 * font.c (free_font_driver_list): Implement missing function.
15378
15379 * w32term.c (w32_term_init): Don't initialize the image cache
15380 here; it will be done in init_frame_faces.
15381
15382 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
15383 (struct x_display_info): Remove unused member null_pixel.
15384 New member xim_callback_data.
15385
15386 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15387 (xim_initialize): Save pointer to callback function data.
15388 (xim_close_dpy): Free callback function data. Call XCloseIM,
15389 reverting 2008-11-04 change by David Smith.
15390 (x_term_init): Don't initialize the image cache here; it will be
15391 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15392 (x_delete_display): Free x_dnd_atoms member.
15393
15394 2008-12-13 Kenichi Handa <handa@m17n.org>
15395
15396 * font.c (font_rescale_ratio): Move from xfaces.c.
15397 Argument type changed. Handle a font-spec too.
15398 (font_score): Check Vface_font_rescale_alist.
15399 (font_open_entity): Likewise. (Bug#1547)
15400
15401 * xfaces.c (font_rescale_ratio): Move to font.c.
15402
15403 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15404
15405 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15406
15407 2008-12-12 Jason Rumney <jasonr@gnu.org>
15408
15409 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15410 Set Vwindow_system_version to the real w32 major version.
15411
15412 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15413
15414 * term.c (init_tty): Move setting the terminal name before the
15415 potential user: maybe_fatal.
15416
15417 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
15418
15419 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
15420 all callers changed. Call free_frame_faces to free the face cache.
15421
15422 2008-12-11 Jason Rumney <jasonr@gnu.org>
15423
15424 * w32font.c (fill_in_logfont): Don't assume symbol script means
15425 SYMBOL_CHARSET. (Bug#547)
15426
15427 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
15428 size for surrogates. (Bug#1096, bug#872)
15429
15430 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15431
15432 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15433
15434 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15435
15436 * process.c (Fsystem_process_attributes, syms_of_process):
15437 Fix typo in name of Ssystem_process_attributes.
15438 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15439
15440 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15441
15442 * syntax.c (Fmodify_syntax_entry): Doc fix.
15443
15444 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15445
15446 * font.c (Ffont_spec): Move usage to end of docstring.
15447
15448 2008-12-10 Jason Rumney <jasonr@gnu.org>
15449
15450 * w32font.c (Qcham): New symbol.
15451 (font_supported_scripts): Add cham, and comments for other new
15452 scripts in bitfield from OpenType spec.
15453 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15454 contain characters beyond the bmp.
15455
15456 2008-12-10 Kenichi Handa <handa@m17n.org>
15457
15458 * ftfont.c (fc_charset_table): Add "unicode-sip".
15459 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
15460 Qunicode_sip.
15461
15462 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15463
15464 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15465 (Fcoding_system_put): Use QCdefault_char.
15466 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15467
15468 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
15469
15470 * xftfont.c (syms_of_xftfont): Fix typo.
15471
15472 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
15473
15474 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15475
15476 * emacs.c (main): Close daemon_pipe on exec.
15477
15478 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
15479
15480 * termchar.h (struct tty): New members termcap_term_buffer and
15481 termcap_strings_buffer.
15482
15483 * term.c (encode_terminal_code): Free any previous memory blocks
15484 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
15485 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15486 All callers changed.
15487 (init_tty): Store termcap data and string buffers in new struct
15488 tty members termcap_term_buffer and termcap_strings_buffer.
15489 (delete_tty): Free them.
15490 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
15491
15492 2008-12-07 Seiji Zenitani <zenitani@mac.com>
15493
15494 * nsfns.m (ns_set_background_color): Remove code duplication.
15495 It was a substitute for face-transparency on OS X 10.3.
15496
15497 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
15498
15499 * coding.c (make_conversion_work_buffer): Disable buffer
15500 modification hooks in the work buffer.
15501
15502 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15503
15504 * process.c (procfs_system_process_attributes): If `nread' has a
15505 negative value, assign zero to it.
15506
15507 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
15508
15509 * eval.c (Vdebug_on_error): Doc fix.
15510
15511 2008-12-05 Kenichi Handa <handa@m17n.org>
15512
15513 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15514 second character is a combining character.
15515
15516 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15517
15518 * process.c (procfs_system_process_attributes): Don't use cmd,
15519 cmdsize, and q without initializing them first.
15520
15521 2008-12-04 Jason Rumney <jasonr@gnu.org>
15522
15523 * w32font.c (w32font_draw): Initialize orig_clip before getting
15524 it, and delete it when finished.
15525
15526 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15527
15528 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15529 case when running as a daemon before detaching.
15530
15531 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
15532
15533 * w32.c (init_environment): Don't unload library shell32.dll.
15534
15535 2008-12-03 Kenichi Handa <handa@m17n.org>
15536
15537 * font.c (font_at): Set `multibyte' at first.
15538
15539 * coding.c (decode_coding_charset): Check type of an element of
15540 vector VALIDS.
15541 (encode_coding_emacs_mule): Be sure to set `code'.
15542
15543 * fontset.c (face_for_char): Handle invalid charset property correctly.
15544 (font_for_char): Likewise.
15545
15546 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
15547
15548 * font.c (Fopen_font): Compute pixel size correctly.
15549 (font_update_lface): Handle fonts with corrupted size specs,
15550 i.e. non-int and non-float.
15551
15552 * ftfont.c (ftfont_match): Initialize entity variable.
15553 (ftfont_resolve_generic_family): Avoid using uninitialized var.
15554 (ftfont_list_family): Initialize list var earlier.
15555
15556 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15557
15558 * xterm.c (x_draw_glyph_string): Fall back on
15559 underline_minimum_offset for underline position.
15560
15561 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15562
15563 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15564
15565 * character.c (c_string_width): Specify the type for LEN.
15566
15567 2008-12-03 Kenichi Handa <handa@m17n.org>
15568
15569 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
15570 (decode_coding_utf_8): Likewise.
15571 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
15572 (produce_chars): Initialize consumed_chars to 0.
15573
15574 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
15575
15576 * keyboard.c (make_lispy_position): Only use PT if the selected
15577 window is current.
15578
15579 2008-12-02 Andreas Schwab <schwab@suse.de>
15580
15581 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15582
15583 * doprnt.c (doprnt1): Fix size of charbuf.
15584
15585 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
15586
15587 * keyboard.c (timer_check): Revert last change.
15588
15589 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
15590
15591 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15592
15593 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
15594
15595 * makefile.w32-in: Update dependencies.
15596 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15597
15598 2008-12-01 Andreas Schwab <schwab@suse.de>
15599
15600 * font.c (register_font_driver): Use xmalloc.
15601 (font_put_frame_data): Likewise.
15602
15603 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
15604
15605 * xfaces.c (realize_x_face): Make abort condition clearer.
15606
15607 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15608
15609 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
15610
15611 * keyboard.c (timer_check): After a timer runs, ensure that the
15612 selected window's buffer is current.
15613
15614 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
15615
15616 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15617 It was accidentally restored by the Unicode merge.
15618
15619 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15620
15621 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
15622
15623 * w32proc.c: Include "coding.h".
15624 (Fw32_short_file_name): Encode filename passed to Windows API.
15625 (Fw32_long_file_name): Encode filename passed to Windows API and
15626 decode back the result. (Bug#1433)
15627
15628 2008-11-29 Kenichi Handa <handa@m17n.org>
15629
15630 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15631 not before accessing it.
15632
15633 * charset.c (Fdefine_charset_internal): After calculating
15634 min_char, max_char, and fastmap, copy the charset structure again.
15635 (encode_char): Fix the previous change.
15636
15637 2008-11-28 Seiji Zenitani <zenitani@mac.com>
15638
15639 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15640
15641 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15642
15643 * nsterm.m (x_set_frame_alpha): New function.
15644
15645 2008-11-27 Eli Zaretskii <eliz@gnu.org>
15646
15647 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15648
15649 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
15650
15651 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15652 pointer to check_face_name.
15653
15654 2008-11-27 Kenichi Handa <handa@m17n.org>
15655
15656 * category.h (SET_CATEGORY_SET): Call set_category_set.
15657 (set_category_set): Extern it.
15658
15659 * category.c (hash_get_category_set): New function.
15660 (Fmodify_category_entry): Adjust for the change of
15661 char_table_ref_and_range. Call hash_get_category_set to get a
15662 category set to store in the table.
15663
15664 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15665 Funify_charset.
15666
15667 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
15668 (DECODE_CHAR): Check if the decoder vector is ready.
15669 (ENCODE_CHAR): Check if the encoder char-table is ready.
15670 (maybe_unify_char): Extern it.
15671
15672 * charset.c (Vchar_unified_charset_table): Delete it.
15673 (inhibit_load_charset_map): New variable.
15674 (temp_charset_work): New variable.
15675 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15676 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15677 New macros.
15678 (load_charset_map): Meaning of control_flag changed.
15679 If inhibit_load_charset_map is nonzero, setup a table in
15680 temp_charset_work.
15681 (load_charset): New argument control_flag.
15682 (map_charset_for_dump): New function.
15683 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15684 map_charset_for_dump.
15685 (Fdefine_charset_internal): If the charset method is MAP, load
15686 mapping tables by calling load_charset.
15687 (Funify_charset): Don't load a mapping table but directly set
15688 Vchar_unify_table.
15689 (maybe_unify_char): New function.
15690 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15691 Handle the case of inhibit_load_charset_map being nonzero.
15692 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15693 Handle the case of inhibit_load_charset_map being nonzero.
15694 (Fclear_charset_maps): Just free temp_charset_work.
15695 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15696 variable.
15697
15698 * chartab.c (sub_char_table_ref_and_range): Adjust for the
15699 change of char_table_ref_and_range.
15700 (char_table_ref_and_range): Change the meaning of argument FROM
15701 and TO. Now the caller must provide initial values for *FROM
15702 and *TO.
15703
15704 * fontset.c (fontset_add): Adjust for the change of
15705 char_table_ref_and_range.
15706 (fontset_get_font_group): Likewise.
15707 (Ffontset_info): Likewise.
15708
15709 * keymap.c (describe_vector): Adjust for the change of
15710 char_table_ref_and_range. For char-table, put boundary between
15711 non-ASCII and 8-bit characters.
15712
15713 * print.c (print_object): For bool-vector, delete unnecessary
15714 check of ASCII_BYTE_P.
15715
15716 2008-11-26 Jason Rumney <jasonr@gnu.org>
15717
15718 * w32font.c (w32font_open_internal): Don't include external
15719 leading in font height. (Bug#879)
15720
15721 2008-11-26 Glenn Morris <rgm@gnu.org>
15722
15723 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15724 redefinition with ifdef. (Bug#1383)
15725
15726 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15727
15728 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15729
15730 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15731
15732 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15733 New EmacsView methods.
15734 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15735 Fixes bug #1048,1357,1414.
15736
15737 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15738
15739 Fix bug #1362.
15740 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15741 is not an indexed color.
15742 * nsterm.m (free_indexed_color): Add argument checking.
15743 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15744
15745 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
15746
15747 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15748 Document confirm-after-completion value for
15749 minibuffer-completion-confirm.
15750
15751 2008-11-24 Jason Rumney <jasonr@gnu.org>
15752
15753 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15754 warning.
15755
15756 2008-11-23 Jason Rumney <jasonr@gnu.org>
15757
15758 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15759 restored before returning.
15760
15761 * w32font.c (check_face_name): New function.
15762 (add_font_entity_to_list): Use it to filter out common substituted
15763 fonts. (Bug#642)
15764
15765 2008-11-22 Martin Rudalics <rudalics@gmx.at>
15766
15767 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15768 confirm-nonexistent-file-or-buffer in doc-string.
15769
15770 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15771
15772 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15773 Fix copy/paste typo. Add checks.
15774
15775 2008-11-21 Kenichi Handa <handa@m17n.org>
15776
15777 * coding.c (detect_coding_iso_2022): Reject invalid composition
15778 sequence.
15779 (DECODE_COMPOSITION_START): If the current source is the last
15780 block, and the current composition doesn't end, regard this
15781 sequence as invalid.
15782 (decode_coding_iso_2022): Handle invalid composition sequence.
15783
15784 2008-11-20 Martin Rudalics <rudalics@gmx.at>
15785
15786 * window.c (coordinates_in_window): Don't return
15787 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15788 line when the window is not the rightmost one. (Bug#1372)
15789
15790 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15791
15792 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15793
15794 2008-11-15 Eli Zaretskii <eliz@gnu.org>
15795
15796 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15797 and bright_bg if noninteractive is non-zero.
15798
15799 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15800
15801 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15802 x_draw_glyph_string_background.
15803
15804 * w32term.c (x_draw_glyph_string): Likewise.
15805
15806 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
15807
15808 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15809 the next glyph string once past the overhang width.
15810
15811 * nsterm.m (ns_draw_glyph_string): Likewise.
15812
15813 * w32term.c (x_draw_glyph_string): Likewise.
15814
15815 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15816
15817 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15818 double file close.
15819
15820 2008-11-14 Martin Rudalics <rudalics@gmx.at>
15821
15822 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15823 dedicated status of window before attempting to display another
15824 buffer in it.
15825
15826 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
15827
15828 * msdos.c (Fmsdos_long_file_names):
15829 (syms_of_msdos) <dos-unsupported-char-glyph>:
15830 * dosfns.c (Fint86): Fix typos in docstrings.
15831
15832 2008-11-14 Eli Zaretskii <eliz@gnu.org>
15833
15834 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15835
15836 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15837
15838 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15839
15840 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15841
15842 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15843
15844 * frame.h: Negative alpha means "don't touch".
15845
15846 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15847
15848 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15849
15850 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15851
15852 * hftctl.c:
15853 * chpdef.h:
15854 * acldef.h: Remove files used only for systems no longer supported.
15855
15856 * Makefile.in: Fix .o alphabetical ordering.
15857 (hftctl.o): Remove dependency, file removed.
15858 (keymap.o, print.o): Depend on charset.h.
15859
15860 2008-11-10 Kenichi Handa <handa@m17n.org>
15861
15862 * character.c (Fget_byte): Fix and make it faster for unibyte target.
15863
15864 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
15865
15866 * dired.c (file_name_completion): If completion_ignore_case is
15867 enabled, ignore case when checking completion-regexp-list.
15868
15869 2008-11-08 Eli Zaretskii <eliz@gnu.org>
15870
15871 * vm-limit.c (get_lim_data): Fix last change.
15872
15873 2008-11-08 Kenichi Handa <handa@m17n.org>
15874
15875 * character.c (Fget_byte): New function.
15876 (syms_of_character): Defsubr Fget_byte.
15877
15878 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
15879
15880 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15881 cursor position is valid after scrolling.
15882
15883 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
15884
15885 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15886
15887 2008-11-06 Glenn Morris <rgm@gnu.org>
15888
15889 * xterm.c (handle_one_xevent): Don't let popup menus cause
15890 mouse-autoselect-window related window switching. (Bug#1261)
15891
15892 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15893
15894 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15895
15896 2008-11-04 Andreas Schwab <schwab@suse.de>
15897
15898 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15899
15900 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
15901
15902 * xfns.c (Fx_wm_set_size_hint): New function.
15903
15904 2008-11-03 Martin Rudalics <rudalics@gmx.at>
15905
15906 * textprop.c (Fprevious_single_char_property_change): Return 0
15907 when there's no change in a string. (Bug#1301)
15908
15909 2008-11-02 Martin Rudalics <rudalics@gmx.at>
15910
15911 * frame.c (do_switch_frame): New argument NORECORD passed to
15912 Fselect_window.
15913 (Fselect_frame): New argument NORECORD passed to
15914 do_switch_frame.
15915 (Fset_frame_selected_window): New argument NORECORD passed to
15916 Fselect_frame.
15917 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15918 in call of do_switch_frame.
15919 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15920 Handle NORECORD argument in call of Fselect_frame.
15921 * lisp.h (do_switch_frame, Fselect_frame)
15922 (Fset_frame_selected_window): Adjust declarations.
15923 * window.c (select_frame_norecord): New function.
15924 (run_window_configuration_change_hook): Use it and call
15925 Fselect_frame with NORECORD set.
15926 (Fselect_window): Pass NORECORD to Fselect_frame.
15927 (Fset_window_configuration): Handle NORECORD argument in call of
15928 do_switch_frame.
15929 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15930 Fset_frame_selected_window.
15931 * keyboard.c (command_loop_1): Handle NORECORD in call of
15932 Fselect_frame (currently ifdefd).
15933
15934 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15935
15936 * emacs.c (USAGE2): Untabify.
15937
15938 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15939
15940 * composite.c (fill_gstring_header): Fix copy/paste typo.
15941
15942 2008-10-31 Martin Rudalics <rudalics@gmx.at>
15943
15944 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15945 (Fother_window): Rename argument and rewrite doc-string.
15946 (select_window_norecord): Fix return value. (Bug#1276)
15947
15948 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
15949
15950 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15951 new frames overriding foreground for tooltips. Based on similar patch
15952 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15953
15954 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
15955
15956 * emacs.c (Fdaemon_initialized): Initialize nfd.
15957
15958 2008-10-29 Martin Rudalics <rudalics@gmx.at>
15959
15960 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15961 (Fwindow_text_height): Clarify doc-strings.
15962 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15963 doc-string of window-scroll-functions.
15964
15965 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15966
15967 * category.c (syms_of_category): Fix typo in docstring.
15968
15969 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
15970
15971 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15972 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15973 Fix typos in docstrings.
15974
15975 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15976
15977 * emacs.c (daemon_pipe): Make non-static.
15978 (IS_DAEMON): Move definition ...
15979 * lisp.h (IS_DAEMON): ... here.
15980 (daemon_pipe): Declare.
15981 (is_daemon): Remove.
15982 * dispnew.c (init_display): Use IS_DAEMON.
15983
15984 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15985
15986 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15987 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15988
15989 * emacs.c (is_daemon): Remove.
15990 (main): Don't set is_daemon.
15991 (IS_DAEMON): New macro.
15992 (Fdaemonp, Fdaemon_initialized): Use it.
15993 (Fdaemon_initialized): Write a char into the pipe to make sure the
15994 parent exits.
15995 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15996
15997 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
15998
15999 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16000 over-sized glyph, draw it with the default glyph width.
16001
16002 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16003 glyph, draw it with the default glyph width.
16004
16005 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16006 glyph, draw it with the default glyph width.
16007
16008 * xdisp.c (try_scrolling): When computing the distance from the
16009 scroll margin to PT, try moving some distance past the window
16010 bottom before giving up.
16011
16012 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16013
16014 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16015 (Fset_window_buffer): Explain in doc-string that a window can be
16016 "strongly" dedicated to its buffer.
16017
16018 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16019
16020 * emacs.c (daemon_name): New variable.
16021 (main): Deal with --daemon=SERVER_NAME.
16022 (Fdaemonp): Return a name if one was passed to --daemon.
16023
16024 2008-10-26 Romain Francoise <romain@orebokech.com>
16025
16026 * emacs.c (daemon_pipe): New variable.
16027 (main): Create a pipe before forking, make the parent exit only after
16028 the child has closed its end of the pipe. Move closing the
16029 descriptors ...
16030 (Fdaemon_initialized): ... here. New function.
16031
16032 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16033
16034 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16035 the previous unoptimized table.
16036
16037 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16038 the distinction between non-nil and non-t value of `dedicated'.
16039
16040 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16041
16042 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16043 read_char_minibuf_menu_text is large enough to hold the menu string.
16044
16045 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16046
16047 * window.c (Fget_buffer_window, Fdelete_windows_on)
16048 (Freplace_buffer_in_windows): Make buffer argument optional and
16049 rename to buffer_or_name.
16050
16051 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16052
16053 * xdisp.c (handle_single_display_spec, handle_display_prop):
16054 Undo 2005-05-16 change.
16055 (handle_stop): Pop iterator if it's loaded with an empty string.
16056 (get_overlay_strings_1): Don't save iterator if it's loaded with
16057 an empty string (bug#1201).
16058
16059 2008-10-24 Kenichi Handa <handa@m17n.org>
16060
16061 * ftfont.c (ftfont_otf_features): Fix previous change.
16062 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16063 calling ftfont_otf_features.
16064
16065 2008-10-24 Kenichi Handa <handa@m17n.org>
16066
16067 * font.c (font_match_p): Fix for the case that a vector of
16068 characters is in script-representative-chars.
16069
16070 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16071
16072 * dbusbind.c (xd_in_read_queued_messages): New variable.
16073 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16074 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16075 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16076 macro. (Bug#1186)
16077
16078 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16079
16080 * s/sol2-10.h: New file.
16081
16082 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16083
16084 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16085 poor beast has survived 9+ years and the jump from xterm.c!).
16086
16087 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16088
16089 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16090 Reword doc-string.
16091 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16092
16093 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16094
16095 * character.c (syms_of_character) <script-representative-chars>:
16096 <unicode-category-table>: Doc fixes.
16097
16098 2008-10-23 Noah Friedman <friedman@splode.com>
16099
16100 * coding.c (make_conversion_work_buffer): Check that
16101 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16102 Fget_buffer_create.
16103
16104 2008-10-23 Kenichi Handa <handa@m17n.org>
16105
16106 * font.c (font_add_log): Check the values of extra properties.
16107
16108 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16109
16110 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16111 Reword doc-string.
16112 (Fset_window_parameter): Use NILP.
16113 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16114 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16115
16116 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16117
16118 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16119
16120 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16121
16122 * nsfns.m (ns_appkit_version): New function.
16123 (x-server-version): Use it.
16124 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16125 (x-server-vendor): Don't check_ns().
16126
16127 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16128
16129 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16130
16131 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16132 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16133
16134 2008-10-22 Kenichi Handa <handa@m17n.org>
16135
16136 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16137 scripts.
16138
16139 * category.c (word_boundary_p): Check scripts instead of charset.
16140 Handle nil value in word-separating-categories and
16141 word-combining-categories.
16142 (syms_of_category): Fix docstrings of word-separating-categories
16143 and word-combining-categories.
16144
16145 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16146
16147 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16148 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16149
16150 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16151
16152 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16153 Rename arg "buffer" to "buffer_or_name".
16154 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16155 it optional.
16156 (no_switch_window): Remove since the return value is not used.
16157 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16158 Consider window as dedicated when Fwindow_dedicated_p returns a
16159 non-nil value.
16160 * lisp.h: Remove prototype for no_switch_window.
16161
16162 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16163
16164 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16165 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16166
16167 2008-10-21 Kenichi Handa <handa@m17n.org>
16168
16169 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16170 check Vlatin_extra_code_table.
16171
16172 2008-10-20 Eli Zaretskii <eliz@gnu.org>
16173
16174 * fileio.c (Fset_file_modes): Doc fix.
16175
16176 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
16177
16178 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16179 in arrays.
16180
16181 2008-10-19 Martin Rudalics <rudalics@gmx.at>
16182
16183 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16184 Mention kill-buffer in doc-string.
16185 (Fset_window_buffer): Reinsert tem check removed in last commit.
16186 (Fenlarge_window, Fshrink_window): Have argument names and
16187 doc-string follow Elisp manual more closely.
16188
16189 2008-10-18 Eli Zaretskii <eliz@gnu.org>
16190
16191 * fileio.c (Fset_file_modes): Doc fix.
16192
16193 2008-10-18 Martin Rudalics <rudalics@gmx.at>
16194
16195 * window.c (Fwindow_width, Fset_window_start)
16196 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16197 (Fdelete_windows_on, Freplace_buffer_in_windows):
16198 Make doc-strings follow code and Elisp manual more closely.
16199 (Fwindow_dedicated_p): Make window argument optional.
16200 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16201 (Fset_window_buffer): Respect any non-nil dedicated value for
16202 window. Rename "buffer" argument to "buffer_or_name".
16203
16204 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
16205
16206 * m/sh3.h: New file, machine description for SuperH.
16207
16208 2008-10-17 Martin Rudalics <rudalics@gmx.at>
16209
16210 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16211
16212 2008-10-17 Kenichi Handa <handa@m17n.org>
16213
16214 * ftfont.c (ftfont_otf_features): Fix indexing
16215 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16216
16217 2008-10-16 Magnus Henoch <mange@freemail.hu>
16218
16219 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16220 (Fdbus_call_method_asynchronously): Ditto.
16221 This change makes C-h f display the argument list.
16222
16223 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
16224
16225 * fileio.c (Fexpand_file_name): Doc fix.
16226
16227 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16228 of :foreground and :background equivalent to unspecified (20.x
16229 compatibility).
16230
16231 2008-10-15 Eli Zaretskii <eliz@gnu.org>
16232
16233 * buffer.c (syms_of_buffer): Doc fix.
16234
16235 2008-10-14 Kenichi Handa <handa@m17n.org>
16236
16237 * font.c (font_clear_prop): When clearing font width, clear the
16238 average width field too.
16239
16240 2008-10-12 Andreas Schwab <schwab@suse.de>
16241
16242 * ftfont.c (ftfont_shape_by_flt): Make static.
16243 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16244
16245 * font.c: Don't include <m17n-flt.h>.
16246
16247 2008-10-10 Eli Zaretskii <eliz@gnu.org>
16248
16249 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16250
16251 2008-10-09 Eli Zaretskii <eliz@gnu.org>
16252
16253 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16254 away code.
16255
16256 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
16257
16258 * dispnew.c (update_text_area): Avoid looping due to large glyph
16259 overhangs (bug#1070).
16260
16261 2008-10-09 Kenichi Handa <handa@m17n.org>
16262
16263 * fontset.c (face_for_char): If face->fontset is negative, just
16264 return ascii_face.
16265
16266 * font.c (font_delete_unmatched): Fix previous change.
16267 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16268
16269 2008-10-09 Martin Rudalics <rudalics@gmx.at>
16270
16271 * frame.c (Fraise_frame): On text-only terminals select frame in
16272 order to make it visible. (Bug#1061)
16273
16274 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
16275
16276 * fontset.c (fontset_find_font): Check frame validity.
16277
16278 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
16279
16280 * gtkutil.c (xg_display_open): Reset default display if none exists.
16281 (xg_display_close): Allow Emacs to close all displays (bug#985).
16282
16283 2008-10-06 Andreas Schwab <schwab@suse.de>
16284
16285 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16286
16287 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
16288
16289 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16290
16291 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16292
16293 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16294 during initialization.
16295
16296 2008-10-04 Eli Zaretskii <eliz@gnu.org>
16297
16298 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16299 whole thing on MSDOS frames as well as on a TTY.
16300
16301 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16302 well as for TTY.
16303 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16304 well as on a TTY.
16305
16306 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16307 as well as for TTY.
16308
16309 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16310
16311 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16312 MSDOS frames as well.
16313
16314 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16315
16316 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16317 correct arguments.
16318 * menu.c (find_and_return_menu_selection): Add cast.
16319
16320 2008-10-03 Glenn Morris <rgm@gnu.org>
16321
16322 * emacs.c (USAGE1): Add --daemon.
16323
16324 2008-10-02 Eli Zaretskii <eliz@gnu.org>
16325
16326 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16327 100, so it's in percents as advertised.
16328
16329 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16330
16331 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16332 (ns_output.current_cursor, ns_output.desired_cursor)
16333 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16334 (FRAME_NEW_CURSOR_COLOR): Remove.
16335
16336 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
16337 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
16338 enumeration (HOLLOW_BOX_CURSOR, etc.).
16339
16340 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16341 (draw_window_cursor): Simplify code.
16342 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16343 Don't change cursor type. In latter, call rehighlight instead of doing
16344 updates manually.
16345 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16346 Use core Emacs cursor types.
16347
16348 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
16349
16350 2008-10-02 Martin Rudalics <rudalics@gmx.at>
16351
16352 * process.c (Faccept_process_output): Fix doc-string.
16353
16354 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16355
16356 * gmalloc.c (__sbrk): Also define for uClibc.
16357
16358 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16359 for uClibc.
16360
16361 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16362
16363 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16364 styles.
16365 (nsfont_open): Reenable the cache.
16366
16367 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16368
16369 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16370 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16371
16372 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16373
16374 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16375 a suspended terminal.
16376
16377 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
16378
16379 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16380
16381 2008-09-30 Eli Zaretskii <eliz@gnu.org>
16382
16383 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16384
16385 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
16386
16387 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16388 in a continued line coincides with a line beginning.
16389
16390 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16391
16392 * nsfont.m (nsfont_trait_distance): Fix bug.
16393 (nsfont_list): Return a list rather than a vector (syncs with Handa
16394 changes of 2008-05-14).
16395 (nsfont_open): Improve logging.
16396
16397 2008-09-29 Andreas Schwab <schwab@suse.de>
16398
16399 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16400
16401 2008-09-28 Martin Rudalics <rudalics@gmx.at>
16402
16403 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16404 name as char-resolve-modifiers.
16405 Reported by: Markus Triska <markus.triska@gmx.at>
16406
16407 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16408
16409 * dispnew.c (init_display): Return earlier when running as a daemon.
16410
16411 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16412
16413 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16414
16415 2008-09-27 Eli Zaretskii <eliz@gnu.org>
16416
16417 * composite.c (Fcomposition_get_gstring)
16418 (Fcompose_region_internal, Fcompose_string_internal)
16419 (Ffind_composition_internal): Doc fix.
16420 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16421 (syms_of_composite) <auto-composition-function>: Doc fix.
16422 (syms_of_composite) <composition-function-table>: Doc fix.
16423
16424 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
16425
16426 * search.c (wordify): New argument for lax word-ends.
16427 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16428
16429 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16430
16431 * lisp.h (is_daemon): Declare.
16432 * dispnew.c (init_display): Do not try to initialize the terminal
16433 when running as a daemon.
16434
16435 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
16436
16437 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16438 x_display_pixel_height.
16439
16440 2008-09-22 Martin Rudalics <rudalics@gmx.at>
16441
16442 * undo.c (record_point): Don't call Fundo_boundary for first
16443 change. (Bug#731)
16444
16445 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
16446
16447 * emacs.c (Fdaemonp): Doc fix.
16448
16449 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16450
16451 * emacs.c (main): Place #ifdef in the proper place.
16452
16453 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16454
16455 * emacs.c (standard_args): Add --daemon.
16456 (main): Disconnect from the terminal when --daemon is passed.
16457 (is_daemon): New variable.
16458 (Fdaemonp): New function.
16459 (syms_of_emacs): Defsubr it.
16460
16461 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
16462
16463 * xdisp.c (get_next_display_element): Handle string display
16464 correctly when checking for the end of a box run.
16465
16466 2008-09-20 Glenn Morris <rgm@gnu.org>
16467
16468 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16469 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16470 (Frename_file): Avoid copying to trash if a rename involves
16471 a delete. (Bug#964).
16472
16473 2008-09-20 Eli Zaretskii <eliz@gnu.org>
16474
16475 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16476 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16477 frames as well as termcap frames.
16478 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16479 get_named_tty.
16480
16481 2008-09-19 Eli Zaretskii <eliz@gnu.org>
16482
16483 * process.c (procfs_system_process_attributes): Fix cmdline in
16484 case /proc/PID/cmdline is empty.
16485
16486 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16487 x_display_pixel_height.
16488
16489 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
16490
16491 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16492
16493 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16494 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16495
16496 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16497
16498 * dispextern.h (struct it): Move line_wrap away from the middle of
16499 bitfields. Move voffset in struct iterator_stack_entry after the
16500 bitfields. Move tab_width near after another short.
16501
16502 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16503
16504 * frame.h (struct frame): Move alpha from the middle of bitfields.
16505
16506 * window.h (struct window): Move frozen_window_start_p after the
16507 rest of the bitfields to reduce padding.
16508
16509 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
16510
16511 * xterm.h (x_display_info): Remove `height' and `width' members.
16512
16513 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16514
16515 * w32term.h (w32_display_info): Remove `height', `width',
16516 `height_in', and `width_in' members.
16517
16518 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16519 New functions.
16520 (x_calc_absolute_position): Use them.
16521 (x_term_init): Omit removed `height' and `width' members.
16522
16523 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16524 New functions.
16525 (w32_read_socket, x_calc_absolute_position): Use them.
16526 (w32_initialize_display_info, w32_term_init): Omit removed members
16527 of w32_display_info.
16528
16529 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16530 New functions.
16531 (ns_initialize_display_info): Omit removed members of ns_display_info.
16532
16533 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16534 New functions.
16535 (x_calc_absolute_position): Use them.
16536 (x_term_init): Omit removed `height' and `width' members.
16537
16538 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16539 (compute_tip_xy):
16540 * frame.c (x_fullscreen_adjust):
16541 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16542 x_display_pixel_width.
16543
16544 2008-09-18 Kenichi Handa <handa@m17n.org>
16545
16546 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16547 (composition_compute_stop_pos): Fix handling of static composition.
16548 (Fcomposition_get_gstring): Check FROM and TO at first.
16549
16550 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16551
16552 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
16553 mixup (YAILOM).
16554
16555 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
16556
16557 * indent.c (Fvertical_motion): Use position reported by iterator
16558 instead of PT for determining screen motion (bug#943).
16559
16560 2008-09-17 Romain Francoise <romain@orebokech.com>
16561
16562 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16563
16564 2008-09-17 Kenichi Handa <handa@m17n.org>
16565
16566 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16567
16568 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16569 if necessary.
16570
16571 2008-09-16 Kenichi Handa <handa@m17n.org>
16572
16573 * coding.c (make_conversion_work_buffer): Avoid calling
16574 Fget_buffer_create if it is not necessary.
16575
16576 2008-09-15 Martin Rudalics <rudalics@gmx.at>
16577
16578 * window.c (Fselect_window): Don't update window_select_count and
16579 use_time when norecord is not nil.
16580
16581 2008-09-14 Kenichi Handa <handa@m17n.org>
16582
16583 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16584 specpdl_ptr.
16585
16586 2008-09-12 Kenichi Handa <handa@m17n.org>
16587
16588 * indent.c (scan_for_column): Don't handle automatic composition
16589 if the current buffer is not associated with a window.
16590
16591 * composite.c (composition_reseat_it): If the current buffer is
16592 not associated with a window, ignore the automatic composition.
16593 (find_automatic_composition): Likewise.
16594
16595 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16596
16597 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16598 (Fgpm_mouse_stop): Use it.
16599 * termhooks.h (close_gpm): Declare.
16600 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16601 connection if Gpm_GetEvent fails.
16602
16603 * window.c (set_window_buffer): Always preserve current-buffer.
16604
16605 2008-09-12 Glenn Morris <rgm@gnu.org>
16606
16607 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16608
16609 2008-09-11 Glenn Morris <rgm@gnu.org>
16610
16611 * charset.c (charset-map-path): Doc fix.
16612
16613 2008-09-10 Kenichi Handa <handa@m17n.org>
16614
16615 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16616
16617 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16618 compose a grapheme cluster with the preceding base glyph.
16619
16620 * composite.c (composition_compute_stop_pos): Fix previous change.
16621 Reset cmp_it->id to -1 at first.
16622
16623 2008-09-10 Glenn Morris <rgm@gnu.org>
16624
16625 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16626
16627 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
16628
16629 * keyboard.c (read_key_sequence): Reapply translation maps when
16630 switching keyboards.
16631
16632 2008-09-09 Kenichi Handa <handa@m17n.org>
16633
16634 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16635 characters.
16636
16637 * composite.c (FORWARD_CHAR): Fix calculation
16638 of (POSITION).pos_byte.
16639 (composition_compute_stop_pos): Limit the search of composition to
16640 at most 500 characters ahead. If we reach the limit or find a
16641 newline, set cmp_it->ch to -2 and return 0.
16642 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16643
16644 2008-09-08 Kenichi Handa <handa@m17n.org>
16645
16646 * indent.c (Fvertical_motion): Be sure to set
16647 it_overshoot_expected if it.cmp_it.id is non-negative.
16648
16649 2008-09-07 Andreas Schwab <schwab@suse.de>
16650
16651 * callproc.c (Fcall_process): Don't hold references to string data
16652 across garbage collection. Move initialisation of new_argv down
16653 to avoid compiler bug.
16654
16655 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16656
16657 * process.c (Fsystem_process_attributes): Doc fix.
16658
16659 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
16660
16661 * callproc.c (Fcall_process): Canonicalize current directory name.
16662
16663 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16664 iterator advances to the next line if the current line ends in a
16665 continued tab.
16666
16667 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16668
16669 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16670 member to point to cmp_from.
16671
16672 * xdisp.c: Doc fix for references to gidx data member.
16673
16674 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16675
16676 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16677
16678 2008-09-07 Kenichi Handa <handa@m17n.org>
16679
16680 * composite.c (FORWARD_CHAR): Check STOP after
16681 incrementing (POSITION).pos.
16682
16683 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16684
16685 * process.c (Fsystem_process_attributes): Doc fix.
16686
16687 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
16688
16689 * keyboard.c (Ftop_level): Doc fix.
16690
16691 2008-09-06 Eli Zaretskii <eliz@gnu.org>
16692
16693 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16694 minibuffer, don't let lower part of menu invade the echo area.
16695
16696 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16697 "char *q" to access menu text and advance through it. Revert the
16698 change that displayed ">" instead of ASCII character 0x10.
16699
16700 2008-09-05 Eli Zaretskii <eliz@gnu.org>
16701
16702 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16703 toggle boxes and radio buttons on MS-DOS as well.
16704
16705 2008-09-05 Kenichi Handa <handa@m17n.org>
16706
16707 * composite.c (autocmp_chars): Check lookback count.
16708 (composition_compute_stop_pos): Set cmp_it->lookback.
16709 (composition_reseat_it): Check lookback count.
16710 (struct position_record): New struct.
16711 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16712 (find_automatic_composition): New function.
16713 (composition_adjust_point): Use find_automatic_composition.
16714
16715 * dispextern.h (struct composition_it): New member lookback.
16716
16717 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
16718
16719 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16720 if moving by a single line.
16721
16722 2008-09-02 Andreas Schwab <schwab@suse.de>
16723
16724 * xterm.c (x_delete_display): Fix merge error.
16725
16726 * fileio.c (Fexpand_file_name): Remove unused variables.
16727
16728 2008-09-02 Eli Zaretskii <eliz@gnu.org>
16729
16730 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16731 storage on all platforms, not just on DOS_NT.
16732
16733 2008-09-02 Jason Rumney <jasonr@gnu.org>
16734
16735 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16736 Ensure mouse is not grabbed after menu is finished.
16737
16738 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
16739
16740 * xfaces.c (Finternal_set_alternative_font_family_alist)
16741 (Finternal_set_alternative_font_registry_alist): Properly copy
16742 entire alist structure.
16743
16744 2008-09-01 Kenichi Handa <handa@m17n.org>
16745
16746 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
16747 representative chars of the script is a vector.
16748 (ftfont_list): Handle the case where the representative chars of
16749 the script is a vector.
16750
16751 * character.c (syms_of_character): Docstring of
16752 script-representative-chars fixed.
16753
16754 2008-08-31 Eli Zaretskii <eliz@gnu.org>
16755
16756 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16757 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16758 the menu. Allocate larger buffer for `text', to account for
16759 possible ^C characters.
16760
16761 2008-08-31 Martin Rudalics <rudalics@gmx.at>
16762
16763 * xdisp.c (prepare_menu_bars): Don't call
16764 Vwindow_size_change_functions with arg Qt.
16765
16766 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16767
16768 * font.h (font_range):
16769 * fileio.c (report_file_error):
16770 * composite.c (composition_update_it): Yet another int/Lisp_Object
16771 mixup (YAILOM).
16772
16773 2008-08-30 Glenn Morris <rgm@gnu.org>
16774
16775 * data.c (Fmake_variable_frame_local): Doc fix.
16776
16777 * frame.c (Fmodify_frame_parameters): Doc fix.
16778
16779 2008-08-30 Eli Zaretskii <eliz@gnu.org>
16780
16781 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16782 needed by GetTokenInformation.
16783 (w32_system_process_attributes): Check return values of all system
16784 APIs.
16785
16786 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16787 only when the state changes.
16788 (IT_update_begin, IT_update_end): Add termscript trace.
16789
16790 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16791 clipboard is unavailable. Set dst to NULL if it doesn't point to
16792 malloc'ed data.
16793 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16794 passing random values to xfree.
16795
16796 * dispnew.c (init_display): Set `tty's association in frame's
16797 parameters alist to the name of the terminal device, if that is known.
16798
16799 2008-08-29 Jason Rumney <jasonr@gnu.org>
16800
16801 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16802
16803 2008-08-29 Eli Zaretskii <eliz@gnu.org>
16804
16805 * composite.c (fill_gstring_body): Avoid compiler warnings.
16806
16807 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16808 LGLYPH_SET_CODE to avoid compiler warnings.
16809
16810 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
16811
16812 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16813
16814 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16815 LGLYPH_SET_CODE.
16816
16817 2008-08-29 Kenichi Handa <handa@m17n.org>
16818
16819 * fileio.c (report_file_error): Don't downcase the first character
16820 of errstring if it is still unibyte.
16821
16822 2008-08-29 Kenichi Handa <handa@m17n.org>
16823
16824 These changes are to re-implement the automatic composition so
16825 that it doesn't use text properties.
16826
16827 * Makefile.in (ftfont.o): Depend on composite.h.
16828 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16829
16830 * character.h (Vunicode_category_table): Extern it.
16831
16832 * character.c (Vunicode_category_table): New variable.
16833 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16834
16835 * chartab.c (optimize_sub_char_table): Perform more greedy
16836 optimization.
16837
16838 * composite.h (enum composition_method):
16839 Delete COMPOSITION_WITH_GLYPH_STRING.
16840 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16841 (Vcomposition_function_table): Extern it.
16842 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16843 (composition_gstring_put_cache, composition_gstring_from_id)
16844 (composition_gstring_p, composition_gstring_width)
16845 (composition_compute_stop_pos, composition_reseat_it)
16846 (composition_update_it, composition_adjust_point): Extern them.
16847 (Fcomposition_get_gstring): EXFUN it.
16848
16849 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
16850 (Vcomposition_function_table)
16851 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
16852 (gstring_hash_table, gstring_work, gstring_work_headers):
16853 New variables.
16854 (gstring_lookup_cache, composition_gstring_put_cache)
16855 (composition_gstring_from_id, composition_gstring_p)
16856 (composition_gstring_width, fill_gstring_header)
16857 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16858 (composition_reseat_it, composition_update_it)
16859 (composition_adjust_point, Fcomposition_get_gstring): New functions.
16860 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16861 and gstring_work_headers. DEFVAR_LISP composition-function-table.
16862 Defsubr composition_get_gstring.
16863
16864 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16865 cmp_id.
16866 (struct glyph_string): Delete the member gidx. New members
16867 cmp_id, cmp_from, and cmp_to.
16868 (enum it_method): Delete GET_FROM_COMPOSITION.
16869 (struct composition_it): New struct.
16870 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16871 Delete c, len, cmp_id, cmp_len in u.comp.
16872
16873 * font.h (enum lgstring_indices): Delete it.
16874 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
16875 (enum lglyph_indices): Likewise.
16876 (font_range): Adjust extern.
16877 (font_fill_lglyph_metrics): Extern it.
16878
16879 * font.c (QCf): New variable.
16880 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16881 (font_prepare_composition): Delete this function.
16882 (font_range): Type and arguments changed.
16883 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16884 (font_fill_lglyph_metrics): New function.
16885 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
16886 (syms_of_font): DEFSYM QCf. Delete defsubr for
16887 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16888 Defsubr Sfont_shape_gstring.
16889
16890 * fontset.h (font_for_char): Extern it.
16891
16892 * fontset.c (font_for_char): New function.
16893
16894 * ftfont.c: Include composite.h.
16895 (ftfont_resolve_generic_family): Add langset "en" to pattern.
16896 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16897
16898 * indent.c: Include composite.h and dispextern.h.
16899 (check_composition): Delete this function.
16900 (scan_for_column): Handle composition by
16901 composition_compute_stop_pos, composition_reseat_it, and
16902 composition_update_it.
16903 (compute_motion): Likewise.
16904 (Fvertical_motion): Fix checking of composition.
16905
16906 * keyboard.c (adjust_point_for_property): Check composition by
16907 composition_adjust_point.
16908
16909 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
16910 struct glyph_string.
16911
16912 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16913 (append_composite_glyph): Adjust for the change of struct it and
16914 struct glyph.
16915 (produce_composite_glyph): Likewise.
16916
16917 * w32term.c (x_draw_composite_glyph_string_foreground):
16918 Adjust for the change of struct glyph_string.
16919 (x_draw_glyph_string): Likewise.
16920
16921 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16922 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16923
16924 * xdisp.c: Include font.h.
16925 (it_props): Delete the entry for Qauto_composed.
16926 (init_iterator): Initialize it->cmp_it.id to -1.
16927 (compute_stop_pos): Call composition_compute_stop_pos.
16928 (face_before_or_after_it_pos): Adjust for the change of struct it.
16929 (handle_auto_composed_prop): Delete it.
16930 (handle_composition_prop): Handle only static composition.
16931 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16932 from xassert. Initialize it->cmp_it.stop_pos.
16933 (push_it): Adjust for the change of struct it.
16934 (pop_it): Likewise.
16935 (get_next_element): Delete next_element_from_composition.
16936 (CHAR_COMPOSED_P): New macro.
16937 (get_next_display_element): For automatic composition, get a face
16938 from the font in the glyph-string.
16939 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
16940 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
16941 (next_element_from_string): Check if the character at the current
16942 position is composed by CHAR_COMPOSED_P.
16943 (next_element_from_buffer): Likewise.
16944 (next_element_from_composition): Adjust for the change of struct it.
16945 Update it->cmp_it.
16946 (dump_glyph): Adjust for the change of struct glyph.
16947 (fill_composite_glyph_string): Adjust for the change of struct
16948 it and struct glyph. Don't handle automatic composition here.
16949 (fill_gstring_glyph_string): New function.
16950 (x_get_glyph_overhangs): Handle automatic composition.
16951 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
16952 (BUILD_GSTRING_GLYPH_STRING): New macro.
16953 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16954 automatic composition.
16955 (append_composite_glyph): Adjust for the change of struct it and
16956 struct glyph.
16957 (x_produce_glyphs): Adjust for the change of struct it.
16958
16959 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16960 the change of struct glyph_string.
16961 (x_draw_glyph_string): Likewise.
16962
16963 2008-08-29 Glenn Morris <rgm@gnu.org>
16964
16965 * buffer.c (word-wrap): Doc fix.
16966 * xdisp.c (truncate-partial-width-windows): Doc fix.
16967 Increase default to 50.
16968
16969 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
16970
16971 * xdisp.c (update_tool_bar_unwind): New function.
16972 (update_tool_bar): Temporarily set selected frame before building
16973 tool-bar items.
16974
16975 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
16976
16977 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16978 snprintf, respectively.
16979 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16980
16981 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
16982
16983 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16984 LDFLAGS to GNUstep CC invocation.
16985
16986 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
16987
16988 * indent.c (Fvertical_motion): Revert last change. Handle the
16989 general case where we are moving forward, and PT spans multiple
16990 screen lines.
16991
16992 * eval.c (find_handler_clause): Temporarily increase
16993 max-lisp-eval-depth while printing the backtrace buffer, to
16994 guarantee that help-mode code can run.
16995
16996 2008-08-27 Eli Zaretskii <eliz@gnu.org>
16997
16998 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16999 colors under -rv.
17000 (IT_set_frame_parameters): Don't swap foreground and background
17001 colors if `(reverse . t)' is present in the frame properties.
17002 (internal_terminal_init): Call init_frame_faces only for the
17003 initial frame.
17004
17005 2008-08-27 Andreas Schwab <schwab@suse.de>
17006
17007 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17008
17009 2008-08-27 Andreas Schwab <schwab@suse.de>
17010
17011 * search.c (search_buffer): Set char_base to zero only at the end.
17012
17013 2008-08-27 Kenichi Handa <handa@m17n.org>
17014
17015 * fileio.c (report_file_error): Fix handling of multibyte error string.
17016
17017 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17018
17019 * xterm.c (x_term_init): Temporarily hide the partially
17020 initialized terminal while calling vendor-specific-keysyms.
17021
17022 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17023
17024 * msdos.c (internal_terminal_init): Most initializations done only
17025 once, especially initial_screen_colors[] and termscript open.
17026
17027 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17028
17029 * eval.c (Fcondition_case): Doc fix.
17030
17031 * widgetprv.h (EmacsFramePart): Change font member to the new font
17032 struct.
17033
17034 * widget.c: Include character.h and font.h for XSETFONT.
17035 (setup_frame_gcs): Compute X font id from font struct, just once.
17036
17037 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17038
17039 * term.c (get_named_tty): Fix last change.
17040
17041 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17042
17043 * indent.c (Fvertical_motion): If moving forward starting from a
17044 multi-line string, move the iterator to the last line of that string.
17045
17046 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17047
17048 * frame.c (do_switch_frame): Mark previously displayed frame as
17049 obscured for FRAME_MSDOS_P frames as well.
17050
17051 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17052
17053 * frame.c (make_terminal_frame): Initialize f->terminal,
17054 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17055 Set the top frame to newly created frame.
17056 (Fmake_terminal_frame): Reuse the_only_display_info.
17057
17058 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17059 estimating available memory.
17060
17061 2008-08-23 David Reitter <david.reitter@gmail.com>
17062
17063 * nsterm.m (ns_draw_window_cursor): Don't call
17064 NSDisableScreenUpdates and NSEnableScreenUpdates on
17065 non-NS_IMPL_COCOA systems.
17066
17067 2008-08-23 Andreas Schwab <schwab@suse.de>
17068
17069 * process.c (procfs_system_process_attributes): Fix use of
17070 uninitialized variables.
17071
17072 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17073
17074 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17075
17076 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17077 calling tty-set-up-initial-frame-faces.
17078
17079 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17080 Allow MSDOS frames along with X frames.
17081
17082 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17083 addition to output_termcap.
17084
17085 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17086
17087 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17088 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17089 highlight.
17090
17091 * process.c [!subprocesses]: Define QCname.
17092 (syms_of_process): Intern and staticpro it.
17093
17094 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17095 Adjust for changes in encoding/decoding routines.
17096 Use encode_coding_object and decode_coding_object instead of
17097 encode_coding and decode_coding.
17098
17099 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17100
17101 * dosfns.c: Include frame.h before termhooks.h.
17102 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17103 variable termscript.
17104
17105 * s/msdos.h (USER_FULL_NAME): Define.
17106 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17107
17108 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17109 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17110 pw->pw_gecos.
17111
17112 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17113 SELECTED_FRAME as additional (1st) argument.
17114 (tty_read_avail_input): Handle output_msdos_raw in
17115 addition to output_termcap.
17116
17117 * msdos.c: Include frame.h before termhooks.h.
17118 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17119 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17120 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17121 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17122 (IT_set_terminal_modes, IT_reset_terminal_modes)
17123 (IT_set_frame_parameters): Use tty->termscript instead of a global
17124 variable termscript.
17125 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17126 global variable terminal_coding. Don't refer to
17127 Vnonascii_translation_table.
17128 (internal_terminal_init): Set Vwindow_system in current_kboard.
17129 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17130 Announce date and time of session start, if termscript is open.
17131 Don't zero out the_only_display_info (it is done in
17132 term.c:init_tty). Open termscript only of not already open.
17133 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17134 here instead of dos_ttraw. Don't initialize display if this is an
17135 initial tty. Don't set FRAME_FONT.
17136 (Vwindow_system_version): Bump to 23.
17137 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17138 is available, set up mouse_position_hook.
17139 (dos_ttraw, IT_set_terminal_modes): If called with initial
17140 terminal, do nothing.
17141 (IT_set_frame_parameters): Handle the Qtty_type frame
17142 parameter by calling internal_terminal_init.
17143 (dos_set_window_size, show_mouse_face)
17144 (clear_mouse_face, IT_note_mode_line_highlight)
17145 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17146 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17147 (initialize_msdos_display): New function.
17148 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17149 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17150 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17151 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17152 Accept additional argument: a pointer to a frame. Update all callers.
17153 (request_sigio, unrequest_sigio): Don't define, now defined on
17154 sysdep.c.
17155 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17156
17157 * term.c [MSDOS]: Include msdos.h.
17158 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17159 conditional to DOS_NT. Allow only one call to this function in a
17160 session. Don't allocate a new struct tty_display_info; instead,
17161 reuse the_only_display_info. Call get_tty_size to get screen
17162 dimensions. Call init_baud_rate to set bad_rate.
17163 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17164 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17165 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17166 (get_tty_terminal, get_named_tty, Ftty_type)
17167 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17168 output_termcap.
17169 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17170 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17171 only when subprocesses are supported.
17172
17173 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17174 f->output_data.x.
17175 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17176 terminal devices.
17177
17178 * msdos.h: Remove definition of struct x_display_info and struct
17179 x_output.
17180 (FRAME_FONT): Use output_data.tty.
17181 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17182 (struct x_display_info): Rename from display_info. Update all users in
17183 msdos.c.
17184 (struct x_output): Remove background_pixel and foreground_pixel.
17185 (the_only_display_info): Rename from the_only_x_display.
17186 (dos_ttraw): Update prototype.
17187
17188 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17189 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17190
17191 2008-08-23 Jason Rumney <jasonr@gnu.org>
17192
17193 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17194 (fn_TIFFSetDirectory): New library function used.
17195 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17196 (tiff_load): Use :index to select among multiple images. Set count
17197 property when multiple images exist.
17198 (gif_format): Use :index, not :image.
17199
17200 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
17201
17202 * xdisp.c (try_scrolling): Check INT_MAX instead of
17203 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17204 to obtain INT_MAX.
17205
17206 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17207
17208 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17209
17210 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17211
17212 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17213 GNUstep library location.
17214
17215 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
17216
17217 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17218 before using it.
17219
17220 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17221
17222 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17223
17224 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17225 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17226 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17227 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17228 (EmacsApp-cursor_blink_handler): Remove declaration.
17229 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17230 match 01 Feb 2008 changes in xterm.c.
17231 (ns_read_socket): Add cast to avoid warning.
17232 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17233 GNUstep.
17234
17235 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
17236
17237 * xselect.c (x_get_foreign_selection): Return nil if desired
17238 selection could not be obtained, instead of signalling an error.
17239
17240 2008-08-20 David Reitter <david.reitter@gmail.com>
17241
17242 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17243 * nsterm.m: Remove ns-specific code for cursor blinking.
17244 (ns_draw_window_cursor): Clear cursor properly rather than
17245 redrawing the area. Respect width of bar cursors.
17246 These changes enable the use of generic blink-cursor-mode and
17247 generic cursor types in NS and support smooth cursor movements (do
17248 not blink off after command).
17249 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17250 Nextstep, too.
17251
17252 2008-08-19 Kenichi Handa <handa@m17n.org>
17253
17254 * font.c (Vfont_log_deferred): New variable.
17255 (font_add_log): Check Vfont_log_deferred.
17256 (font_deferred_log): New function.
17257
17258 * font.h (font_deferred_log): Extern it.
17259
17260 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17261 for sorting.
17262 (face_for_char): Use deferred log.
17263
17264 2008-08-18 Kenichi Handa <handa@m17n.org>
17265
17266 * fontset.c (face_for_char): Add font log.
17267
17268 * font.c (font_add_log): Add the font properties :script, :lang,
17269 and :otf in the log.
17270
17271 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
17272
17273 * xdisp.c: Remove dead code.
17274 (handle_invisible_prop, next_overlay_string): Defer call to
17275 setup_for_ellipsis.
17276 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17277
17278 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
17279
17280 * xfaces.c (lookup_derived_face): Properly handle possible zero
17281 return value of get_lface_attributes.
17282 (merge_faces): Don't tell lookup_derived_face to signal an error
17283 if face is not found.
17284
17285 * dired.c (Fdirectory_files): Doc fix.
17286
17287 * process.c (make_process): Initialize kill_without_query struct
17288 member.
17289
17290 2008-08-15 Eli Zaretskii <eliz@gnu.org>
17291
17292 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17293 Alternative calculation of totphys for Visual Studio 6.
17294
17295 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17296
17297 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17298 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17299 All users changed.
17300 (stat): Only root directory passed to GetDriveType. Allow RAM
17301 disk as well as local fixed disk when w32-get-true-file-attributes
17302 is set to `local'.
17303 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17304 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17305 (w32_cached_id, w32_add_to_cache): New functions.
17306 (get_name_and_id): Look account names in the cache before calling
17307 lookup_account_sid.
17308 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17309 New initialization flags.
17310 (globals_of_w32): Initialize them to zero.
17311 (w32_system_process_attributes): Use w32_cached_id and
17312 w32_add_to_cache.
17313
17314 2008-08-14 Lawrence Mitchell <wence@gmx.li>
17315
17316 * lread.c (Fread_char, Fread_char_exclusive): If no character
17317 event is read before timeout is reached, return nil, rather than
17318 converting to a number.
17319
17320 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
17321
17322 * fns.c (use_dialog_box): Doc fix.
17323
17324 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17325 on OS X.
17326
17327 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
17328
17329 * frame.c (Qns_parse_geometry): New var.
17330 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17331
17332 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
17333
17334 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17335 space character in calculating tabs.
17336
17337 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17338
17339 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17340
17341 2008-08-10 Glenn Morris <rgm@gnu.org>
17342
17343 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17344 silence gcc "limited range of data type" warnings in some
17345 make_fixnum_or_float calls.
17346
17347 2008-08-09 Eli Zaretskii <eliz@gnu.org>
17348
17349 * w32.c (w32_system_process_attributes): If the process does not
17350 exist, return nil.
17351
17352 * w32.c: Include thelp32.h, psapi.h and coding.h.
17353 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17354 declarations.
17355 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17356 (Process32Next_Proc): New typedefs.
17357 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17358 (g_b_init_process32_next, g_b_init_open_thread_token)
17359 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17360 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17361 (g_b_init_get_process_working_set_size)
17362 (g_b_init_global_memory_status_ex): New static variables.
17363 (globals_of_w32): Initialize them.
17364 (create_toolhelp32_snapshot, process32_first, process32_next)
17365 (open_thread_token, impersonate_self, revert_to_self)
17366 (get_process_memory_info, get_process_working_set_size)
17367 (global_memory_status, global_memory_status_ex): New wrapper
17368 functions.
17369 (w32_list_system_processes, w32_system_process_attributes)
17370 (enable_privilege, restore_privilege, ltime, process_times):
17371 New functions.
17372 (convert_time_raw): New function.
17373 (convert_time): Remove conversion of FILETIME into time in 100
17374 nsec units, call convert_time_raw instead.
17375
17376 * process.h (w32_list_system_processes, w32_system_process_attributes):
17377 Add prototypes.
17378 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17379 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17380 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17381 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17382
17383 * process.c (Fsystem_process_attributes): Doc fix.
17384
17385 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
17386
17387 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17388 a continued multi-char glyph; if so, advance to the actual glyph.
17389
17390 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17391
17392 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17393
17394 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17395 (.m.o): Use it.
17396 * config.in: Regenerate.
17397
17398 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
17399
17400 * xdisp.c (redisplay_window): Revert last change.
17401 (try_window): Check bottom scroll margin too.
17402
17403 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17404
17405 * config.in: Regenerate.
17406
17407 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17408 -list-load-path-shadows'.
17409 (nsgui.h): Reduce number of things depending on it.
17410
17411 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
17412
17413 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17414 instead of window-end which does the wrong thing at eob.
17415 (try_cursor_movement): Minor optimization.
17416 (redisplay_window): If scroll margin is defined, don't assume
17417 window doesn't need scrolling.
17418
17419 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17420
17421 * config.in: Regenerate.
17422
17423 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17424 (mostlyclean): Don't delete *.d under NS.
17425
17426 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17427
17428 2008-08-06 Kenichi Handa <handa@m17n.org>
17429
17430 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17431
17432 2008-08-06 Andreas Schwab <schwab@suse.de>
17433
17434 * config.in: Regenerate.
17435
17436 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
17437
17438 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17439 forcing a window start.
17440
17441 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17442 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17443
17444 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17445
17446 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17447 argument.
17448
17449 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
17450
17451 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17452 <scroll-down-aggressively, before-change-functions>:
17453 <after-change-functions>: Reflow docstrings.
17454
17455 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17456 Ken Raeburn <raeburn@gnu.org>
17457
17458 Dock menu customization, based on a patch by Ken Raeburn, plus some
17459 other fixes.
17460 * nsmenu.m (dockMenu): New variable.
17461 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17462
17463 * nsterm.h (dockMenu): Declare.
17464
17465 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17466 (ns_term_init): Initialize dockMenu.
17467 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17468 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17469 left.
17470
17471 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17472
17473 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17474
17475 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17476
17477 * config.in: Regenerate.
17478
17479 2008-08-04 Seiji Zenitani <zenitani@mac.com>
17480
17481 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17482
17483 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17484
17485 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17486
17487 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17488
17489 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17490
17491 * keyboard.h: Comment an #endif.
17492
17493 * lisp.h (have_menus_p): Adjust comment.
17494
17495 * menu.c (find_and_return_menu_selection): Fix comparison with
17496 client_data.
17497
17498 * nsmenu.m (popup_activated_flag): New variable.
17499 (popup_activated): New function.
17500 (menu-or-popup-active-p): New exported lisp definition.
17501 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17502 when popup done.
17503 (ns_popup_dialog): Set popup_activated_flag.
17504
17505 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17506 version for GNUstep (handled by conditional typedef in nsterm.m).
17507 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17508 in rgb.txt).
17509
17510 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17511
17512 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17513
17514 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17515
17516 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17517 shortcircuit if popup_activated like GTK and X toolkit.
17518
17519 * m/inter386.h: Change DARWIN to DARWIN_OS.
17520
17521 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17522 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
17523 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17524 Expand comment on NO_SOCK_SIGIO.
17525
17526 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
17527
17528 * nsterm.m (windowDidResize): Remove stopModal call.
17529
17530 2008-08-03 Andreas Schwab <schwab@suse.de>
17531
17532 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17533 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17534
17535 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
17536
17537 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17538 Don't use uninitialized pointer variable when using getrlimit.
17539
17540 2008-08-02 Jason Rumney <jasonr@gnu.org>
17541
17542 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17543
17544 2008-08-02 Eli Zaretskii <eliz@gnu.org>
17545
17546 * alloc.c (NSTATICS): Bump to 0x640.
17547
17548 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17549
17550 * lisp.h: Add prototype for directory_files_internal.
17551
17552 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17553 New functions.
17554 (syms_of_process): Defsubr them. Add initializations for various
17555 Q* symbols used in procfs_system_process_attributes.
17556 (procfs_list_system_processes, procfs_system_process_attributes)
17557 [HAVE_PROCFS]: New functions.
17558 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17559 (procfs_get_total_memory): New functions.
17560
17561 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
17562
17563 * xfaces.c (Fx_load_color_file): Fix previous change;
17564 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17565
17566 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
17567
17568 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17569
17570 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17571
17572 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17573
17574 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
17575
17576 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17577
17578 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17579 define NSApplicationDelegateReplySuccess.
17580 (EmacsView -converstationIdentifier): Use long instead of
17581 NSInteger for GNUstep, since it doesn't have NSInteger.
17582
17583 * xmenu.c: Revert last change.
17584
17585 * keyboard.h: Fix last change.
17586
17587 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
17588
17589 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17590 on Windows.
17591
17592 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17593
17594 Warning clearing and clean-up in NS port.
17595 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17596 Add prototypes.
17597 * nsgui.h (FACE_DEFAULT): Remove, unused.
17598 (XGCValues): Change colors to unsigned long.
17599 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17600 nsterm.m.
17601 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17602 (ns_list_fonts): Remove, unused.
17603 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17604 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17605 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17606 (nsfont_draw): Compare face colors to 0, not nil.
17607 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17608 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17609 (-addSubmenuWithTitle:): Use NSMenuItem class.
17610 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17611 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17612 (ns_clip_to_row): Make gc arg a BOOL.
17613 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17614 ns_clip_to_row() call.
17615 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17616 used). Cast FRAME_FONT assignments.
17617 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17618 (ns_string_to_lispmod): Change arg to const char.
17619 (ns_term_init): Use NSMenuItem class.
17620 (EmacsApp -openFile:): Move to different section of file.
17621 (EmacsApp -application:openFiles:): Don't return a value, call
17622 -replyToOpenOrPrint:.
17623 (EmacsView -keyDown:): Fix up cast.
17624 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17625 (EmacsView -menuDown:): Cast tag in call to
17626 find_and_call_menu_selection().
17627 (ns_list_fonts): Remove, unused.
17628 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17629 (ns_fontname_to_xlfd): Make static.
17630 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17631 Remove prototypes (now in keyboard.h).
17632 (next_menubar_widget_id): Remove, unused.
17633 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17634 Remove prototypes (now in keyboard.h).
17635 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17636
17637 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17638
17639 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17640 (floatfns.o): Depend on syssignal.h.
17641 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17642
17643 * systty.h: Fix previous change that removed BSD_TERMIOS.
17644 Add comments to #ifdefs.
17645
17646 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17647
17648 * w32fns.c (w32-load-color-file): Remove.
17649 (x-open-connection): Use renamed Fx_load_color_file.
17650 * xfaces.c (x-load-color-file): Add.
17651 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17652 Emacs.clr.
17653 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17654
17655 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
17656
17657 * dbusbind.c (Fdbus_call_method_asynchronously)
17658 (Fdbus_method_error_internal): New defuns.
17659 (xd_read_message): Handle also reply messages.
17660 (Vdbus_registered_functions_table): Extend docstring.
17661
17662 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
17663
17664 * keyboard.c (gobble_input): Fix previous change.
17665
17666 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17667
17668 * bitmaps/README:
17669 * xfns.c:
17670 * termcap.c:
17671 * term.c:
17672 * syswait.h:
17673 * systty.h:
17674 * systime.h:
17675 * syssignal.h:
17676 * sysdep.c:
17677 * process.h:
17678 * process.c:
17679 * print.c:
17680 * ndir.h:
17681 * lread.c:
17682 * keyboard.c:
17683 * getpagesize.h:
17684 * floatfns.c:
17685 * fileio.c:
17686 * emacs.c:
17687 * doc.c:
17688 * dispnew.c:
17689 * dired.c:
17690 * data.c:
17691 * callproc.c:
17692 * buffer.c:
17693 * README:
17694 * Makefile.in:
17695 * s/template.h:
17696 * s/msdos.h:
17697 * m/vax.h: Remove VMS support.
17698 * s/vms.h:
17699 * vlimit.h:
17700 * uaf.h:
17701 * temacs.opt:
17702 * param.h:
17703 * ioctl.h: Remove file.
17704
17705 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17706
17707 * s/ms-w32.h (MULTI_KBOARD): Remove.
17708 * xterm.c:
17709 * xselect.c:
17710 * xfns.c:
17711 * window.c:
17712 * w32term.c:
17713 * w32fns.c:
17714 * terminal.c:
17715 * termhooks.h:
17716 * term.c:
17717 * sysdep.c:
17718 * keyboard.h:
17719 * keyboard.c:
17720 * frame.h:
17721 * frame.c:
17722 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17723 * config.in: Regenerate.
17724
17725 2008-07-30 Jason Rumney <jasonr@gnu.org>
17726
17727 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17728
17729 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17730 (w32font_open_internal): Get unicode version of textmetrics.
17731 Don't enable or disable glyph indices here.
17732 (w32font_open): Disable use of glyph indices.
17733
17734 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17735
17736 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
17737
17738 * minibuf.c (Vread_buffer_function): Doc fix.
17739
17740 2008-07-30 John Paul Wallington <jpw@pobox.com>
17741
17742 * minibuf.c (read_buffer_completion_ignore_case): New var.
17743 (Fread_buffer): Use it.
17744
17745 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17746
17747 * systty.h (sensemode): Remove empty #if. Remove reference to
17748 BSD_TERMIOS, unused.
17749
17750 * sysdep.c: Remove reference to DGUX.
17751 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17752
17753 * config.in: Regenerate.
17754
17755 2008-07-30 Jason Rumney <jasonr@gnu.org>
17756
17757 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17758
17759 2008-07-29 Jason Rumney <jasonr@gnu.org>
17760
17761 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17762 is populated.
17763 (uniscribe_encode_char): Always use uniscribe.
17764 Avoid using context if cache is populated.
17765
17766 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17767
17768 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17769 open menu.
17770
17771 * gtkutil.c (menu_nav_ended): Remove.
17772 (create_menus): Remove signal connect for menu_nav_ended.
17773
17774 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
17775
17776 * xdisp.c (redisplay_window): Check return value of
17777 compute_window_start_on_continuation_line before forcing a window
17778 start.
17779
17780 2008-07-28 Jason Rumney <jasonr@gnu.org>
17781
17782 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17783
17784 * w32term.c (w32_enable_unicode_output, cleartype_active):
17785 Remove obsolete display options.
17786 (x_draw_glyph_string_background): Don't use old cleartype_active
17787 workaround.
17788 (w32_initialize): Remove cleartype_active initialization.
17789 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17790
17791 2008-07-28 Andreas Schwab <schwab@suse.de>
17792
17793 * lisp.h (init_weak_hash_tables, syms_of_font)
17794 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17795 (remove_hash_entry): Don't declare.
17796 * eval.c (maybe_call_debugger): Make static and move before use.
17797 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17798 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17799 * xterm.h (x_set_frame_alpha): Declare.
17800
17801 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17802
17803 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17804 (create_menus): Connect selection-done to menu_nav_ended.
17805
17806 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17807
17808 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17809 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17810 parameter with read of 'alpha' one.
17811 (Qns_frame_parameter): Remove.
17812 * nsselect.m (selection-coding-system)
17813 (next-selection-coding-system, Vselection_coding_system)
17814 (Vnext_selection_coding_system): Drop.
17815
17816 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17817
17818 * nsfns.m (do-applescript, do_applescript): Rename to
17819 ns-do-applescript, ns_do_applescript, and move within file.
17820
17821 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17822
17823 Remove support for Mac Carbon.
17824 * mactoolbox.c:
17825 * macterm.h:
17826 * macterm.c:
17827 * macselect.c:
17828 * macmenu.c:
17829 * macgui.h:
17830 * macfns.c:
17831 * mac.c: Remove file.
17832 * s/darwin.h:
17833 * m/intel386.h:
17834 * xfaces.c:
17835 * xdisp.c:
17836 * window.c:
17837 * tparam.c:
17838 * termhooks.h:
17839 * termcap.c:
17840 * term.c:
17841 * syssignal.h:
17842 * sysselect.h:
17843 * sysdep.c:
17844 * process.c:
17845 * lread.c:
17846 * lisp.h:
17847 * keyboard.c:
17848 * image.c:
17849 * fringe.c:
17850 * frame.h:
17851 * frame.c:
17852 * fontset.c:
17853 * font.h:
17854 * font.c:
17855 * fns.c:
17856 * fileio.c:
17857 * emacs.c:
17858 * dispnew.c:
17859 * dispextern.h:
17860 * config.in:
17861 * atimer.c:
17862 * Makefile.in: Remove code for Carbon.
17863
17864 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17865
17866 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17867
17868 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17869
17870 * macterm.h (kCGBitmapByteOrder32Host): New define for
17871 non-universal SDKs.
17872
17873 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17874 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17875
17876 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17877 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17878
17879 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17880
17881 * w32inevt.c: Include dispextern.h.
17882
17883 2008-07-26 Andreas Schwab <schwab@suse.de>
17884
17885 * print.c (print_object): Fix off-by-one in last change.
17886
17887 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
17888
17889 * term.c (syms_of_term): Don't initialize default_orig_pair,
17890 default_set_foreground and default_set_background on Windows.
17891
17892 2008-07-25 Jason Rumney <jasonr@gnu.org>
17893
17894 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17895 ScriptItemize. Clean up return value checking. Remove unused
17896 variables.
17897 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17898 shaping engine.
17899
17900 * w32font.c (w32font_has_char): Handle the case where we can't
17901 determine the script for a character.
17902
17903 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
17904
17905 * term.c (syms_of_term): Initialize default_orig_pair,
17906 default_set_foreground, and default_set_background.
17907
17908 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17909 clash (bug#86).
17910 (getloadavg): Callers changed.
17911
17912 * image.c (svg_load_image): Fix last change.
17913 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17914 image size is valid. Use g_object_unref instead of deprecated
17915 rsvg_handle_free to free rsvg handle.
17916 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17917
17918 2008-07-25 Jason Rumney <jasonr@gnu.org>
17919
17920 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17921 surrogates before looking up glyph index.
17922 (w32font_text_extents): Encode as surrogates if falling back to
17923 functions that need UTF-16 wide chars.
17924
17925 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17926 BMP as surrogates before looking up glyph index.
17927
17928 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
17929
17930 * image.c (svg_load_image): Check for failure in return value of
17931 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17932
17933 2008-07-25 Jason Rumney <jasonr@gnu.org>
17934
17935 * w32font.c (Fx_select_font): Reverse sense of second arg.
17936
17937 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17938
17939 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17940 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17941
17942 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17943 (PURESIZE): Use it.
17944
17945 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17946
17947 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17948 * m/alpha.h (TEXT_END):
17949 * m/ibmrs6000.h (TEXT_END):
17950 * m/macppc.h (TEXT_END):
17951 * s/darwin.h (TEXT_END):
17952 * s/msdos.h (TEXT_END): Remove, unused.
17953 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17954 * s/cygwin.h: Remove comment.
17955
17956 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17957 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17958 * m/intel386.h (DOT_GLOBAL_START):
17959 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17960 (USG): Remove, file not used on USG platforms.
17961
17962 * Makefile.in (HAVE_X11): Remove empty #else.
17963
17964 2008-07-24 Andreas Schwab <schwab@suse.de>
17965
17966 * fileio.c (Finsert_file_contents): Properly adjust undo list
17967 after format conversion.
17968
17969 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17970
17971 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17972 (menu_nav_ended): Remove.
17973 (create_menus): Remove signal connect for menu_nav_ended.
17974 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17975 create_menus.
17976 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17977
17978 2008-07-23 Jason Rumney <jasonr@gnu.org>
17979
17980 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17981 with opened font.
17982 (w32font_open): Set font type to gdi.
17983
17984 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17985
17986 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17987
17988 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17989 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17990 defines it.
17991 * unexec.c (ADDR_CORRECT): Define unconditionally.
17992
17993 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17994
17995 * unexec.c: Remove code depending on !COFF and USG, the file is
17996 not used for such systems.
17997
17998 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17999 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18000 (LD_SWITCH_SYSTEM_1): Remove, update users.
18001
18002 * s/darwin.h (DATA_END):
18003 * m/intel386.h (DATA_END):
18004 * m/ibmrs6000.h (DATA_END):
18005 * m/alpha.h (DATA_END): Remove, unused.
18006
18007 * config.in: Regenerate.
18008 * s/ms-w32.h (subprocesses): Define unconditionally.
18009 * s/template.h (subprocesses): Update comment.
18010 * s/vms.h (subprocesses):
18011 * s/usg5-4.h (subprocesses):
18012 * s/hpux10-20.h (subprocesses):
18013 * s/gnu-linux.h (subprocesses):
18014 * s/cygwin.h (subprocesses):
18015 * s/bsd-common.h (subprocesses):
18016 * s/aix4-2.h (subprocesses):
18017 * s/darwin.h (subprocesses): Do not define, defined by default now.
18018
18019 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18020 Remove all references.
18021 (temacs): Add GNUstep specific ld flags.
18022
18023 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18024 similarly to what X does.
18025
18026 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18027
18028 * nsfns.m (x-list-fonts): Remove.
18029 (syms_of_nsfns): Drop the x-list-fonts declaration.
18030 * nsterm.m: Get rid of remaining "//" comments.
18031
18032 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18033
18034 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18035
18036 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18037 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18038 (Fns_own_selection_internal, Fx_disown_selection_internal)
18039 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18040
18041 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18042 ... */' style of docstrings. Doc fixes.
18043
18044 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18045
18046 * terminfo.c (UP, BC, PC): Undo previous change.
18047
18048 * nsfns.m: Rename ns prefixed functions/variables to the
18049 corresponding x versions. Update references.
18050
18051 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18052
18053 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18054
18055 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18056
18057 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18058 Remove forwarding functions.
18059 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18060 non-static.
18061 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18062 non-static.
18063 (ns_frame_parm_handlers): Use the new names.
18064 (syms_of_nsfns): Move to the end of file.
18065
18066 * nsterm.m (syms_of_nsterm): Move to the end of file.
18067
18068 * dispnew.c (init_display): Remove code for X10.
18069
18070 2008-07-22 Jason Rumney <jasonr@gnu.org>
18071
18072 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18073 bare drive.
18074
18075 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18076
18077 * nsterm.m (syms_of_nsterm): Remove debugging println.
18078
18079 2008-07-22 David Reitter <david.reitter@gmail.com>
18080
18081 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18082 Carbon implementation of the same functionality: execute arbitrary
18083 AppleScript code.
18084
18085 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18086
18087 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18088 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18089 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18090 (Fx_display_mm_height, Fx_display_mm_width)
18091 (Fx_display_backing_store, Fx_display_visual_class)
18092 (Fx_display_save_under, Fx_open_connection)
18093 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18094 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18095 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18096 (Fx_display_pixel_width, Fx_display_pixel_height)
18097 (Fx_display_usable_bounds, Fx_display_planes)
18098 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18099 ... */' style of docstrings.
18100
18101 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18102
18103 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18104 on this platform.
18105 (mips):
18106 * m/iris4d.h (mips): Do not define.
18107 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18108
18109 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18110
18111 * image.c:
18112 * nsfns.m:
18113 * nsselect.m:
18114 * nsterm.h:
18115 * nsterm.m: Rename ns prefixed functions/variables to the
18116 corresponding x versions. Update references.
18117
18118 * m/ibms390x.h (NO_REMAP): Do not undefine.
18119
18120 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18121
18122 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18123
18124 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18125 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18126 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18127 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18128 (Fns_display_mm_height, Fns_display_mm_width)
18129 (Fns_display_backing_store, Fns_display_visual_class)
18130 (Fns_display_save_under, Fns_open_connection)
18131 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18132 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18133 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18134 (Fns_display_pixel_width, Fns_display_pixel_height)
18135 (Fns_display_usable_bounds, Fx_display_planes)
18136 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18137
18138 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18139
18140 * print.c (print_object): Check print_depth before searching for
18141 circularities.
18142
18143 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18144
18145 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18146 only sprintf.
18147
18148 2008-07-21 Kenichi Handa <handa@m17n.org>
18149
18150 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18151
18152 2008-07-20 Andreas Schwab <schwab@suse.de>
18153
18154 * syntax.c (find_start_pos, find_start_value)
18155 (find_start_value_byte, find_start_begv, find_defun_start)
18156 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18157
18158 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18159
18160 * s/sol2-3.h: Insert contents of s/sol2.h.
18161 (LD_SWITCH_SYSTEM): Remove redundant definition.
18162 * s/sol2.h: Remove, unused.
18163
18164 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18165
18166 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18167
18168 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18169
18170 * Makefile.in (ns_appdir): Fix typo in find command.
18171
18172 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18173
18174 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18175
18176 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18177 added not supported anymore.
18178
18179 * s/usg5-4-2.h (LIBS_SYSTEM):
18180 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18181
18182 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18183 * s/lynxos.h (GETPGRP_NO_ARG):
18184 * s/hpux10-20.h (NO_SIOCTL_H):
18185 * s/gnu.h (GETPGRP_NO_ARG):
18186 * s/gnu-linux.h (NO_SIOCTL_H):
18187 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18188 * s/cygwin.h (GETPGRP_NO_ARG):
18189 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18190 (C_DEBUG_SWITCH): Remove duplicate definition.
18191
18192 * m/ibms390.h: Remove boilerplate comments.
18193
18194 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18195
18196 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18197 (wait_reading_process_output): Remove code for SunOS, platform not
18198 supported anymore. Use SOLARIS2 instead of sun.
18199
18200 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18201
18202 * font.c (font_open_by_name): Under NS, default lface height to zero.
18203 (font_open_for_lface): Under NS, set size based on frame fontsize.
18204 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18205 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18206
18207 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18208
18209 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18210 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18211 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18212 YES/NO.
18213 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18214 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18215 * Makefile.in (clean): Clear out build destination dir.
18216
18217 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18218
18219 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18220 xterm, xselect.
18221 * lisp.h: Remove declaration of hash_remove.
18222 * nsgui.h: Remove redefinitions of hash_remove.
18223 * fns.c (hash_remove): Rename to hash_remove_from_table.
18224
18225 2008-07-19 Seiji Zenitani <zenitani@mac.com>
18226
18227 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18228 strdup() the family UTF8String before modifying it.
18229
18230 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18231
18232 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18233 NS_FACE_BACKGROUND with 0 instead of nil.
18234 * nsfont.m (nsfont_draw): Same.
18235
18236 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
18237
18238 * nsfns.m (ns_set_background_color): Fix crash.
18239
18240 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
18241
18242 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18243
18244 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18245
18246 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18247
18248 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18249
18250 * gtkutil.c: Include <config.h> instead of "config.h".
18251
18252 * lisp.h (Foverlay_buffer): Add EXFUN.
18253
18254 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18255 child process to complete child_setup. Undo 2005-09-21 change.
18256
18257 * s/darwin.h: Mention setsid after vfork.
18258
18259 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18260
18261 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18262 Depend on macgui.h.
18263
18264 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18265 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18266
18267 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18268 and f19.
18269 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18270
18271 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18272 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18273 Remove enumerators.
18274
18275 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18276 Check if FACE_FROM_ID returns NULL.
18277
18278 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18279
18280 * w32inevt.c (change_frame_size): Remove extern declaration.
18281 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18282 change_frame_size.
18283
18284 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18285
18286 * getloadavg.c: Revert last change (2008-07-15).
18287
18288 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18289
18290 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18291 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18292 from configure.
18293
18294 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18295
18296 * s/sol2.h:
18297 * s/sol2-4.h: Reorganize conditionals.
18298
18299 * ecrt0.c: Remove code depending on m68000, not used anymore.
18300
18301 * fns.c (hash_remove): Make static.
18302 * lisp.h (hash_remove): Don't prototype.
18303
18304 * m/ibmrs6000.h:
18305 * m/ibms390x.h:
18306 * m/macppc.h: Remove boilerplate comments.
18307
18308 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18309 Solaris, which does not need them.
18310
18311 * m/vax.h: Remove comments about unsupported systems.
18312
18313 * s/darwin.h: Reorganize ifdefs.
18314
18315 2008-07-17 Andreas Schwab <schwab@suse.de>
18316
18317 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18318
18319 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18320
18321 Use SDATA. Follow coding convention of placing operators at
18322 beginning of next line rather than end of previous line, and placing
18323 spaces around infix operators.
18324
18325 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18326 in case it was defined already.
18327 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18328 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18329 ns_default.
18330 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18331 Lisp_Objects.
18332 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18333 (ns_defined_color, ns_color_to_lisp): Declare.
18334 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18335 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18336 it's accepted even with USE_LISP_UNION_TYPE.
18337 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18338 (update_frame_tool_bar): Remove apparently obsolete tests for
18339 non-integerness of f->tool_bar_lines.
18340 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18341 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18342 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18343 (nsfont_open): Don't confuse NULL for Qnil.
18344 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18345 * menu.h (find_and_call_menu_selection):
18346 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18347 (find_and_return_menu_selection): Always return something.
18348 * frame.h: Include dispextern.h for Display_Info.
18349 (display_x_get_resource): Declare.
18350
18351 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18352
18353 * syntax.c: Remove stdio.h include accidentally introduced in
18354 Emacs.app commit.
18355 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18356 NS_IMPL_COCOA.
18357 * keyboard.c (handle_async_input, input_available_signal): Remove
18358 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18359
18360 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18361
18362 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18363 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18364 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18365 Use SDATA.
18366
18367 * keymap.c: Remove all NS-specific code.
18368 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18369 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18370 where_is_preferred_modifier, return a different value depending on how
18371 preferred is the binding.
18372 (where_is_internal): Adjust accordingly.
18373 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18374 Adjust to new preferred_sequence_p.
18375 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18376 * keyboard.c (parse_solitary_modifier): Not static any more.
18377 * keyboard.h (parse_solitary_modifier): Declare.
18378
18379 2008-07-16 Andreas Schwab <schwab@suse.de>
18380
18381 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18382 of easymenu.
18383
18384 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
18385
18386 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18387 that we don't move off the line.
18388
18389 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18390
18391 * keyboard.c (Qsuper): Remove.
18392 (parse_menu_item): Don't call where_is_internal specially for NS.
18393
18394 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18395
18396 * s/gnu-linux.h: Remove boilerplate comments.
18397
18398 * m/alpha.h (__ELF__): Consolidate conditions.
18399
18400 * m/m68k.h (linux): Use GNU_LINUX instead.
18401 Remove boilerplate comments.
18402
18403 * m/intel386.h: Undo refactoring from previous change.
18404 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18405 too, remove dead code.
18406 (linux): Use GNU_LINUX instead.
18407
18408 2008-07-16 Jason Rumney <jasonr@gnu.org>
18409
18410 * w32gui.h: Repeat 26 June changes lost by last change.
18411
18412 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18413
18414 * systty.h: Remove code for Aix on 386, unsupported platform.
18415
18416 * s/ms-w32.h: Remove boilerplate comments.
18417 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18418
18419 * s/gnu-linux.h (TERM): Remove support.
18420 (HAVE_SYSVIPC): Remove, unused.
18421 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18422 for this system.
18423
18424 * process.c: Remove support for IRIS, unused.
18425 Remove support for TERM, not relevant anymore.
18426
18427 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18428 used with the definition.
18429
18430 * s/aix4-2.h (static): Do not undef.
18431
18432 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18433 only used on Aix.
18434 (HAVE_SYSVIPC): Remove, unused.
18435
18436 * m/hp800.h (CANNOT_DUMP): Do not undef.
18437
18438 * m/alpha.h: Fix comment.
18439
18440 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18441 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18442 used by this configuration.
18443 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18444 * unexec.c: Remove code depending on HPUX and
18445 USG_SHARED_LIBRARIES, not used with this file. Remove code
18446 depending on IRIS, unused. Remove if 0-ed code.
18447
18448 * s/template.h: Remove comments about static.
18449
18450 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18451 Remove if 0-ed code.
18452 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18453 were the same as the default.
18454 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18455 Remove boilerplate comments.
18456 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18457 (HAVE_SYSVIPC): Remove, unused.
18458 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18459
18460 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18461 Remove boilerplate comments.
18462 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18463 Remove boilerplate comments.
18464 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18465 Remove boilerplate comments.
18466 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18467
18468 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18469 USG systems which do not use DATA_SEG_BITS.
18470 Refactor code. Remove boilerplate comments.
18471
18472 * m/ibms390.h:
18473 * m/m68k.h:
18474 * s/bsd-common.h:
18475 * s/cygwin.h:
18476 * s/darwin.h:
18477 * s/freebsd.h:
18478 * s/gnu.h:
18479 * s/msdos.h: Remove boilerplate comments.
18480
18481 * m/iris4d.h: Remove boilerplate comments and code for systems that
18482 do not use this file.
18483 (IRIS_4D): Remove, unused.
18484
18485 * m/mips.h: Remove boilerplate comments and code for systems that
18486 do not use this file.
18487 (SIGN_EXTEND_CHAR):
18488 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18489 * unexmips.c: Remove file, unused.
18490
18491 * editfns.c (Fuser_full_name): Replace the only use of
18492 USER_FULL_NAME with its value.
18493 * config.in: Regenerate.
18494
18495 2008-07-16 David Reitter <david.reitter@gmail.com>
18496
18497 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18498 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18499
18500 2008-07-16 Glenn Morris <rgm@gnu.org>
18501
18502 * emacs.c (system-type): Doc fix.
18503
18504 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18505
18506 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18507 If the cache doesn't work, let's fix it, rather than work around it.
18508
18509 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18510
18511 * Makefile.in: Correct additions for nsfont.o in last commit.
18512 * nsfont.m: New file (forgot last commit).
18513
18514 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18515
18516 * callproc.c (set_initial_environment):
18517 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
18518 batch-compiling for bootstrap).
18519
18520 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18521 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18522
18523 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18524 CANNOT_DUMP case -- fix crash due to different init order.
18525
18526 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18527
18528 Changes and additions for NeXTstep windowing system (Cocoa and
18529 GNUstep) support.
18530
18531 * Makefile.in:
18532 * config.in: Support defines and build commands for NS port.
18533 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18534 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18535 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18536 windowing.
18537 (struct face): Add synth_ital field.
18538 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18539 (init_display): Initialize Vinitial_window_system to "ns" when so
18540 compiled.
18541 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18542 (display_arg): Use under NS.
18543 (main): Under NS, allocate autorelease pool and handle command line
18544 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18545 (standard_args): Add NS-specific args.
18546 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18547 * font.c (DEFAULT_ENCODING): New variable.
18548 (font_find_for_lface): Use it.
18549 (syms_of_font): Load syms_of_nsfont under NS.
18550 * font.h: Declare nsfont_driver when compiled under NS.
18551 * fontset.c: When compiling under NS, include nsterm.h.
18552 (fontset_from_font): Autoconstruct fontset under NS.
18553 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18554 symbol, document and use it.
18555 (do_switch_frame): When for_deletion under Cocoa, add
18556 Fraise_frame(Qnil).
18557 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18558 (x_get_arg): Allow "yes" and "no" as boolean values.
18559 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18560 Qright under Cocoa.
18561 (focus-follows-mouse): Default to 0 under NS.
18562 * frame.h (enum output_method): Add output_ns.
18563 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18564 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18565 (FRAME_WINDOW_P): NS-specific definition.
18566 * fringe.c (max_used_fringe_bitmap): Make public.
18567 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18568 (getloadavg): Use NeXT code under descendant OS's.
18569 * image.c (includes and header section, x_create_bitmap_from_data)
18570 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18571 (image_background_transparent, x_clear_image_1)
18572 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18573 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18574 (x_to_xcolors, x_from_xcolors, x_disable_image)
18575 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18576 other GUIs, including XPM support using code originally written for
18577 Carbon GUI.
18578 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18579 using NS API.
18580 (image_ascent): Use font metrics macros instead of direct struct field
18581 access.
18582 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18583 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18584 Also, handle NS as GTK for menu bar purposes.
18585 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18586 toolkit where they differ.
18587 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18588 use cachelist, still needed under NS.
18589 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18590 (struct widget_value): Define it here for menu.c.
18591 * keymap.c (includes): Include modifier internals.
18592 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18593 NS.
18594 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18595 support for preferring sequences using certain modifiers, specified by
18596 the FIRSTONLY argument.
18597 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18598 under NS GNUstep implementation.
18599 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18600 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18601 * menu.c: Include nsterm.h under NS.
18602 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18603 (free_menubar_widget_tree_value, update_submenu_strings)
18604 (find_and_call_menu_selection): Treat NS as X and NT.
18605 (find_and_return_menu_selection): New function, used for popup menus.
18606 * nsgui.h:
18607 * nsterm.h:
18608 * nsfns.m:
18609 * nsimage.m:
18610 * nsmenu.m:
18611 * nsselect.m:
18612 * nsterm.m: New files.
18613 * process.c (wait_reading_process_output): Under NS, call ns_select()
18614 instead of plain select().
18615 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18616 beginning of buffer.
18617 * sysselect.h (init_process): Rename when compiling under Cocoa to
18618 avoid name conflict.
18619 * termhooks.h (display_info): Add ns_display_info to union.
18620 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18621 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18622 COCOA environment.
18623 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18624 unexec() signature. (Note, this will dump, but the resulting file
18625 crashes; unexosx is used instead; keeping around for reference and
18626 possible aid in getting dump working under GNUstep.)
18627 * w32gui.h (button_type, widget_value): Remove definitions (now in
18628 keyboard.h).
18629 * window.c: Include nsterm.h when compiling under NS.
18630 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18631 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18632 other GUI windowing systems.
18633 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18634 GTK.
18635 (x_consider_frame_title): Under NS, set icon type and frame
18636 modified-state indicator; use ns_set_name_as_filename() when using
18637 formatted title.
18638 (update_window_cursor): Make public when compiling under NS.
18639 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18640 (hourglass_atimer, Vhourglass_delay
18641 * xfaces.c (header section, init_frame_faces, clear_font_table)
18642 (defined_color, unload_color, x_face_list_fonts)
18643 (prepare_face_for_display): Add NS support parallel to other GUIs.
18644 Emulate GCs like other non-X GUIs.
18645 (split_font_name): Don't lowercase font name under NS.
18646 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18647 under NS.
18648 * s/darwin.h: Add support for compilation under NS.
18649
18650 2008-07-15 Jason Rumney <jasonr@gnu.org>
18651
18652 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18653 (w32_show_hourglass): Rename from show_hourglass.
18654 (w32_hide_hourglass): Rename from hide_hourglass.
18655 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18656 (Vhourglass_delay): Declare extern.
18657 (hourglass_started): Remove.
18658
18659 * xdisp.c (Vhourglass_delay): Remove static.
18660 (hourglass_started, start_hourglass, cancel_hourglass):
18661 Don't include these versions on WINDOWSNT.
18662
18663 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18664
18665 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18666 variables (formerly in xfns.c).
18667 (show_hourglass, hide_hourglass): New prototypes (same).
18668 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18669 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18670 in xfns.c).
18671 (syms_of_xdisp): Declare/initialize display-hourglass,
18672 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18673 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18674 formerly in xfns.c.
18675 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18676 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18677 (start_hourglass, cancel_hourglass): Remove.
18678 (show_hourglass, hide_hourglass): Remove prototypes and static
18679 modifiers.
18680 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18681 hourglass_atimer, hourglass_shown_p declaration/initialization.
18682 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18683 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18684 (start_hourglass, cancel_hourglass): Remove.
18685 (show_hourglass, hide_hourglass): Remove prototypes and static
18686 modifiers.
18687 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18688 hourglass_atimer, hourglass_shown_p declaration/initialization.
18689 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18690 (DEFAULT_HOURGLASS_DELAY): Remove.
18691 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18692 hourglass_shown_p declaration/initialization.
18693
18694 2008-07-14 Jason Rumney <jasonr@gnu.org>
18695
18696 * w32fns.c (w32_get_arg): Remove wrapper function.
18697 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18698 directly.
18699 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18700
18701 2008-07-14 Kenichi Handa <handa@m17n.org>
18702
18703 * xfont.c (xfont_open): Add workaround for X's bug.
18704
18705 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18706
18707 * fontset.c: Include <stdio.h> unconditionally.
18708
18709 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
18710
18711 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18712 for filtering.
18713
18714 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18715
18716 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18717
18718 * m/macppc.h:
18719 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18720
18721 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
18722 (SPECIAL_EMACS_INT):
18723 * m/ia64.h (SPECIAL_EMACS_INT):
18724 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18725 * s/gnu.h (NLIST_STRUCT):
18726 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18727 * s/gnu-linux.h (LINUX):
18728 * s/msdos.h (HAVE_FACES):
18729 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18730
18731 * systty.h:
18732 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18733 anymore.
18734
18735 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18736
18737 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18738 always defined as int.
18739
18740 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18741 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18742 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18743 * s/freebsd.h (HAVE_WAIT_HEADER):
18744 * s/bsd-common.h (HAVE_UNION_WAIT):
18745 * s/aix4-2.h (HAVE_WAIT_HEADER):
18746 * m/mips.h (HAVE_UNION_WAIT):
18747 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18748 (COFF, static): Do not define, they are undefined later in the file.
18749
18750 * process.c (update_status): Don't use a union.
18751 (status_convert):
18752 (sigchld_handler): Use int instead of WAITTYPE.
18753
18754 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
18755
18756 * indent.c (Fvertical_motion): Restore hscroll before moving to
18757 goal column.
18758
18759 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18760
18761 * lisp.h: Remove left over code.
18762
18763 2008-07-11 Andreas Schwab <schwab@suse.de>
18764
18765 * lisp.h: Fix logic in last change.
18766
18767 * menu.h: New file.
18768 * menu.c: Include it.
18769 * xmenu.c: Likewise.
18770 * Makefile.in: Update dependencies.
18771
18772 2008-07-11 Kenichi Handa <handa@m17n.org>
18773
18774 * fontset.c (fontset_from_font): Cancel the previous change.
18775
18776 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18777
18778 * lisp.h:
18779 * w32heap.c:
18780 * emacs.c:
18781 * alloc.c: Replace all references of NO_UNION_TYPE with
18782 USE_LISP_UNION_TYPE.
18783
18784 * m/xtensa.h (NO_UNION_TYPE):
18785 * m/vax.h (NO_UNION_TYPE):
18786 * m/template.h (NO_UNION_TYPE):
18787 * m/sparc.h (NO_UNION_TYPE):
18788 * m/mips.h (NO_UNION_TYPE):
18789 * m/macppc.h (NO_UNION_TYPE):
18790 * m/m68k.h (NO_UNION_TYPE):
18791 * m/iris4d.h (NO_UNION_TYPE):
18792 * m/intel386.h (NO_UNION_TYPE):
18793 * m/ibms390x.h (NO_UNION_TYPE):
18794 * m/ibms390.h (NO_UNION_TYPE):
18795 * m/ibmrs6000.h (NO_UNION_TYPE):
18796 * m/ia64.h (NO_UNION_TYPE):
18797 * m/hp800.h (NO_UNION_TYPE):
18798 * m/arm.h (NO_UNION_TYPE):
18799 * m/amdx86-64.h (NO_UNION_TYPE):
18800 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18801 defining it the same.
18802
18803 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
18804
18805 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18806
18807 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18808
18809 * fileio.c:
18810 * sysdep.c:
18811 * systty.h:
18812 * m/ibmrs6000.h:
18813 * m/iris4d.h:
18814 * s/aix4-2.h:
18815 * s/freebsd.h:
18816 * s/gnu-linux.h:
18817 * s/hpux10-20.h:
18818 * s/hpux11.h:
18819 * s/netbsd.h:
18820 * s/sol2-3.h:
18821 * s/sol2-4.h:
18822 * s/sol2.h:
18823 * s/usg5-4.h:
18824 * s/vms.h: Remove references to unused variables.
18825
18826 2008-07-10 Andreas Schwab <schwab@suse.de>
18827
18828 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18829 pattern before matching the generic family.
18830
18831 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18832
18833 * unexec.c:
18834 * s/vms.h:
18835 * s/usg5-4-2.h:
18836 * s/sol2-5.h:
18837 * s/freebsd.h:
18838 * s/darwin.h: Remove dead code.
18839
18840 * m/template.h:
18841 * m/sparc.h:
18842 * m/mips.h:
18843 * m/m68k.h:
18844 * m/iris4d.h:
18845 * m/intel386.h:
18846 * m/ibms390x.h:
18847 * m/ibms390.h:
18848 * m/ia64.h:
18849 * m/hp800.h:
18850 * m/arm.h:
18851 * m/amdx86-64.h: Remove dead code and references to unused
18852 and compiler defined symbols.
18853
18854 * unexmips.c:
18855 * unexelf.c: Remove references to desupported systems.
18856
18857 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18858
18859 * m/powermac.h: Remove boilerplate comments.
18860 (NO_REMAP): Remove unused definition.
18861
18862 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18863 define them.
18864
18865 2008-07-10 Kenichi Handa <handa@m17n.org>
18866
18867 * xfont.c (xfont_open): Log the reason of failure.
18868
18869 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18870
18871 * fontset.c (fontset_get_font_group):
18872 * font.c (font_check_otf): Specify argument types.
18873
18874 2008-07-09 Kenichi Handa <handa@m17n.org>
18875
18876 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18877 non-ASCII char is found.
18878
18879 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18880 (reorder_font_vector): Change the arg preferred_family to font.
18881 Prefer the spec matching with font.
18882 (fontset_get_font_group): New function.
18883 (fontset_find_font): Change the format of an element of a realized
18884 fontset. Use fontset_get_font_group.
18885 (fontset_font): Try the current fontset, the default fontset, the
18886 fallbacks of the current fontset, and the fallbacks of the default
18887 fontset in this order.
18888 (face_for_char): Delete the shortcut to use the current font.
18889 (fontset_from_font): Don't set fonts for Latin in the fontset.
18890
18891 * font.h (font_make_object, font_match_p): Adjust prototypes.
18892
18893 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18894
18895 * font.c (font_make_object): New arg entity and pixelsize.
18896 (font_check_otf_features, font_check_otf): New functions.
18897 (font_match_p): Check :lang, :script, and :otf properties.
18898
18899 * xfont.c (xfont_open): Adjust it for the change of
18900 font_make_object.
18901 (xfont_text_extents): Fix initial setting of metrics.
18902
18903 * ftfont.c (struct ftfont_info): New member index, delete member
18904 fc_charset_idx. Make the member order compatible with struct
18905 xftfont_info.
18906 (fc_charset_table): Change charset names to registry names.
18907 (ftfont_pattern_entity): Delete the args registry and
18908 fc_charset_idx. Change the value of :font-entity property
18909 to (FONTNAME . INDEX). Always set :registry property to
18910 `iso10646-1'.
18911 (struct ftfont_cache_data): New struct.
18912 (ftfont_lookup_cache): New arg for_face.
18913 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18914 (ftfont_driver): Set the member otf_capability.
18915 (ftfont_get_charset): Adjust it for the change of
18916 fc_charset_table.
18917 (OTF_TAG_SYM): New macro.
18918 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18919 for the change of fc_charset_table.
18920 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18921 ftfont_pattern_entity. Add FC_INDEX to objset.
18922 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18923 and ftfont_pattern_entity.
18924 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18925 font_make_object, struct ftfont_info.
18926 (ftfont_has_char): Use ftfont_get_fc_charset.
18927 (ftfont_otf_features, ftfont_otf_capability): New functions.
18928 (ftfont_shape): Use ftfont_get_otf.
18929 (ftfont_text_extents): Fix initial setting of metrics.
18930
18931 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18932 member order compatible with struct ftfont_info.
18933 (xftfont_open): Add FC_CHARSET to the pattern.
18934 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
18935 properties if appropriate.
18936 (xftfont_close): Unlock the face.
18937 (xftfont_anchor_point, xftfont_shape): Deleted.
18938 (syms_of_xftfont): Don't set members anchor_point and shape of
18939 xftfont_driver.
18940
18941 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18942 font_make_object.
18943
18944 * w32font.c (w32font_open): Adjust it for the change of
18945 font_make_object.
18946 (w32font_open_internal): Don't set properties of font_object here.
18947
18948 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
18949
18950 * macfns.c (x_create_tip_frame):
18951 * w32fns.c (x_create_tip_frame):
18952 * xfns.c (x_create_tip_frame): Pass parameter argument to
18953 face-set-after-frame-default.
18954
18955 * xfaces.c (Finternal_merge_in_global_face): Save merged
18956 attributes for the default face back into the face vector.
18957
18958 2008-07-08 Andreas Schwab <schwab@suse.de>
18959
18960 * fontset.h: Declare fontset_from_font. Don't declare
18961 new_fontset_from_font and fontset_from_font_name.
18962 * xterm.c: Include "fontset.h".
18963 * Makefile.in (xterm.o): Update dependencies.
18964
18965 2008-07-08 Glenn Morris <rgm@gnu.org>
18966
18967 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18968 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18969
18970 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
18971
18972 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18973 (x_set_frame_parameters): Don't bind it.
18974
18975 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
18976
18977 * w32fns.c (map_w32_filename): Declare extern.
18978
18979 2008-07-07 Jason Rumney <jasonr@gnu.org>
18980
18981 * w32term.c (WS_EX_LAYERED): Define if not already.
18982
18983 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
18984
18985 * xfaces.c (set_font_frame_param): Don't try to set the font
18986 parameter if it is still unspecified in the lface.
18987
18988 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
18989
18990 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18991 face if it didn't already exist.
18992
18993 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18994
18995 2008-07-05 Andreas Schwab <schwab@suse.de>
18996
18997 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18998
18999 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19000
19001 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19002 word-wrapping.
19003 (IT_DISPLAYING_WHITESPACE): New macro.
19004 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19005 when word-wrapping. Simplify word-wrapping logic. Use correct
19006 pixel positions when saving copies of the iterator.
19007 (display_line): Use proper wrap point if the last character on a
19008 line was preceded by whitespace.
19009
19010 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19011
19012 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19013
19014 2008-07-04 Kenichi Handa <handa@m17n.org>
19015
19016 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19017
19018 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19019
19020 2008-07-02 Jason Rumney <jasonr@gnu.org>
19021
19022 * xfns.c (syms_of_xfns): Only define x-select-font when both
19023 HAVE_FREETYPE and USE_GTK.
19024
19025 * xdisp.c (next_element_from_display_vector): Move assignment out
19026 of if statement.
19027
19028 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19029
19030 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19031
19032 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19033 (syms_of_fileio): Initialize and export them.
19034 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19035
19036 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19037 (Fsystem_move_file_to_trash): New function.
19038 (syms_of_w32fns): Export it to lisp.
19039
19040 2008-07-01 Jason Rumney <jasonr@gnu.org>
19041
19042 * w32font.c (w32font_text_extents): Don't count overhang as part
19043 of width.
19044
19045 2008-06-30 Miles Bader <miles@gnu.org>
19046
19047 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19048 Add `avoid_cursor_p' field.
19049
19050 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19051 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19052 (append_glyph, append_composite_glyph, produce_image_glyph)
19053 (append_stretch_glyph): Initialize avoid_cursor_p.
19054 (get_it_property): Rename from `get_line_height_property'.
19055 (x_produce_glyphs): Use get_it_property.
19056 (handle_line_prefix, push_display_prop): New functions.
19057 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19058 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19059 New variables.
19060 (syms_of_xdisp): Initialize them.
19061
19062 2008-06-30 Kenichi Handa <handa@m17n.org>
19063
19064 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19065 XftDefaultSubstitute (they are called in XftFontMatch).
19066 (xftfont_open): Fix args to ftfont_font_format.
19067
19068 * ftfont.c (fc_charset_table): New member lang.
19069 (ftfont_resolve_generic_family): New arg pattern.
19070 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19071 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19072 (ftfont_open): Fix args to ftfont_font_format.
19073 (ftfont_font_format): New arg filename.
19074
19075 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19076
19077 * xfaces.c (Finternal_merge_in_global_face): If default face was
19078 modified, realize it again. Update the font face attribute.
19079
19080 2008-06-29 Jason Rumney <jasonr@gnu.org>
19081
19082 * w32term.c (x_set_frame_alpha): Fix logic.
19083
19084 2008-06-29 Kenichi Handa <handa@m17n.org>
19085
19086 * fontset.c (Finternal_char_font): Return font-object instead of
19087 font-name.
19088
19089 * composite.c (get_composition_id): Fix the width calculation for TAB.
19090
19091 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19092
19093 * indent.c (Fvertical_motion): Properly handle float column arg.
19094
19095 2008-06-28 Jason Rumney <jasonr@gnu.org>
19096
19097 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19098 (pfnSetLayeredWindowAttributes): New function pointer.
19099 (w32_initialize): Initialize it when supported.
19100 (x_set_frame_alpha): New function.
19101
19102 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19103 (w32_frame_parm_handlers): Set alpha handler.
19104
19105 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19106
19107 2008-06-27 Jason Rumney <jasonr@gnu.org>
19108
19109 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19110 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19111 (w32_to_x_charset, x_to_w32_charset)
19112 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19113 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19114 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19115 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19116 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19117 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19118 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19119 (Qw32_charset_unicode): Remove.
19120 (syms_of_w32fns): Update for above changes.
19121
19122 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19123 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19124 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19125 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19126 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19127 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19128 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19129 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19130 (syms_of_w32font): Update for above changes.
19131
19132 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19133
19134 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19135 removed #if.
19136 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19137
19138 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19139 Eli Zaretskii <eliz@gnu.org>
19140
19141 * makefile.w32-in (LOCAL_FLAGS):
19142 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19143
19144 * sysdep.c (_spawnlp, _getpid):
19145 Declare with explicit _cdecl instead of _CRTAPI1.
19146
19147 * editfns.c (Fget_internal_run_time):
19148 Check for WINDOWSNT with #ifdef, not #if.
19149
19150 2008-06-26 Jason Rumney <jasonr@gnu.org>
19151
19152 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19153
19154 * w32term.c (x_draw_glyph_string_foreground)
19155 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19156 Use FONT_HANDLE macro.
19157 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19158
19159 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19160 (uniscribe_encode_char): Use FONT_HANDLE macro.
19161
19162 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19163 (w32font_text_extents): Use precast w32_font.
19164 (w32font_close): Free cached metrics.
19165 (w32font_open_internal): Allocate space for name on stack.
19166
19167 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19168
19169 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19170
19171 2008-06-26 Jason Rumney <jasonr@gnu.org>
19172
19173 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19174 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19175
19176 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19177
19178 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19179
19180 2008-06-26 Jason Rumney <jasonr@gnu.org>
19181
19182 * w32bdf.c, w32bdf.h: Remove obsolete files.
19183
19184 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19185
19186 * w32gui.h: Don't include w32bdf.h.
19187 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19188 Remove obsolete font support.
19189
19190 * w32font.h (struct w32font_info): Remove compat_w32_font.
19191 Add hfont member.
19192 (FONT_COMPAT): Remove obsolete macro.
19193
19194 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19195 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19196 (w32font_open_internal): Remove compat code. Set new hfont member.
19197 (Fx_select_font): Use new hfont member.
19198
19199 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19200 (uniscribe_encode_char): Use new hfont member.
19201
19202 * w32term.c (x_draw_glyph_string_foreground)
19203 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19204 (x_draw_glyph_string): Use metrics in w32font_info.
19205
19206 2008-06-26 Kenichi Handa <handa@m17n.org>
19207
19208 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19209
19210 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19211
19212 * unexnext.c:
19213 * m/ews4800.h:
19214 * m/hp9000s300.h:
19215 * m/ibm370aix.h:
19216 * m/mips-siemens.h:
19217 * m/ncr386.h:
19218 * m/next.h:
19219 * m/pmax.h:
19220 * m/powerpcle.h:
19221 * m/tandem-s2.h:
19222 * s/386bsd.h:
19223 * s/bsd386.h:
19224 * s/bsd4-1.h:
19225 * s/bsd4-2.h:
19226 * s/bsdos2-1.h:
19227 * s/bsdos2.h:
19228 * s/bsdos3.h:
19229 * s/bsdos4.h:
19230 * s/nextstep.h:
19231 * s/ultrix4-3.h:
19232 * s/usg5-0.h:
19233 * s/usg5-2-2.h:
19234 * s/usg5-2.h:
19235 * s/usg5-4-3.h:
19236 * s/ux4800.h:
19237 * s/uxpds.h:
19238 * s/uxpv.h: Remove support for obsolete systems.
19239 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19240 Remove, insert contents in s/hpux10-20.h.
19241 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19242 Remove, insert contents in s/aix4-2.h.
19243 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19244 * s/bsd4-3.h: Rename to ...
19245 * s/bsd-common.h: ... this.
19246 * data.c:
19247 * doc.c:
19248 * ecrt0.c:
19249 * emacs.c:
19250 * fileio.c:
19251 * floatfns.c:
19252 * keyboard.c:
19253 * mem-limits.h:
19254 * print.c:
19255 * process.c:
19256 * sysdep.c:
19257 * syssignal.h:
19258 * systty.h:
19259 * syswait.h:
19260 * term.c:
19261 * unexec.c:
19262 * unexelf.c:
19263 * unexhp9k800.c:
19264 * m/hp800.h:
19265 * m/ibmrs6000.h:
19266 * m/mips.h:
19267 * m/vax.h:
19268 * s/darwin.h:
19269 * s/freebsd.h:
19270 * s/gnu.h:
19271 * s/ms-w32.h:
19272 * s/msdos.h:
19273 * s/netbsd.h:
19274 * s/template.h: Remove references to obsolete variables.
19275
19276 * Makefile.in: Add dependencies for all unexec files.
19277 (admindir): Remove unused variable.
19278 (UNEXEC_SRC): Remove references.
19279
19280 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
19281
19282 * xfns.c (x_default_font_parameter): If Xft is available, first
19283 try Monospace-12 for the default font.
19284
19285 2008-06-25 Jason Rumney <jasonr@gnu.org>
19286
19287 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19288
19289 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19290
19291 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19292
19293 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19294
19295 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
19296
19297 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19298 <scroll-conservatively>: Fix typo in docstring.
19299
19300 * xselect.c (Fx_send_client_event): Doc fix.
19301
19302 2008-06-25 Kenichi Handa <handa@m17n.org>
19303
19304 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19305
19306 * font.c (font_parse_fcname): Remove unused variables.
19307 (font_sort_entites): Delete the arg SPEC. Caller changed.
19308 Fix for the case of ! best_only.
19309 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19310
19311 * lisp.h (Fstring_to_unibyte): EXFUN it.
19312
19313 * character.h (str_to_unibyte): Extern it.
19314
19315 * character.c (str_to_unibyte): New function.
19316
19317 * fns.c (Fstring_to_unibyte): New function.
19318 (syms_of_fns): Defsubr it.
19319
19320 2008-06-24 Kenichi Handa <handa@m17n.org>
19321
19322 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19323 DPI too.
19324 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19325
19326 2008-06-24 Andreas Schwab <schwab@suse.de>
19327
19328 * Makefile.in (${lispsource}loaddefs.el): Rename from
19329 ../lisp/loaddefs.el.
19330 (bootstrap-clean): Do what distclean does but don't remove
19331 Makefile.
19332 (distclean): Depend on bootstrap-clean and remove Makefile.
19333
19334 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
19335
19336 * buffer.h (struct buffer): New member word_wrap.
19337
19338 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19339 word-wrap.
19340 (init_buffer_once): Initialize them.
19341
19342 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19343 line_wrap enum possessing three possible values.
19344
19345 * termopts.h: Replace truncate_partial_width_windows with
19346 Vtruncate_partial_width_windows.
19347
19348 * dispnew.c (direct_output_for_insert): Avoid direct output when
19349 inserting a space with word wrap on.
19350
19351 * indent.c (compute_motion): Obey integer values of
19352 truncate-partial-width-windows.
19353
19354 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19355 replacing truncate_partial_width_windows.
19356 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19357 truncate only if the window width is below that integer.
19358 (start_display, resize_mini_window, produce_stretch_glyph)
19359 (display_string, move_it_in_display_line_to): Use line_wrap.
19360 (back_to_previous_visible_line_start, reseat_1):
19361 Reset string_from_display_prop_p.
19362 (display_line): Extend default face to end of line when wrapping.
19363
19364 2008-06-24 Kim F. Storm <storm@cua.dk>
19365
19366 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19367 to wrap continued lines at word boundaries.
19368
19369 2008-06-24 Jason Rumney <jasonr@gnu.org>
19370
19371 * font.c (Ffont_face_attributes): Multiply pixel size before point
19372 conversion to avoid multiplying rounding error.
19373
19374 2008-06-23 Jason Rumney <jasonr@gnu.org>
19375
19376 * w32term.c (x_draw_glyph_string_background)
19377 (x_draw_glyph_string): Remove old bdf font code.
19378
19379 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19380
19381 2008-06-22 Kenichi Handa <handa@m17n.org>
19382
19383 * font.c (font_find_for_lface): Try the adstyle specified in
19384 the property of LFACE_FONT of LFACE (if any).
19385
19386 2008-06-21 Seiji Zenitani <zenitani@mac.com>
19387 Ryo Yoshitake <ryo@shiftmode.net>
19388
19389 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19390
19391 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19392
19393 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19394 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19395 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19396 (witness-emacs): Remove.
19397 (lisp, shortlisp): Move loaddefs.el earlier.
19398 (mostlyclean): Forget about witness-emacs.
19399
19400 2008-06-22 Glenn Morris <rgm@gnu.org>
19401
19402 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19403 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19404
19405 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19406
19407 * Makefile.in (PRECOMP): Remove.
19408 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19409 (witness-emacs): Run `compile-first'.
19410 (.el.elc): Use the new compile-onefile target.
19411
19412 2008-06-21 Kenichi Handa <handa@m17n.org>
19413
19414 * xftfont.c (xftfont_open): Handle QCembolden only when
19415 FC_EMBOLDEN is defined.
19416
19417 2008-06-21 Andreas Schwab <schwab@suse.de>
19418
19419 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19420 (.el.elc): Likewise.
19421
19422 2008-06-21 Miles Bader <miles@gnu.org>
19423
19424 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19425 build dir, not the lisp source dir.
19426
19427 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19428
19429 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19430 (bootstrapclean): Remove.
19431 (.el.elc): New rule.
19432 (PRECOMP): New var.
19433 (../lisp/subdirs.el): Remove.
19434 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19435 (witness-emacs): New target.
19436 (mostlyclean): Remove witness-emacs as well.
19437 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19438 Add witness-emacs dependency.
19439
19440 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
19441
19442 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19443 defined by the font.
19444
19445 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19446
19447 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19448 (bootstrap-clean): New target that keeps TAGS around.
19449 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19450 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19451
19452 2008-06-20 Jason Rumney <jasonr@gnu.org>
19453
19454 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19455 Remove obsolete font code.
19456
19457 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19458 to determine language support.
19459
19460 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19461
19462 * sysdep.c (cfsetspeed): New fun extracted from the code.
19463 (cfmakeraw): Move before first use.
19464
19465 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19466
19467 * sysdep.c (cfmakeraw): Provide fallback implementation.
19468 (serial_configure): Provide fallback implementation of cfsetspeed.
19469
19470 2008-06-20 Kenichi Handa <handa@m17n.org>
19471
19472 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19473 the pattern.
19474
19475 * fontset.c (fontset_from_font): Copy font_spec before changing
19476 the elements.
19477
19478 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19479
19480 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19481
19482 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19483 for explicit `font' parameters.
19484
19485 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19486
19487 2008-06-19 Kenichi Handa <handa@m17n.org>
19488
19489 * frame.c: Include <ctype.h>.
19490 (x_set_font_backend): Allow spacing characters in the X resource
19491 for FontBackend.
19492
19493 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19494
19495 * w32fns.c, xfns.c (Qfont_param): New var.
19496 (syms_of_w32fns): Initialize it.
19497 (x_default_font_parameter): Record explicit `font' into
19498 `font-parameter'.
19499
19500 2008-06-18 Kenichi Handa <handa@m17n.org>
19501
19502 * font.c (font_parse_xlfd): Fix previous change.
19503 (font_parse_fcname): Don't use :fc-unknown-spec.
19504 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19505 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19506 (font_add_log): Prepend the driver name to the resulting fonts.
19507
19508 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19509 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19510 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19511
19512 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19513 (QCembolden): New variables.
19514 (syms_of_xftfont): DEFSYM them.
19515 (xftfont_open): Call XftFontMatch. Don't trust the result of
19516 XftTextExtents8 if the pixel_size is less than 5.
19517
19518 2008-06-18 Andreas Schwab <schwab@suse.de>
19519
19520 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19521 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19522
19523 2008-06-18 Jason Rumney <jasonr@gnu.org>
19524
19525 * w32font.c (w32font_list, w32font_match): Add logging.
19526
19527 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19528
19529 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
19530
19531 * font.c (font_parse_fcname): Store divider characters for
19532 unknown-spec list. For known key symbols, intern using correct
19533 symbol name.
19534
19535 2008-06-17 Kenichi Handa <handa@m17n.org>
19536
19537 * xfaces.c (realize_default_face): If the frame is not on window
19538 system, set the fontset of face to nil.
19539
19540 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19541
19542 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19543
19544 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
19545
19546 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19547 (build_font_name_from_vector): Delete externs.
19548
19549 * xfaces.c (struct font_name): Don't declare.
19550
19551 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19552
19553 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19554
19555 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
19556
19557 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19558
19559 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
19560
19561 * font.c (Ffont_spec): Fix usage in docstring.
19562 (Ffont_face_attributes): Doc fix.
19563
19564 2008-06-16 Andreas Schwab <schwab@suse.de>
19565
19566 * font.c (Ffont_face_attributes): Fix definition.
19567
19568 2008-06-16 Jason Rumney <jasonr@gnu.org>
19569
19570 * font.h (font_style_symbolic_from_value): Remove.
19571
19572 * font.c (font_style_symbolic_from_value): Remove.
19573 (font_style_symbolic): Revert to pre 2008-06-13 version.
19574
19575 * w32font.c (w32_to_fc_weight): New function.
19576 (w32font_full_name, logfont_to_fcname): Use it.
19577
19578 2008-06-16 Kenichi Handa <handa@m17n.org>
19579
19580 * font.c (font_check_object): Delete it.
19581 (font_clear_cache): Check if a font-object is alive.
19582 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19583 font-object to nil.
19584 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19585 (font_at): Don't call font_check_object.
19586 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19587
19588 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19589
19590 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19591
19592 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
19593
19594 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19595
19596 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
19597
19598 * font.c (font_parse_fcname): Only one decimal point.
19599 (font_unparse_fcname): Handle data in family and foundry indices
19600 as symbols, not strings.
19601 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19602
19603 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19604
19605 * font.h (font_unparse_gtkname): Add prototype.
19606
19607 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19608
19609 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19610
19611 2008-06-15 Andreas Schwab <schwab@suse.de>
19612
19613 * font.c (font_update_drivers): Fix crash when no drivers match.
19614
19615 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19616
19617 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19618 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19619
19620 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19621
19622 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19623
19624 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19625
19626 * process.c (Fserial_process_configure, Fprocess_send_eof):
19627 Use EQ to compare Lisp_Objects.
19628
19629 2008-06-13 Jason Rumney <jasonr@gnu.org>
19630
19631 * w32fns.c (Fw32_select_font): Remove old font API function.
19632
19633 * w32font.c (logfont_to_fcname): New function.
19634 (Fx_select_font): New font dialog function compatible with
19635 GTK/fontconfig version.
19636
19637 * font.c (font_style_symbolic_from_value): New function.
19638 (font_style_symbolic): Use it.
19639
19640 * font.h (font_style_symbolic_from_value): Declare new function.
19641
19642 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
19643
19644 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19645 <font-width-table>: Fix typos in docstrings.
19646
19647 2008-06-13 Daniel Engeler <engeler@gmail.com>
19648
19649 These changes add serial port access.
19650 * process.c: Add HAVE_SERIAL.
19651 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19652 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19653 (list_processes_1, select_wrapper, Fstop_process)
19654 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19655 (status_notify): Modify to handle serial processes.
19656 [HAVE_SERIAL] (Fserial_process_configure)
19657 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19658 New functions.
19659 * process.h (struct Lisp_Process): Add `type'.
19660 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19661 New functions.
19662 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19663 serial ports.
19664 (serial_open, serial_configure): New functions.
19665 * w32.h: Add FILE_SERIAL.
19666 (struct _child_process): Add ovl_read, ovl_write.
19667
19668 2008-06-13 Kenichi Handa <handa@m17n.org>
19669
19670 * dispextern.h (enum lface_attribute_index): New member
19671 LFACE_FOUNDRY_INDEX.
19672
19673 * font.c (font_score): Delete arg alternate_families. Check only
19674 weight, slant, width, and size. Ignore the difference of alias
19675 style symbols.
19676 (font_sort_entites): Adjust for the above change. Reflect the
19677 order of font-driver to scores.
19678 (font_list_entities): Don't check alternate_familes here.
19679 (font_clear_prop): Handle foundry.
19680 (font_update_lface): Don't parse "foundry-family" form here.
19681 Handle FONT_FOUNDRY_INDEX.
19682 (font_find_for_lface): Likewise. Handle alternate families here.
19683 If registry is nil, try iso8859-1 and ascii-0.
19684 (font_open_for_lface): Pay attention to size in ENTITY.
19685 (font_open_by_name): Simplify by calling font_load_for_lface.
19686 (free_font_driver_list): Delete it.
19687 (font_update_drivers): Preserve the order of backends.
19688 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19689 of font_score and font_sort_entites.
19690 (font_update_sort_order): Likewise.
19691
19692 * xfaces.c (LFACE_FOUNDRY): New macro.
19693 (check_lface_attrs): Check foundry.
19694 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19695 (merge_face_vectors): Check foundry.
19696 (merge_face_ref): Likewise.
19697 (Finternal_set_lisp_face_attribute): Likewise.
19698 (x_update_menu_appearance): Likewise.
19699 (Finternal_get_lisp_face_attribute): Likewise.
19700 (lface_hash): Likewise.
19701 (lface_same_font_attributes_p): Likewise.
19702 (x_supports_face_attributes_p): Likewise.
19703 (tty_supports_face_attributes_p): Likewise.
19704 (Finternal_set_alternative_font_family_alist): Intern strings.
19705 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19706 (realize_default_face): Set LFACE_FOUNDRY (lface).
19707
19708 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19709 font-driver at first.
19710
19711 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19712
19713 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19714
19715 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19716
19717 2008-06-12 Jim Meyering <meyering@redhat.com>
19718
19719 Make unexec_free handle NULL the same way free does.
19720 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19721
19722 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19723
19724 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19725 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19726 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19727 (WEAK_ALIAS): Simplify.
19728 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19729 when searching a unibyte buffer.
19730
19731 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
19732
19733 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19734
19735 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
19736
19737 * w32font.c: Include ctype.h.
19738
19739 2008-06-11 Jason Rumney <jasonr@gnu.org>
19740
19741 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19742 misreported as space.
19743 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19744 as aliases for registry iso10646-1.
19745
19746 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * buffer.c (clone_per_buffer_values): Skip `name'.
19749
19750 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
19751
19752 * font.c (font_parse_fcname): Fix last change; accept decimal
19753 points in font size.
19754
19755 2008-06-10 Jason Rumney <jasonr@gnu.org>
19756
19757 * w32uniscribe.c (add_opentype_font_name_to_list):
19758 Skip non unicode fonts.
19759
19760 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
19761
19762 * xfns.c (Fx_font_dialog): New function.
19763
19764 * gtkutil.c (xg_dialog_response_cb): Rename from
19765 xg_file_response_callback.
19766 (pop_down_dialog): Rename from pop_down_file_dialog.
19767 (xg_get_file_name): Callers changed.
19768 (xg_get_font_name): New function.
19769
19770 * gtkutil.h (xg_get_font_name): Insert prototype.
19771
19772 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19773
19774 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19775 x_underline_minimum_display_offset.
19776 (syms_of_xdisp): Declare it here rather than in xterm.c.
19777 * dispextern.h (underline_minimum_offset): Declare it.
19778 * w32term.c (x_draw_glyph_string): Use it.
19779 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19780 (syms_of_xterm): Don't declare it any more.
19781 (x_draw_glyph_string): Adjust to the new name.
19782
19783 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
19784
19785 * xterm.c (x_underline_minimum_display_offset): New var.
19786 (x_draw_glyph_string): Use it.
19787 (syms_of_xterm): Declare it.
19788
19789 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
19790
19791 * font.c (font_parse_fcname): Accept GTK-style font names too.
19792
19793 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19794
19795 * dired.c (file_name_completion): Don't return t if the match is exact
19796 but with different capitalization.
19797 * minibuf.c (Ftry_completion): Simplify.
19798
19799 * window.c (Vwindow_point_insertion_type): New var.
19800 (set_window_buffer): Use it.
19801 (syms_of_window): Init and export it to Lisp.
19802
19803 2008-06-10 Kenichi Handa <handa@m17n.org>
19804
19805 * font.h (font_intern_prop): Prototype adjusted.
19806
19807 * font.c (font_intern_prop): New arg force_symbol.
19808 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19809 Adjust for the change of font_intern_prop.
19810
19811 * ftfont.c (ftfont_pattern_entity):
19812 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19813 (w32_registry):
19814 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19815 the change of font_intern_prop.
19816
19817 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
19818
19819 * w32menu.c (digest_single_submenu): Declare extern.
19820
19821 2008-06-09 Jason Rumney <jasonr@gnu.org>
19822
19823 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19824
19825 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19826 (parse_single_submenu): Remove.
19827 (digest_single_submenu): Remove.
19828 (syms_of_w32menu): Don't initialise variables that have moved
19829 to menu.c.
19830 (set_frame_menubar): Sync with version in xmenu.c.
19831 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19832
19833 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19834 Make static again.
19835
19836 2008-06-09 Jason Rumney <jasonr@gnu.org>
19837
19838 Changes to w32 files related to the move of common menu code
19839 to menu.c on 2008-06-08 by Chong Yidong.
19840
19841 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19842 defs to w32gui.h.
19843 (single_keymap_panes, push_menu_item, push_menu_pane):
19844 Make globally visible.
19845
19846 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19847 (local_free, malloc_widget_value, free_widget_value)
19848 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19849 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19850 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19851 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19852 (menu_items, menu_items_allocated, menu_items_used)
19853 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19854 (init_menu_items, finish_menu_items, discard_menu_items)
19855 (grow_menu_items, push_submenu_start, push_submenu_end)
19856 (push_left_right_boundary, push_menu_pane, push_menu_item)
19857 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19858 (free_menubar_widget_tree_value, parse_single_submenu)
19859 (update_submenu_strings): Remove functions.
19860 (xmalloc_widget_value): Remove and declare extern.
19861
19862 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19863 (OBJ1): Build it.
19864
19865 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19866 (local_heap, local_alloc, local_free, malloc_widget_value)
19867 (free_widget_value): Define here.
19868
19869 2008-06-09 Kenichi Handa <handa@m17n.org>
19870
19871 * font.h (Qascii_0): Extern it.
19872
19873 * font.c (Qascii_0): New variable.
19874 (syms_of_font): DEFSYM it.
19875 (font_open_by_name): If the registry "iso8859-1" fails, try also
19876 "ascii-0".
19877
19878 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19879
19880 2008-06-08 Kenichi Handa <handa@m17n.org>
19881
19882 * .gdbinit (xfont): New command.
19883
19884 2008-06-08 Andreas Schwab <schwab@suse.de>
19885
19886 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19887 * Makefile.in (menu.o): Update dependencies.
19888
19889 * Makefile.in (obj): Always add menu.o.
19890 * emacs.c (main): Always call syms_of_menu.
19891 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19892
19893 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
19894
19895 * Makefile.in: Compile menu.c.
19896
19897 * lisp.h: Declare syms_of_menu.
19898
19899 * emacs.c (main): Call syms_of_menu.
19900
19901 * keyboard.h: Relocate platform-independent menu definitions from
19902 xmenu.c.
19903
19904 * menu.c: New file. Relocate platform-independent menu
19905 definitions from xmenu.c. Suggested by Adrian Robert.
19906
19907 * xmenu.c: Remove platform-independent menu definitions.
19908 (menu_items, menu_items_inuse, menu_items_allocated)
19909 (menu_items_used, menu_items_n_panes)
19910 (menu_items_submenu_depth): Move to keyboard.h.
19911 (init_menu_items, finish_menu_items, unuse_menu_items)
19912 (discard_menu_items, restore_menu_items, save_menu_items)
19913 (grow_menu_items, push_submenu_start, push_submenu_end)
19914 (push_left_right_boundary, push_menu_pane, push_menu_item)
19915 (keymap_panes, single_keymap_panes, single_menu_item)
19916 (list_of_panes, list_of_items, find_and_call_menu_selection)
19917 (xmalloc_widget_value, free_menubar_widget_value_tree)
19918 (parse_single_submenu, digest_single_submenu)
19919 (update_submenu_strings): Move to menu.c.
19920
19921 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19922
19923 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19924
19925 2008-06-06 Miles Bader <miles@gnu.org>
19926
19927 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19928 face, not frame default.
19929
19930 2008-06-05 Martin Rudalics <rudalics@gmx.at>
19931
19932 * window.c (pop_up_windows, pop_up_frames)
19933 (display_buffer_reuse_frames, Vpop_up_frame_function)
19934 (Vdisplay_buffer_function, Veven_window_heights)
19935 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19936 (Vspecial_display_function, Vsame_window_buffer_names)
19937 (Vsame_window_regexps, split_height_threshold)
19938 (Vsplit_window_preferred_function): Move those vars to window.el.
19939 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19940 (Fdisplay_buffer): Move those functions to window.el.
19941 (syms_of_window): Remove corresponding declarations.
19942 (display_buffer): New function.
19943 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19944 * dispnew.c (Flast_nonminibuf_frame): New function.
19945 * buffer.c (Fpop_to_buffer): Move to window.el.
19946
19947 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19948
19949 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19950
19951 2008-06-05 Kenichi Handa <handa@m17n.org>
19952
19953 * coding.c (detect_coding): Fix previous change.
19954 (detect_coding_system): Likewise.
19955
19956 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19957
19958 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19959
19960 * keymap.c (Vminibuffer_local_filename_must_match_map):
19961 Rename from Vminibuffer_local_must_match_filename_map.
19962 (syms_of_keymap):
19963 * minibuf.c (Fcompleting_read): Adjust accordingly.
19964 * commands.h: Rename declaration as well.
19965
19966 2008-06-05 Kenichi Handa <handa@m17n.org>
19967
19968 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19969 family name.
19970 (Ffont_put): Likewise.
19971
19972 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19973 current font-spec.
19974
19975 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19976 is unspecified.
19977
19978 * xfaces.c (realize_x_face): If the font-related face attributes
19979 are the same as those of default face, realize a new fontset from
19980 default->fontset.
19981 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19982
19983 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19984
19985 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19986 (move_it_in_display_line): New wrapper.
19987
19988 * window.c (window_scroll_pixel_based_preserve_x)
19989 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19990 (window_scroll_pixel_based, window_scroll_line_based):
19991 Use them to preserve column positions.
19992 (syms_of_window): Initialize them.
19993
19994 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19995 (HPOS . VPOS) pair.
19996
19997 * dispextern.h (move_it_in_display_line): Declare.
19998
19999 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20000
20001 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20002 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20003 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20004
20005 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20006
20007 * window.c (Fset_window_parameter): Doc fix.
20008 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20009
20010 2008-06-04 Joakim Verona <joakim@verona.se>
20011
20012 * window.h (struct window): Add new member window_parameters.
20013
20014 * window.c (Fwindow_parameters, Fwindow_parameter)
20015 (Fset_window_parameter): New defuns.
20016 (syms_of_window): Defsubr the new defuns.
20017 (make_window): Initialize window_parameters to nil.
20018
20019 2008-06-04 John Paul Wallington <jpw@pobox.com>
20020
20021 * eval.c (Fdefmacro): Doc fix.
20022
20023 2008-06-04 Kenichi Handa <handa@m17n.org>
20024
20025 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20026 Be sure to call setup_coding_system when we find a proper coding system.
20027 (detect_coding_system): Fix handling of coding->head_ascii.
20028
20029 2008-06-03 Andreas Schwab <schwab@suse.de>
20030
20031 * font.c (font_prop_validate_spacing): Fix last change.
20032
20033 2008-06-03 Kenichi Handa <handa@m17n.org>
20034
20035 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20036 (font_parse_fcname): Fix handling of unknown key.
20037
20038 * xfont.c (xfont_list): Try an alias.
20039
20040 * charset.c (char_charset): Return NULL if the arg charset_list is
20041 specified and C doesn't belong to any of them.
20042
20043 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20044
20045 * font.c (font_pixel_size): Don't take cdr of an integer.
20046
20047 2008-06-02 Jim Meyering <meyering@redhat.com>
20048
20049 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20050 * alloc.c (xfree): Return right away for a NULL arg.
20051 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20052 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20053 * mac.c (create_apple_event_from_event_ref): Likewise.
20054 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20055 Likewise.
20056 * doprnt.c (doprnt1): Likewise.
20057 * frame.c (frame): Likewise.
20058 * keyboard.c (wipe_kboard): Likewise.
20059 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20060 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20061 * term.c (tty_default_color_capabilities, maybe_fatal)
20062 (delete_tty): Likewise.
20063 * w16select.c (string): Likewise.
20064 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20065 * w32bdf.c (w32_free_bdf_font): Likewise.
20066 * w32fns.c (w32_unload_font): Likewise.
20067 * w32font.c (w32font_close): Likewise.
20068 * window.c (size_window): Likewise.
20069 * xselect.c (receive_incremental_selection): Likewise.
20070 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20071 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20072 * w32.c (stat): Likewise.
20073
20074 Remove useless if-before-free tests.
20075 * editfns.c (Fset_time_zone_rule): Likewise.
20076 * lread.c (nosuffix): Likewise.
20077 * ralloc.c (get_bloc): Likewise.
20078 * regex.c (reg_free): Likewise.
20079 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20080 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20081 * xsmfns.c (smc_save_yourself_CB): Likewise.
20082
20083 2008-06-02 Kenichi Handa <handa@m17n.org>
20084
20085 * font.c (font_find_for_lface): Handle float font size.
20086 (font_open_for_lface): Likewise.
20087
20088 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20089 comparing the properties.
20090
20091 2008-06-01 Jason Rumney <jasonr@gnu.org>
20092
20093 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20094 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20095 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20096 Don't add empty script list.
20097 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20098
20099 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20100
20101 * Makefile.in (dot, dotdot): Remove, update users.
20102 ".." has been used elsewhere in the file for a long time.
20103 (LIBXT_STATIC): Remove conditional based on unused variable.
20104
20105 2008-06-01 Miles Bader <miles@gnu.org>
20106
20107 * xfaces.c (Vface_remapping_alist): New variable.
20108 (syms_of_xfaces): Initialize it.
20109 (enum named_merge_point_kind): New type.
20110 (struct named_merge_point): Add `named_merge_point_kind' field.
20111 (push_named_merge_point): Make cycle detection respect different
20112 named-merge-point kinds.
20113 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20114 Remove face-name alias resolution.
20115 (lface_from_face_name): New definition using
20116 `lface_from_face_name_no_resolve'.
20117 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20118 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20119 (get_lface_attributes): New definition that layers face-remapping on
20120 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20121 (lookup_basic_face): New function.
20122 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20123 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20124 `get_lface_attributes'.
20125 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20126 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20127 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20128
20129 * xdisp.c (init_iterator): Pass base_face_id through
20130 `lookup_basic_face' when we actually use it as a face-id.
20131 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20132 DEFAULT_FACE_ID.
20133
20134 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20135 lookup the initial face-id.
20136
20137 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20138
20139 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20140
20141 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20142 (Fremove_text_properties): Fix typos in docstrings.
20143
20144 2008-05-31 Kenichi Handa <handa@m17n.org>
20145
20146 * font.c (font_list_entities): Fix the car part of data to be
20147 stored in the cache.
20148
20149 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20150
20151 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20152
20153 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20154 Add a `test' argument so another predicate than `equal' can be used.
20155 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20156 (map_char_table): Remove unused vars `c' and `i'.
20157 * lisp.h (Foptimize_char_table): Adjust declaration.
20158 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20159
20160 2008-05-30 Kenichi Handa <handa@m17n.org>
20161
20162 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20163 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20164 defined.
20165
20166 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20167
20168 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20169 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20170 frame-local settings for the same variable.
20171
20172 2008-05-30 Kenichi Handa <handa@m17n.org>
20173
20174 * fontset.c (Ffont_info): Move to font.c.
20175 (syms_of_fontset): Delete defsubr of Sfont_info.
20176
20177 * font.c (font_style_to_value, font_score): Delete casting of the
20178 args to xstcasecmp.
20179 (register_font_driver): Increment num_font_drivers only when
20180 registering the driver globally.
20181 (Ffont_info): Move from fontset.c. Handle a font object too.
20182 (syms_of_font): Defsubr Sfont_info.
20183
20184 2008-05-29 Kenichi Handa <handa@m17n.org>
20185
20186 * coding.h (enum define_coding_utf8_arg_index): New enum.
20187 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20188 coding_attr_utf_bom.
20189 (enum utf_bom_type): Rename from utf_16_bom_type.
20190 (struct utf_16_spec): Adjust for the above change.
20191 (struct coding_system): Add utf_8_bom in `spec' union.
20192
20193 * coding.c (CODING_UTF_8_BOM): New macro.
20194 (enum coding_category): Delete coding_category_utf_8, add
20195 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20196 coding_category_utf_8_sig.
20197 (CATEGORY_MASK_UTF_8): Delete it.
20198 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20199 (CATEGORY_MASK_UTF_8_SIG): New macros.
20200 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20201 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20202 CATEGORY_MASK_UTF_8_SIG.
20203 (CATEGORY_MASK_UTF_8): New macro.
20204 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20205 (detect_coding_utf_8): Check BOM.
20206 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20207 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20208 (encode_coding_utf_16): Likewise.
20209 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20210 (detect_coding, detect_coding_system): Handle utf-8-auto.
20211 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20212 (syms_of_coding): Fix setting up of Vcoding_category_table.
20213
20214 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20215
20216 * process.c (Faccept_process_output): If `millisec' is non-nil,
20217 `seconds' default to 0.
20218 (wait_reading_process_output): Also return non-nil if we read output
20219 from a non-running process.
20220
20221 2008-05-29 Jason Rumney <jasonr@gnu.org>
20222
20223 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20224 `raster' specified.
20225 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20226 in the uniscribe backend, but disallow any font that has no
20227 unicode subrange support.
20228
20229 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
20230
20231 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20232 Fix typos in docstrings.
20233
20234 2008-05-29 Kenichi Handa <handa@m17n.org>
20235
20236 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20237 (Fx_family_fonts): Set frame correctly.
20238
20239 2008-05-28 Jason Rumney <jasonr@gnu.org>
20240
20241 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20242
20243 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20244
20245 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20246 calling build_annotations.
20247
20248 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
20249
20250 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20251 (Fencode_coding_string):
20252 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20253 <latin-extra-code-table>: Fix typos in docstrings.
20254 (syms_of_coding) <coding-system-alist>: Doc fix.
20255 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20256
20257 2008-05-28 Kenichi Handa <handa@m17n.org>
20258
20259 * fontset.c (Ffont_info): Don't call font_close_object.
20260
20261 * font.c (font_parse_family_registry): Use Ffont_put to validate
20262 foundry and family.
20263 (font_delete_unmatched): Don't check spacing.
20264 (font_list_entities): Add spacing to the spec to list fonts.
20265
20266 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20267 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20268
20269 * coding.c (encode_coding_raw_text): Fix previous change.
20270 (encode_coding_object): When the dst_object is a buffer and is
20271 different from src_object, move gap to PT.
20272
20273 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20274
20275 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20276
20277 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20278
20279 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20280 all branches. Compute it differently.
20281
20282 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20283
20284 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
20285
20286 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20287 into "else if () ... else ...".
20288
20289 2008-05-27 Jason Rumney <jasonr@gnu.org>
20290
20291 * w32font.c (w32font_open_internal): Determine if glyph indices
20292 are likely to work here.
20293
20294 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20295
20296 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20297 draw overlap glyphs with appropriate highlighting.
20298
20299 2008-05-27 Kenichi Handa <handa@m17n.org>
20300
20301 * xfont.c (xfont_open): Fix calculation of font->average_width.
20302
20303 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20304
20305 * casefiddle.c (casify_object): Try to guess better whether the
20306 argument is a byte or a char.
20307
20308 2008-05-26 Andreas Schwab <schwab@suse.de>
20309
20310 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20311 Always send multiples of format size.
20312
20313 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20314
20315 2008-05-26 Jason Rumney <jasonr@gnu.org>
20316
20317 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20318 (compute_metrics): Don't set failure if we just cleared the cache.
20319 (w32_weight_table): Remove unused variable.
20320 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20321 backwards compatibility.
20322
20323 2008-05-25 Kenichi Handa <handa@m17n.org>
20324
20325 * w32term.c (x_draw_glyph_string):
20326 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20327
20328 * xfaces.c: Delete unused function prototypes.
20329 (xstrlwr, font_frame): Delete them.
20330 (clear_face_cache): Delete unused variable.
20331
20332 * xftfont.c (xftfont_open): Delete unused variable.
20333 If underline_thickness is not 1, adjust underline_position.
20334
20335 * ftxfont.c (ftxfont_open): Delete unused variable.
20336
20337 * fontset.c (face_for_char): Optimize for the case of no charset
20338 property.
20339
20340 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20341 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20342 (otf_open, font_otf_capability, generate_otf_features)
20343 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20344 Comment out by surrounding "#if 0" and "#endif" for the moment.
20345 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20346 (syms_of_font): Codes for accessing above commented out.
20347
20348 2008-05-24 Eli Zaretskii <eliz@gnu.org>
20349
20350 * w32proc.c: Include dispextern.h.
20351
20352 * w32.c: Include dispextern.h.
20353
20354 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
20355
20356 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20357 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20358 Fix typos in docstrings.
20359
20360 2008-05-23 Jason Rumney <jasonr@gnu.org>
20361
20362 * xsmfns.c: Remove includes that are already included by config.h.
20363
20364 2008-05-23 Kenichi Handa <handa@m17n.org>
20365
20366 * charset.c (Qemacs, charset_emacs): New variables.
20367 (char_charset): Fix for non-Unicode characters.
20368 (syms_of_charset): Define charset_emacs.
20369
20370 * w32term.c (x_draw_glyph_string): Be sure to update
20371 s->underline_thickness and s->underline_position. Be sure to draw
20372 underline within the current line area.
20373
20374 * xterm.c (x_draw_glyph_string): Be sure to update
20375 s->underline_thickness and s->underline_position. Be sure to draw
20376 underline within the current line area.
20377
20378 * fontset.c: Delete unused variables and add casting for char *
20379 throughout the file.
20380 (fontset_font): Try the fallback fonts of the current fontset
20381 before consulting the default fontset.
20382
20383 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20384
20385 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20386
20387 2008-05-22 Jason Rumney <jasonr@gnu.org>
20388
20389 * font.c: Don't include strings.h.
20390
20391 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20392
20393 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20394 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20395 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20396 to call xstrcasecmp.
20397
20398 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20399
20400 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20401
20402 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20403
20404 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20405
20406 2008-05-22 Kenichi Handa <handa@m17n.org>
20407
20408 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20409
20410 * font.c (font_prop_validate_style): Adjust for the format
20411 change of font_style_table.
20412
20413 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20414 two args.
20415
20416 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20417 two args.
20418
20419 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20420
20421 * minibuf.c (keys_of_minibuf): Delete.
20422 * lisp.h (keys_of_minibuf): Delete.
20423 * emacs.c (main): Don't call keys_of_minibuf.
20424
20425 2008-05-22 Kenichi Handa <handa@m17n.org>
20426
20427 * ftfont.c (ftfont_resolve_generic_family): Rename from
20428 ftfont_list_generic_family. Return a single family for each
20429 generic family.
20430 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20431 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20432 Call font_add_log.
20433 (ftfont_match): Call font_add_log.
20434
20435 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20436 (FONT_DEBUG): Define it.
20437 (font_add_log): Extern it.
20438 (font_assert): Rename from xassert.
20439
20440 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20441 (xfont_list_family): Call font_add_log.
20442 (xfont_match): Likewise.
20443 (memq_no_quit): Delete.
20444
20445 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20446 call of Ffont_xlfd_name.
20447
20448 * xfaces.c (struct table_entry, slant_table, weight_table)
20449 (swidth_table): Move to font.c.
20450
20451 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20452 xassert are changed to font_assert. Delete many unused variables.
20453 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20454 New variables.
20455 (struct table_entry): Move from xfaces.c and modified.
20456 (weight_table, slant_table, width_table): Move from xfaces.c and
20457 contents adjusted for the change of struct table_entry.
20458 (font_style_to_value, font_style_symbolic): Adjust for the
20459 format change of font_style_table.
20460 (font_parse_family_registry): Don't overwrite existing foundry and
20461 family of font_spec.
20462 (font_score): Fix calculation of diff for sizes.
20463 (font_sort_entites): Call font_add_log.
20464 (font_delete_unmatched): Return a newly created list.
20465 (font_list_entities): Fix previous change. Call font_add_log.
20466 (font_matching_entity, font_open_entity, font_close_entity):
20467 Call font_add_log.
20468 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20469 (Finternal_set_font_style_table): Delete.
20470 (BUILD_STYLE_TABLE): New macro.
20471 (build_style_table): New function.
20472 (Vfont_log, font_log_env_checked): New variables.
20473 (font_add_log): New function.
20474 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20475 Declare Lisp variables "font-weight-table", "font-slant-table",
20476 "font-width-table", and "font-log". Initialize font_style_table.
20477
20478 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20479
20480 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20481
20482 2008-05-21 Seiji Zenitani <zenitani@mac.com>
20483 Ryo Yoshitake <ryo@shiftmode.net>
20484
20485 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20486 (Vframe_alpha_lower_limit): New variable.
20487 (x_set_alpha): New function.
20488
20489 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20490
20491 * xfns.c (x-create-frame, Qalpha):
20492 Initialize the frame parameter `alpha'.
20493 * xterm.c (OPAQUE, OPACITY): New.
20494 (x_set_frame_alpha): New function.
20495 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20496
20497 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20498 * w32fns.c (w32_frame_parm_handlers): Likewise.
20499
20500 2008-05-20 Jason Rumney <jasonr@gnu.org>
20501
20502 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20503 truetype fonts to opentype list.
20504
20505 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
20506
20507 * fontset.c (Ffontset_info): Doc fix.
20508 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20509 <ignore-relative-composition>: Fix typos in docstrings.
20510
20511 * font.c (syms-of-font) <font-encoding-alist>:
20512 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20513 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20514 (Ffont_otf_alternates): Doc fixes.
20515
20516 2008-05-20 Kenichi Handa <handa@m17n.org>
20517
20518 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20519 font.h through out the file.
20520 (FONT_DRIVERS): Rename from FONTOBJ.
20521 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20522 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20523
20524 * emacs.c (main): Call syms_of_font unconditionally.
20525
20526 * font.h (find_font_encoding): Extern it.
20527
20528 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20529 fontset.c.
20530 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
20531 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20532 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20533 only when HAVE_WINDOW_SYSTEM is defined.
20534 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20535 when HAVE_WINDOW_SYSTEM is defined.
20536
20537 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20538 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20539
20540 * xfaces.c: Include font.h unconditionally.
20541 (merge_face_ref, merge_face_vectors)
20542 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20543
20544 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20545
20546 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20547 indirect_variable.
20548 * eval.c (lisp_indirect_variable): New fun.
20549 (Fuser_variable_p): Use it.
20550
20551 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20552
20553 * lisp.h (indirect_variable):
20554 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20555 Use Lisp_Symbol pointers rather than Lisp_Object.
20556 Adjust callers.
20557 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20558 To this end, change calling-convention.
20559
20560 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20561 if some non-hidden buffers are selected by string&pred.
20562
20563 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
20564
20565 * process.c (wait_reading_process_output): Always check status
20566 when in batch mode.
20567
20568 2008-05-19 Kenichi Handa <handa@m17n.org>
20569
20570 * font.c (font_list_entities): Fix handling of cache.
20571 (font_matching_entity): Likewise.
20572
20573 * ftfont.c (cs_iso8859_1): Delete.
20574 (ft_face_cache): New variable.
20575 (struct ftfont_info): New member fc_charset_idx.
20576 (ftfont_build_basic_charsets): Delete.
20577 (fc_charset_table): New variable.
20578 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20579 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20580 Callers changed.
20581 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20582 (ftfont_spec_pattern): New argument fc_charset_idx.
20583 Check registry more rigidly. Change callers.
20584 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20585 change of :font-entity property of the font.
20586
20587 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20588 property of the font.
20589
20590 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
20591
20592 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20593 (Funencodable_char_position, Fcheck_coding_systems_region)
20594 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20595 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20596 (Ffind_operation_coding_system, Fset_coding_system_priority)
20597 (Fcoding_system_eol_type): Doc fixes.
20598
20599 2008-05-17 Glenn Morris <rgm@gnu.org>
20600
20601 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20602
20603 2008-05-16 Eli Zaretskii <eliz@gnu.org>
20604
20605 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20606 and st_gid.
20607
20608 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20609 HAVE_WINDOW_SYSTEM is not defined.
20610
20611 * xfaces.c (merge_face_ref, merge_face_vectors)
20612 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20613 HAVE_WINDOW_SYSTEM is defined.
20614 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20615
20616 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20617
20618 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20619
20620 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20621
20622 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20623
20624 2008-05-15 Kenichi Handa <handa@m17n.org>
20625
20626 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20627 preference.
20628
20629 2008-05-15 Glenn Morris <rgm@gnu.org>
20630
20631 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20632
20633 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
20634
20635 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20636 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20637
20638 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20639
20640 2008-05-15 Kenichi Handa <handa@m17n.org>
20641
20642 * ftfont.c (ftfont_list): Downcase family name to check generic
20643 families.
20644
20645 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20646 font-spec for QCfont value.
20647
20648 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20649 buffer. Check the return value of it.
20650
20651 2008-05-14 Jason Rumney <jasonr@gnu.org>
20652
20653 * w32term.c (w32_get_glyph_overhangs): Remove.
20654 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20655
20656 2008-05-14 Kenichi Handa <handa@m17n.org>
20657
20658 * font.c (font_prop_validate): Make nil a valid value.
20659 (font_clear_cache): Check if the cached vector of entities is nil
20660 or not.
20661
20662 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20663
20664 * emacs.c (main_thread): Conditionalize on
20665 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20666 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20667
20668 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20669 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20670 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20671
20672 2008-05-14 Kenichi Handa <handa@m17n.org>
20673
20674 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20675 has no corresponding coding system.
20676
20677 2008-05-14 Jason Rumney <jasonr@gnu.org>
20678
20679 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20680
20681 * w32font.h (w32font_open_internal): Update declaration.
20682
20683 * w32font.c (w32font_open_internal): Change last argument from
20684 w32font_info struct to font object. Fill in font object from
20685 font_entity. Get Outline metrics if possible. Use them to
20686 calculate underline position and thickness. Use xlfd name as name
20687 property. Don't set codepage.
20688 (w32font_open): Pass font_object to w32font_open_internal. Don't
20689 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20690 (w32font_draw): Use s->font.
20691 (clear_cached_metrics): Don't clear non-existent blocks.
20692
20693 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20694 font was not found.
20695 (x_draw_glyph_string): Use underline position and thickness from font.
20696
20697 * w32uniscribe.c (uniscribe_open): Pass font_object to
20698 w32font_open_internal.
20699
20700 2008-05-14 Kenichi Handa <handa@m17n.org>
20701
20702 These changes are to delete all legacy font-handling codes, and
20703 make Emacs use only font-backends.
20704
20705 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20706 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20707
20708 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20709
20710 * charset.h (Vcharset_non_preferred_head)
20711 (Vcurrent_iso639_language): Extern them.
20712
20713 * charset.c (Vcharset_non_preferred_head): New variable.
20714 (Vcurrent_iso639_language): New variable.
20715 (syms_of_charset): Declare it as a Lisp variable.
20716 (char_charset): Don't check non preferred charsets. As a last
20717 resort, return charset_unicode.
20718 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20719
20720 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20721 conditionals. Don't check enable_font_backend. Delete all codes
20722 used only when USE_FONT_BACKEND is not defined.
20723
20724 * dispextern.h (struct glyph_string): Change type of `font' to
20725 `struct font *'.
20726 (struct glyph_string): New member underline_position and
20727 underline_thickness.
20728 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
20729 (struct face): Change type of `font' to `struct font *'.
20730 Remove members `font_name', `font_info_id'.
20731 (per_char_metric, encode_char): Delete externs.
20732 (calc_pixel_width_or_height): Adjust the prototype.
20733
20734 * emacs.c (enable_font_backend): Delete extern.
20735 (main): Don't set enable_font_backend. Don't check the command
20736 line argument "-disable-font-backend".
20737
20738 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20739 (enum font_property_index): New members FONT_DPI_INDEX,
20740 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20741 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20742 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20743 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20744 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20745 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20746 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20747 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20748 (struct font_spec, struct font_entity): New structs.
20749 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
20750 (struct font): Many members from old "struct font_info" moved to
20751 here. Members font and entity deleted.
20752 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20753 the new font-related objects.
20754 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20755 (CHECK_FONT_GET_OBJECT): Likewise.
20756 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
20757 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
20758 (struct font_driver): New members case_sensitive anc check.
20759 Type of the member list and open changed.
20760 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20761 (font_symbolic_width, font_find_object, font_get_spec)
20762 (font_set_lface_from_name): Delete extern.
20763 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20764
20765 * font.c: Include <strings.h>.
20766 (enable_font_backend): Delete it.
20767 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20768 (CHECK_VALIDATE_FONT_SPEC): Delete it.
20769 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
20770 (null_string): Delete it.
20771 (null_vector): Make it static.
20772 (font_family_alist): Delete it.
20773 (Qnormal): Extern it.
20774 (QCextra, QClanguage): Delete it.
20775 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20776 (font_make_spec, font_make_entity, font_make_object)
20777 (font_intern_prop): Rename from intern_downcase. Don't downcase
20778 the string. Callers changed.
20779 (font_pixel_size): Adjust for the format change of font-related
20780 objects.
20781 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20782 (font_style_to_value, font_style_symbolic): New function.
20783 (build_font_family_alist): Delete it.
20784 (font_registry_charsets): Use Fassoc_string instead of
20785 assq_no_quit.
20786 (font_prop_validate_symbol): Don't return null_string.
20787 (font_prop_validate_style): Adjust for the change of
20788 style-related values in a font vector.
20789 (font_property_table): Delete entries for QClanguage and
20790 QCantialias, add entries for QCavgwidth.
20791 (get_font_prop_index): Delete the 2nd argument FROM.
20792 (font_prop_validate): Arguments changed.
20793 (font_put_extra): Adjust for the change of font-related objects.
20794 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20795 (font_parse_fcname, font_unparse_fcname)
20796 (font_prepare_composition): Likewise.
20797 (font_parse_family_registry): Rename from font_merge_old_spec.
20798 (otf_open): Delete the 1st arg entity.
20799 (font_otf_capability): Adjust for the above change.
20800 (font_score): New arg alternate_families. Adjusted for the change
20801 of font-related objects.
20802 (font_sort_entites): New arg best_only.
20803 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20804 Delete them.
20805 (font_match_p): Check alternate families.
20806 (font_find_object): Delete it.
20807 (font_check_object): New function.
20808 (font_clear_cache): Adjust for the change of font-related objects.
20809 (font_delete_unmatched): New arg.
20810 (font_list_entities): Call font_driver->list with a spec that
20811 doesn't specify style-related properties.
20812 (font_matching_entity): Arguments changed. Caller changed.
20813 (font_open_entity): Adjust for the change of font-related objects.
20814 (font_close_object, font_has_char, font_encode_char)
20815 (font_get_name, font_get_spec): Likewise.
20816 (font_spec_from_name, font_clear_prop, font_update_lface):
20817 New functions.
20818 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20819 (font_prepare_for_face, font_done_for_face, font_open_by_name)
20820 (font_at): Adjust for the change of font-related objects.
20821 (font_range): New function.
20822 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
20823 (Ffont_xlfd_name): Adjust for the change of font-related objects.
20824 (Fcopy_font_spec, Fmerge_font_spec): New function.
20825 (Ffont_family_list): Rename from list-families.
20826 (Finternal_set_font_style_table): Arguments changed.
20827 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
20828 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
20829 change of font-related objects.
20830 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20831
20832 * fontset.h (struct font_info): Delete it. Most members go to
20833 struct font.
20834 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
20835 (enum FONT_SPEC_INDEX): Delete it.
20836 (font_info, list_fonts_func, load_font_func, query_font_func)
20837 (set_frame_fontset_func, find_ccl_program_func)
20838 (get_font_repertory_func, new_fontset_from_font_name):
20839 Delete externs.
20840 (fontset_from_font_name): Extern it.
20841 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20842 (FONT_INFO_FROM_FACE): Deleted.
20843 (face_for_font): Adjust prototype.
20844
20845 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20846 conditionals. Don't check enable_font_backend. Delete all codes
20847 used only when USE_FONT_BACKEND is not defined.
20848 (get_font_info_func, list_font_func, load_font_func)
20849 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20850 (get_font_repertory_func): Delete them.
20851 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20852 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20853 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20854 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20855 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20856 (fontset_compare_rfontdef): New function.
20857 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20858 rfont-defs by qsort. Adjusted for the change of font-group vector.
20859 (load_font_get_repertory): Deleted.
20860 (fontset_find_font): Use new macros to ref/set elements of
20861 font-def and rfont-def.
20862 (fontset_font): Fix the timing of remembering that no font for C.
20863 (free_face_fontset): Do nothing if the face has no fontset.
20864 (face_suitable_for_char_p): Use new macros to ref/set elements of
20865 rfont-def.
20866 (face_for_char): Likewise. Call face_for_char with font_object.
20867 (fs_load_font): Delete. Delete #pragma surrounding it.
20868 (fs_query_fontset): Use strcasecmp instead of strcmp.
20869 (generate_ascii_font_name): Adjust for the format change of
20870 font-spec.
20871 (Fset_fontset_font): Likewise. Use new macros to set elements of
20872 font-def.
20873 (Fnew_fontset): Use font_unparse_xlfd to generate
20874 FONTSET_ASCII (fontset).
20875 (new_fontset_from_font_name): Deleted.
20876 (fontset_from_font): Rename from new_fontset_from_font. Check if
20877 a fontset is already created for the font. FIx updating of
20878 Vfontset_alias_alist.
20879 (fontset_ascii_font): Deleted.
20880 (Ffont_info): Adjust for the format change of font-spec.
20881 (Finternal_char_font): Likewise.
20882 (Ffontset_info): Likewise.
20883 (syms_of_fontset): Don't check load_font_func.
20884
20885 * fns.c (internal_equal): Handle PREV_FONT.
20886
20887 * frame.h: Delete USE_FONT_BACKEND conditional.
20888
20889 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20890 conditionals. Don't check enable_font_backend. Delete all codes
20891 used only when USE_FONT_BACKEND is not defined.
20892 (x_set_font): Call x_new_font, not x_new_fontset2.
20893 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20894 already set for the frame.
20895
20896 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20897 Make a font-entity by font_make_entity. Use font_intern_prop instead
20898 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20899 font property. If a font is scalable, set avgwidth property to 0.
20900 Set font-entity property by font_put_extra.
20901 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
20902 (ffont_driver): Adjust for the change of struct font_driver.
20903 (ftfont_spec_pattern): New function.
20904 (ftfont_list): Return a list, not vector.
20905 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20906 (ftfont_list_family): Don't downcase names.
20907 (ftfont_free_entity): Deleted.
20908 (ftfont_open): Return a font-object. Adjusted for the change of
20909 struct font. Get underline_thickness and underline_position from
20910 font property. Don't update dpyinfo->smallest_font_height and
20911 dpyinfo->smallest_char_width.
20912 (ftfont_close): Don't free `struct font'.
20913 (ftfont_has_char): Adjust for the format change of font-entity.
20914 (ftfont_encode_char, ftfont_text_extents): Likewise.
20915
20916 * ftxfont.c (ftxfont_list): Return a list, not vector.
20917 (ftxfont_open): Return a font-object. Adjusted for the change of
20918 struct font. Get underline_thickness and underline_position from
20919 font property. Don't update dpyinfo->smallest_font_height and
20920 dpyinfo->smallest_char_width.
20921 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
20922 (ftxfont_draw): Adjust for the change of struct font.
20923
20924 * image.c (image_ascent): Don't include "charset.h".
20925 Include "character.h" and "font.h".
20926
20927 * lisp.h (enum pvec_type): New member PREV_FONT.
20928 (Fassoc_string): EXFUN it.
20929
20930 * print.c: Include font.h.
20931 (print_object): Handle font-related objects.
20932
20933 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20934 conditionals. Don't check enable_font_backend. Delete all codes
20935 used only when USE_FONT_BACKEND is not defined.
20936 (handle_auto_composed_prop): Do nothing if it->f is not on a
20937 window system. Check how many following characters can be
20938 displayed by the same font.
20939 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20940 'struct font *'.
20941 (get_char_face_and_encoding): Assign the whole encoding task to
20942 the `encode-char' method of a font driver.
20943 (fill_composite_glyph_string): Adjust for the change of `struct
20944 face' and `struct glyph_string'.
20945 (fill_glyph_string): Likewise.
20946 (get_per_char_metric): Arguments changed.
20947 (x_get_glyph_overhangs): Adjust for the change of `struct face'
20948 and `struct glyph_string'.
20949 (produce_stretch_glyph, calc_line_height_property)
20950 (x_produce_glyphs): Likewise.
20951
20952 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20953 conditionals. Don't check enable_font_backend. Delete all codes
20954 used only when USE_FONT_BACKEND is not defined.
20955 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
20956 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20957 (Qp): Extern them.
20958 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20959 Deleted.
20960 (struct font_name): Deleted.
20961 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20962 (compare_fonts_by_sort_order): New function.
20963 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20964 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20965 Deleted.
20966 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20967 compare_fonts_by_sort_order.
20968 (Fx_font_family_list): Call Ffont_family_list.
20969 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20970 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20971 (face_symbolic_slant, face_symbolic_swidth)
20972 (split_font_name_into_vector, build_font_name_from_vector)
20973 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20974 (font_rescale_ratio, split_font_name, build_font_name)
20975 (free_font_names, sort_fonts, x_face_list_fonts)
20976 (face_font_available_p, sorted_font_list, cmp_font_names)
20977 (font_list_1, concat_font_list, font_list, remove_duplicates):
20978 Deleted.
20979 (Fx_list_fonts): Use Ffont_list.
20980 (LFACE_AVGWIDTH): Deleted.
20981 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20982 by FONTP.
20983 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20984 (set_lface_from_font_name): Delete it.
20985 (set_lface_from_font): Rename from
20986 set_lface_from_font_and_fontset. Caller changed. Don't set
20987 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20988 for face.
20989 (merge_face_vectors): Copy font-spec if necessary.
20990 Clear properties of the font-spec if necessary.
20991 (merge_face_ref): Clear properties of the font-spec if necessary.
20992 (Finternal_set_lisp_face_attribute): Likewise.
20993 (set_font_frame_param): Use font_load_for_lface to load a
20994 font-object, and call Fmodify_frame_parameters with it.
20995 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20996 font name by Ffont_xlfd_name.
20997 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20998 QCslant, and QCwidth.
20999 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21000 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21001 Compare fonts by EQ.
21002 (lookup_non_ascii_face): Deleted.
21003 (face_for_font): The 2nd argument changed.
21004 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21005 Check atomic font properties by case insensitive.
21006 (realize_non_ascii_face): Set face->overstrike correctly.
21007 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21008 (dump_realized_face): Get font name from
21009 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21010
21011 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21012 conditionals. Don't check enable_font_backend. Delete all codes
21013 used only when USE_FONT_BACKEND is not defined.
21014 (xic_create_xfontset): Original code deleted and renamed from
21015 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21016 (x_make_gc): Don't set GCFont in GCs.
21017 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21018 opened by "fixed".
21019 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21020 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21021 get_font_repertory_func.
21022
21023 * xfont.c: Include <stdlib.h> and "ccl.h".
21024 (struct xfont_info): New structure.
21025 (xfont_query_font): Deleted.
21026 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21027 moved from xterm.c.
21028 (xfont_driver): Adjust for the change of struct font_driver.
21029 (compare_font_names): New function.
21030 (xfont_list_pattern): Sort font names case insensitively.
21031 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21032 (xfont_list): Return a list, not vector.
21033 (xfont_match): If the font doesn't have QCname property, generate
21034 a name from the other font properties.
21035 (xfont_open): Return a font-object. Adjusted for the change of
21036 struct font. Get underline_thickness and underline_position from
21037 font property. Don't update dpyinfo->smallest_font_height and
21038 dpyinfo->smallest_char_width.
21039 (xfont_close): Don't free struct font.
21040 (xfont_prepare_face): Adjust for the change of struct font.
21041 (xfont_done_face): Deleted.
21042 (xfont_has_char): Adjust for the change of struct font.
21043 (xfont_encode_char, xfont_draw): Likewise.
21044 (xfont_check): New function.
21045
21046 * xftfont.c (xftfont_list): Adjust for the change of `list'
21047 callback function.
21048 (xftfont_match): Adjust for the format change of font-entity.
21049 (xftfont_open): Adjust for the format change of font-entity and
21050 font-object. Adjusted for the change of struct font. Return a
21051 font-object. Don't update dpyinfo->smallest_font_height and
21052 dpyinfo->smallest_char_width.
21053 (xftfont_close): Block input while calling XftFontClose.
21054 (xftfont_prepare_face): Don't block input while calling
21055 xftfont_get_colors. Adjusted for the change of struct font.
21056 (xftfont_shape): Return value of error case fixed.
21057
21058 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21059
21060 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21061 conditionals.
21062 (FONT_WIDTH): Return (f)->max_width.
21063 (struct x_display_info): Delete member `font'.
21064 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21065 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21066 (struct x_output): Change type of `font' to `struct font *'.
21067
21068 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21069 conditionals. Don't check enable_font_backend. Delete all codes
21070 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21071 (x_per_char_metric, x_encode_char): Deleted.
21072 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21073 (x_compute_glyph_string_overhangs): Adjust for the change of
21074 `struct face'.
21075 (x_draw_glyph_string_foreground)
21076 (x_draw_composite_glyph_string_foreground): Likewise.
21077 (x_draw_glyph_string): Likewise. Use font->underline_position and
21078 font->underline_thickness.
21079 (x_new_font): Rename from x_new_fontset2.
21080 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21081 (x_check_font): Call `check' method of a font driver.
21082 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21083 (x_query_font, x_get_font_repertory): Deleted.
21084 (x_find_ccl_program): Rename and moved to xfont.c.
21085 (x_redisplay_interface): Adjust for the change of `struct
21086 redisplay_interface'.
21087
21088 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21089 conditionals. Don't check enable_font_backend. Delete all codes
21090 used only when USE_FONT_BACKEND is not defined. Surround non-used
21091 code by "#ifdef OLD_FONT" and "endif".
21092 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21093
21094 * w32font.h (struct w32font_info): New member.
21095 (FONT_COMPAT): New macro.
21096 (w32font_open_internal): Prototype adjusted.
21097
21098 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21099 OLD_FONT" and "endif".
21100
21101 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21102 conditionals. Don't check enable_font_backend. Delete all codes
21103 used only when USE_FONT_BACKEND is not defined.
21104 (w32font_open): Return a font-object. Make a font-object by
21105 font_make_object. Adjusted for the change of struct w32font_info.
21106 (w32font_close): Don't free struct font. Adjusted for the change
21107 of struct w32font_info.
21108 (w32font_encode_char, w32font_text_extents, w32font_draw):
21109 Adjust for the change of struct w32font_info.
21110 (w32font_draw): Likewise.
21111 (w32font_list_internal): Return a list, not vector.
21112 (w32font_open_internal): Change the 4th arg to font-object.
21113 Adjusted for the change of struct w32font_info and font-object format.
21114 (add_font_name_to_list): Don't downcase names.
21115 (w32_enumfont_pattern_entity): Make a font-entity by
21116 font_make_entity. Adjusted for the format change of font-entity.
21117 Use FONT_SET_STYLE to set a style-related font property. If a
21118 font is scalable, set avgwidth property to 0. Set font-entity
21119 property by font_put_extra.
21120 (font_matches_spec): Adjust for the format change of font-entity.
21121 (w32_weight_table, w32_decode_weight): New variables.
21122 (w32_encode_weight): New function.
21123 (fill_in_logfont): Adjust for the format change of font-spec.
21124 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21125 weight value.
21126 (w32font_driver): Adjust for the change of struct font_driver.
21127
21128 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21129 conditionals. Don't check enable_font_backend. Surround non-used
21130 code by "#ifdef OLD_FONT" and "endif".
21131 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21132 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21133
21134 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21135 conditionals. Don't check enable_font_backend. Delete all codes
21136 used only when USE_FONT_BACKEND is not defined. Surround non-used
21137 code by "#ifdef OLD_FONT" and "endif".
21138
21139 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21140 (uniscribe_open): Return value changed to font-object.
21141 Adjusted for the format change of font-object.
21142 (uniscribe_otf_capability): Adjust for the change of struct font.
21143 (add_opentype_font_name_to_list): Don't downcase names.
21144 (uniscribe_font_driver): Adjust for the change of struct
21145 font_driver.
21146
21147 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21148
21149 * dispnew.c (update_frame_1): Check if tty output is still valid
21150 before flushing it.
21151
21152 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21153
21154 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21155 to Gtk+ menus.
21156
21157 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21158
21159 * dired.c (file_name_completion): Tweak the code so as to always do it
21160 in a single pass. Tighten the scope of some variables.
21161
21162 * dired.c (Qdefault_directory): New var.
21163 (file_name_completion): Use it instead of Fexpand_file_name.
21164 (syms_of_dired): Initialize it.
21165
21166 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21167
21168 * fileio.c (double_dollars): Remove dead code.
21169
21170 2008-05-10 Eli Zaretskii <eliz@gnu.org>
21171
21172 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21173 Mention w32-get-true-file-attributes in doc string.
21174
21175 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21176
21177 2008-05-09 Glenn Morris <rgm@gnu.org>
21178
21179 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21180 2008-04-23.
21181
21182 2008-05-09 Eli Zaretskii <eliz@gnu.org>
21183
21184 Support for reporting owner and group of each file on MS-Windows:
21185 * dired.c (stat_uname, stat_gname): New functions, with special
21186 implementation for w32.
21187 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21188
21189 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21190 (dflt_group_name): New static variable.
21191 (dflt_group): Rename from the_group.
21192 (init_user_info): Init dflt_group fields. Get user's group name
21193 from LookupAccountSid.
21194 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21195 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21196 New initialization states.
21197 (globals_of_w32): Initialize them to zero. Initialize the default
21198 group name to "None".
21199 (GetFileSecurity_Name): New global var, the name of the function
21200 to call for GetFileSecurity.
21201 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21202 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21203 (get_file_security, get_security_descriptor_owner)
21204 (get_security_descriptor_group, is_valid_sid)
21205 (get_file_security_desc, get_rid, get_name_and_id)
21206 (get_file_owner_and_group): New functions.
21207 (stat): Use get_file_security_desc and get_file_owner_and_group to
21208 report the owner and primary group of each file. Don't ignore the
21209 high 32 bits of file's size, now that st_size is 64-bit wide.
21210 Fix test when to get true file attributes.
21211 (init_user_info): Use get_rid instead of equivalent inline code.
21212 (fstat): Don't ignore the high 32 bits of file's size.
21213
21214 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
21215
21216 * image.c (png_load): Use correct bit-depth for setting background
21217 color.
21218
21219 2008-05-08 Eli Zaretskii <eliz@gnu.org>
21220
21221 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21222 epa-hook.elc.
21223
21224 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
21225
21226 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21227
21228 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21229
21230 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21231 because the original parameters are in pure storage now.
21232 (mac_window): Remove unused params. Update callers.
21233
21234 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21235
21236 * lread.c (substitute_object_recurse): Use lower-level primitives.
21237 Don't signal errors when traversing sub-char-tables.
21238 Don't loop over all the possible characters when traversing char-tables.
21239
21240 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21241 just like we do in print.c.
21242
21243 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21244
21245 * minibuf.c (Ftry_completion): Remove code left over from when we used
21246 scmp instead of Fcompare_strings.
21247
21248 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
21249
21250 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21251
21252 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21253
21254 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21255 Create bitmap context in native byte order.
21256
21257 * macterm.c (XDrawLine)
21258 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21259 context in native byte order.
21260
21261 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21262
21263 * config.in: Regenerate.
21264
21265 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21266 New definitions for Image I/O support.
21267 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21268 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21269 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21270 (mac_data_provider_release_data, image_load_image_io)
21271 [USE_MAC_IMAGE_IO]: New functions.
21272 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21273 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21274 (init_image_func_pointer) [MAC_OSX]: Remove function.
21275 (image_load_quartz2d) [MAC_OSX]: Check availability of
21276 CGImageCreateWithPNGDataProvider at compile time.
21277 Use lowercase `false' for boolean constant.
21278 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21279 Use image_load_image_io.
21280 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21281 Don't check MyCGImageCreateWithPNGDataProvider.
21282 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21283 Don't call init_image_func_pointer.
21284
21285 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21286
21287 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21288 Make variable non-static.
21289 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21290 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21291
21292 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21293 (RED_FROM_ULONG): Mask off higher bits.
21294 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21295
21296 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21297 Include AvailabilityMacros.h.
21298 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21299 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21300
21301 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21302
21303 * chartab.c (Fset_char_table_range): If range is t, really set all
21304 chars to that value.
21305
21306 2008-05-03 Eli Zaretskii <eliz@gnu.org>
21307
21308 * dired.c (Ffile_attributes): Don't allow the device number become
21309 negative.
21310
21311 2008-05-02 Daiki Ueno <ueno@unixuser.org>
21312
21313 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21314
21315 2008-05-02 Juri Linkov <juri@jurta.org>
21316
21317 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21318 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21319 DEFAULT argument as a list of default values in docstrings.
21320
21321 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
21322
21323 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21324
21325 2008-05-01 Martin Rudalics <rudalics@gmx.at>
21326
21327 * dispnew.c (change_frame_size_1): Preserve small windows when
21328 shrinking frames by calling set_window_height|width with third
21329 arg 2.
21330
21331 * window.h (struct window): Replace field too_small_ok by field
21332 resize_proportionally.
21333
21334 * window.c (make_window): Initialize resize_proportionally.
21335 (enlarge_window): Temporarily set resize_proportionally to make
21336 sure that shrink_windows does scale the window proportionally.
21337 (shrink_windows): When window has resize_proportionally set try
21338 to shrink it proportionally by stealing from other windows.
21339 (struct saved_window, Fset_window_configuration)
21340 (compare_window_configurations): Handle resize_proportionally.
21341 (WINDOW_TOTAL_SIZE): New macro.
21342 (window_min_size, shrink_windows, size_window): Use it.
21343 (check_min_window_sizes): Remove. Invalid values of
21344 window-min-height|width are handled by window_min_size_2 now.
21345 (size_window, Fsplit_window, enlarge_window)
21346 (adjust_window_trailing_edge, grow_mini_window): Don't call
21347 check_min_window_sizes.
21348 (window_min_size_2, window_min_size_1, window_min_size):
21349 New argument safe_p for retrieving "safe" minimum sizes.
21350 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21351 (adjust_window_trailing_edge, grow_mini_window):
21352 Adjust arguments of window_min_size... functions.
21353 (shrink_windows): Argument min_size removed. New argument
21354 safe_p allows shrinking windows to their safe minimum sizes.
21355 Calculate minimum size and decide whether a window shall be
21356 deleted for each window individually.
21357 (size_window): When nodelete_p equals 2, tell shrink_windows to
21358 delete windows only if their new minimum size is no more safe.
21359 (shrink_window_lowest_first): Call window_min_size_1 to make
21360 sure to preserve modeline of bottom-most window when resizing
21361 the minibuffer.
21362 (Fset_window_configuration, Fcurrent_window_configuration)
21363 (compare_window_configurations): Do not handle
21364 window-min-height|width any more.
21365 (syms_of_window): Clarify window-min-height|width doc-strings.
21366
21367 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21368
21369 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21370 some more. Copy some of the code from Ftry_completions.
21371 Remove special case code that dates back to initial revision when the
21372 slash was only added when necessary and that can't trigger nowadays.
21373
21374 2008-04-27 Kenichi Handa <handa@m17n.org>
21375
21376 * font.c (font_prop_validate): Signal `error' instead of `font'.
21377
21378 2008-04-29 Jason Rumney <jasonr@gnu.org>
21379
21380 * w32fns.c (Fw32_battery_status): New defun.
21381 (syms_of_w32fns): Defsubr it.
21382
21383 2008-04-28 Andreas Schwab <schwab@suse.de>
21384
21385 * dired.c (file_name_completion): Fix another mixing of encoded
21386 and decoded names.
21387
21388 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
21389
21390 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21391
21392 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
21393
21394 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21395
21396 2008-04-27 Andreas Schwab <schwab@suse.de>
21397
21398 * dired.c (file_name_completion): Fix inappropriate mixing of
21399 encoded and decoded names.
21400
21401 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21402
21403 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21404
21405 2008-04-26 Eli Zaretskii <eliz@gnu.org>
21406
21407 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21408 2008-03-31, it's not needed anymore with `struct stat' definition
21409 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21410 for the same reasons.
21411
21412 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21413
21414 * m/sparc.h: Additional redefinitions for GNU/Linux.
21415
21416 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21417
21418 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21419 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21420 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21421 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21422 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21423 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21424 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21425 Likewise.
21426
21427 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21428 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21429 (mac_ax_number_of_characters): Add externs.
21430 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21431 [USE_MAC_TSM]: Likewise.
21432 (mac_handle_text_input_event) [MAC_OSX]:
21433 Handle kEventTextInputOffsetToPos for no active input area case.
21434 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21435 (mac_handle_document_access_event)
21436 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21437 (install_application_handler) [MAC_OSX]: Register handlers for
21438 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21439 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21440 Register mac_handle_document_access_event.
21441
21442 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21443 Make functions non-static.
21444
21445 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21446
21447 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21448 (read_file_name_completion_ignore_case, insert_default_directory)
21449 (Qdefault_directory): Move to minibuffer.el.
21450 (Fread_file_name): Call the new `read-file-name' instead.
21451
21452 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21453
21454 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21455 Make function non-static.
21456 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21457 Remove function.
21458 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21459 Move to mactoolbox.c.
21460 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21461
21462 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21463 (mac_rect_make): New macro.
21464
21465 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21466 instead of float.
21467 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21468 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21469 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21470 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21471 CGRectMake.
21472 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21473 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21474 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21475 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21476 instead of WindowRef in argument type.
21477 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21478 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21479 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21480 instead of DISPLAY. All uses changed.
21481 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21482 (x_calc_absolute_position): Simplify so as not to use
21483 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21484
21485 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21486 instead of WindowRef in argument type.
21487 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21488 [TARGET_API_MAC_CARBON]: Remove externs.
21489 (create_apple_event, mac_event_parameters_to_lisp)
21490 [TARGET_API_MAC_CARBON]: Add externs.
21491
21492 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21493 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21494 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21495 is clicked.
21496 (x_activate_menubar): Remove extern for saved_menu_event_location.
21497 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21498 Move from mac.c.
21499
21500 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21501
21502 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21503 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21504
21505 2008-04-23 Jason Rumney <jasonr@gnu.org>
21506
21507 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21508 attributes only for local files.
21509
21510 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21511 default to Qlocal.
21512
21513 2008-04-22 Juri Linkov <juri@jurta.org>
21514
21515 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21516 read-buffer-to-switch instead of using the letter "B".
21517
21518 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21519
21520 * fileio.c (Qdefault_directory): New variable.
21521 (Fread_file_name): Use it to pass `dir' to the completion functions.
21522
21523 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
21524
21525 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21526
21527 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21528
21529 * keyboard.c (Vpre_help_message): Remove.
21530 (show_help_echo): Remove default C code.
21531
21532 * dired.c (directory_files_internal, file_name_completion):
21533 Only call ENCODE_FILE if the string is indeed decoded.
21534
21535 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21536
21537 * Makefile.in (TOOLKIT_DEFINES): Remove.
21538 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21539
21540 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21541
21542 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21543 (mactoolbox.o): New target.
21544
21545 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21546 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21547
21548 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21549 Use mac_set_frame_window_background instead of XSetWindowBackground.
21550 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21551 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21552 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21553 instead of SetWindowTitleWithCFString.
21554 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21555 Move function to mactoolbox.c.
21556 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21557 Use mac_set_window_modified instead of SetWindowModified.
21558 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21559 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21560 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21561 FrontNonFloatingWindow. Use mac_activate_window instead of
21562 ActivateWindow. Use mac_active_non_floating_window instead of
21563 ActiveNonFloatingWindow.
21564 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21565 Use mac_show_hourglass and mac_hide_hourglass.
21566 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21567 instead of GetGlobalMouse.
21568 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21569 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21570 Use mac_bring_window_to_front instead of BringToFront.
21571 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21572 mactoolbox.c.
21573 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21574 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21575 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21576 mactoolbox.c.
21577
21578 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21579 (XtPointer): Move typedef from macmenu.c.
21580 (enum button_type): Move enum from macmenu.c.
21581 (widget_value): Move typedef from macmenu.c.
21582 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21583 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21584 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21585 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21586 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21587 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21588 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21589 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21590 (Selection): Move typedef from macselect.c.
21591 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21592 macterm.c.
21593 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21594 (mac_is_window_collapsed, mac_bring_window_to_front)
21595 (mac_send_window_behind, mac_hide_window, mac_show_window)
21596 (mac_collapse_window, mac_front_non_floating_window)
21597 (mac_active_non_floating_window, mac_activate_window)
21598 (mac_move_window_structure, mac_move_window, mac_size_window)
21599 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21600
21601 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21602 (enum mac_menu_kind): Move enum to mactoolbox.c.
21603 (min_menu_id): Move variable to mactoolbox.c.
21604 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21605 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21606 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21607 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21608 [TARGET_API_MAC_CARBON]: Likewise.
21609 (XtPointer): Move typedef to macgui.h.
21610 (enum button_type): Move enum to macgui.h.
21611 (widget_value): Move typedef to macgui.h.
21612 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21613 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21614 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21615 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21616 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21617 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21618 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21619 (popup_activated_flag): Make variable non-static.
21620 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21621 (add_menu_item, fill_menu, dispose_menus):
21622 Move functions to mactoolbox.c.
21623 (restore_show_help_function, menu_target_item_handler)
21624 (install_menu_target_item_handler, mac_handle_dialog_event)
21625 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21626 [TARGET_API_MAC_CARBON]: Likewise.
21627 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21628 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21629 (find_and_call_menu_selection, name_is_separator): Make function
21630 non-static.
21631 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21632 to mactoolbox.c.
21633 (set_frame_menubar): Don't call install_menu_quit_handler.
21634 (menu_item_selection): New variable.
21635 (mac_menu_show): Use create_and_show_popup_menu.
21636 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21637 selection but set variable menu_item_selection. All uses changed.
21638 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21639 Call install_menu_quit_handler. Move to mactoolbox.c.
21640
21641 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21642 (Selection): Move typedef to macgui.h.
21643 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21644 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21645 Make variables non-static.
21646 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21647 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21648 Make functions non-static.
21649 (Vmac_service_selection) [MAC_OSX]: Likewise.
21650 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21651 (mac_valid_selection_target_p, mac_clear_selection)
21652 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21653 (mac_put_selection_value, mac_selection_has_target_p)
21654 (mac_get_selection_value, mac_get_selection_target_list)
21655 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21656 Move functions to mactoolbox.c.
21657 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21658 Likewise.
21659 (copy_scrap_flavor_data, mac_handle_service_event)
21660 (install_service_handler) [MAC_OSX]: Likewise.
21661 (syms_of_macselect) <Vmac_dnd_known_types>:
21662 Use mac_dnd_default_known_types.
21663
21664 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21665 Move to mactoolbox.c.
21666 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21667 (Fx_selection_owner_p): Add EXFUN.
21668 (install_window_handler, remove_window_handler, XSetWindowBackground):
21669 Remove externs.
21670 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21671 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21672 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21673 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21674 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21675 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21676 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21677 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21678 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21679 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21680 (mac_valid_selection_target_p, mac_clear_selection)
21681 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21682 (mac_put_selection_value, mac_selection_has_target_p)
21683 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21684 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21685 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21686 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21687 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21688 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21689 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21690 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21691 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21692
21693 * mactoolbox.c: New file.
21694
21695 2008-04-18 Jason Rumney <jasonr@gnu.org>
21696
21697 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21698
21699 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21700
21701 * character.c (Fmultibyte_char_to_unibyte):
21702 Return latin1 chars unchanged.
21703
21704 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21705 relocated if it points to `name'.
21706
21707 2008-04-17 Kenichi Handa <handa@m17n.org>
21708
21709 * data.c (Faset): Allow setting a multibyte character in an
21710 ASCII-only unibyte string.
21711
21712 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21713
21714 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21715
21716 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21717 done in config.h.
21718
21719 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
21720
21721 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21722 (Fchar_direction): Add usage in the docstring.
21723
21724 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
21725
21726 * keyboard.c (read_key_sequence): Remove always-true checks.
21727
21728 2008-04-14 Jason Rumney <jasonr@gnu.org>
21729
21730 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21731 compatibility struct, for better underline positioning.
21732
21733 2008-04-13 David Hansen <david.hansen@gmx.net>
21734
21735 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21736 string.
21737
21738 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21739
21740 * m/hp800.h (XUINT, XSET): Remove.
21741
21742 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
21743
21744 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21745 previous change.
21746
21747 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21748
21749 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21750 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21751
21752 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21753
21754 * keymap.h (map_keymap_canonical): Declare.
21755 * xmenu.c (single_keymap_panes): Use it.
21756
21757 2008-04-11 Glenn Morris <rgm@gnu.org>
21758
21759 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21760 set the target's value to that of the alias.
21761
21762 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21763
21764 * term.c (set_tty_color_mode): Left over typo.
21765
21766 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
21767
21768 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21769 only after check for file name handler functions. Signal, when
21770 native functionality is not supported.
21771 (syms_of_fileio): Declare it unconditionally.
21772
21773 2008-04-10 Jason Rumney <jasonr@gnu.org>
21774
21775 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21776 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21777
21778 * w32.c (logon_network_drive): Also logon to remote drives that
21779 are mapped to drive letters.
21780
21781 2008-04-10 Glenn Morris <rgm@gnu.org>
21782
21783 * xdisp.c (truncate-partial-width-windows): Doc fix.
21784
21785 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21786
21787 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21788 Move functions to minibuffer.el.
21789 (syms_of_fileio): Don't declare them.
21790
21791 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21792
21793 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21794 (syms_of_minibuf): Remove its initialization.
21795
21796 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21797
21798 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
21799
21800 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21801
21802 2008-04-09 Jason Rumney <jasonr@gnu.org>
21803
21804 * makefile.w32-in (distclean): Delete makefile too.
21805 (maintainer-clean): New target.
21806
21807 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21808
21809 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21810 for new font backend and composite cases.
21811
21812 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21813
21814 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21815 Most of the code moved to run_timers.
21816 (do_pending_atimers): Call run_timers.
21817 (run_timers): New function.
21818
21819 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21820 run atimers.
21821
21822 * process.c (wait_reading_process_output): The same as above.
21823
21824 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21825
21826 * minibuf.c (last_exact_completion): Remove variable.
21827 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21828 (complete_and_exit_1, complete_and_exit_2)
21829 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21830 (Fdisplay_completion_list, display_completion_list_1)
21831 (Fminibuffer_completion_help, Fself_insert_and_exit)
21832 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21833 minibuffer.el.
21834 (syms_of_minibuf): Remove corresponding initializations.
21835
21836 * keyboard.c (Qdeactivate_mark): New var.
21837 (command_loop_1): Use it to call `deactivate-mark'.
21838 (syms_of_keyboard): Initialize it.
21839
21840 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21841 to another frame.
21842 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21843 Don't call set_tty_color_mode.
21844 (store_frame_param): Reset previous_frame rather than call
21845 set_tty_color_mode.
21846 * term.c (set_tty_color_mode): Rewrite.
21847 * dispextern.h (set_tty_color_mode): New type.
21848 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21849
21850 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21851
21852 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21853 for generic chars, which do not exist any more in emacs-unicode.
21854
21855 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
21856
21857 * coding.c (detect_coding_emacs_mule)
21858 (Ffind_operation_coding_system): Fix typo.
21859
21860 2008-04-08 Jason Rumney <jasonr@gnu.org>
21861
21862 * w32uniscribe.c (SNAME): Extract only symbol name.
21863
21864 * w32font.h (struct w32_metric_cache): New struct.
21865 (w32font_info): Use it.
21866 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21867 (CACHE_BLOCKSIZE): New constants.
21868
21869 * w32font.c (Qja, Qko, Qzh): New symbols.
21870 (syms_of_w32font): Initialise them.
21871 (font_matches_spec): Use them to filter by language.
21872 (recompute_cached_metrics): Remove function.
21873 (compute_metrics, clear_cached_metrics): New functions.
21874 (w32font_encode_char): Use them to manage metric cache.
21875 (w32font_text_extents): Cache metrics for all glyphs on demand.
21876 Delay converting glyph indices to WORD until needed.
21877 (w32font_open_internal): Initialize metric cache to empty.
21878 (registry_to_w32_charset): Charset should always be a symbol.
21879 (fill_in_logfont, list_all_matching_fonts): Family should
21880 always be a symbol.
21881
21882 2008-04-06 Jason Rumney <jasonr@gnu.org>
21883
21884 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21885 Give up if glyph indices not supported. Use uniscribe obtained
21886 ABC widths for individual metrics. Map glyph clusters back to
21887 characters using fClusterStart flag. Return number of glyphs
21888 produced, not chars processed.
21889 (uniscribe_shape): Map char at FROM to current glyph.
21890
21891 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21892
21893 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21894 Use SetMenuItemHierarchicalMenu.
21895
21896 2008-04-05 Jason Rumney <jasonr@gnu.org>
21897
21898 * image.c (pbm_load): Allow color values up to 65535.
21899 Throw an error if max_color_idx is outside the supported range.
21900 Report an error when image size is invalid.
21901 Read two bytes at a time when raw images have max_color_idx above 255.
21902
21903 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21904
21905 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21906 append "CCL: Quitted" when the CCL program is quitted.
21907 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21908
21909 * ccl.h (struct ccl_program): New member quit_silently.
21910
21911 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
21912
21913 * search.c (compile_pattern_1): Treat non-nil and non-string of
21914 search-spaces-regexp as nil.
21915
21916 * minibuf.c (Fassoc_string): Tweak docstring.
21917
21918 2008-04-05 Eli Zaretskii <eliz@gnu.org>
21919
21920 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21921 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21922 2008-03-14 to force inode be positive.
21923
21924 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21925 _S_* ones, since we now use our own sys/stat.h.
21926 (stat, fstat): Don't mangle the inode number.
21927 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21928
21929 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21930
21931 * frame.h (struct frame): Give one more bit to `visible' since we use
21932 values larger than 1 to indicate obscured frames on ttys.
21933
21934 * keymap.c (Qkeymap_canonicalize): New var.
21935 (Fmap_keymap_internal): New fun.
21936 (describe_map): Use keymap-canonicalize.
21937
21938 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21939 (Fundo_boundary): Set them.
21940 (syms_of_undo): Initialize them.
21941 (record_point): Use them instead of last_point_position*.
21942 (last_undo_buffer): Change type.
21943
21944 2008-04-04 Jason Rumney <jasonr@gnu.org>
21945
21946 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21947 (recompute_cached_metrics): Don't set ascent and descent per char.
21948
21949 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21950 (uniscribe_check_otf): Add GC protection before consing.
21951 Rearrange loop for counting features.
21952
21953 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21954
21955 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21956 buffer with byte-size of source buffer.
21957
21958 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
21959
21960 * callint.c (Fcall_interactively): Handle temporary region even
21961 when shift-select-mode is off.
21962
21963 2008-04-03 Jason Rumney <jasonr@gnu.org>
21964
21965 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21966
21967 2008-04-03 Kenichi Handa <handa@m17n.org>
21968
21969 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21970 (CATEGORY_MASK_UTF_16): Likewise.
21971 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21972 binary file.
21973 (detect_coding): Add null-byte detection for a binary file.
21974 (detect_coding_system): Likewise.
21975
21976 2008-04-03 Jason Rumney <jasonr@gnu.org>
21977
21978 * w32uniscribe.c: New file.
21979
21980 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21981
21982 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21983
21984 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21985 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21986 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21987 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21988 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21989 (Qphonetic): New symbols.
21990 (syms_of_w32font): Initialize them.
21991 (font_supported_scripts): Use them.
21992 (w32font_list_family): List all charsets.
21993 (w32font_text_extents, recompute_cached_metrics): Fix metric
21994 calculations.
21995 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21996 Give opentype fonts their own format.
21997 (font_matches_spec): New arguments backend and logfont.
21998 Handle :otf spec for uniscribe backend.
21999 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22000 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22001
22002 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22003 font backend.
22004 (globals_of_w32fns): Initialize uniscribe font backend.
22005
22006 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22007 dependencies.
22008 (w32uniscribe.$(O)): New file to build.
22009 (FONT_OBJ): Include w32uniscribe.$(O).
22010 (LIBS): Add uniscribe libraries.
22011
22012 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22013
22014 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22015
22016 * callint.c (Vshift_select_mode): New var.
22017 (Finteractive): Document new ^ spec.
22018 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22019 is present.
22020
22021 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22022 (command_loop_1): Avoid running the direct display versions of
22023 forward-char and backward-char if shift-selection may occur.
22024 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22025 shift-translation takes place.
22026
22027 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22028 avoid clobbering by define-minor-mode.
22029
22030 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22031 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22032
22033 * syntax.c (Fforward_word): Add ^ interactive spec.
22034
22035 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22036 (Fscroll_right): Add ^ interactive spec.
22037
22038 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22039
22040 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22041
22042 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22043
22044 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22045
22046 2008-03-31 Juri Linkov <juri@jurta.org>
22047
22048 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22049
22050 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22051
22052 * gtkutil.c (xg_set_geometry): Fix indentation.
22053 (xg_resize_outer_widget): Remove.
22054 (x_wm_size_hint_off): Fix indentation.
22055 (xg_frame_set_char_size): Call flush_and_sync after
22056 gtk_window_resize.
22057 (x_wm_set_size_hint): Pass NULL as geometry window to
22058 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22059 Add menu bar and tool bar height to base height.
22060 (xg_update_frame_menubar, free_frame_menubar)
22061 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22062 (update_frame_tool_bar, free_frame_tool_bar):
22063 Change xg_resize_outer_widget to xg_frame_set_char_size.
22064
22065 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22066
22067 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22068 (Fdbus_call_method): New parameter TIMEOUT.
22069 (dbus-send-signal): Optimize UNGCPRO call.
22070
22071 2008-03-29 Juri Linkov <juri@jurta.org>
22072
22073 * window.c (Fdisplay_buffer): Move call to
22074 Vsplit_window_preferred_function out of conditions that check
22075 if window is eligible for vertical splitting.
22076 When Vsplit_window_preferred_function is non-nil, call it and use
22077 its non-nil return value as window. Otherwise, continue doing
22078 vertical splitting using Fsplit_window with arg horflag=nil.
22079 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22080 default value from `split-window' to nil.
22081
22082 2008-03-29 Juri Linkov <juri@jurta.org>
22083
22084 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22085 for interactive code letters 'b' and 'B'.
22086
22087 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22088
22089 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22090 multibyte string.
22091
22092 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22093
22094 * keyboard.c (pending_funcalls): New var.
22095 (timer_check): Run it.
22096 (syms_of_keyboard): Initialize it.
22097 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22098 (Vdelete_terminal_functions): New vars.
22099 (syms_of_terminal): Initialize them.
22100 (Fdelete_terminal): Run delete-terminal-functions.
22101 * xdisp.c (safe_eval): Rewrite.
22102 (safe_call2): New fun.
22103 * frame.c (Qdelete_frame_functions): New var.
22104 (syms_of_frame): Initialize it.
22105 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22106 * lisp.h (safe_call2, pending_funcalls): Declare.
22107
22108 2008-03-28 Andreas Schwab <schwab@suse.de>
22109
22110 * indent.c (Fmove_to_column): Move declaration before statements.
22111
22112 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22113
22114 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22115 (struct frame): Use bit fields for boolean vars.
22116
22117 * process.c (server_accept_connection): Simplify naming.
22118 (emacs_get_tty_pgrp): Use SDATA.
22119
22120 * coding.c (decode_coding_object): Fix last change.
22121
22122 2008-03-27 Jason Rumney <jasonr@gnu.org>
22123
22124 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22125
22126 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22127
22128 * charset.c (Fdefine_charset_internal): Change the way of
22129 registering charsets in Vcharset_order_list.
22130 (syms_of_charset): Make the charset `eight-bit' supplementary.
22131
22132 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22133
22134 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22135 operations, to avoid having the difference between pointers
22136 overflow.
22137
22138 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22139
22140 * indent.c (check_display_width): New fun.
22141 (scan_for_column): Use it.
22142
22143 * data.c (syms_of_data): Mark most-positive-fixnum and
22144 most-negative-fixnum as constants.
22145
22146 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22147
22148 * indent.c (scan_for_column): Extract from current_column_1.
22149 Merge with the same code from Fmove_to_column.
22150 (current_column_1, Fmove_to_column): Use it.
22151
22152 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22153
22154 * keymap.c (map_keymap_internal): New fun.
22155 (map_keymap): Use it.
22156 (Fmap_keymap_internal): New fun.
22157 (Fmap_keymap): Remove left-out test from before make_save_value.
22158
22159 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22160
22161 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22162 Use XCAR/XCDR.
22163
22164 * process.h (struct Lisp_Process): Remove filter_multibyte.
22165 * process.c (QCfilter_multibyte): Remove.
22166 (setup_process_coding_systems): Don't use filter_multibyte.
22167 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22168 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22169 (Fset_process_filter_multibyte): Change the coding-system to
22170 approximate the previous behavior.
22171 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22172 coding-system.
22173
22174 * coding.c (decode_coding_object): When not decoding into a buffer,
22175 obey the coding system's preference of (uni|multi)byte.
22176
22177 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22178
22179 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22180 every char is changed and has a different byte-length.
22181 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22182 Fix int -> EMACS_INT.
22183
22184 2008-03-23 David Hansen <david.hansen@gmx.net>
22185
22186 * dbusbind.c (xd_read_message): Remove extra copying of message
22187 strings. Check for NULL `interface' or `member'.
22188
22189 2008-03-22 Eli Zaretskii <eliz@gnu.org>
22190
22191 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22192 cFileName a file name that includes `?' characters, use the 8+3
22193 alias in cAlternateFileName instead.
22194
22195 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22196
22197 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22198
22199 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22200
22201 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22202 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22203 work on current_buffer only instead (that was already the case
22204 for some of the code anyway).
22205 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22206 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22207 (SET_PT, SET_PT_BOTH): Adjust.
22208 * intervals.h (set_point, temp_set_point, set_point_both)
22209 (temp_set_point_both): Remove redundant declarations.
22210
22211 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22212
22213 * fileio.c (Finsert_file_contents):
22214 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22215 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22216 when buffer != current_buffer anyway.
22217
22218 2008-03-20 Andreas Schwab <schwab@suse.de>
22219
22220 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22221 as default.
22222
22223 2008-03-19 Jason Rumney <jasonr@gnu.org>
22224
22225 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22226 (syms_of_w32fns): Initialize them.
22227 (HOURGLASS_ID): New constant.
22228 (x_window_to_frame): Don't check hourglass_window.
22229 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22230 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22231 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22232 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22233 Only change the cursor if hourglass is not active.
22234 (Fx_create_frame): Initialize frame's current_cursor.
22235 (hourglass_atimer): Remove.
22236 (hourglass_started): New function.
22237 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22238 (show_hourglass): Adapt to w32, changing argument to frame.
22239
22240 * w32term.h (struct w32_output): Remove hourglass_window.
22241 Add current_cursor.
22242
22243 * eval.c (call_debugger, Fsignal):
22244 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22245 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22246 (Fexecute_extended_command, cancel_hourglass_unwind):
22247 * minibuf.c (read_minibuf):
22248 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22249
22250 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22251
22252 * window.c (run_funs): New fun.
22253 (run_window_configuration_change_hook): Use it to run the buffer-local
22254 and the global part of the hook.
22255
22256 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22257 (unwind_format_mode_line): Restore selected window.
22258 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22259
22260 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22261
22262 * editfns.c (Fchar_equal): Check they are valid characters.
22263
22264 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22265
22266 2008-03-17 Andreas Schwab <schwab@suse.de>
22267
22268 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22269 against a charset.
22270
22271 * lisp.h (Fbuffer_list): Declare.
22272
22273 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
22274
22275 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22276 handlebox_widget is != 0.
22277
22278 2008-03-16 Juri Linkov <juri@jurta.org>
22279
22280 * callint.c (Fcall_interactively): For interactive code letters
22281 'b' and 'B' put the buffer list into the list of default "future"
22282 values of the minibuffer.
22283
22284 2008-03-16 Andreas Schwab <schwab@suse.de>
22285
22286 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22287 modifiers.
22288
22289 * regex.c (re_match_2_internal): Correct matching of a charset
22290 against latin-1 characters.
22291
22292 2008-03-16 Kenichi Handa <handa@m17n.org>
22293
22294 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22295 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22296 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22297 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22298 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22299 CHAR_STRING_ADVANCE.
22300 (produce_chars): Fix for the case that the source and the
22301 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22302 instead of CHAR_STRING_ADVANCE.
22303 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22304 STRING_CHAR_ADVANCE.
22305
22306 2008-03-15 Andreas Schwab <schwab@suse.de>
22307
22308 * regex.c (re_match_2_internal): Correct matching of eight bit
22309 characters in unibyte strings.
22310
22311 2008-03-15 Martin Rudalics <rudalics@gmx.at>
22312
22313 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22314 at end of range when it coincides with the end of the buffer.
22315
22316 2008-03-14 Eli Zaretskii <eliz@gnu.org>
22317
22318 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22319
22320 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22321
22322 2008-03-14 Jason Rumney <jasonr@gnu.org>
22323
22324 * editfns.c (initial_tz): New variable.
22325 (syms_of_editfns): Initialize it.
22326 (Fset_time_zone_rule): Set it when first called.
22327 Use it when TZSTRING is nil.
22328
22329 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22330 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22331 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22332 (globals_of_w32fns): Initialize them.
22333 (compute_tip_xy): Use them to position tooltips.
22334
22335 2008-03-14 Glenn Morris <rgm@gnu.org>
22336
22337 * emacs.c (main): Revert previous change.
22338 (standard_args): Revert -internal-script back to -scriptload,
22339 and remove the long-option form.
22340
22341 2008-03-13 Glenn Morris <rgm@gnu.org>
22342
22343 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22344 Remove option -enable-font-backend.
22345
22346 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22347
22348 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22349
22350 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22351
22352 * xterm.c (x_connection_closed): For GTK: If this is the last
22353 terminal just exit without closing the display.
22354
22355 2008-03-11 Jason Rumney <jasonr@gnu.org>
22356
22357 * w32font.c (w32font_full_name): Use floor to round.
22358
22359 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22360
22361 * sound.c (alsa_configure): Declare vol at beginning of block.
22362
22363 * fontset.c (Ffontset_info): Remove extra semicolon.
22364
22365 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22366
22367 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22368 size of resulting string.
22369
22370 2008-03-10 Jason Rumney <jasonr@gnu.org>
22371
22372 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22373
22374 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22375
22376 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22377 Don't pretend as if characters with display property haven't been
22378 consumed for string-replacing-string case.
22379
22380 2008-03-08 Kim F. Storm <storm@cua.dk>
22381
22382 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22383 (get_next_display_element, next_element_from_string)
22384 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22385
22386 2008-03-08 Andreas Schwab <schwab@suse.de>
22387
22388 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22389
22390 2008-03-06 Jason Rumney <jasonr@gnu.org>
22391
22392 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22393 when charset not specified. Only translate ANSI to unicode when
22394 font_type is truetype.
22395 (w32font_coverage_ok): New function.
22396 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22397
22398 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22399
22400 * lread.c (Fread_char): Resolve modifiers.
22401 (Fread_char_exclusive): Likewise.
22402
22403 * character.c (char_resolve_modifier_mask): New function.
22404 (char_string): Use char_resolve_modifier_mask.
22405 (Fchar_resolve_modifiers): New function.
22406 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22407 function.
22408
22409 2008-03-04 Jason Rumney <jasonr@gnu.org>
22410
22411 * makefile.w32-in: Always include w32font.c in the build.
22412 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22413
22414 2008-03-04 Andreas Schwab <schwab@suse.de>
22415
22416 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22417 (versionclean): Likewise.
22418
22419 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
22420
22421 * .cvsignore: Add oo.
22422
22423 2008-03-03 Andreas Schwab <schwab@suse.de>
22424
22425 * coding.c (decode_coding_object): Inhibit gap shrinking while
22426 decoding in place.
22427
22428 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22429
22430 * w32term.c: Remove unused include "gnu.h".
22431 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22432
22433 * gnu.h: Rename to ...
22434 * emacs-icon.h: ... this.
22435 * xterm.c: Use emacs-icon.h instead of gnu.h.
22436 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22437
22438 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
22439
22440 * w32font.c: Include math.h.
22441
22442 2008-03-03 Jason Rumney <jasonr@gnu.org>
22443
22444 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22445 Compute options separately.
22446 (w32font_open_internal): Set glyph_idx before caching metrics.
22447
22448 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22449 Define if system headers don't.
22450 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22451 (w32font_encode_char): Don't declare here.
22452
22453 * w32font.c (Quniscribe, QCformat): New symbols.
22454 (syms_of_w32font): Define them.
22455 (w32font_has_char): Indicate uncertainty.
22456 (w32font_encode_char): Encode as glyph point. Make static.
22457 (recompute_cached_metrics): New function.
22458 (w32font_open_internal): Use it. Set font to use glyph points
22459 initially. Set format based on type of font.
22460 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22461 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22462 on it. Set format based on information available here.
22463 (add_font_entity_to_list): Identify backend based on opentype_only.
22464
22465 2008-03-02 Andreas Schwab <schwab@suse.de>
22466
22467 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22468
22469 * coding.c (decode_coding_big5, produce_chars):
22470 Fix typos in last change.
22471
22472 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22473
22474 * gnu.h: New icon.
22475
22476 2008-03-02 Kenichi Handa <handa@m17n.org>
22477
22478 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22479 `dos', don't decode '\r' if that is the last in the source.
22480 (decode_coding_utf_16, decode_coding_emacs_mule)
22481 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22482 (decode_coding_raw_text, decode_coding_charset): Likewise.
22483 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22484
22485 2008-03-01 Jason Rumney <jasonr@gnu.org>
22486
22487 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22488
22489 2008-03-01 Kim F. Storm <storm@cua.dk>
22490
22491 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22492
22493 2008-03-01 Jason Rumney <jasonr@gnu.org>
22494
22495 * w32font.c (w32font_full_name): New function.
22496 (w32font_open_internal): Use it.
22497
22498 2008-03-01 Kim F. Storm <storm@cua.dk>
22499
22500 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22501
22502 2008-03-01 Jason Rumney <jasonr@gnu.org>
22503
22504 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22505
22506 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22507
22508 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22509 xg_frame_resized when the event is for the edit widget.
22510
22511 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
22512
22513 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22514 set_char_size.
22515 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
22516 operations on widgets here. Just set frame size if needed.
22517 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22518 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22519 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22520 the whole frame.
22521 (xg_create_tool_bar): Move attachment of the tool bar to
22522 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22523 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22524
22525 2008-03-01 Jason Rumney <jasonr@gnu.org>
22526
22527 * w32fns.c (w32_msg_pump): Disable debug code.
22528
22529 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22530
22531 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22532
22533 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22534
22535 * xdisp.c (next_overlay_string): Don't set
22536 overlay_strings_at_end_processed_p if we're currently reading from
22537 a display string.
22538
22539 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22540
22541 * xdisp.c (get_overlay_strings_1): Fix typo.
22542
22543 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22544
22545 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22546
22547 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22548
22549 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22550
22551 * xdisp.c (display_mode_element): Cancel the previous change.
22552 (decode_mode_spec): Likewise.
22553 (handle_auto_composed_prop): Don't make composition if it->string
22554 is a string.
22555
22556 2008-02-27 Kim F. Storm <storm@cua.dk>
22557
22558 * lisp.h (GLYPH): Change type from int to struct with separate char
22559 and face_id members.
22560 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22561 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22562 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22563 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22564 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22565 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22566 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22567 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22568 handle new Lisp glyph code encoding, either an integer or a cons.
22569
22570 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22571 (GLYPH_ALIAS): Delete.
22572 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22573 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22574 (GLYPH_FROM_CHAR): Replace macro by ...
22575 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22576
22577 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22578 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22579 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22580 (GLYPH_INVALID_P): New macro.
22581 (spec_glyph_lookup_face): Update prototype.
22582
22583 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22584 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22585 new glyph code encoding.
22586 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22587 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22588
22589 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22590 Adapt to new glyph type and new glyph code encoding.
22591
22592 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22593
22594 * indent.c (current_column, current_column_1, Fmove_to_column)
22595 (compute_motion): Adapt to new glyph code encoding.
22596
22597 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22598
22599 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
22600
22601 * process.c (wait_reading_process_output): Check for window
22602 changes caused by timers.
22603 Suggested by Johan Bockgård.
22604
22605 2008-02-27 Glenn Morris <rgm@gnu.org>
22606
22607 * emacs.c (USAGE1): Add `--disable-font-backend'.
22608
22609 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22610
22611 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22612 is made to the buffer.
22613
22614 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22615
22616 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22617 (face_at_string_position):
22618 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22619 (face_at_string_position):
22620 * xdisp.c (display_string, next_overlay_change):
22621 * buffer.h (overlays_at):
22622 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22623 Update callers.
22624
22625 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
22626
22627 * editfns.c (Fformat): Doc fix.
22628
22629 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
22630
22631 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22632 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22633 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22634
22635 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22636
22637 * buffer.c (Fbuffer_swap_text): New function.
22638 (syms_of_buffer): Defsubr it.
22639
22640 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
22641
22642 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22643
22644 2008-02-25 Jason Rumney <jasonr@gnu.org>
22645
22646 * w32font.c (w32font_draw): Draw one character at a time when padding.
22647
22648 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22649
22650 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22651 Handle a nil arg. Use run_window_configuration_change_hook.
22652 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22653 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22654 Use run_window_configuration_change_hook.
22655
22656 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22657
22658 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22659 1-pixel width.
22660
22661 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22662
22663 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22664 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22665 if the glyph in the font is zero pixel with.
22666
22667 * dispextern.h (struct glyph_string): New member padding_p.
22668
22669 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22670
22671 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22672
22673 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22674
22675 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22676
22677 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22678
22679 2008-02-25 Jason Rumney <jasonr@gnu.org>
22680
22681 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22682
22683 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22684
22685 Allow fine-grained image-cache flushing.
22686 * dispextern.h (struct image): Add `dependencies' field.
22687 (clear_image_caches): Change arg to Lisp_Object.
22688 * image.c (make_image): Initialize `dependencies' field.
22689 (clear_image_cache): Change arg to allow fine-grained flushing.
22690 Perform the flush even if image-cache-eviction-delay is nil.
22691 (clear_image_caches): Change arg to Lisp_Object.
22692 (Fclear_image_cache): Expand meaning of the argument.
22693 (mark_image): Mark `dependencies' field.
22694 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22695 (lface_hash): Use XHASH rather than XFASTINT.
22696 (face_at_buffer_position): Fix int -> EMACS_INT position.
22697 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22698 (select_frame_for_redisplay): Remove code duplication.
22699 (redisplay_internal): Adapt arg to call to clear_image_caches.
22700
22701 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22702
22703 * s/vms4-0.h:
22704 * s/vms4-2.h:
22705 * s/vms4-4.h:
22706 * s/vms5-5.h: Remove, unused.
22707
22708 * s/irix5-2.h:
22709 * s/irix6-0.h:
22710 * s/riscos5.h:
22711 * s/mach-bsd4-3.h:
22712 * m/mips4.h: Remove files for obsolete systems.
22713
22714 * Makefile.in:
22715 * filelock.c:
22716 * unexmips.c:
22717 * m/hp9000s300.h:
22718 * m/iris4d.h:
22719 * s/aix3-1.h:
22720 * s/hpux.h:
22721 * s/msdos.h:
22722 * s/usg5-0.h:
22723 * s/usg5-2-2.h:
22724 * s/usg5-2.h:
22725 * s/usg5-3.h: Remove references to obsolete variables.
22726
22727 * s/irix5-0.h: Remove, move all the contents ...
22728 * s/irix6-5.h: ... here. Simplify.
22729 * config.in: Regenerate.
22730
22731 2008-02-24 Jason Rumney <jasonr@gnu.org>
22732
22733 * w32term.c (x_draw_glyph_string_background): Clear the background
22734 manually when cleartype is in use.
22735 (x_draw_glyph_string_foreground): Draw text transparently when
22736 cleartype is in use.
22737
22738 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22739 a font into it unless we have to.
22740
22741 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22742
22743 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22744 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
22745
22746 2008-02-18 Jason Rumney <jasonr@gnu.org>
22747
22748 * w32fns.c (Fw32_shell_execute): Encode parameters.
22749
22750 2008-02-09 Eli Zaretskii <eliz@gnu.org>
22751
22752 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22753
22754 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
22755
22756 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22757
22758 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22759
22760 * xterm.c (x_set_offset): Don't change the gravity if
22761 CHANGE_GRAVITY is -1.
22762
22763 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
22764
22765 * fileio.c (auto_save_error_occurred): New var.
22766 (auto_save_error): Set it.
22767 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22768 error occurred.
22769
22770 2008-02-23 Eli Zaretskii <eliz@gnu.org>
22771
22772 * w32.c (globals_of_w32): Add initializations for
22773 g_b_init_get_sid_sub_authority and
22774 g_b_init_get_sid_sub_authority_count.
22775
22776 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22777
22778 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22779 (font_parse_xlfd): Use them for sanity check.
22780 (Finternal_set_font_style_table): Make sure the table is bijective.
22781
22782 Consolidate the image_cache to the terminal struct.
22783 * termhooks.h (P_): Remove redundant def.
22784 (struct terminal): New field `image_cache'.
22785 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22786 of FRAME_X_IMAGE_CACHE.
22787 * xterm.h (struct x_display_info): Remove image_cache field.
22788 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22789 * w32term.h (struct w32_display_info): Remove image_cache field.
22790 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22791 * macterm.h (struct mac_display_info): Remove image_cache field.
22792 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22793 * xterm.c (x_term_init):
22794 * w32term.c (w32_term_init):
22795 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22796 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22797 Remove declarations.
22798 (clear_image_caches, mark_image_cache): New declarations.
22799 * xfaces.c (clear_face_cache):
22800 * xdisp.c (redisplay_internal): Use clear_image_caches.
22801 * image.c (clear_image_cache): Don't check that a frame is on
22802 a window-system before checking if it shares the same cache.
22803 (clear_image_caches): New function.
22804 (Fclear_image_cache): Use it.
22805 (mark_image): Move from allo.c.
22806 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22807 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22808 (mark_object): Don't call mark_image_cache for frames.
22809 (mark_terminals): Call mark_image_cache.
22810
22811 * lisp.h (Fdelete_terminal): Declare.
22812
22813 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22814 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22815 wrong_type_argument.
22816
22817 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22818
22819 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22820 malayalam.el, and tamil.el. Add sinhala.el.
22821
22822 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22823
22824 * xterm.c (x_connection_closed): Consolidate identical tests.
22825 (x_delete_terminal): Don't crash if called via x_connection_closed.
22826
22827 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22828
22829 * xdisp.c (decode_mode_spec): New arg string.
22830 (display_mode_element): Adjust for the above change.
22831
22832 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22833
22834 * callint.c (Fcall_interactively): Use AREF.
22835
22836 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22837
22838 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22839
22840 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22841
22842 * xfns.c (Fx_show_tip): Set string to " " if empty.
22843
22844 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22845
22846 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22847 with Qt.
22848
22849 2008-02-17 Kenichi Handa <handa@m17n.org>
22850
22851 * ftfont.c (ftfont_shape): Return Lispy number.
22852
22853 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22854 for GCs.
22855 (Finternal_set_font_selection_order): Call font_update_sort_order
22856 only when enable_font_backend is set.
22857 (realize_x_face): Set face->font_info to that of default face only
22858 when enable_font_backend is set.
22859
22860 * xdisp.c (handle_composition_prop): Set it->c to the fist
22861 character of the composed region.
22862 (fill_composite_glyph_string): Set base_face->font_info to
22863 s->font_info. Get a face for ascii from base_face->ascii_face.
22864 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22865 with a face already decided.
22866 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22867 non-negative.
22868 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22869 call font_prepare_composition unconditionally.
22870
22871 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22872
22873 * xterm.h (struct x_display_info): New member font.
22874
22875 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22876 (x_set_mouse_face_gc, x_new_font): Likewise.
22877 (x_term_init): Setup display_info->font.
22878 (x_delete_terminal): Free display_info->font.
22879
22880 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22881
22882 * ftxfont.c (ftxfont_default_fid): Delete it.
22883 (ftxfont_open): Set xfont->fid to 0.
22884 (ftxfont_end_for_frame): Clear data specific to the frame and the
22885 font-driver.
22886
22887 * xftfont.c (xftfont_default_fid): Delete it.
22888 (xftfont_open): Set xfont->fid to 0.
22889
22890 * fontset.c (FONTSET_OBJLIST): New macro.
22891 (fontset_find_font): Update font-object list of the fontset.
22892 (free_realized_fontset): New function.
22893 (free_face_fontset): Call free_realized_fontset.
22894 (Ffont_info): Call font_close_object only when enable_font_backend
22895 is set.
22896
22897 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22898 [HAVE_NTGUI]: Include w32term.h.
22899 [MAC_OS]: Include macterm.ch.
22900 (font_otf_ValueRecord): Use make_number.
22901 (font_finish_cache): Fix handling of reference count.
22902 (font_clear_cache): Update num_fonts.
22903 (font_open_entity): Update smallest_char_width and
22904 smallest_font_height of the frame.
22905 (font_close_object): Update num_fonts.
22906 (Fclear_font_cache): Fix finding the target cache data.
22907
22908 2008-02-16 Glenn Morris <rgm@gnu.org>
22909
22910 * fontset.c (Finternal_char_font): Fix compilation warning.
22911
22912 2008-02-16 Eli Zaretskii <eliz@gnu.org>
22913
22914 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22915 instead of char arrays. Enlarge the size of array passed to
22916 get_token_information.
22917
22918 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22919 warnings.
22920
22921 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22922
22923 * .gdbinit: Don't set `args', it breaks gdb --args.
22924
22925 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22926
22927 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22928 within a narrowed buffer.
22929
22930 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22931
22932 * coding.c (decode_coding_object, encode_coding_object):
22933 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22934
22935 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22936
22937 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22938 hardcoding 1.
22939 (detect_coding_system):
22940 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22941 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22942 * insdel.c (insert_from_gap):
22943 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22944 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22945 (string_to_multibyte):
22946 * character.c (chars_in_text, multibyte_chars_in_text):
22947 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22948
22949 * character.h (FETCH_STRING_CHAR_ADVANCE)
22950 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22951 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22952 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22953
22954 * casefiddle.c (casify_region): Only call after-change and composition
22955 functions on the part of the region that was changed.
22956
22957 * keyboard.c (read_avail_input):
22958 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22959
22960 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22961
22962 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22963 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22964
22965 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
22966
22967 * w32menu.c (push_submenu_start, push_submenu_end)
22968 (push_left_right_boundary, push_menu_pane, push_menu_item):
22969 * keyboard.c (read_key_sequence): Don't pass args with side effects
22970 to AREF, it fails when compiling with -DENABLE_CHECKING.
22971
22972 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22973
22974 * Makefile.in (${lispsource}international/charprop.el):
22975 Delete this target.
22976
22977 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22978 emacs-unicode-2.
22979
22980 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22981
22982 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22983
22984 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22985
22986 * frame.c (Qnoelisp): New symbol.
22987 (syms_of_frame): Initialize it.
22988 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22989 harmless Elisp code, from a strong `force' from x_connection_closed.
22990 * frame.h (Qnoelisp): Declare.
22991 * xterm.c (x_connection_closed): Pass `noelisp'.
22992
22993 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22994 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22995 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22996 rather than `int' for the type of `type'.
22997
22998 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22999
23000 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23001
23002 * Makefile.in (GNUC): Remove support for gcc-1.x.
23003
23004 2008-02-10 Richard Stallman <rms@gnu.org>
23005
23006 * lisp.h (ASET): Use AREF, not ASLOT.
23007
23008 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23009
23010 * lisp.h (ASET): Check bounds.
23011
23012 2008-02-10 Glenn Morris <rgm@gnu.org>
23013
23014 * buffer.c (mode-name): Doc fix.
23015
23016 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23017
23018 * Makefile.in:
23019 * emacs.c:
23020 * gmalloc.c:
23021 * keyboard.c:
23022 * lisp.h:
23023 * m/ibm370aix.h:
23024 * process.c:
23025 * regex.c:
23026 * s/hpux.h:
23027 * sysdep.c:
23028 * sysselect.h:
23029 * systty.h:
23030 * unexec.c:
23031 * w32term.c:
23032 * xsmfns.c:
23033 * xterm.c: Remove code that deals with obsolete variables.
23034
23035 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23036
23037 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23038 nothing else needs it anymore.
23039
23040 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23041
23042 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23043 instead of unibyte_char_to_multibyte.
23044
23045 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23046
23047 * s/gnu-linux.h: Remove commented out code.
23048
23049 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23050
23051 * Makefile.in: Update what RMS says about using autoconf.
23052 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23053 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23054 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23055 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23056
23057 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23058
23059 * keymap.c (Fkey_description): Move side effect outside of macro call.
23060
23061 * xfaces.c (Finternal_make_lisp_face):
23062 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23063
23064 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23065 (syms_of_fontset): Use ASET.
23066
23067 * fns.c (concat): Move side effect outside of macro call.
23068 (hash_clear): Use ASET.
23069
23070 2008-02-08 Richard Stallman <rms@gnu.org>
23071
23072 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23073 If FORCE, and frame has a surrogate minibuffer for another frame,
23074 delete the other frame first.
23075
23076 2008-02-07 Timo Savola <timo.savola@iki.fi>
23077
23078 * xterm.c (x_detect_focus_change): Handle embed client message.
23079 (handle_one_xevent): Ditto.
23080 (handle_one_xevent): If embedded and we get a button press/release,
23081 request focus.
23082 (xembed_set_info, xembed_send_message): New functions.
23083 (x_make_frame_visible): Call xembed_set_info if embedded.
23084 (x_make_frame_invisible): Call xembed_set_info if embedded.
23085 (x_term_init): Initialize Xatom_XEMBED.
23086 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23087 (x_iconify_frame): Ditto.
23088
23089 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23090 (enum xembed_info, enum xembed_message, enum xembed_focus)
23091 (enum xembed_modifier, enum xembed_accelerator): New.
23092 (xembed_set_info, xembed_send_message): Declare.
23093 (FRAME_X_EMBEDDED_P): New.
23094
23095 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23096 gtk_plug_new.
23097
23098 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23099 window ID of a frame.
23100 (x_window): Reparent frame if embedded.
23101 (Fx_create_frame): Don't set border width if embedded.
23102
23103 * emacs.c (USAGE3): Add --parent-id.
23104 (standard_args): Ditto.
23105
23106 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23107
23108 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23109
23110 2008-02-07 Jim Meyering <meyering@redhat.com>
23111
23112 Use "do...while (0)", not "if (1)...else" in macro definitions.
23113 The latter provokes a warning from gcc about the empty else, when
23114 followed by ";". Also, without that trailing semicolon, it would
23115 silently swallow up any following statement.
23116 * syntax.h (SETUP_SYNTAX_TABLE)
23117 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23118 * buffer.h (DECODE_POSITION): Likewise.
23119 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23120 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23121 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23122 (FETCH_CHAR_ADVANCE): Likewise.
23123 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23124
23125 2008-02-07 Jim Meyering <meyering@redhat.com>
23126
23127 * lread.c [lint]: Don't include <sys/inode.h>.
23128
23129 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23130
23131 * xselect.c (x_handle_dnd_message):
23132 * xmenu.c (digest_single_submenu, xmenu_show):
23133 * xdisp.c (with_echo_area_buffer_unwind_data)
23134 (format_mode_line_unwind_data, unwind_format_mode_line)
23135 (display_menu_bar):
23136 * eval.c (Ffetch_bytecode):
23137 * doc.c (store_function_docstring):
23138 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23139 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23140 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23141
23142 2008-02-07 Kenichi Handa <handa@m17n.org>
23143
23144 * ftxfont.c (ftxfont_open): Don't set
23145 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23146
23147 * ftfont.c (ftfont_open): Fix previous change.
23148
23149 2008-02-06 Jason Rumney <jasonr@gnu.org>
23150
23151 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23152 Use cached metrics for ASCII characters.
23153 (w32font_open_internal): Don't set font's owning_frame.
23154 Cache metrics for ASCII characters.
23155
23156 * w32font.h (struct w32font_info): Add ascii_metrics.
23157 Remove owning_frame.
23158
23159 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23160
23161 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23162 to negative value.
23163
23164 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23165
23166 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23167
23168 * charset.c (syms_of_charset): Set QCtest and Qeq.
23169
23170 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23171
23172 * process.c (Fstart_process):
23173 * callproc.c (Fcall_process): Handle the case where
23174 Funhandled_file_name_directory returns nil.
23175
23176 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23177 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23178 * font.c (check_gstring): Use them and AREF to access the vector before
23179 we know it's really a gstring.
23180 (Ffont_shape_text): Fix typo.
23181 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23182
23183 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23184 Declare.
23185
23186 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23187
23188 2008-02-05 Jason Rumney <jasonr@gnu.org>
23189
23190 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23191 Set smallest_font_height and smallest_char_width in display info.
23192
23193 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23194
23195 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23196
23197 2008-02-05 Miles Bader <miles@gnu.org>
23198
23199 * xfaces.c (get_lface_attributes, merge_named_face)
23200 (lookup_named_face, lookup_derived_face, realize_named_face):
23201 Revert 2008-02-01 change by cyd@stupidchicken.com.
23202
23203 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23204
23205 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23206 fallback fonts.
23207 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23208
23209 2008-02-04 Jason Rumney <jasonr@gnu.org>
23210
23211 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23212 set full_name.
23213 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23214
23215 2008-02-03 Jason Rumney <jasonr@gnu.org>
23216
23217 * makefile.w32-in (OBJ1): Include font.o here.
23218 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23219
23220 2008-02-02 Jason Rumney <jasonr@gnu.org>
23221
23222 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23223
23224 2008-02-01 Jason Rumney <jasonr@gnu.org>
23225
23226 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23227
23228 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23229
23230 2008-02-01 Andreas Schwab <schwab@suse.de>
23231
23232 * Makefile.in (shortlisp, lisp): Update for rename of
23233 ../lisp/language/myanmar.el.
23234
23235 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
23236
23237 * xfaces.c (get_lface_attributes): Delete function.
23238 (merge_named_face, lookup_named_face, lookup_derived_face)
23239 (realize_named_face): Call lface_from_face_name directly, and use
23240 the fact that merge_face_vectors does not alter its FROM argument.
23241
23242 2008-02-01 Jason Rumney <jasonr@gnu.org>
23243
23244 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23245 input in the default locale. Handle non-Unicode multibyte input.
23246
23247 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23248
23249 * fontset.c (reorder_font_vector): Exclude nil elements from the
23250 font group. Don't try multiple fonts.
23251 (fontset_font): Adjust for the above change.
23252 (Finternal_char_font): Return nil if the found font doesn't
23253 contain the character ch.
23254
23255 * Makefile.in (lisp, shortlisp): Add cham.el.
23256
23257 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23258
23259 * font.h (FONTP): Make it return 1 also for a font-object.
23260
23261 * .gdbinit (xfontset): New function.
23262
23263 * font.c (font_find_for_lface): Check if the character C is
23264 supported or not only for the first font.
23265
23266 * fontset.c (reorder_font_vector): Fix typo.
23267 (fontset_find_font): Don't add a font-spec specifying a script.
23268 Use 0 (not Qt) for the indication of empty font-group. Change the
23269 format of RFONT-DEF. Return Qt if no font in the font-group
23270 support the character.
23271 (fontset_font): Adjust for the above change. If no font was
23272 found the character, remember that.
23273 (face_for_char): Adjust for the change of RFONT-DEF.
23274 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23275 no font for the target.
23276 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23277
23278 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23279
23280 * font.c (font_load_for_face): Handle the case that the font in
23281 face->lface is a string.
23282
23283 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23284
23285 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23286
23287 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23288
23289 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23290 Fix previous change. If the frame is not on a window system,
23291 signal an error.
23292
23293 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23294
23295 * coding.c (decode_coding_object, encode_coding_object):
23296 Adjust marker positions after conversion.
23297
23298 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23299
23300 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23301
23302 * font.c (font_find_for_lface): Fix the handling of the return
23303 value of font_has_char.
23304 (Ffont_shape_text): Fix previous change.
23305
23306 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23307 (fontset_ref_and_range): Delete it.
23308 (fontset_find_font): Call char_table_ref_and_range instead of
23309 FONTSET_REF_AND_RANGE.
23310 (make_fontset): Don't setup font groups of Latin here.
23311 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23312 (new_fontset_from_font): Make the specified font the default for
23313 all Latin characters.
23314
23315 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23316
23317 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23318 is on a window system before accessing the fontset of the frame.
23319
23320 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23321
23322 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23323
23324 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23325 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23326
23327 * font.c (Ffont_shape_text): If the font driver doesn't have a
23328 shaper function, make zero-width glyphs to have at least one-pixel
23329 width. Fix setting of `to' field of glyphs.
23330
23331 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23332
23333 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23334 glyphs.
23335
23336 * font.h (struct font_driver): Improve docstring of member `shape'.
23337
23338 2008-02-01 Kenichi Handa <handa@m17n.org>
23339
23340 * composite.c (syms_of_composite): Fix docstring of
23341 auto-composition-function.
23342
23343 * font.h (LGLYPH_SIZE): New macro.
23344
23345 * font.c (Ffont_fill_gstring): Stop filling when a character not
23346 supported by the font is found.
23347 (Ffont_shape_text): When a shape callback function returns nil,
23348 try at most two more times with larger gstring.
23349 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23350
23351 * xdisp.c (handle_auto_composed_prop): Change the argument to
23352 auto-composition-function.
23353
23354 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23355 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23356 Lispy glyph and store it in the lgstring.
23357
23358 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23359
23360 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23361
23362 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23363
23364 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23365
23366 * fontset.c (Vfont_encoding_charset_alist): New variable.
23367 (syms_of_fontset): DEFVAR it.
23368 (reorder_font_vector, fontset_find_font): Optimize for the case of
23369 no need of reordering.
23370 (face_for_char): Map the charset property by
23371 Vfont_encoding_charset_alist.
23372
23373 2008-02-01 Jason Rumney <jasonr@gnu.org>
23374
23375 * w32font.c (logfonts_match): Don't check adstyle here.
23376 (font_matches_spec): Check here against physical font instead.
23377 (add_font_entity_to_list): Avoid some substitutions.
23378
23379 * font.c (font_parse_fcname): Default weight and slant to normal.
23380 (font_score): Prefer normal fonts if weight or slant unspecified.
23381 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23382 match freetype scores.
23383
23384 2008-02-01 Jason Rumney <jasonr@gnu.org>
23385
23386 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23387 font, as it may have been deleted.
23388 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23389 most common hyphenless variation.
23390 (logfonts_match): Check generic family.
23391 (font_matches_spec): Don't check generic family here.
23392 (fill_in_logfont): Set generic family based on adstyle.
23393
23394 * w32font.h (w32font_get_cache): Update declaration.
23395
23396 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23397
23398 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23399
23400 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23401 If none of the new drivers are available, call font_update_drivers
23402 with the old drivers.
23403
23404 * w32font.c (w32font_get_cache): Adjust the argument type.
23405
23406 * xfont.c (xfont_get_cache): Adjust the argument type.
23407
23408 * font.h (struct font_driver): Change argument type of get_cache.
23409
23410 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23411
23412 * font.c (Ffont_get): Fix arguments to Fassoc.
23413 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23414 (font_clear_cache): New function.
23415 (font_list_entities, font_matching_entity): Use font_get_cache.
23416 (font_update_drivers): Call font_clear_cache when finishing a driver.
23417
23418 * fontset.c (fontset_find_font): Fix previous change.
23419
23420 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23421
23422 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23423 dpyinfo->font_table.
23424 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23425 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23426
23427 * font.c (font_at): Handle the case that the arg C is negative.
23428 Handle the unibyte case.
23429 (Ffont_at): Call font_at with the arg C -1.
23430
23431 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23432 the position here, and call font_at with the arg C -1.
23433 Don't check the range of the existing composition at the point.
23434
23435 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23436
23437 * fontset.c (fontset_add): New args charset_id and family.
23438 Change caller.
23439 (load_font_get_repertory, fontset_find_font): Assume that
23440 font_spec is always a font-spec object.
23441 (Fset_fontset_font): Always store a font-spec object in a fontset.
23442
23443 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23444 instead of get_property_and_range.
23445
23446 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23447
23448 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23449 (xftfont_open): Don't keep locking face.
23450 (xftfont_close): Don't unlock face.
23451 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23452
23453 * fontset.c (fontset_find_font): Don't prefer a font of
23454 supplementary charset.
23455
23456 2008-02-01 Kenichi Handa <handa@m17n.org>
23457
23458 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23459 script, langsys_tag to langsys, new member script.
23460 (OTF_TAG_STR): Terminate by '\0'.
23461 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
23462 listing to the script specified in that property. Fix arg to
23463 OTF_check_features.
23464
23465 2008-02-01 Jason Rumney <jasonr@gnu.org>
23466
23467 * w32font.h: New file.
23468
23469 * w32font.c: Include it.
23470 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23471 (w32font_open): Set owning_frame.
23472 (w32font_text_extents): Use owning_frame.
23473 (struct font_callback_data): Add opentype_only field.
23474 (add_font_entity_to_list): Use it to filter fonts.
23475 Don't check against full name.
23476 (w32font_list_internal): New function.
23477 (w32font_list): Use it.
23478 (w32font_match_internal): New function.
23479 (w32font_match): Use it.
23480 (w32font_open_internal): New function.
23481 (w32font_open): Use it.
23482 (w32font_get_cache, w32font_close, w32font_has_char)
23483 (w32font_encode_char, w32font_text_extents, w32font_draw):
23484 Make non-static.
23485
23486 * makefile.w32-in (w32font.o): Depend on w32font.h.
23487
23488 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23489
23490 * charset.c (Fdefine_charset_internal): Record a supplementary
23491 charset at the tail of Vcharset_order_list.
23492
23493 * font.c (Ffont_shape_text): Fix the return value.
23494
23495 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23496
23497 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23498
23499 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23500
23501 * ftfont.c (struct OpenTypeSpec): New struct.
23502 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23503 (ftfont_get_open_type_spec): New function.
23504 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23505
23506 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23507
23508 2008-02-01 Jason Rumney <jasonr@gnu.org>
23509
23510 * w32font.c (add_font_entity_to_list): Compare only the beginning
23511 of full name.
23512
23513 2008-02-01 Kenichi Handa <handa@m17n.org>
23514
23515 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23516 Never return HANDLED_RECOMPUTE_PROPS.
23517
23518 2008-02-01 Kenichi Handa <handa@m17n.org>
23519
23520 * font.c (font_gstring_produce): Delete it.
23521
23522 * composite.h (COMPOSITION_METHOD):
23523 Handle COMPOSITION_WITH_GLYPH_STRING.
23524
23525 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23526
23527 * xfont.c (Qx): Delete.
23528 (syms_of_xfont): Don't initialize Qx.
23529
23530 * composite.h (enum composition_method):
23531 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23532
23533 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23534
23535 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23536 (choose_face_font): Accept new form of font-spec.
23537
23538 * frame.h (font_driver_list): Declare it unconditionally.
23539 (struct frame): Define members font_driver_list and font_data_list
23540 unconditionally.
23541
23542 * fontset.c: Include "font.h" unconditionally.
23543 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23544 (Fset_fontset_font): Accept a font-spec object.
23545
23546 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23547 PIXEL_SIZE part a wild card.
23548
23549 * dispextern.h (struct glyph_string): Define members clip and
23550 num_clips unconditionally.
23551 (struct face): Define members font_info and extra unconditionally.
23552
23553 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23554 ftfont_info only when HAVE_LIBOTF is defined.
23555
23556 2008-02-01 Andreas Schwab <schwab@suse.de>
23557
23558 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23559 and end.
23560
23561 2008-02-01 Jason Rumney <jasonr@gnu.org>
23562
23563 * w32font.c (w32font_driver): Add new fields.
23564
23565 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23566
23567 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23568 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23569 (LIBES): Add @M17N_FLT_CFLAGS@.
23570
23571 * composite.c (compose_text): Don't treat the new style
23572 composition specially.
23573
23574 * emacs.c (main): Call syms_of_font unconditionally.
23575
23576 * font.h (FONT_ENTITY_NOT_LOADABLE)
23577 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23578 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23579 (struct font_driver): New member shape.
23580 (font_registry_charsets): Extern it.
23581 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23582 (font_otf_capability, font_drive_otf): Delete their externs.
23583
23584 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23585 (font_charset_alist, font_registry_charsets): Move from xfont.c
23586 and rename.
23587 (font_prop_validate_otf): New function.
23588 (font_property_table): Register it for QCotf.
23589 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23590 (font_drive_otf): Delete.
23591 (font_prepare_composition): New arg F. Adjust for the change of
23592 lispy gstring.
23593 (font_find_for_lface): New arg C.
23594 (font_load_for_face): Adjust for the change of font_find_for_lface.
23595 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23596 lispy gstring.
23597 (Ffont_shape_text): New function.
23598 (Fopen_font): If the font size is not given, use 12-pixel.
23599 (Ffont_at): New arg STRING.
23600 (syms_of_font): Initialize font_charset_alist.
23601 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23602 conditionally.
23603
23604 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23605 fonts of the same font-spec. Change the format of RFONT-DEF.
23606 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23607 Adjust for the change of RFONT-DEF.
23608 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23609
23610 * ftfont.h: New file.
23611
23612 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23613 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23614 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23615 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23616 font_otf_capability and font_drive_otf, set ftfont_shape.
23617 (ftfont_list): Adjust for the change of :otf property value.
23618 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23619 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23620 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23621 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23622 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23623 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23624
23625 * w32term.c (x_draw_composite_glyph_string_foreground):
23626 Adjust for the change of lispy gstring.
23627
23628 * xdisp.c (handle_composition_prop): Adjust for the change of
23629 lispy gstring. Call a function for auto-composition with the
23630 third arg it->window.
23631 (fill_composite_glyph_string): Adjust for the change of lispy string.
23632 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23633
23634 * xfaces.c (set_font_frame_param): Adjust for the change of
23635 font_find_for_lface.
23636
23637 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23638 (xfont_registry_charsets): Likewise. Change caller.
23639 (syms_of_xfont): Don't handle x_font_charset_alist.
23640
23641 * xftfont.c: Include "ftfont.h".
23642 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23643 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23644 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23645 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23646 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23647 Set xftfont_driver.shape to xftfont_shape.
23648
23649 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23650 the change of lispy gstring.
23651
23652 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23653
23654 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23655
23656 2008-02-01 Jason Rumney <jasonr@gnu.org>
23657
23658 * w32font.c (w32font_draw): Fill background manually.
23659
23660 2008-02-01 Jason Rumney <jasonr@gnu.org>
23661
23662 * font.c (Qfontp): Remove unused symbol.
23663 (QCantialias): New symbol.
23664 (syms_of_font): Define it.
23665 (font_property_table): Set a validator for QCantialias.
23666
23667 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23668 Define if not already.
23669 (QCfamily): Share with xfaces.c.
23670 (Qstandard, Qsubpixel, Qnatural): New symbols.
23671 (syms_of_w32font): Define them. Don't define QCfamily here.
23672 (w32_antialias_type, lispy_antialias_type): New functions.
23673 (w32_enumfont_pattern_entity): New arg requested_font.
23674 Set antialias parameter if non-default was requested.
23675 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23676
23677 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23678
23679 * lread.c (read1): Undo the previous change.
23680
23681 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23682
23683 * frame.c (Fdelete_frame): Call font_update_drivers only when
23684 USE_FONT_BACKEND is defined.
23685
23686 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23687
23688 * font.h (struct font_bitmap): New member bits_per_pixel.
23689 (struct font_driver): New members start_for_frame and end_for_frame.
23690 (struct font_data_list): New struct.
23691 (font_put_frame_data, font_get_frame_data): Extern them.
23692
23693 * frame.h (struct frame): New member font_data_list.
23694
23695 * font.c (font_update_drivers): Call driver->start_for_frame and
23696 driver->end_for_frame at proper timings.
23697 (font_put_frame_data, font_get_frame_data): New functions.
23698 (Ffont_spec): Add usage in the docstring.
23699
23700 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23701 (Fdelete_frame): Call font_update_drivers.
23702
23703 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23704 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23705 (xftfont_get_xft_draw): New function.
23706 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23707 (xftfont_end_for_frame): New function.
23708 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23709
23710 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23711 Change argument. Cache GCs in the per-frame data.
23712 (struct ftxfont_frame_data): New struct.
23713 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23714 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23715 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23716 (ftxfont_end_for_frame): New function.
23717 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23718
23719 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23720
23721 2008-02-01 Kenichi Handa <handa@m17n.org>
23722
23723 * xselect.c (Vselection_coding_system)
23724 (Vnext_selection_coding_system): Delete them.
23725 (syms_of_xselect): Don't declare selection-coding-system and
23726 next-selection-coding-system. They are declared in select.el.
23727
23728 2008-02-01 Jason Rumney <jasonr@gnu.org>
23729
23730 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23731
23732 * w32fns.c: Include imm.h.
23733 (get_composition_string_fn, get_ime_context_fn): New optional
23734 system functions.
23735 (globals_of_w32fns): Load them from imm32.dll.
23736 (ignore_ime_char): New flag.
23737 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23738 WM_IME_ENDCOMPOSITION messages.
23739
23740 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23741 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23742
23743 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23744
23745 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23746 (READCHAR_REPORT_MULTIBYTE): New macro.
23747 (readchar): New 2nd arg MULTIBYTE.
23748 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23749 Make symbol's name multibyte according to the multibyteness of the
23750 source.
23751
23752 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23753
23754 * xfaces.c (face_for_overlay_string): Call lookup_face with
23755 correct arguments (fix of synching with the trunk).
23756
23757 2008-02-01 Kenichi Handa <handa@m17n.org>
23758
23759 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23760 (font_prop_validate_non_neg, font_prop_validate_spacing):
23761 Delete argument prop_index.
23762 (font_property_table): Change arguments to validater. Change Callers.
23763 (font_lispy_object): Delete.
23764 (font_at): Use font_find_object instead fo font_lispy_object.
23765
23766 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23767
23768 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23769 and file names.
23770
23771 2008-02-01 Jason Rumney <jasonr@gnu.org>
23772
23773 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23774 (font_matches_spec): Remove debug output.
23775 (add_font_entity_to_list): Avoid using substituted fonts.
23776
23777 2008-02-01 Jason Rumney <jasonr@gnu.org>
23778
23779 * doc.c (Fsnarf_documentation):
23780 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23781
23782 2008-02-01 Miles Bader <miles@gnu.org>
23783
23784 * dispextern.h (struct glyph_row): Only define "clip" field if
23785 HAVE_WINDOW_SYSTEM is defined.
23786
23787 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23788
23789 Fix up multi-tty merge.
23790
23791 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23792 and indentation.
23793
23794 * xfaces.c (free_realized_face, clear_face_gcs):
23795 Include font_done_for_face in the input_blocked section, just in case.
23796
23797 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23798 (get_char_face_and_encoding): Undo last change and remove the *other*
23799 duplicate definition (i.e. keep the one that's better scoped and that
23800 includes code for the font-backend).
23801
23802 * terminal.c (create_terminal): Default keyboard_coding to
23803 `no-conversion' and terminal_coding to `undecided'.
23804
23805 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23806
23807 * fontset.c (free_realized_fontsets): Check that the table entry does
23808 contain a fontset before trying to compare it to `base'.
23809
23810 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23811 syms_of_charset, and syms_of_coding earlier because init_window_once
23812 now needs Vcoding_system_hash_table to be setup.
23813
23814 * coding.h (default_buffer_file_coding): Remove.
23815
23816 * coding.c (default_buffer_file_coding): Remove.
23817 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23818 than ->symbol, and use the terminal-local coding system.
23819 (syms_of_coding): Don't setup the coding-systems that are not
23820 terminal-local.
23821 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23822
23823 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23824 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23825
23826 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23827 in chartab.c and were re-added here by mistake.
23828 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23829
23830 * doc.c (Fsnarf_documentation):
23831 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23832 src to etc.
23833
23834 * ChangeLog.10: Add mistakenly removed entry.
23835
23836 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23837
23838 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23839
23840 2008-02-01 Miles Bader <miles@gnu.org>
23841
23842 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23843 Add extra args to FACE_FOR_CHAR.
23844
23845 2008-02-01 Kenichi Handa <handa@m17n.org>
23846
23847 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23848 in sequence.
23849
23850 * chartab.c (map_sub_char_table, map_char_table): If the range
23851 contains just one character, call the function with that character
23852 even if the depth is not 3.
23853
23854 2008-02-01 Jason Rumney <jasonr@gnu.org>
23855
23856 * w32font.c (w32font_text_extents): Calculate metrics for the
23857 whole string.
23858
23859 2008-02-01 Jason Rumney <jasonr@gnu.org>
23860
23861 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23862
23863 2008-02-01 Jason Rumney <jasonr@gnu.org>
23864
23865 * w32term.c (x_set_glyph_string_clipping):
23866 Use get_glyph_string_clip_rects.
23867 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23868 Adjust for the change of struct glyph_string.
23869
23870 * w32font.c (w32font_draw): Do clipping here.
23871
23872 2008-02-01 Kenichi Handa <handa@m17n.org>
23873
23874 * xftfont.c (xftfont_draw): Adjust for the change of struct
23875 glyph_string.
23876
23877 * xterm.c (x_set_glyph_string_clipping):
23878 Use get_glyph_string_clip_rects.
23879 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23880 Adjust for the change of struct glyph_string.
23881
23882 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23883 the resulting clip(s}.
23884 (expose_overlaps): Add arg r. Change callers. Set it to
23885 row->clip temporarily.
23886 (expose_window): Redraw rows overlapping the exposed area.
23887
23888 * dispextern.h (struct glyph_row): New member clip.
23889 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23890 clip_height, new member clip, and num_clips.
23891
23892 2008-02-01 Kenichi Handa <handa@m17n.org>
23893
23894 * data.c (Fchar_or_string_p): Fix docstring.
23895
23896 2008-02-01 Kenichi Handa <handa@m17n.org>
23897
23898 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23899 create a temporary XftDraw object.
23900
23901 2008-02-01 Kenichi Handa <handa@m17n.org>
23902
23903 * font.c (Ffontp): Fix docstring.
23904
23905 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23906 strong evidence of ISO-2022.
23907
23908 2008-02-01 Kenichi Handa <handa@m17n.org>
23909
23910 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23911 SYNTAX_ENTRY_FOLLOW_PARENT.
23912
23913 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23914
23915 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23916 its type.
23917 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23918 Update to the new type of weak_hash_tables and next_weak.
23919
23920 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23921 a plain C pointer to Lisp_Hash_Table.
23922
23923 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23924 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23925 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23926 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23927 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23928 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23929 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23930 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23931 (GC_EQ): Remove since they've been identical to their non-GC_
23932 alter-egos ever since the markbit was eradicated.
23933
23934 * alloc.c:
23935 * buffer.c:
23936 * buffer.h:
23937 * data.c:
23938 * fileio.c:
23939 * filelock.c:
23940 * fns.c:
23941 * frame.h:
23942 * lisp.h:
23943 * macterm.c:
23944 * print.c:
23945 * process.c:
23946 * w32fns.c:
23947 * w32menu.c:
23948 * w32term.c:
23949 * xfns.c:
23950 * xmenu.c:
23951 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23952
23953 2008-02-01 Kenichi Handa <handa@m17n.org>
23954
23955 * chartab.c (map_sub_char_table): Make it work for the top-level
23956 char-table. Fix handling of parent char-table.
23957 (map_char_table): Adjust for the above change.
23958
23959 2008-02-01 Jason Rumney <jasonr@gnu.org>
23960
23961 * w32font.c (Qgdi): Rename from Qw32.
23962
23963 2008-02-01 Jason Rumney <jasonr@gnu.org>
23964
23965 * w32bdf.c (get_quoted_string): Make function static.
23966
23967 2008-02-01 Kenichi Handa <handa@m17n.org>
23968
23969 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23970 bigger ascent and descent than those of the font, use them as
23971 font's ascent and descent.
23972
23973 2008-02-01 Kenichi Handa <handa@m17n.org>
23974
23975 * Makefile.in (${lispsource}international/charprop.el): Move this
23976 target within "#ifdef HAVE_UNIDATA" and "#endif".
23977
23978 2008-02-01 Kenichi Handa <handa@m17n.org>
23979
23980 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23981 (shortlisp): Add ../lisp/language/tai-viet.el.
23982
23983 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
23984
23985 * Makefile.in (${lispsource}international/charprop.el): Depend on
23986 temacs${EXEEXT}.
23987
23988 2008-02-01 Jason Rumney <jasonr@gnu.org>
23989
23990 * w32font.c (w32font_close): Delete the GDI font object.
23991
23992 * w32menu.c: Include character.h.
23993
23994 * w32proc.c: Likewise.
23995
23996 * w32select.c: Likewise.
23997
23998 * makefile.w32-in (w32proc.o): Depend on character.h.
23999
24000 2008-02-01 Jason Rumney <jasonr@gnu.org>
24001
24002 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24003
24004 * w32menu.c (syms_of_w32menu): Likewise.
24005
24006 * w32proc.c (syms_of_ntproc): Likewise.
24007
24008 * w32select.c (syms_of_w32select): Likewise.
24009
24010 * w32term.c (syms_of_w32term): Likewise.
24011
24012 2008-02-01 Jason Rumney <jasonr@gnu.org>
24013
24014 * w32font.c (w32font_draw): Delete brush after using it.
24015
24016 2008-02-01 Jason Rumney <jasonr@gnu.org>
24017
24018 * w32font.c (w32font_open): Don't set font_idx.
24019 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24020 to font settings.
24021 (w32font_draw): Fill background explicitly.
24022
24023 2008-02-01 Jason Rumney <jasonr@gnu.org>
24024
24025 * w32term.c (w32_initialize): Don't call w32font_initialize.
24026
24027 * w32font.c (w32font_info): Remove subranges.
24028 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24029 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24030 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24031 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24032 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24033 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24034 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24035 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24036 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24037 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24038 New symbols.
24039 (font_callback_data): New struct.
24040 (w32font_list, w32font_match): Use it.
24041 (w32font_open): Don't populate subranges.
24042 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24043 (w32font_encode_char): Always return unicode code-point as-is.
24044 (w32font_text_extents): Supply a transformation matrix to
24045 GetGlyphOutline. Never look up by glyph index. Avoid looping
24046 twice. Use unicode version of GetTexExtentPoint32 instead of
24047 glyph index version.
24048 (set_fonts_frame): Remove.
24049 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24050 set frame parameter. Use backward compatible fake foundries.
24051 Save generic family in extra slot under QCfamily. Make width slot
24052 constant. Save QCspacing value. Save list of scripts instead of
24053 binary subranges.
24054 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24055 (add_font_entity_to_list): Use font_callback_data struct.
24056 Filter unwanted fonts.
24057 (add_one_font_entity_to_list): Use font_callback_data struct.
24058 (w32_registry): Default to iso10646_1.
24059 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24060 string font registries. Don't fill in font name if it is a generic
24061 family name, fill family instead. Use spacing, family and script
24062 extra info to fill pitch, family and charset fields.
24063 (list_all_matching_fonts): Use font_callback_data struct.
24064 (unicode_range_for_char): Remove.
24065 (font_supported_scripts): New function.
24066 (w32font_initialize): Remove.
24067 (syms_of_w32font): Update which symbols are defined.
24068
24069 2008-02-01 Jason Rumney <jasonr@gnu.org>
24070
24071 * font.c (font_pixel_size): Reverse assq_no_quit args.
24072
24073 * w32term.h (FONT_WIDTH): Report max width, not average.
24074 (FONT_MAX_WIDTH): Remove.
24075 (FONT_AVG_WIDTH): New macro.
24076
24077 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24078 redefinition of FONT_WIDTH.
24079
24080 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24081 (w32_cache_char_metrics): Use FONT_WIDTH.
24082
24083 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24084
24085 2008-02-01 Jason Rumney <jasonr@gnu.org>
24086
24087 * w32font.c (w32font_open): Make lfHeight negative.
24088
24089 * w32fns.c (x_default_font_parameter): Use new style font name.
24090 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24091
24092 2008-02-01 Jason Rumney <jasonr@gnu.org>
24093
24094 * w32font.c (QCsubranges): New symbol.
24095 (w32font_open, w32font_has_char): Get subranges from subproperty
24096 of extra.
24097 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24098 (syms_of_w32font): Define :subranges symbol.
24099
24100 * font.c (font_put_extra): Expose externally.
24101
24102 * font.h (font_put_extra): Move declaration from font.c.
24103
24104 * font.c (Ffont_get): Use font driver to determine otf capability.
24105 (adjust_anchor): Check if driver defines anchor_point before using.
24106
24107 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24108 (w32font_draw): Use options.
24109 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24110 Fix detection of truetype fonts.
24111 (registry_to_w32_charset): Handle charsets other than iso8859-1
24112 expressed as lisp symbols.
24113 (w32_registry): Express charset as lisp symbol.
24114 (fill_in_logfont): Reverse pixel and point height logic.
24115 Don't set width here. Set quality to default.
24116
24117 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24118 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24119
24120 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24121 Remove redundant loop and allocation.
24122
24123 * makefile.w32-in (font.o, w32font.o): New objects.
24124 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24125 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24126
24127 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24128 STORE_XCHARB a valid l-value.
24129
24130 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24131 calculations for non-Truetype fonts.
24132 (x_draw_glyph_string): Sync with xterm.c.
24133 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24134 Remove redundant code.
24135 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24136
24137 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24138 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24139
24140 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24141 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24142
24143 * w32font.c: New file for w32 font backend.
24144
24145 2008-02-01 Kenichi Handa <handa@m17n.org>
24146
24147 * term.c: Don't include "buffer.h" twice.
24148
24149 2008-02-01 Kenichi Handa <handa@m17n.org>
24150
24151 * character.c (Funibyte_string): New function.
24152 (syms_of_character): Defsubr it.
24153
24154 2008-02-01 Jason Rumney <jasonr@gnu.org>
24155
24156 * w32term.c [USE_FONT_BACKEND]:
24157 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24158 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24159 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24160 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24161 (x_free_frame_resources): Sync with xterm.c.
24162
24163 2008-02-01 Andreas Schwab <schwab@suse.de>
24164
24165 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24166 char-table size.
24167
24168 2008-02-01 Kenichi Handa <handa@m17n.org>
24169
24170 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24171
24172 2008-02-01 Kenichi Handa <handa@m17n.org>
24173
24174 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24175 font_otf_gpos, add font_drive_otf.
24176
24177 * fontset.c (fontset_find_font): Pay attention to font size
24178 specified for a font.
24179 (reorder_font_vector): Check contents of font_def.
24180
24181 * font.c (struct otf_list): Delete it.
24182 (otf_list): Make it a lisp variable.
24183 (otf_open): Use lispy otf_list.
24184 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24185 (check_otf_features): New function.
24186 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24187 New functions.
24188 (font_drive_otf): New function merging font_otf_gsub and
24189 font_otf_gpos.
24190 (font_open_for_lface): New arg spec. Change argument order.
24191 (font_load_for_face): Adjust for the change of font_open_for_lface.
24192 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24193 Ffont_otf_gpos.
24194 (syms_of_font): Staticpro otf_list. Delete defsubr of
24195 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24196
24197 * xfaces.c (set_font_frame_param): Adjust for the change of
24198 font_open_for_lface.
24199
24200 * font.h (font_open_for_lface): Adjust prototype.
24201 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24202 member otf_drive.
24203 (font_otf_gsub, font_otf_gpos): Delete externs.
24204 (font_drive_otf): Extern it.
24205
24206 2008-02-01 Kenichi Handa <handa@m17n.org>
24207
24208 * font.c (font_at): If the window W is not on a window system,
24209 return Qnil.
24210
24211 * coding.c (produce_chars, encode_coding): Don't call
24212 insert_from_gap if no characters to produce.
24213
24214 2008-02-01 Kenichi Handa <handa@m17n.org>
24215
24216 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24217 Fclear_face_cache.
24218
24219 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24220
24221 2008-02-01 Miles Bader <miles@gnu.org>
24222
24223 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24224 Parse "--disable-font-backend" option.
24225 (standard_args): Add "--disable-font-backend" option.
24226
24227 2008-02-01 Kenichi Handa <handa@m17n.org>
24228
24229 * fontset.c (fontset_find_font): New function.
24230 (fontset_font): Use fontset_find_font.
24231 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24232 Register the specified font for all Latin characters.
24233 (new_fontset_from_font): Register the specified font for all Latin
24234 characters.
24235 (dump_fontset): For a realized fontset, include the base fontset
24236 name in the returned vector.
24237
24238 2008-02-01 Kenichi Handa <handa@m17n.org>
24239
24240 * character.h (CHAR_STRING): Cast C to unsigned on calling
24241 char_string.
24242
24243 * character.c (char_string): Type of arg C changed to unsigned.
24244 Signal an error if C is an invalid character code.
24245
24246 * editfns.c (general_insert_function, Fchar_to_string):
24247 Use CHARACTERP, not INTEGERP.
24248
24249 2008-02-01 Kenichi Handa <handa@m17n.org>
24250
24251 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24252 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24253
24254 * regex.c (analyse_first): Fix for multibyte characters in "case
24255 charset:" and "case categoryspec:".
24256
24257 2008-02-01 Andreas Schwab <schwab@suse.de>
24258
24259 * Makefile.in (LIBES): Move standard libraries to the end.
24260
24261 2008-02-01 Kenichi Handa <handa@m17n.org>
24262
24263 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24264 nonzero, don't shrink the buffer nextb.
24265
24266 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24267
24268 * coding.c (coding_alloc_by_making_gap): New arg offset.
24269 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24270 offset.
24271 (decode_coding_iso_2022): Update coding->safe_charsets.
24272 (decode_coding_gap): Temporarily set
24273 current_buffer->text->inhibit_shrinking to 1.
24274
24275 2008-02-01 Kenichi Handa <handa@m17n.org>
24276
24277 * xterm.c (x_draw_composite_glyph_string_foreground):
24278 Fix indexing into elements of s->cmp and s->char2b.
24279
24280 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
24281
24282 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24283
24284 2008-02-01 Kenichi Handa <handa@m17n.org>
24285
24286 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24287 target_multibyte instead of multibyte.
24288 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24289 (bcmp_translate): Change the argument name from multibyte to
24290 target_multibyte.
24291
24292 2008-02-01 Kenichi Handa <handa@m17n.org>
24293
24294 These changes are to compile a regexp into a pattern that can be
24295 used both for multibyte and unibyte targets.
24296
24297 * Makefile.in (search.o): Depend on charset.h.
24298
24299 * character.c (multibyte_char_to_unibyte_safe): New function.
24300
24301 * search.c: Include "charset.h".
24302 (compile_pattern_1): Delete argument multibyte. Don't set
24303 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24304 (compile_pattern): Don't compare cp->buf.target_multibyte.
24305 Compare cp->buf.charset_unibyte.
24306 (compile_pattern): Set cp->buf.target_multibyte.
24307
24308 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24309
24310 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24311
24312 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24313 multibyte. Change callers.
24314 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24315 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24316 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24317 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24318 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24319 (regex_compile): Make the compiled pattern usable both for
24320 multibyte and unibyte targets.
24321 (analyse_first): Make the fastmap usable both for multibyte and
24322 unibyte targets.
24323 (TRANSLATE_VIA_MULTIBYTE): Delete.
24324 (re_match_2_internal): Pay attention to the case that the
24325 multibyteness of bufp and target may be different.
24326
24327 2008-02-01 Kenichi Handa <handa@m17n.org>
24328
24329 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24330 empty box occupy at least one column width.
24331
24332 2008-02-01 Miles Bader <miles@gnu.org>
24333
24334 * Makefile.in: Remove redundant HAVE_XFT clause.
24335
24336 2008-02-01 Kenichi Handa <handa@m17n.org>
24337
24338 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24339
24340 2008-02-01 Kenichi Handa <handa@m17n.org>
24341
24342 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24343 being nil.
24344
24345 2008-02-01 Kenichi Handa <handa@m17n.org>
24346
24347 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24348
24349 2008-02-01 Kenichi Handa <handa@m17n.org>
24350
24351 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24352
24353 2008-02-01 Kenichi Handa <handa@m17n.org>
24354
24355 * search.c (simple_search): Fix previous change.
24356
24357 2008-02-01 Kenichi Handa <handa@m17n.org>
24358
24359 * xftfont.c (ftfont_font_format): Extern declaration.
24360
24361 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24362
24363 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24364 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24365
24366 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24367 (ftfont_font_format): Fix previous change.
24368
24369 * font.h (Ffont_xlfd_name): EXFUN it.
24370
24371 * font.c (font_parse_xlfd): Fix the array size of `f'.
24372 (register_font_driver): Use EQ to compare driver->type.
24373
24374 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24375 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24376 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24377
24378 2008-02-01 Kenichi Handa <handa@m17n.org>
24379
24380 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24381 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24382
24383 2008-02-01 Kenichi Handa <handa@m17n.org>
24384
24385 * xfont.c (xfont_open): Set font->format.
24386
24387 * xftfont.c (xftfont_open): Set font->format.
24388
24389 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24390 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24391 (ftfont_open): Set font->format.
24392 (ftfont_font_format): New function.
24393
24394 * font.h (struct font): New member format.
24395
24396 * font.c (Qopentype): New variable.
24397 (syms_of_font): Defsym it.
24398 (Fquery_font): Change the format of the last element of the return
24399 value.
24400
24401 2008-02-01 Kenichi Handa <handa@m17n.org>
24402
24403 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24404 last resort.
24405
24406 2008-02-01 Kenichi Handa <handa@m17n.org>
24407
24408 * coding.c (detect_coding_charset): Fix detection of multi-byte
24409 charset.
24410
24411 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24412
24413 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24414
24415 2008-02-01 Kenichi Handa <handa@m17n.org>
24416
24417 * xdisp.c (get_next_display_element): Set it->face_id for the
24418 first component of a composition.
24419 (x_produce_glyphs): Check if the font is changed or not for composition.
24420
24421 2008-02-01 Kenichi Handa <handa@m17n.org>
24422
24423 * fontset.c (Qlatin): New variable.
24424 (syms_of_fontset): Define it as a lisp symbol.
24425 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24426
24427 2008-02-01 Kenichi Handa <handa@m17n.org>
24428
24429 * font.c (font_unparse_fcname): Pay attention to the case that
24430 some of font property is a null string.
24431
24432 2008-02-01 Kenichi Handa <handa@m17n.org>
24433
24434 * term.c: Include "composite.h".
24435 (encode_terminal_code): Output all components of composition.
24436 Check the size of encode_terminal_src.
24437 (produce_glyphs): For composition, call produce_composite_glyph.
24438 (append_composite_glyph, produce_composite_glyph): New functions.
24439
24440 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24441 is not found, get font_info from the current ascii face.
24442
24443 2008-02-01 Kenichi Handa <handa@m17n.org>
24444
24445 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24446 buffer-file-name to Qnil before calling insert_from_buffer.
24447
24448 * font.c (font_unparse_fcname): Pay attention to the case that
24449 foundry is a null string.
24450
24451 2008-02-01 Kenichi Handa <handa@m17n.org>
24452
24453 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24454
24455 * font.c (Qunicode_sip): New variable.
24456 (syms_of_font): Declare it as a Lisp symbol.
24457
24458 * font.h (Qunicode_sip): Extern it.
24459
24460 2008-02-01 Kenichi Handa <handa@m17n.org>
24461
24462 * composite.c (get_composition_id): Pay attention to TAB component.
24463
24464 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24465 TAB. Adjust for the change of s->char2b which always points to
24466 the first element of allocated memory.
24467
24468 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24469
24470 * xdisp.c (handle_composition_prop): Set it->c to the first
24471 non-TAB component.
24472 (fill_composite_glyph_string): Change argument.
24473 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24474 (x_produce_glyphs): Fix handling of left/right padding.
24475
24476 2008-02-01 Kenichi Handa <handa@m17n.org>
24477
24478 * coding.c (detect_coding_system): Fix for handling off
24479 inhibit_iso_escape_detection. Fix for the case that no coding
24480 system is defined for a specific coding category.
24481
24482 2008-02-01 Kenichi Handa <handa@m17n.org>
24483
24484 * font.c (font_matching_entity): Delete unused local var.
24485
24486 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24487 opening a font.
24488
24489 * fileio.c (Finsert_file_contents): On recovering a file, assume
24490 Unix-like eol.
24491 (choose_write_coding_system): On auto-saving a file, force
24492 Unix-like eol.
24493
24494 * coding.c (setup_coding_system): Fix setting of
24495 coding->common_flags based on eol_type.
24496 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24497 inherit from it.
24498
24499 2008-02-01 Kenichi Handa <handa@m17n.org>
24500
24501 * alloc.c (NSTATICS): Increas to 0x600.
24502
24503 2008-02-01 Kenichi Handa <handa@m17n.org>
24504
24505 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24506 (ftfont_list): Don't check :name property.
24507 (ftfont_match): New function.
24508 (ftfont_pattern_entity): If the pattern doesn't contain
24509 FC_SPACING, don't assume FC_MONO.
24510
24511 * font.h (struct font_driver): New member `match'.
24512 (font_update_drivers): Adjust prototype.
24513
24514 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24515 property of FONT.
24516 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24517 Define them unconditionally.
24518 (font_matching_entity): New function.
24519 (font_open_by_name): Try font_matching_entity if exact match is
24520 not found.
24521 (font_update_drivers): Delete the arg FONT. Return a list of
24522 actually used backends. Don't free faces, font caches here.
24523 Don't store data in frame parameters. Don't call x_set_font.
24524 (Ffont_spec): Store :name property as is.
24525 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24526 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24527 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24528 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24529 Call font->driver->otf_gsub instead of font_otf_gsub.
24530
24531 * frame.c (x_set_font_backend): Do more works that were done in
24532 font_update_drivers before.
24533
24534 * xfont.c (xfont_match): New function.
24535 (xfont_driver): Set xfont_driver.match to xfont_match.
24536 (xfont_draw): Set font in GC if necessary.
24537
24538 * ftxfont.c (ftxfont_match): New function.
24539 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24540
24541 * xftfont.c (xftfont_match): New function.
24542 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24543
24544 2008-02-01 Kenichi Handa <handa@m17n.org>
24545
24546 * font.h (struct font): New member scalable.
24547 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24548 (font_otf_gsub): Adjust prototype.
24549
24550 * font.c (font_otf_capability): Fix handling of the default langsys.
24551 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24552 Check the contents of SPEC.
24553 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24554 (check_gstring): New function.
24555 (REPLACEMENT_CHARACTER): New macro.
24556 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24557 glyph codes of GSTRING.
24558 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24559 (font_prepare_composition): Set cmp->glyph_len.
24560 (font_open_entity): Set font->scalable.
24561 (Ffont_get): Handle :otf property.
24562 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24563 New functions.
24564 (Fquery_font): Use font->font.full_name.
24565 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24566 Sfont_otf_alternates.
24567
24568 * ftfont.c (ftfont_open): Set font->font.full_name and
24569 font->font.name properly. Fix calculation of font->font.height
24570 and font->min_width.
24571
24572 * ftxfont.c (ftxfont_create_gcs): New function.
24573 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24574 (ftxfont_draw_backgrond): Fix filling region.
24575 (ftxfont_default_fid): New function.
24576 (ftxfont_open): Set xfont->fid to the return value of
24577 ftxfont_default_fid.
24578 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24579 (ftxfont_done_face): Free only GCs that are created by
24580 ftxfont_create_gcs.
24581 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24582
24583 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24584 Clip to src->width, etc (not src->clip_XXX).
24585
24586 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24587 FontBackend frame parameter.
24588
24589 2008-02-01 Kenichi Handa <handa@m17n.org>
24590
24591 * font.h (struct font_driver_list): New member `on'.
24592 (Fclear_font_cache): EXFUN it.
24593 (font_update_drivers): Extern it.
24594
24595 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24596 (font_list_entities): Check driver_list->on.
24597 (register_font_driver): Initialize `on' member to 0.
24598 (font_update_drivers): New function.
24599 (Fclear_font_cache): Check driver_list->on.
24600
24601 * frame.h (Qfont_backend): Extern it.
24602 (x_set_font_backend): Extern it.
24603
24604 * frame.c (Qfont_backend): New variable.
24605 (frame_parms): New element for font-backend.
24606 (x_set_font_backend): New function.
24607
24608 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24609 FontBackend frame parameter.
24610 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24611 x_set_font_backend.
24612
24613 * xfont.c (xfont_list): Don't try listing by :name property if the
24614 name is not for XLFD.
24615
24616 2008-02-01 Kenichi Handa <handa@m17n.org>
24617
24618 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24619 (LGLYPH_SET_TO): New macros.
24620 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24621 element of G is vector or not.
24622 (font_at): Extern it.
24623
24624 * font.c: Include window.h.
24625 (font_lispy_object): New function.
24626 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24627 end of valid glyph.
24628 (font_close_object): Fix getting (struct font *).
24629 (font_at): New function.
24630 (Ffont_get): If FONT is a font-object, get entity from it.
24631 (Ffont_make_gstring): Initialize elements of glyphs with nil.
24632 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24633 Fix range check.
24634 (Ffont_at): New function.
24635 (syms_of_font): Defsubr Sfont_at.
24636
24637 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24638 before the entry for Qcomposition.
24639 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24640 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24641 the font in gstring.
24642 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24643 LGLYPH_FORM (g) to detect the end of valid glyph.
24644 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24645 we are composing with gstring.
24646
24647 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24648 Check if adjustment is vector or not.
24649
24650 * Makefile.in (font.o): Make it depends on window.h.
24651
24652 2008-02-01 Kenichi Handa <handa@m17n.org>
24653
24654 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24655 adjustment is vector or not.
24656
24657 2008-02-01 Miles Bader <miles@gnu.org>
24658
24659 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24660
24661 2008-02-01 Kenichi Handa <handa@m17n.org>
24662
24663 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
24664 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
24665 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24666
24667 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24668 (DEVICE_DELTA): Fix typo.
24669 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24670 LGLYPH format.
24671
24672 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24673 the change of LGLYPH format.
24674
24675 2008-02-01 Kenichi Handa <handa@m17n.org>
24676
24677 * ftfont.c (ftfont_list): Fix typo.
24678 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24679
24680 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24681
24682 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24683
24684 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24685 xftface_info is non-NULL.
24686
24687 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24688
24689 * ftfont.c (ftfont_list): Move misplaced #endif.
24690
24691 2008-02-01 Kenichi Handa <handa@m17n.org>
24692
24693 * ftfont.c (ftfont_list): Pay attention to the case that
24694 FC_CAPABILITY is not defined.
24695
24696 2008-02-01 Kenichi Handa <handa@m17n.org>
24697
24698 * xftfont.c (xftfont_open): Set charset related members to -1.
24699
24700 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24701 QCname.
24702 (ftfont_open): Set charset related members to -1.
24703
24704 * fontset.c (Votf_script_alist): New variable.
24705 (syms_of_fontset): Initialize it.
24706 (fontset_font): Delete unused variable.
24707
24708 * fontset.h (Votf_script_alist): Extern it.
24709
24710 * font.c (font_find_for_lface): Optimize code.
24711
24712 * font.h (font_close_object, font_merge_old_spec): Extern them.
24713
24714 2008-02-01 Kenichi Handa <handa@m17n.org>
24715
24716 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24717 (syms_of_font): Initialize them.
24718 (font_pixel_size): Allow float value in dpi.
24719 (font_prop_validate_type): Delete.
24720 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24721 Change caller.
24722 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24723 (font_prop_validate_extra): Delete.
24724 (font_prop_validate_spacing): New function.
24725 (font_property_table): Add elements for all known properties.
24726 (get_font_prop_index): Rename from check_font_prop_name.
24727 New argument FROM. Change caller.
24728 (font_prop_validate): Validate all known properties.
24729 (font_put_extra): Delete argument force. Change caller.
24730 (font_expand_wildcards): Make it static. Fix the way of shrinking
24731 the possible range.
24732 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24733 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24734 Change caller.
24735 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24736 (font_parse_fcname): Delete argument merge. Fix parsing of point
24737 size. Don't validate properties values here. Change caller.
24738 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24739 (font_open_by_name): Delete unused variable.
24740 (Ffont_spec): Likewise. Validate property values.
24741 (Ffont_match_p): New function.
24742
24743 * font.h (QCscalable): Extern it.
24744 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24745
24746 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24747
24748 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24749 (xfont_list_pattern): New function.
24750 (xfont_list): Use xfont_list_pattern.
24751
24752 2008-02-01 Kenichi Handa <handa@m17n.org>
24753
24754 * font.h (Flist_fonts): EXFUN it.
24755
24756 2008-02-01 Jason Rumney <jasonr@gnu.org>
24757
24758 * w32term.c (w32_initialize): Add back smoothing_type and
24759 smoothing_enabled definitions.
24760
24761 2008-02-01 Kenichi Handa <handa@m17n.org>
24762
24763 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24764 s->face->font on determining underline position.
24765
24766 2008-02-01 Kenichi Handa <handa@m17n.org>
24767
24768 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24769 (font_has_char): Accept font-object too.
24770 (font_find_for_lface): Try at first with a size specified in face.
24771
24772 2008-02-01 Kenichi Handa <handa@m17n.org>
24773
24774 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24775 font_open_by_name.
24776
24777 2008-02-01 Kenichi Handa <handa@m17n.org>
24778
24779 * font.h (QCspacing, QCdpi): Extern them.
24780 (enum font_spacing): New enum.
24781 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24782
24783 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24784 (QCspacing, QCdpi): New variables.
24785 (syms_of_font): Initialize them.
24786 (font_pixel_size): New function.
24787 (font_put_extra): New function.
24788 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24789 in FONT_EXTRA.
24790 (font_parse_fcname): Handle enumerated values (e.g. bold).
24791 Fix handling font size. Add QCname property that contains only
24792 unknown properties.
24793 (font_score): Change argument. Change caller. Pay attention to
24794 FONT_PIXEL_SIZE_QUANTUM.
24795 (font_sort_entites, font_list_entities, font_find_for_lface)
24796 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24797 (Ffont_spec): Add QCname property that contains only unknown properties.
24798
24799 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24800 Don't include weight in listing pattern, instead check weight of each
24801 listed font. Don't include scalable in pattern. Pay attention to
24802 FONT_PIXEL_SIZE_QUANTUM.
24803
24804 2008-02-01 Kenichi Handa <handa@m17n.org>
24805
24806 * font.c (font_parse_fcname): Fix parsing of point-size.
24807 (font_unparse_fcname): Produce symbolic names for style properties.
24808 (font_list_entities): Handle float size correctly.
24809 (font_open_by_name): Prefer `normal' property values if the name
24810 doesn't specify them.
24811
24812 * fontset.c (Finternal_char_font): Use font_get_name, not
24813 Ffont_xlfd_name.
24814
24815 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24816 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24817 pattern. Don't force scalable.
24818
24819 * xftfont.c (xftfont_open): For generating a name, start from
24820 96-byte buffer.
24821
24822 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24823
24824 * frame.h (x_new_fontset2): Fix prototype.
24825
24826 2008-02-01 Kenichi Handa <handa@m17n.org>
24827
24828 * font.h (struct font_driver): Delete member parse_name.
24829 (font_match_p, font_get_spec, font_parse_fcname)
24830 (font_unparse_fcname): Extern them.
24831 (font_get_name): Adjust prototype.
24832
24833 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24834 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
24835 (font_expand_wildcards): Fix handling ENCODING field.
24836 Avoid unnecessary checks for weight, slant, and swidth.
24837 (font_parse_fcname): New function.
24838 (font_unparse_fcname): New function.
24839 (font_parse_name): New function.
24840 (font_match_p): New function.
24841 (font_get_name): Change return value to Lisp string.
24842 (font_get_spec): New function.
24843 (Qunspecified, Qignore_defface): Don't extern them.
24844 (font_find_for_lface): Assume that LFACE is fully specified.
24845 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24846 object, use it for FACE.
24847 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24848 driver->parse_name.
24849 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24850
24851 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24852 prototype.
24853
24854 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24855 argument F. Don't call Fnew_fontset. Instead, directly call
24856 make_fontset.
24857
24858 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24859
24860 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24861 of x_new_fontset2.
24862
24863 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24864 (Qsans__serif): New variables.
24865 (ftfont_generic_family_list): New variable.
24866 (syms_of_ftfont): Initialize the above variables.
24867 (ftfont_pattern_entity): Delete argument NAME.
24868 (ftfont_list_generic_family): New function.
24869 (ftfont_parse_name): Delete this function.
24870 (ftfont_list): Try generic family only when FcFontList found no font.
24871 (ftfont_list_family): Fix args to FcObjectSetBuild.
24872
24873 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24874 object in attrs[LFACE_FONT_INDEX].
24875 (set_lface_from_font_name): Cancel all changes for font-backend.
24876 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24877 function.
24878 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24879 font object in QCfont attribute.
24880 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24881 (realize_default_face) [USE_FONT_BACKEND]: Call
24882 set_lface_from_font_and_fontset.
24883
24884 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24885 "fixed", and signal error here if no suitable font was found.
24886
24887 * xfont.c (xfont_parse_name): Delete this function.
24888
24889 * xftfont.c (xftfont_open): Change coding style of error
24890 handling. Generate fontconfig's fontname pattern.
24891
24892 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24893 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24894
24895 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24896 Both args FONTSET and FONT_OBJECT must be existing ones.
24897
24898 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24899
24900 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24901
24902 2008-02-01 Kenichi Handa <handa@m17n.org>
24903
24904 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24905
24906 * font.h (struct font): Fix typo.
24907
24908 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24909 XLFD_XXX_INDEX.
24910 (enum xlfd_field_mask): New enum.
24911 (intern_font_field): Change argument. Change caller. If digits
24912 are followed by non-digits, return a symbol.
24913 (font_expand_wildcards): New function.
24914 (font_parse_xlfd): Fix wildcard handling.
24915 (Ffont_spec): If :name is specified, reflect the info in the other
24916 properties.
24917
24918 * ftfont.c (ftfont_pattern_entity): Fix typo.
24919 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24920 locale.
24921
24922 2008-02-01 Kenichi Handa <handa@m17n.org>
24923
24924 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24925
24926 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24927 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24928 registry doesn't specify encoding part.
24929 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24930 (font_open_by_name): At first try parsing the name.
24931 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24932 as Lisp symbols.
24933
24934 * fontset.c (reorder_font_vector): Pay attention to the case that
24935 the 3rd element of font_def is nil.
24936 (fontset_font): For the default fontset, append one more fontset
24937 elements for a script-based font specification. Don't add script
24938 attribute on finding a font.
24939 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24940 font name.
24941 (fontset_ascii_font): If a font can't be opened, return nil.
24942
24943 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24944 (ftfont_pattern_entity): New function.
24945 (ftfont_get_cache): Assume that freetype_font_cache is already
24946 initialized.
24947 (ftfont_list): Handle the case that a file is specified in font
24948 name. Use ftfont_pattern_entity to generate entities.
24949 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24950 (syms_of_ftfont): Initialize freetype_font_cache.
24951
24952 * xftfont.c (xftfont_open): Make the font name fontconfig's
24953 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24954 (xftfont_close): Free font->font.name if not NULL.
24955
24956 * xfont.c (xfont_list): If script is specified for a font, return
24957 null_vector.
24958 (xfont_list_family): Declare argument type.
24959
24960 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24961 name, set LFACE_FONT (lface) to nil.
24962
24963 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24964 return Qnil.
24965
24966 2008-02-01 Kenichi Handa <handa@m17n.org>
24967
24968 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24969 (standard_args): Add "-enable-font-backend".
24970
24971 2008-02-01 Kenichi Handa <handa@m17n.org>
24972
24973 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24974 (struct xftdraw_list, xftdraw_list): Delete them.
24975 (register_xftdraw, check_xftdraw): Delete them.
24976 (xftfont_prepare_face): Don't call register_xftdraw.
24977 (xftfont_done_face): Don't call check_xftdraw.
24978 (xftfont_draw): Get background color only when with_background is
24979 nonzero.
24980
24981 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24982
24983 2008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 These changes are for the new font handling codes.
24986
24987 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24988 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24989 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24990 (FONTSRC, FONTOBJ): New variables.
24991 (obj): Add $(FONTOBJ).
24992 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24993 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24994 @LIBOTF_LIBS@.
24995 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24996 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24997
24998 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24999
25000 * character.h (Vscript_representative_chars): Extern it.
25001
25002 * character.c (Vscript_representative_chars): New variable.
25003 (syms_of_character): Declare it as a Lisp variable.
25004
25005 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25006 enable_font_backend is nonzero, accept the composition method
25007 COMPOSITION_WITH_GLYPH_STRING.
25008
25009 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25010 enumeration COMPOSITION_WITH_GLYPH_STRING.
25011
25012 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25013 members clip_x, clip_y, clip_width, and clip_height.
25014 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25015
25016 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25017 --enable-font-backend. Call syms_of_font.
25018
25019 * fns.c (assoc_no_quit): New function.
25020
25021 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25022 (face_for_font, new_fontset_from_font)
25023 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25024
25025 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25026 (fontset_font, fontset_ascii, face_for_char)
25027 (make_fontset_for_ascii_face, Ffont_info)
25028 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25029 is nonzero, use font-backend mechanism.
25030 (find_font_encoding): Make it non-static.
25031 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25032 New functions.
25033
25034 * frame.h (struct frame): New members resx and resy.
25035 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25036 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25037
25038 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25039 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25040
25041 * lisp.h (assoc_no_quit): Extern it.
25042
25043 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25044 Through out the file, use FONT_INFO_FROM_FACE instead of
25045 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25046 rif->per_char_metric.
25047 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25048 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25049 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25050 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25051 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25052 nonzero, use font-backend mechanism.
25053 (get_per_char_metric): New function.
25054
25055 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25056 (set_lface_from_font_name)
25057 (set_font_frame_param, free_realized_face)
25058 (prepare_face_for_display, clear_face_gcs)
25059 (Finternal_set_font_selection_order, realize_x_face)
25060 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25061 font-backend mechanism.
25062 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25063 (load_face_font) [USE_FONT_BACKEND]: Abort.
25064 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25065 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25066
25067 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25068 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25069 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25070 nonzero, register all available font drivers.
25071 Call x_default_font_parameter for deciding a font.
25072 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25073
25074 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25075 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25076 (x_set_glyph_string_clipping_exactly)
25077 (x_compute_glyph_string_overhangs)
25078 (x_draw_glyph_string_foreground)
25079 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25080 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25081 enable_font_backend is nonzero, use font-backend mechanism.
25082 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25083
25084 2008-02-01 Kenichi Handa <handa@m17n.org>
25085
25086 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25087 system_eol_type.
25088 (syms_of_coding): Initialize system_eol_type.
25089
25090 * process.c (Fset_process_coding_system): Inherit system's eol
25091 format if necessary.
25092
25093 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25094
25095 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25096
25097 2008-02-01 Kenichi Handa <handa@m17n.org>
25098
25099 * coding.c (decode_eol): Pay attention to buffer relocation in
25100 del_range_2.
25101 (decode_coding): Call decode_eol before restoring undo_list.
25102
25103 2008-02-01 Kenichi Handa <handa@m17n.org>
25104
25105 * charset.c (Fdefine_charset_internal): Fix setting of
25106 emacs_mule_bytes.
25107
25108 2008-02-01 Kenichi Handa <handa@m17n.org>
25109
25110 * keyboard.c (read_char): Check if C is a character or not before
25111 looking up Vkeyboard_translate_table.
25112
25113 2008-02-01 Kenichi Handa <handa@m17n.org>
25114
25115 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25116 Fix condition to terminate the loop.
25117
25118 2008-02-01 Kenichi Handa <handa@m17n.org>
25119
25120 * coding.c (produce_composition): Compare charbuf[i] instead of
25121 args[i] against 0.
25122 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25123
25124 2008-02-01 Kenichi Handa <handa@m17n.org>
25125
25126 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25127 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25128 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25129 detect_coding.
25130 (emacs_mule_char): Handle old style (Emacs 20) component character
25131 of a composition.
25132 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25133 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25134 composition rule.
25135 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25136
25137 2008-02-01 Kenichi Handa <handa@m17n.org>
25138
25139 * coding.c (encode_coding_ccl): Allocate destination dynamically
25140 when necessary.
25141
25142 2008-02-01 Kenichi Handa <handa@m17n.org>
25143
25144 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25145 the loop. When quitted, show a proper error message.
25146
25147 2008-02-01 Kenichi Handa <handa@m17n.org>
25148
25149 * xterm.c (x_set_glyph_string_clipping_exactly):
25150 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25151
25152 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25153 character sequence.
25154 (Fccl_execute_on_string): Use ASET, not XSET.
25155
25156 2008-02-01 Kenichi Handa <handa@m17n.org>
25157
25158 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25159
25160 2008-02-01 Kenichi Handa <handa@m17n.org>
25161
25162 * coding.c (decode_coding): Fix the condition of terminating the
25163 decoding loop.
25164
25165 2008-02-01 Kenichi Handa <handa@m17n.org>
25166
25167 * data.c (Faset): On setting a character bigger than 255 in a
25168 unibyte string, signal an error instead of make the string multibyte.
25169
25170 2008-02-01 Kenichi Handa <handa@m17n.org>
25171
25172 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25173 made by a mapping table.
25174
25175 2008-02-01 Kenichi Handa <handa@m17n.org>
25176
25177 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25178 not.
25179 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25180 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25181
25182 * xterm.c (x_draw_composite_glyph_string_foreground):
25183 Check s->face is NULL or not.
25184
25185 2008-02-01 Kenichi Handa <handa@m17n.org>
25186
25187 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25188 (x_draw_glyph_string): Fix drawing of right_overhang and
25189 left_overhang around/on cursor.
25190
25191 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25192
25193 2008-02-01 Kenichi Handa <handa@m17n.org>
25194
25195 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25196
25197 2008-02-01 Kenichi Handa <handa@m17n.org>
25198
25199 * coding.c (Fdefine_coding_system_internal)
25200 (Fdefine_coding_system_alias): Avoid a duplicated element in
25201 Vcoding_system_alist.
25202
25203 2008-02-01 Kenichi Handa <handa@m17n.org>
25204
25205 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25206
25207 * coding.c (Qcoding_system_define_form): New variable.
25208 (syms_of_coding): Intern and staticpro it.
25209 (Fcoding_system_p): Check Qcoding_system_define_form.
25210 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25211
25212 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25213 Fcoding_system_p.
25214 (CHECK_CODING_SYSTEM): If ID is not available, call
25215 Fcheck_coding_system.
25216 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25217 Try also Fcheck_coding_system.
25218
25219 2008-02-01 Kenichi Handa <handa@m17n.org>
25220
25221 * coding.c (code_conversion_restore): GCPRO arg.
25222
25223 2008-02-01 Kenichi Handa <handa@m17n.org>
25224
25225 * character.c (lisp_string_width): Check multibyteness of STRING.
25226
25227 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25228
25229 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25230 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25231 (decode_mac_font_name): Use decode_coding_c_string instead of
25232 decode_coding.
25233 (x_load_font): Initialize fontp->fontset to -1.
25234 Set fontp->encoding_type.
25235
25236 2008-02-01 Kenichi Handa <handa@m17n.org>
25237
25238 * search.c (search_buffer): Give up BM search on case-fold-search
25239 if one of a target character has a case-equivalence of different
25240 byte length even if that target character is an ASCII.
25241 (simple_search): Fix calculation of byte length of matched text.
25242 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25243
25244 2008-02-01 Kenichi Handa <handa@m17n.org>
25245
25246 * coding.c (decode_coding): Fix handling of invalid bytes.
25247
25248 2008-02-01 Kenichi Handa <handa@m17n.org>
25249
25250 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25251 Unicode characters.
25252
25253 2008-02-01 Kenichi Handa <handa@m17n.org>
25254
25255 * coding.c (encode_coding_object): If a pre-write-conversion
25256 function makes a new buffer, kill it.
25257
25258 2008-02-01 Kenichi Handa <handa@m17n.org>
25259
25260 * coding.c (QCascii_compatible_p): New variable.
25261 (syms_of_coding): Initialize it.
25262 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25263 calling string_char.
25264 (record_conversion_result): Add `default:' case.
25265 (coding_charset_list): Delete unused variable `coding_type'.
25266 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25267 property in the plist of the coding system.
25268 (Fcoding_system_put): Check QCascii_compatible_p.
25269
25270 2008-02-01 Miles Bader <miles@gnu.org>
25271
25272 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25273 removed calculation of frame `f', as it's now used.
25274
25275 2008-02-01 Kenichi Handa <handa@m17n.org>
25276
25277 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25278 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25279 (UNIDATA): New variable.
25280 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25281 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25282 Run $(RUN_TEMACS) unconditionally.
25283
25284 2008-02-01 Kenichi Handa <handa@m17n.org>
25285
25286 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25287 (admindir): New variable.
25288 ($(lispsource)international/charprop.el): New target.
25289
25290 2008-02-01 Miles Bader <miles@gnu.org>
25291
25292 * character.c (chars-in-region): Remove obsolete function.
25293 (syms_of_character): Remove its initialization.
25294
25295 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25296
25297 * w32select.c (validate_coding_system)
25298 (setup_windows_coding_system): New functions.
25299 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25300 Use setup_windows_coding_system.
25301 (setup_config, Fw32_get_clipboard_data):
25302 Use validate_coding_system.
25303 (Fx_selection_exists): Move call to setup_config to a place
25304 where signals are allowed.
25305
25306 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25307 (Fcheck_coding_system): Add declarations.
25308
25309 2008-02-01 Kenichi Handa <handa@m17n.org>
25310
25311 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25312
25313 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25314
25315 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25316 string as the second argument for x_new_fontset.
25317
25318 2008-02-01 Kenichi Handa <handa@m17n.org>
25319
25320 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25321 (encode_coding_object): Use safe_call instead of call2.
25322
25323 2008-02-01 Kenichi Handa <handa@m17n.org>
25324
25325 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25326
25327 * Makefile.in (lisp): Include charprop.el.
25328
25329 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25330
25331 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25332 Not sure if it's unnecessary.
25333
25334 2008-02-01 Steven Tamm <steventamm@mac.com>
25335
25336 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25337 some possibly unnecessary fontset checking code that crashed
25338 when creating a new frame.
25339
25340 2008-02-01 Kenichi Handa <handa@m17n.org>
25341
25342 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25343 lookup_face.
25344
25345 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25346
25347 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25348
25349 2008-02-01 Kenichi Handa <handa@m17n.org>
25350
25351 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25352 (coding_charset_list): New function.
25353
25354 * coding.h (coding_charset_list): Extern it.
25355
25356 2008-02-01 Kenichi Handa <handa@m17n.org>
25357
25358 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25359 concatenation of family and registry.
25360
25361 2008-02-01 Kenichi Handa <handa@m17n.org>
25362
25363 * character.h (BYTE8_STRING): Fix typo.
25364
25365 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25366 string to multibyte (sync to HEAD).
25367
25368 * casefiddle.c (casify_region): Handle changes in byte-length
25369 using replace_range_2 (sync to HEAD).
25370
25371 2008-02-01 Andreas Schwab <schwab@suse.de>
25372
25373 * chartab.c (map_char_table): GCPRO table and arg.
25374
25375 2008-02-01 Kenichi Handa <handa@m17n.org>
25376
25377 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25378 already at limit.
25379
25380 2008-02-01 Kenichi Handa <handa@m17n.org>
25381
25382 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25383 instead of fast_c_string_match_ignore_case.
25384 (find_font_encoding): Change argument to Lisp_Object.
25385 Use fast_string_match_ignore_case instead of
25386 fast_c_string_match_ignore_case. Change caller.
25387
25388 2008-02-01 Kenichi Handa <handa@m17n.org>
25389
25390 * xdisp.c (get_next_display_element): In unibyte case, decide to
25391 display in octal form by checking a character by
25392 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25393
25394 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25395
25396 * character.c (unibyte_has_multibyte_table): New variable.
25397
25398 * character.h (unibyte_has_multibyte_table): Extern it.
25399 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25400
25401 2008-02-01 Kenichi Handa <handa@m17n.org>
25402
25403 * coding.c (encode_coding_iso_2022): Fix handling of charset
25404 annotation.
25405
25406 2008-02-01 Kenichi Handa <handa@m17n.org>
25407
25408 * coding.c (setup_coding_system): If coding_system is nil, use
25409 Qundecided.
25410 (Fterminal_coding_system): Return nil if terminal coding system is
25411 `undecided'.
25412 (syms_of_coding): Define coding-system `undecided' here.
25413 Setup terminal_coding as `undecided'.
25414
25415 2008-02-01 Kenichi Handa <handa@m17n.org>
25416
25417 * xdisp.c (message_dolog, set_message_1):
25418 Call unibyte_char_to_multibyte with arg type int.
25419
25420 * lread.c (read1): Fix reading of a char-table.
25421
25422 * print.c (print_object): Include sub char-table in circularities
25423 detection.
25424
25425 2008-02-01 Kenichi Handa <handa@m17n.org>
25426
25427 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25428 Append the found sequences in car of ARGS instead of prepending.
25429
25430 2008-02-01 Kenichi Handa <handa@m17n.org>
25431
25432 * fileio.c (report_file_error): Make a unibyte string from
25433 strerror (errorno).
25434 (Fsubstitute_in_file_name): Fix the arg to
25435 unibyte_char_to_multibyte. It is evaluated twice.
25436
25437 2008-02-01 Kenichi Handa <handa@m17n.org>
25438
25439 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25440
25441 2008-02-01 Kenichi Handa <handa@m17n.org>
25442
25443 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25444 BOM is not found.
25445 (detect_coding, detect_coding_system): Optimization for ISO-2022
25446 when no 8-bit data is found.
25447
25448 2008-02-01 Jason Rumney <jasonr@gnu.org>
25449
25450 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25451
25452 2008-02-01 Kenichi Handa <handa@m17n.org>
25453
25454 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25455 CHARS.
25456
25457 2008-02-01 Steven Tamm <steventamm@mac.com>
25458
25459 * macterm.c (mac_encode_char): Add charset argument and update
25460 to use encoding_type.
25461 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25462 switch to pure fontset.
25463 (decode_mac_font_name): Temporarily remove decoding.
25464 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25465 (x_load_font): Temporarily remove encoding.
25466
25467 2008-02-01 Kenichi Handa <handa@m17n.org>
25468
25469 * xfaces.c (Fface_font): If frame is not on a window system,
25470 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25471 refer to face->font.
25472 (split_font_name_into_vector, build_font_name_from_vector)
25473 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25474 when HAVE_WINDOW_SYSTEM is defined.
25475
25476 2008-02-01 Kenichi Handa <handa@m17n.org>
25477
25478 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25479 (x_produce_glyphs): Fix setting of members of cmp in case
25480 cmp->glyph_len is zero.
25481
25482 * fontset.c (Fset_fontset_font): Fix docstring.
25483 (Ffontset_info): Make it backward compatible. New arg ALL.
25484
25485 2008-02-01 Kim F. Storm <storm@cua.dk>
25486
25487 * process.c (read_process_output): Grow decoding_buf when needed;
25488 this could cause a crash in allocate_string and compact_small_strings.
25489
25490 2008-02-01 Kenichi Handa <handa@m17n.org>
25491
25492 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25493
25494 2008-02-01 Kenichi Handa <handa@m17n.org>
25495
25496 * coding.c (setup_coding_system): Set coding->common_flags
25497 correctly for raw-text.
25498 (consume_chars): On encoding unibyte text by raw-text, don't check
25499 multibyte form.
25500 (encode_coding): On encoding by raw-text, never use translation tables.
25501
25502 * fileio.c (e_write): Short cut for the case of no encoding.
25503
25504 2008-02-01 Kenichi Handa <handa@m17n.org>
25505
25506 * coding.c (detect_coding, detect_coding_system): Delete unused
25507 variables.
25508
25509 2008-02-01 Kenichi Handa <handa@m17n.org>
25510
25511 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25512 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25513
25514 2008-02-01 Kenichi Handa <handa@m17n.org>
25515
25516 * coding.c (Ffind_coding_systems_region_internal):
25517 Include raw-text and no-conversion in the result.
25518
25519 2008-02-01 Kenichi Handa <handa@m17n.org>
25520
25521 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25522 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25523 FONT_DEF.
25524 (font_def_arg, add_arg, from_arg, to_arg): New args.
25525 (set_fontset_font): Change argument.
25526 (Fset_fontset_font): Fix for the case that TARGET is a script
25527 name and charset name.
25528 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25529
25530 2008-02-01 Kenichi Handa <handa@m17n.org>
25531
25532 * fontset.c (fontset_font): Rename from fontset_face. Change return
25533 value.
25534 (face_suitable_for_char_p, face_for_char): Adjust for the change
25535 of fontset_font.
25536 (make_fontset_for_ascii_face): Fix setting of the fontset element
25537 for ASCII.
25538 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25539 to get a font name.
25540 (Ffontset_info): Adjust for the change of fontset_font.
25541
25542 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25543
25544 * character.h (LEADING_CODE_LATIN_1_MIN)
25545 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25546
25547 2008-02-01 Kenichi Handa <handa@m17n.org>
25548
25549 * editfns.c (check_translation): New function.
25550 (Ftranslate_region_internal): Handle M:N mapping.
25551
25552 2008-02-01 Kenichi Handa <handa@m17n.org>
25553
25554 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25555
25556 2008-02-01 Kenichi Handa <handa@m17n.org>
25557
25558 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25559 goto invalid_code.
25560 (decode_coding_iso_2022): Fix handling of invalid designation.
25561
25562 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25563 after calling code_conversion_save.
25564
25565 2008-02-01 Kenichi Handa <handa@m17n.org>
25566
25567 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25568
25569 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25570
25571 * fontset.c: Include "intervals.h".
25572 (fontset_face): Fix comparing of Lisp_Objects.
25573 (free_face_fontset, new_fontset_from_font_name):
25574 Fix Lisp_Object/int mixup.
25575
25576 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25577
25578 * coding.c: Add many prototypes for static functions.
25579 (get_translation_table): Allow max_lookup to be NULL.
25580 (decode_coding, Ffind_coding_systems_region_internal)
25581 (Funencodable_char_position, Fcheck_coding_systems_region):
25582 Call get_translation_table with max_lookup NULL.
25583
25584 2008-02-01 Kenichi Handa <handa@m17n.org>
25585
25586 * coding.c (get_translation_table): Declare it as Lisp_Object.
25587 (LOOKUP_TRANSLATION_TABLE): New macro.
25588 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25589 instead of CHAR_TABLE_REF.
25590
25591 2008-02-01 Kenichi Handa <handa@m17n.org>
25592
25593 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25594 annotation data format.
25595 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25596 Change arguments FROM and TO to single argument NCHARS. Change caller.
25597 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25598 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25599 (decode_coding_ccl, decode_coding_charset): Pay attention to
25600 coding->charbuf_used.
25601 (get_translation): New function.
25602 (produce_chars): New arguments translation_table and last_block.
25603 Translate characters here. Return number of carryover chars.
25604 Change caller.
25605 (produce_composition): New argument pos. Change caller.
25606 Adjust for the change of annotation data format.
25607 (produce_charset, produce_annotation): Likewise.
25608 (decode_coding, encode_coding): Don't call translate_chars.
25609 (consume_chars): New arg translation_table. Change caller.
25610 (translate_chars): Delete.
25611 (syms_of_coding): Make translation-table's number of extra slots 2.
25612
25613 2008-02-01 Kenichi Handa <handa@m17n.org>
25614
25615 * search.c (simple_search): Fix setting this_pos_byte in backward
25616 search.
25617
25618 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25619 byte sequence.
25620 (detect_coding_ccl): Fix setting of the variable valids.
25621
25622 2008-02-01 Kenichi Handa <handa@m17n.org>
25623
25624 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25625
25626 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25627
25628 * editfns.c (Ftranslate_region_internal): Rename from
25629 Ftranslate_region. Accept a char-table in TABLE.
25630 (syms_of_editfns): Defsubr Stranslate_region_internal.
25631
25632 * xfaces.c (set_lface_from_font_name): If a font is specified for
25633 a frame, generate a fontset from the font.
25634 (build_scalable_font_name): If the scalable font is requested for
25635 a specific size, don't change that size.
25636 (try_font_list): Try a scalable font also in the case that a
25637 pattern string is specified.
25638
25639 2008-02-01 Kenichi Handa <handa@m17n.org>
25640
25641 * xfaces.c (Fface_font): New optional arg CHARACTER.
25642
25643 2008-02-01 Kenichi Handa <handa@m17n.org>
25644
25645 * charset.h (CHARSET_OFFSET): New macro.
25646
25647 2008-02-01 Kenichi Handa <handa@m17n.org>
25648
25649 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25650
25651 * fontset.c (fontset_face): Handle the case that repertory is a
25652 char-table.
25653 (find_font_encoding): Return nil for unknown encoding.
25654 (Fset_fontset_font): Ignore a font of unknown encoding.
25655
25656 2008-02-01 Kenichi Handa <handa@m17n.org>
25657
25658 * keymap.c (describe_vector): Handle default value of a char table.
25659
25660 * fontset.c (fontset_face): Handle fallback fonts correctly.
25661 (Ffontset_info): Return infomation about fallback fonts.
25662
25663 2008-02-01 Kenichi Handa <handa@m17n.org>
25664
25665 * fontset.c (FONTSET_DEFAULT): New macro.
25666 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25667 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25668 the case that it is nil.
25669 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25670 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25671
25672 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25673 subset or superset.
25674
25675 2008-02-01 Kenichi Handa <handa@m17n.org>
25676
25677 * emacs.c (main): Call init_charset after syms_of_XXX.
25678
25679 * charset.c (Vcharset_map_directory): Delete.
25680 (Vcharset_map_path): New variable.
25681 (load_charset_map_from_file): Use Vcharset_map_path instead.
25682 (init_charset): Initialize Vcharset_map_path.
25683 (syms_of_charset): Delete declaration of "charset-map-directory",
25684 add declaration of "charset-map-path".
25685
25686 2008-02-01 Kenichi Handa <handa@m17n.org>
25687
25688 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25689 ASCII only string.
25690
25691 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25692
25693 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25694 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25695
25696 2008-02-01 Kenichi Handa <handa@m17n.org>
25697
25698 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25699
25700 * coding.c (QCmnemonic, QCdefalut_char)
25701 (QCdecode_translation_table, QCencode_translation_table)
25702 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25703 (get_translation_table): Return a list of translation tables if
25704 necessary.
25705 (decode_coding): Call get_translation_table with ENCODEP 0.
25706 (char_encodable_p): If translation_table is non-nil, always call
25707 translate_char.
25708 (Fdefine_coding_system_internal): Accept list of translation
25709 tables as :encode-translation-table and :decode-translation-table.
25710 (Fcoding_system_put): New function.
25711 (syms_of_coding): Declare new symbols.
25712 Defsubr Scoding_system_put.
25713 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25714 typically JISX0212.
25715
25716 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25717 when the charset is superset type.
25718
25719 * character.c (translate_char): Accept list of translation tables.
25720
25721 2008-02-01 Kenichi Handa <handa@m17n.org>
25722
25723 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25724 (CODING_ATTR_TRANS_TBL): New macro.
25725
25726 * coding.c (get_translation_table): New function.
25727 (translate_chars): Fix the bug of skipping annotation data.
25728 (decode_coding, encode_coding): Utilize get_translation_table.
25729 (char_encodable_p, Funencodable_char_position): Translate char if
25730 necessary.
25731 (Ffind_coding_systems_region_internal)
25732 (Fcheck_coding_systems_region): Setup translation table for encode
25733 in a coding system attribute vector in advance.
25734 (Fdefine_coding_system_internal): Allow a symbol as translation
25735 table. For shift-jis type coding system, allow 4th charset.
25736
25737 2008-02-01 Kenichi Handa <handa@m17n.org>
25738
25739 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25740
25741 * xdisp.c (get_next_display_element): Pass -1 as POS to
25742 FACE_FOR_CHAR if displaying a C-string.
25743
25744 2008-02-01 Kenichi Handa <handa@m17n.org>
25745
25746 * composite.c (get_composition_id): Handle xoff and yoff in a
25747 composition rule.
25748
25749 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25750 (struct composition): New member lbearing and rbearing.
25751
25752 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25753 (x_get_glyph_overhangs): Handle a composition glyph.
25754 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25755
25756 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25757 composition glyph.
25758
25759 2008-02-01 Kenichi Handa <handa@m17n.org>
25760
25761 * print.c: Include charset.h.
25762 (Vprint_charset_text_property): New variable.
25763 (Qdefault): Extern it.
25764 (PRINT_STRING_NON_CHARSET_FOUND)
25765 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25766 (print_check_string_result): New variable.
25767 (print_check_string_charset_prop): New function.
25768 (print_prune_charset_plist): New variable.
25769 (print_prune_string_charset): New function.
25770 (print_object): Call print_prune_string_charset if
25771 Vprint_charset_text_property is not t.
25772 (print_interval): Print nothing if interval->plist is nil.
25773 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25774 variable. Init and staticpro print_prune_charset_plist.
25775
25776 2008-02-01 Kenichi Handa <handa@m17n.org>
25777
25778 * fontset.c (new_fontset_from_font_name): Use the specified font
25779 for all characters in the new fontset.
25780
25781 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25782 OBJECT args.
25783
25784 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25785 OBJECT args for composition too.
25786
25787 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25788 OBJECT args.
25789
25790 2008-02-01 Kenichi Handa <handa@m17n.org>
25791
25792 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25793
25794 * fontset.c (reorder_font_vector): Adjust for the change of
25795 FONT_DEF format.
25796 (fontset_face): New arg id. Change caller.
25797 (face_for_char): New args pos and object.
25798 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25799 (fs_query_fontset): Check NAME by Fassoc too.
25800 (Fset_fontset_font): Allow non-XLFD font name.
25801 (Ffontset_info): Adjust for the change of FONT_DEF format.
25802
25803 * fontset.h (face_for_char): Adjust prototype.
25804
25805 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25806 (append_space, extend_face_to_end_of_line)
25807 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25808 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25809
25810 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25811 POS and OBJECT args.
25812
25813 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25814 POS and OBJECT args.
25815
25816 2008-02-01 Jason Rumney <jasonr@gnu.org>
25817
25818 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25819 of GlobalAlloc'ed memory.
25820
25821 2008-02-01 Kenichi Handa <handa@m17n.org>
25822
25823 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25824
25825 * charset.h (charset_table_used): Delete extern.
25826
25827 * charset.c (charset_table_used): Make it static.
25828 (map_charset_chars): Fix args to c_function with.
25829
25830 * chartab.c (map_sub_char_table_for_charset): Fix args to
25831 c_function with.
25832
25833 * coding.h (enum coding_result_code):
25834 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
25835
25836 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25837 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25838 (Vlast_code_conversion_error): New variables.
25839 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25840 (ONE_MORE_BYTE): Record error if any instead of signaling an
25841 error. If non-ASCII multibyte char is found, return the negative
25842 value of the code. All callers changed to check it.
25843 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25844 (record_conversion_result): New function. Change all codes setting
25845 coding->result to call this function.
25846 (detect_coding_utf_8, decode_coding_utf_8)
25847 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25848 Don't use the local variable incomplete.
25849 (emacs_mule_char): Change the second arg to `const'.
25850 (decode_coding): Fix of flushing out unprocessed data.
25851 (make_conversion_work_buffer): Fix making of a work buffer.
25852 (decode_coding_object): Return coding->dst_object.
25853
25854 * fontset.c (set_fontset_font): Fix args.
25855
25856 * lisp.h (CHARACTERBITS): Define as 22.
25857
25858 * process.c (send_process): Be sure to set coding->src_multibyte.
25859
25860 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25861
25862 2008-02-01 Kenichi Handa <handa@m17n.org>
25863
25864 * xdisp.c (handle_auto_composed_prop): Give limit to
25865 Fnext_single_char_property_change.
25866
25867 2008-02-01 Kenichi Handa <handa@m17n.org>
25868
25869 * composite.c (syms_of_composite): Don't make the composition hash
25870 table weak.
25871
25872 * fontset.c (Fset_fontset_font): Fix docstring.
25873
25874 * lisp.h (detect_coding_system): Adjust prototype.
25875
25876 * fileio.c (kill_workbuf_unwind): Delete this function.
25877 (Finsert_file_contents): Adjust the call of detect_coding_system.
25878 Get conversion_buffer by code_conversion_save. Use the macro
25879 CODING_MAY_REQUIRE_DECODING. After decoding, update
25880 coding_system.
25881
25882 * coding.h (make_conversion_work_buffer): Delete extern.
25883 (code_conversion_save): Extern it.
25884
25885 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25886 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25887 (decode_coding_utf_8): Don't do eol converion.
25888 (detect_coding_utf_16): Check coding->src_chars, not
25889 coding->src_bytes. Add heuristics for those that have no signature.
25890 (decode_coding_emacs_mule, decode_coding_iso_2022)
25891 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25892 Don't do eol converion.
25893 (adjust_coding_eol_type): Return a new coding system.
25894 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25895 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25896 each change.
25897 (decode_coding): Pay attention to undo_list. Do eol conversion for
25898 all types of coding-systems (if necessary).
25899 (Vcode_conversion_work_buf_list): Delete it.
25900 (Vcode_conversion_reused_workbuf): Rename from
25901 Vcode_conversion_reused_work_buf.
25902 (Vcode_conversion_workbuf_name): New variable.
25903 (reused_workbuf_in_use): New variable.
25904 (make_conversion_work_buffer): Delete the arg DEPTH.
25905 (code_conversion_restore): Change argument to cons.
25906 (code_conversion_save): Delete the argument BUFFER. Change callers.
25907 (detect_coding_system): New argument src_chars. Change callers.
25908 Fix for utf-16 detection.
25909 (init_coding_once): Don't use ISO_carriage_return.
25910 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25911 reused_workbuf_in_use.
25912
25913 2008-02-01 Kenichi Handa <handa@m17n.org>
25914
25915 * keymap.c (store_in_keymap): Pay attention to the case that idx
25916 is a cons specifying a character range.
25917
25918 2008-02-01 Kenichi Handa <handa@m17n.org>
25919
25920 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25921 HANDLED_RECOMPUTE_PROPS.
25922
25923 * coding.c (Fdefine_coding_system_internal): Fix checking of
25924 ascii compatibility.
25925
25926 2008-02-01 Kenichi Handa <handa@m17n.org>
25927
25928 * charset.c (find_charsets_in_text): Delete unused locale variable.
25929 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25930
25931 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25932 Resync charset_list to Vemacs_mule_charset_list.
25933
25934 * keymap.c (store_in_keymap): Pay attention to the case that idx
25935 is a cons specifying a character range.
25936
25937 2008-02-01 Kenichi Handa <handa@m17n.org>
25938
25939 * composite.c (update_compositions): Bind inhibit-read-only, etc
25940 to t before calling remove-list-of-text-properties.
25941
25942 * print.c (print_object): Always print ASCII chars as is.
25943
25944 2008-02-01 Kenichi Handa <handa@m17n.org>
25945
25946 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25947
25948 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25949 is a char table.
25950
25951 2008-02-01 Kenichi Handa <handa@m17n.org>
25952
25953 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25954
25955 2008-02-01 Kenichi Handa <handa@m17n.org>
25956
25957 * xfaces.c (set_lface_from_font_name): Fix for the case that
25958 FONTNAME is not fontset name.
25959
25960 2008-02-01 Kenichi Handa <handa@m17n.org>
25961
25962 * fns.c (base64_encode_1): Fix previous change.
25963
25964 2008-02-01 Kenichi Handa <handa@m17n.org>
25965
25966 * fontset.c (set_fontset_font): New function.
25967 (Fset_fontset_font): If a font is specified for a charset, use
25968 map_charset_chars to store the font spec in a fontset.
25969
25970 2008-02-01 Kenichi Handa <handa@m17n.org>
25971
25972 * fontset.c (fontset_face): Create a fallback fontset on demand.
25973 (make_fontset): Don't create a fallback fontset here.
25974 (free_face_fontset): Free a fallback fontset (if any) too.
25975 (n_auto_fontsets): Delete this variable.
25976 (auto_fontset_alist): New variable.
25977 (new_fontset_from_font_name): Check auto_fontset_alist.
25978 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25979 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25980 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25981 Defsubr Sfontset_list_all.
25982
25983 2008-02-01 Kenichi Handa <handa@m17n.org>
25984
25985 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25986
25987 2008-02-01 Kenichi Handa <handa@m17n.org>
25988
25989 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25990
25991 2008-02-01 Kenichi Handa <handa@m17n.org>
25992
25993 * editfns.c (Fgoto_char): Fix docstring.
25994
25995 2008-02-01 Kenichi Handa <handa@m17n.org>
25996
25997 * insdel.c (insert_from_gap): Adjust intervals correctly.
25998
25999 2008-02-01 Jason Rumney <jasonr@gnu.org>
26000
26001 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26002 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26003 (w32_initialize): Try to load it.
26004 (x_get_font_repertory): Use it if available.
26005 (w32_encode_char): Add shortcut for unicode output.
26006
26007 * w32fns.c (w32_load_system_font): Default charset to -1.
26008 (x_to_w32_charset): Match all fonts for unicode.
26009 (w32_to_x_charset): New parameter matching. Don't return partial
26010 or wildcard charsets.
26011 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26012 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26013 (w32_to_x_font): Match charset to real charset.
26014 (enum_font_cb2): Always list unicode versions.
26015
26016 * makefile.w32-in (temacs): Increase EMHEAP.
26017
26018 2008-02-01 Jason Rumney <jasonr@gnu.org>
26019
26020 * w32term.c (w32_encode_char): New charset parameter.
26021 font_info.encoding becomes encoding_type.
26022 (x_get_font_repertory): New function. Warning: stub only!
26023 (x_new_font): Return quickly if font already set.
26024 (x_new_fontset): fontsetname parameter is Lisp_Object.
26025 Use new fs_query_fontset. Try new_fontset_from_font_name.
26026 Use fontset_name for return value.
26027
26028 * w32term.h: Declare x_get_font_repertory.
26029
26030 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26031 place of find_charset_in_text. Use encode_coding_object in place
26032 of encode_coding.
26033 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26034 decode_coding.
26035
26036 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26037 of x_new_fontset.
26038 (w32_load_system_font): Initialize charset as unicode.
26039 font_info.encoding becomes encoding_type.
26040 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26041 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26042 (syms_of_w32fns): Set get_font_repertory_func.
26043
26044 * w32console.c: Include character.h. Use terminal_encode_buffer
26045 from term.c.
26046 (write_glyphs): Use new version of encode_terminal_code.
26047 Use encode_coding_object in place of encode_coding.
26048
26049 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26050 encoding becomes encoding_type.
26051
26052 * term.c (terminal_encode_buffer): Make externally visible.
26053
26054 * makefile.w32-in: Add character.h dependancies.
26055 (character.o, chartab.o): New targets.
26056
26057 2008-02-01 Kenichi Handa <handa@m17n.org>
26058
26059 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26060 CODING_ID_EOL_TYPE.
26061
26062 2008-02-01 Andreas Schwab <schwab@suse.de>
26063
26064 * coding.c (produce_chars): Revert last change.
26065
26066 2008-02-01 Kenichi Handa <handa@m17n.org>
26067
26068 * charset.h (charset_unicode): Extern it.
26069
26070 * charset.c (string_xstring_p): Check by (C >= 0x100).
26071 (find_charsets_in_text): Change format of the arc CHARSETS.
26072 New arg MULTIBYTE.
26073 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26074 change of find_charsets_in_text.
26075 (Fsplit_char): Fix doc. Never return unknown.
26076
26077 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26078
26079 * coding.c (Fdefine_coding_system_alias):
26080 Update Vcoding_system_list.
26081
26082 * fontset.c (load_font_get_repertory): Pay attention to the case
26083 that ENCODING of a font is specified by a char-table.
26084
26085 * xterm.c (x_get_font_repertory): Handle the case that the
26086 encoding of font is other than Unicode.
26087
26088 2008-02-01 Kenichi Handa <handa@m17n.org>
26089
26090 * term.c (encode_terminal_code): Don't handle glyph-table.
26091 Check if a character is encodable by the terminal coding system.
26092 If not, produces proper number of `?'s. Update
26093 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26094 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26095
26096 2008-02-01 Kenichi Handa <handa@m17n.org>
26097
26098 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26099 New variables.
26100 (encode_terminal_code): Change argument. Encode multiple
26101 characters at once. Store the result of encoding in
26102 terminal_encode_buffer.
26103 (write_glyphs, insert_glyphs): Adjust for the change of
26104 encode_terminal_code.
26105 (term_init): Initialize terminal_encode_buffer and
26106 terminal_encode_buf_size.
26107
26108 * coding.c (consume_chars): If coding->src_object is nil, don't
26109 check annotation.
26110
26111 2008-02-01 Kenichi Handa <handa@m17n.org>
26112
26113 * character.c (char_string): Use ASCII_CHAR_P instead of
26114 SINGLE_BYTE_CHAR_P.
26115
26116 2008-02-01 Kenichi Handa <handa@m17n.org>
26117
26118 * xdisp.c (handle_auto_composed_prop): Check if the last
26119 characters of auto-composed region is newly composed with the
26120 following characters.
26121 (handle_composition_prop): Fix checking of point being inside
26122 composition.
26123
26124 2008-02-01 Kenichi Handa <handa@m17n.org>
26125
26126 * fns.c (concat): Don't change multibyteness of the result by
26127 concatenating an 8-bit character.
26128
26129 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26130 multibyteness of the result when newelt is an 8-bit character.
26131
26132 2008-02-01 Dave Love <fx@gnu.org>
26133
26134 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26135 EMACS_INT.
26136
26137 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26138
26139 * xfaces.c (face_numeric_value): Declare dim size_t.
26140 (Finternal_lisp_face_equal_p): Remove unused f.
26141
26142 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26143 (MATRIX_ROW): Remove unused vars.
26144 (draw_glyphs, x_insert_glyphs, fast_find_position)
26145 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26146 byte/char counts.
26147
26148 * regex.c (regex_compile): Remove unused var.
26149
26150 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26151
26152 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26153 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26154
26155 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26156
26157 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26158
26159 * fileio.c (Fwrite_region): Remove unused var.
26160
26161 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26162 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26163
26164 * composite.c (Fremove_list_of_text_properties): Declare.
26165
26166 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26167 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26168 (coding_inherit_eol_type): Remove unused attrs.
26169 (detect_coding): Cast arg of detect_eol.
26170
26171 * charset.c (syms_of_charset): Remove unused var p.
26172 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26173 byte/char counts.
26174
26175 * casetab.c (set_case_table): Remove unused var.
26176
26177 * window.c (Fdisplay_buffer, Fframe_selected_window):
26178 Remove unused vars.
26179
26180 2008-02-01 Dave Love <fx@gnu.org>
26181
26182 * xterm.c (x_bitmap_mask): Declare.
26183
26184 2008-02-01 Dave Love <fx@gnu.org>
26185
26186 * xterm.c (x_term_init): Fix type error.
26187
26188 * lisp.h: Add Funibyte_char_to_multibyte.
26189
26190 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26191 (Fset_coding_system_priority): Doc fix.
26192
26193 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26194
26195 * indent.c (check_composition): Make start and end EMACS_INT.
26196
26197 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26198
26199 * xdisp.c (handle_composition_prop, check_point_in_composition):
26200 Make buffer positions EMACS_INT.
26201
26202 * composite.c (find_composition, run_composition_function)
26203 (update_compositions, Ffind_composition_internal): Make buffer
26204 positions EMACS_INT.
26205
26206 * composite.h (find_composition, update_compositions):
26207 Make position args EMACS_INT.
26208
26209 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26210
26211 * intervals.c (get_property_and_range):
26212 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26213
26214 * unexalpha.c: Don't include varargs.h.
26215
26216 2008-02-01 Dave Love <fx@gnu.org>
26217
26218 * coding.h (ENCODE_UTF_8): New.
26219
26220 * Makefile.in (gtkutil.o): Depend on coding.h.
26221
26222 * coding.c (Fset_coding_system_priority): Doc fix.
26223
26224 2008-02-01 Kenichi Handa <handa@m17n.org>
26225
26226 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26227 the case of auto saving.
26228
26229 2008-02-01 Andreas Schwab <schwab@suse.de>
26230
26231 * chartab.c (map_char_table, map_char_table_for_charset):
26232 Protect `range' from GC.
26233
26234 2008-02-01 Kenichi Handa <handa@m17n.org>
26235
26236 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26237
26238 2008-02-01 Kenichi Handa <handa@m17n.org>
26239
26240 * fileio.c (choose_write_coding_system): Return a decided coding system.
26241 (Fwrite_region): Set Vlast_coding_system_used to the return value
26242 of choose_write_coding_system.
26243
26244 2008-02-01 Kenichi Handa <handa@m17n.org>
26245
26246 * charset.c (Fset_charset_priority): Pay attention to duplicated
26247 arguments.
26248
26249 * coding.c (QCcategory): New variable.
26250 (syms_of_coding): Defsym it. Set all elements of
26251 Vcoding_category_table and their symbol values.
26252 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26253 coding-category-XXX, and coding-category-list.
26254 (Fdefine_coding_system_internal): Add category in the plist.
26255
26256 2008-02-01 Kenichi Handa <handa@m17n.org>
26257
26258 * callproc.c (Fcall_process): Handle carryover correctly.
26259
26260 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26261 (raw_text_coding_system): Check NILP (coding_system).
26262 (coding_inherit_eol_type): Check NILP (coding_system) and
26263 NILP (parent).
26264 (consume_chars): Fix for the case of raw-text.
26265
26266 * process.c (read_process_output): Handle carryover correctly.
26267
26268 2008-02-01 Dave Love <fx@gnu.org>
26269
26270 * regex.c (re_search_2): Fix last change.
26271
26272 2008-02-01 Kenichi Handa <handa@m17n.org>
26273
26274 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26275 target_multibyte. Even in a unibyte case, return a converted
26276 multibyte char.
26277 (GET_CHAR_AFTER): New macro.
26278 (PATFETCH): Translate via multibyte char.
26279 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26280 (SETUP_MULTIBYTE_RANGE): New macro.
26281 (regex_compile): Setup compiled code so that its multibyteness
26282 matches that of a target. Fix the handling of "[X-YZ]" using
26283 SETUP_MULTIBYTE_RANGE.
26284 (analyse_first) <charset>: For filling fastmap for all multibyte
26285 characters, don't check by BASE_LEADING_CODE_P.
26286 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26287 the same as RE_MULTIBYTE_P (bufp) now.
26288 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26289 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26290 (TRANSLATE_VIA_MULTIBYTE): New macro.
26291 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26292 It is the same as RE_MULTIBYTE_P (bufp) now.
26293 <exactn>: Translate via multibyte.
26294 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26295 Don't translate it.
26296 <charset, charset_not>: Fetch a character by
26297 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26298 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26299 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26300 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26301 by GET_CHAR_AFTER.
26302 (bcmp_translate): Likewise.
26303
26304 * search.c (compile_pattern): Check the member target_multibyte,
26305 not the member multibyte of buf.
26306
26307 * lread.c (read1): While reading a string, set force_singlebyte
26308 and force_multibyte correctly.
26309
26310 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26311 up of unibyte_to_multibyte_table.
26312
26313 2008-02-01 Kenichi Handa <handa@m17n.org>
26314
26315 * coding.c (setup_coding_system): If coding has
26316 post-read-conversion or pre-write-conversion, set
26317 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26318 respectively.
26319 (decode_coding_gap): Run post-read-conversion if any.
26320
26321 * fileio.c (Finsert_file_contents): Even if we read into a
26322 unibyte buffer, check if we must decode the result or not.
26323
26324 2008-02-01 Kenichi Handa <handa@m17n.org>
26325
26326 * coding.c (make_conversion_work_buffer): Change the work buffer
26327 name to the same one as that of Emacs 21.
26328
26329 2008-02-01 Kenichi Handa <handa@m17n.org>
26330
26331 * coding.h (make_conversion_work_buffer): Adjust prototype.
26332 (code_conversion_restore): Don't extern it.
26333
26334 * coding.c (detected_mask): Delete unused variable.
26335 (decode_coding_iso_2022): Pay attention to the byte sequence of
26336 CTEXT extended segment, and retain those bytes as is.
26337 (decode_coding_ccl): Delete unused variable `valids'.
26338 (setup_coding_system): Delete unused variable `category'.
26339 (consume_chars): Delete unused variable `category'. Make it work
26340 for non-multibyte case.
26341 (make_conversion_work_buffer): Change argument.
26342 (saved_coding): Delete unused variable.
26343 (code_conversion_restore): Don't check saved_coding->destination.
26344 (code_conversion_save): New function.
26345 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26346 instead of record_unwind_protect.
26347 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26348 (detect_coding_system): Delete unused variable `mask'.
26349 (Fdefine_coding_system_internal): Delete unused variable id.
26350
26351 * fileio.c (kill_workbuf_unwind): New function.
26352 (Finsert_file_contents): On replacing, call
26353 make_conversion_work_buffer with correct args, and call
26354 record_unwind_protect with the first arg kill_workbuf_unwind.
26355
26356 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26357
26358 2008-02-01 Kenichi Handa <handa@m17n.org>
26359
26360 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26361 (fontset_add): Fix for the case that TO is less than TO1.
26362 (Ffontset_info): Don't use fallback fontset on checking the
26363 default fontset.
26364 (dump_fontset): New function for debugging.
26365
26366 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26367 coding_type is Qcharset.
26368
26369 2008-02-01 Kenichi Handa <handa@m17n.org>
26370
26371 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26372 (map_char_table): Don't inherit the value from the parent on
26373 initializing VAL. Adjust for the above change.
26374
26375 2008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * coding.c (Qsignature, Qendian): Delete these variables.
26378 (syms_of_coding): Don't initialize them.
26379 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26380 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26381 detect_info->found.
26382 (decode_coding_utf_16): Don't detect BOM here.
26383 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26384 is NOT utf_16_without_bom.
26385 (setup_coding_system): For a coding system of type utf-16, check
26386 if the attribute :endian is Qbig or not (not nil or not), and set
26387 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26388 (detect_coding): If coding type is utf-16 and BOM detection is
26389 required, detect it.
26390 (Fdefine_coding_system_internal): For a coding system of type
26391 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26392
26393 2008-02-01 Kenichi Handa <handa@m17n.org>
26394
26395 * coding.c (coding_set_source): Fix for the case that the current
26396 buffer is different from coding->src_object.
26397 (decode_coding_object): Don't use the conversion work buffer if
26398 DST_OBJECT is a buffer.
26399
26400 2008-02-01 Dave Love <fx@gnu.org>
26401
26402 * lread.c (read_emacs_mule_char) [len==2]: Index
26403 emacs_mule_charset correctly.
26404
26405 2008-02-01 Dave Love <fx@gnu.org>
26406
26407 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26408 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26409 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26410 treated specially.)
26411 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26412 (detected_mask): Remove Big5 bits.
26413
26414 2008-02-01 Kenichi Handa <handa@m17n.org>
26415
26416 The following changes are to make the font rescaling facility
26417 compatible with Emacs 21.
26418
26419 * xfaces.c (Vface_font_rescale_alist): Rename from
26420 Vface_resizing_fonts.
26421 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26422 (font_rescale_ratio): Rename from font_resizing_ratio.
26423 (split_font_name): Set font->rescale_ratio.
26424 (better_font_p): Pay attention to font->rescale_ratio.
26425 (build_scalable_font_name): Likewise. Change RESX, and RESY
26426 fields.
26427 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26428
26429 2008-02-01 Kenichi Handa <handa@m17n.org>
26430
26431 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26432 (Qutf_16_le): Remove these variables.
26433 (syms_of_coding): Don't DEFSYM them.
26434 (decode_coding_utf_16): Fix handling of BOM.
26435 (encode_coding_utf_16): Fix handling of BOM.
26436
26437 2008-02-01 Kenichi Handa <handa@m17n.org>
26438
26439 * fileio.c (Finsert_file_contents): On replacing, before decoding
26440 the file into the work buffer, set point of the work buffer to the end.
26441
26442 2008-02-01 Dave Love <fx@gnu.org>
26443
26444 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26445
26446 2008-02-01 Dave Love <fx@gnu.org>
26447
26448 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26449 and fix C types.
26450
26451 2008-02-01 Kenichi Handa <handa@m17n.org>
26452
26453 * xdisp.c (SKIP_GLYPHS): New macro.
26454 (set_cursor_from_row): Pay attention to string display properties.
26455
26456 * category.c (copy_category_entry): Fix for the case that RANGE
26457 is an integer.
26458
26459 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26460
26461 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26462
26463 2008-02-01 Kenichi Handa <handa@m17n.org>
26464
26465 * charset.c (Fcharset_id_internal): New function.
26466 (syms_of_charset): Defsubr it.
26467
26468 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26469 with the last arg charset_list acquired from coding.
26470 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26471 the attribute coding_attr_ccl_valids.
26472
26473 * coding.h (enum define_coding_ccl_arg_index): Set the first
26474 member coding_arg_ccl_decoder to coding_arg_max.
26475
26476 * ccl.h (ccl_driver): Adjust prototype.
26477
26478 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26479 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
26480 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
26481 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26482 last arg Qnil.
26483
26484 2008-02-01 Kenichi Handa <handa@m17n.org>
26485
26486 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26487 call encode_char.
26488
26489 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26490
26491 2008-02-01 Dave Love <fx@gnu.org>
26492
26493 * composite.c (syms_of_composite): Make composition_hash_table weak.
26494
26495 2008-02-01 Kenichi Handa <handa@m17n.org>
26496
26497 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26498 (font_name_registry): Don't extern them.
26499 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26500
26501 * fontset.h (Qfontset): Don't extern it.
26502 (new_fontset_from_font_name): Extern it.
26503
26504 * fontset.c: Give 8 extra slots to fontset objects.
26505 (Qfontset_info): New variable.
26506 (syms_of_fontset): Defsym it.
26507 (FONTSET_FALLBACK): New macro.
26508 (fontset_face): Try also the default fontset.
26509 (make_fontset): Realize a fallback fontset from the default fontset.
26510 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26511 using split_font_name_into_vector and build_font_name_from_vector.
26512 (Fset_fontset_font): Access the elements of font_spec by enum
26513 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26514 name by using split_font_name_into_vector.
26515 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
26516 generate a proper font name from the fontset name.
26517 Update Vfontset_alias_alist.
26518 (n_auto_fontsets): New variable.
26519 (new_fontset_from_font_name): New function.
26520 (Ffont_info): Store the information about fonts generated from the
26521 default fontset in the first extra slot of the returned char-table.
26522
26523 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26524 (font_name_registry): Delete function.
26525 (split_font_name_into_vector): New function.
26526 (build_font_name_from_vector): New function.
26527 (font_list): The argument REGISTRY is now a list of registry names.
26528 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26529 specifies an explicit font name, return the name as is. Make a
26530 list of registy names.
26531
26532 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26533 of x_new_fontset.
26534 (Fx_create_frame): Don't call x_new_fontset here. Just use
26535 x_list_fonts to check the existence of fonts.
26536
26537 * xterm.h (x_new_fontset): Adjust prototype.
26538
26539 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26540 string. Use new_fontset_from_font_name to create a fontset from a
26541 font name.
26542
26543 2008-02-01 Kenichi Handa <handa@m17n.org>
26544
26545 * syntax.c (Vfind_word_boundary_function_table): New name for
26546 Vnext_word_boundary_function_table.
26547 (find-word-boundary-function-table): New name for
26548 next-word-boundary-function-table.
26549
26550 2008-02-01 Dave Love <fx@gnu.org>
26551
26552 * Makefile.in: Fix some dependencies.
26553
26554 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26555 set it to nil before returning.
26556
26557 * composite.c (update_compositions): Fix type error.
26558
26559 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26560
26561 2008-02-01 Kenichi Handa <handa@m17n.org>
26562
26563 * xterm.c (x_new_font): Optimize for the case that the font is
26564 already set for the frame.
26565
26566 2008-02-01 Kenichi Handa <handa@m17n.org>
26567
26568 * chartab.c (char_table_ascii): Check if the char table contents
26569 is sub-char-table or not.
26570 (char_table_set, char_table_set_range): Fix argument to
26571 char_table_ascii.
26572
26573 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26574 (detect_coding_utf_8, detect_coding_utf_16)
26575 (detect_coding_emacs_mule, detect_coding_iso_2022)
26576 (detect_coding_sjis, detect_coding_big5)
26577 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26578 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26579 sequence is valid in this coding system. Change callers.
26580 (MAX_ANNOTATION_LENGTH): New macro.
26581 (ADD_ANNOTATION_DATA): New macro.
26582 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26583 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
26584 (ADD_CHARSET_DATA): New macro.
26585 (emacs_mule_char): New argument ID. Change callers.
26586 (decode_coding_emacs_mule, decode_coding_iso_2022)
26587 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26588 Produce charset annotation data in coding->charbuf.
26589 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26590 to charset annotation data in coding->charbuf.
26591 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26592 coding->common_flags if the coding system is iso-2022 based and
26593 uses designation.
26594 (produce_composition): Adjust for the new annotation data format.
26595 (produce_charset): New function.
26596 (produce_annotation): Handle charset annotation.
26597 (handle_composition_annotation, handle_charset_annotation):
26598 New functions.
26599 (consume_chars): Handle charset annotation. Utilize the above two
26600 functions.
26601 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26602 buffer, get the deleted text as a string and set
26603 coding->src_object to that string.
26604 (detect_coding, detect_coding_system): Use the new struct
26605 coding_detection_info.
26606
26607 * coding.h (struct coding_detection_info): New structure.
26608 (struct coding_system): Adjust prototype of the member `detector'.
26609 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26610
26611 2008-02-01 Kenichi Handa <handa@m17n.org>
26612
26613 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26614
26615 2008-02-01 Dave Love <fx@gnu.org>
26616
26617 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26618 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26619 to new local and nullify apropos_accumulate before returning.
26620 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26621
26622 2008-02-01 Kenichi Handa <handa@m17n.org>
26623
26624 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26625 correctly.
26626
26627 2008-02-01 Dave Love <fx@gnu.org>
26628
26629 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26630
26631 2008-02-01 Kenichi Handa <handa@m17n.org>
26632
26633 The following changes are to make character composition happen
26634 automatically on displaying.
26635
26636 * Makefile.in (lisp, shortlisp): Add composite.elc.
26637
26638 * composite.h (Qauto_composed, Vauto_composition_function)
26639 (Qauto_composition_function): Extern them.
26640
26641 * composite.c (Vcomposition_function_table)
26642 (Qcomposition_function_table): Delete variables.
26643 (Qauto_composed, Vauto_composition_function)
26644 (Qauto_composition_function): New variables.
26645 (run_composition_function): Don't call
26646 compose-chars-after-function.
26647 (update_compositions): Clear `auto-composed' text property.
26648 (compose_chars_in_text): Delete this function.
26649 (syms_of_composite): Staticpro Qauto_composed and
26650 Qauto_composition_function. Declare Vauto_composition_function as
26651 a Lisp variable.
26652
26653 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26654
26655 * xdisp.c (it_props): Add an entry for Qauto_composed.
26656 (handle_auto_composed_prop): New function.
26657
26658 * xselect.c (selection_data_to_lisp_data): Don't call
26659 compose_chars_in_text.
26660
26661 2008-02-01 Dave Love <fx@gnu.org>
26662
26663 * keyboard.c (read_char): Modify checking around use of
26664 Vkeyboard_translate_table.
26665
26666 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26667 and fix C types.
26668
26669 2008-02-01 Kenichi Handa <handa@m17n.org>
26670
26671 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26672 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26673 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26674 the case that the last byte is '\r' correctly.
26675 (decode_coding): Flush out the unprocessed data correctly.
26676 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26677
26678 2008-02-01 Dave Love <fx@gnu.org>
26679
26680 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26681 Add XK_ISO... case.
26682 (xaw_scroll_callback): Revert last change.
26683
26684 2008-02-01 Kenichi Handa <handa@m17n.org>
26685
26686 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26687
26688 2008-02-01 Kenichi Handa <handa@m17n.org>
26689
26690 * xfaces.c (Vface_resizing_fonts): New variable.
26691 (struct font_name): New member `resizing_ratio'.
26692 (font_resizing_ratio): New function.
26693 (split_font_name): Set font->resizing_ratio.
26694 (better_font_p): Pay attention to font->resizing_ratio.
26695 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26696 RESX, and RESY fields.
26697 (try_alternative_families): Try scalable fonts if
26698 Vscalable_fonts_allowed is not Qt.
26699 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26700
26701 2008-02-01 Dave Love <fx@gnu.org>
26702
26703 * xterm.c (xaw_scroll_callback): Cast correctly.
26704
26705 2008-02-01 Dave Love <fx@gnu.org>
26706
26707 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26708 (lispy_kana_keys): Comment out.
26709 (make_lispy_event) [XK_kana_A]: Comment out.
26710
26711 * xterm.c (xaw_scroll_callback): Cast call_data.
26712 (XTread_socket): Deal with ASCII keysyms.
26713 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26714
26715 2008-02-01 Dave Love <fx@gnu.org>
26716
26717 * xterm.c (Vx_keysym_table): New.
26718 (syms_of_xterm): Initialize it.
26719 (XTread_socket): Use it.
26720 From head: Eliminate incorrect optimization that tried to avoid
26721 decoding the output of X*LookupString.
26722 (x_get_font_repertory): Delete charset declaration.
26723
26724 2008-02-01 Kenichi Handa <handa@m17n.org>
26725
26726 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26727 return 0.
26728 (Fdefine_coding_system_internal):
26729 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
26730
26731 2008-02-01 Dave Love <fx@gnu.org>
26732
26733 * coding.c (Fcheck_coding_system): Doc fix.
26734
26735 * editfns.c (Finsert_byte): Return a proper value.
26736
26737 2008-02-01 Kenichi Handa <handa@m17n.org>
26738
26739 * coding.c (decode_coding): Fix args to translate_chars.
26740 Pay attention to Vstandard_translation_table_for_decode.
26741 (encode_coding): Fix args to translate_chars. Pay attention to
26742 Vstandard_translation_table_for_encode.
26743
26744 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26745 SINGLE_BYTE_CHAR_P.
26746
26747 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26748 not by SINGLE_BYTE_CHAR_P.
26749
26750 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26751 SINGLE_BYTE_CHAR_P.
26752
26753 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26754 SINGLE_BYTE_CHAR_P.
26755
26756 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26757 by SINGLE_BYTE_CHAR_P.
26758
26759 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26760 SINGLE_BYTE_CHAR_P.
26761
26762 2008-02-01 Dave Love <fx@gnu.org>
26763
26764 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26765
26766 2008-02-01 Dave Love <fx@gnu.org>
26767
26768 * fns.c (Flanginfo): Fix typo.
26769
26770 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26771
26772 2008-02-01 Kenichi Handa <handa@m17n.org>
26773
26774 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26775 (detect_coding_emacs_mule, detect_coding_iso_2022)
26776 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26777 incomplete byte sequence. Don't update *mask when correctly detected.
26778 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26779 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26780 (detect_coding, detect_coding_system): Adjust for the changes above.
26781
26782 2008-02-01 Kenichi Handa <handa@m17n.org>
26783
26784 * character.c (char_string): Rename from
26785 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26786 (string_char): Rename from string_char.
26787
26788 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26789 if C is greater than MAX_3_BYTE_CHAR.
26790 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26791 Call string_char instead of string_char_with_unification.
26792
26793 2008-02-01 Dave Love <fx@gnu.org>
26794
26795 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26796
26797 2008-02-01 Kenichi Handa <handa@m17n.org>
26798
26799 * keymap.c (push_key_description): Pay attention to force_multibyte.
26800
26801 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26802
26803 2008-02-01 Dave Love <fx@gnu.org>
26804
26805 * charset.c (define_charset_internal): Rename `supprementary'.
26806
26807 * Makefile.in (lisp, shortlisp): Remove latin-N.
26808
26809 2008-02-01 Dave Love <fx@gnu.org>
26810
26811 * xfns.c (x_window, x_window): Use use_xim.
26812
26813 * xterm.c (use_xim): Initialize.
26814 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26815 (x_term_init): Maybe set use_xim.
26816
26817 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26818
26819 2008-02-01 Kenichi Handa <handa@m17n.org>
26820
26821 * search.c (search_buffer): Fix case-fold-search of multibyte
26822 characters.
26823 (boyer_moore): Rename the last argument to char_high_bits.
26824
26825 2008-02-01 Kenichi Handa <handa@m17n.org>
26826
26827 * xdisp.c (display_string): Fix for the case of zero width glyph.
26828
26829 * xfns.c (x_set_font): Change the error message of the case that
26830 x_new_fontset returns Qt.
26831
26832 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26833 (Finternal_set_lisp_face_attribute): Use signal_error for the
26834 error of invalid fontset.
26835
26836 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26837 fontset, return Qt.
26838
26839 2008-02-01 Dave Love <fx@gnu.org>
26840
26841 * unexelf.c (unexec): Make .got handling not SGI-specific.
26842
26843 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26844
26845 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26846
26847 * keyboard.c (read_key_sequence): Fix type error.
26848
26849 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26850 Fix type error.
26851
26852 * fontset.c (fontset_add): Return Lisp_Object.
26853
26854 2008-02-01 Dave Love <fx@gnu.org>
26855
26856 * charset.h (charset_ordered_list_tick): Declare extern.
26857
26858 2008-02-01 Kenichi Handa <handa@m17n.org>
26859
26860 The following changes (and some of 2008-02-01 changes of mine) are
26861 for handling syntax, category, and case conversion for unibyte
26862 characters by converting them to multibyte on the fly. With these
26863 changes, we don't have to setup syntax and case tables for unibyte
26864 characters in each language environment.
26865
26866 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26867 multibyte if necessary.
26868
26869 * bytecode.c (Fbyte_code): Likewise.
26870
26871 * character.h (LEADING_CODE_LATIN_1_MIN)
26872 (LEADING_CODE_LATIN_1_MAX): New macros.
26873 (unibyte_to_multibyte_table): Extern it.
26874 (unibyte_char_to_multibyte): New macro.
26875 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26876 (CHAR_LEADING_CODE): New macro.
26877 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26878
26879 * character.c (unibyte_to_multibyte_table): New variable.
26880 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26881 (multibyte_char_to_unibyte): If C is an eight-bit character,
26882 convert it to the corresponding byte value.
26883
26884 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26885 not 1, signals an error. Update the elements of
26886 unibyte_to_multibyte_table.
26887 (init_charset_once): Initialize unibyte_to_multibyte_table.
26888 (syms_of_charset): Define the charset `iso-8859-1'.
26889
26890 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26891 as is without converting it to unibyte. In a unibyte buffer,
26892 convert C to multibyte before checking the syntax.
26893
26894 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26895
26896 * minibuf.c (Fminibuffer_complete_word): Use the macro
26897 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26898
26899 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26900
26901 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
26902 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26903 If that is zero, convert an eight-bit char to multibyte.
26904 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26905 non-emacs case.
26906 (PATFETCH): Convert an eight-bit char to multibyte.
26907 (HANDLE_UNIBYTE_RANGE): New macro.
26908 (regex_compile): Setup the compiled pattern for multibyte chars
26909 even if the given regex string is unibyte. Use PATFETCH_RAW
26910 instead of PATFETCH in many places. To handle `charset'
26911 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26912 only for ASCII chars.
26913 (analyse_first) <exactn>: Simplify because the compiled pattern
26914 is multibyte.
26915 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26916 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26917 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26918 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26919 multibyte always 1.
26920 (re_search_2): In emacs, set the locale variable multibyte to 1,
26921 otherwise to 0. New local variable target_multibyte. Check it
26922 to decide the multibyteness of STR1 and STR2.
26923 If target_multibyte is zero, convert unibyte chars to multibyte
26924 before translating and checking fastmap.
26925 (TARGET_CHAR_AND_LENGTH): New macro.
26926 (re_match_2_internal): In emacs, set the locale variable multibyte
26927 to 1, otherwise to 0. New local variable target_multibyte.
26928 Check it to decide the multibyteness of STR1 and STR2.
26929 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
26930 <charset, charset_not>: If multibyte is nonzero, check fastmap
26931 only for ASCII chars. Call bcmp_translate with
26932 target_multibyte, not with multibyte.
26933 <begline>: Declare the local variable C as `unsigned'.
26934 (bcmp_translate): Change the last arg name to target_multibyte.
26935
26936 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26937 the regexp pattern and the matching target. Set cp->buf.multibyte
26938 to the multibyteness of the regexp pattern. Set
26939 cp->but.target_multibyte to the multibyteness of the matching target.
26940 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26941 FETCH_STRING_CHAR_ADVANCE.
26942 (Freplace_match): Convert unibyte chars to multibyte.
26943
26944 * syntax.c (char_quoted, back_comment, scan_words)
26945 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26946 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26947 unibyte chars to multibyte.
26948 (skip_chars): Delete the arg syntaxp, and move the code for
26949 handling syntaxes to skip_syntaxes. Change callers.
26950 Fix the case that the multibyteness of STRING and the current
26951 buffer doesn't match.
26952 (skip_syntaxes): New function.
26953 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26954 SINGLE_BYTE_CHAR_P.
26955
26956 2008-02-01 Kenichi Handa <handa@m17n.org>
26957
26958 * xfaces.c (QCfontset): New variable.
26959 (LFACE_FONTSET): New macro.
26960 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26961 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26962 (Finternal_set_lisp_face_attribute)
26963 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26964 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26965 check also LFACE_FONTSET_INDEX.
26966 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26967 attrs[LFACE_FONT_INDEX].
26968 (syms_of_xfaces): Intern and staticpro QCfontset.
26969
26970 * dispextern.h (enum lface_attribute_index): New member
26971 LFACE_FONTSET_INDEX.
26972
26973 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26974
26975 2008-02-01 Kenichi Handa <handa@m17n.org>
26976
26977 * coding.c (coding_set_destination): Fix coding->destination for
26978 the case converting a region.
26979 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26980 (encode_coding_object): Fix coding->dst_pos and
26981 coding->dst_pos_byte for the case converting a region.
26982
26983 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26984
26985 * character.h (BYTE8_STRING): New macro.
26986
26987 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26988
26989 2008-02-01 Kenichi Handa <handa@m17n.org>
26990
26991 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26992 characters by octal form.
26993
26994 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26995
26996 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26997 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26998 _fetch_multibyte_char_len.
26999 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27000
27001 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27002
27003 * casefiddle.c (casify_object): Simplify. Handle the case that
27004 the case conversion change the byte length.
27005 (casify_region): Likewise.
27006
27007 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27008
27009 * character.c (_fetch_multibyte_char_len): Delete this variable.
27010 (syms_of_character): Setup Vprintable_chars.
27011
27012 * editfns.c (Fchar_equal): Fix for the unibyte case.
27013 (Finsert_byte): New function.
27014 (syms_of_editfns): Defsubr it.
27015
27016 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27017 of direct code 0x3ffff.
27018
27019 * search.c (Freplace_match): Fix for the unibyte case.
27020
27021 2008-02-01 Kenichi Handa <handa@m17n.org>
27022
27023 * lread.c (safe_to_load_p): Fix the logic.
27024
27025 * syntax.c (scan_words): Don't treat characters belonging to
27026 different scripts as constituting a word.
27027
27028 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27029
27030 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27031
27032 * emacs.c (main): In the case of --unibyte, instead of aborting on
27033 finding non-empty buffer, make it unibyte.
27034
27035 2008-02-01 Kenichi Handa <handa@m17n.org>
27036
27037 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27038 to create a fontset.
27039
27040 2008-02-01 Dave Love <fx@gnu.org>
27041
27042 * character.c (Funibyte_char_to_multibyte): Doc fix.
27043
27044 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27045
27046 2008-02-01 Kenichi Handa <handa@m17n.org>
27047
27048 * fontset.c (fontset_add): Make the type `int'.
27049 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27050
27051 * character.c (unibyte_char_to_multibyte)
27052 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27053 charset_unibyte, not charset_primary.
27054
27055 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27056
27057 * charset.c (charset_unibyte): Rename from charset_primary.
27058 (Funibyte_charset): Rename from Fprimary_charset.
27059 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27060 (syms_of_charset): Adjust for the above changes.
27061
27062 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27063 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27064 it->multibyte_p is zero.
27065
27066 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27067 Delete extern.
27068
27069 2008-02-01 Kenichi Handa <handa@m17n.org>
27070
27071 * coding.c (Fdefine_coding_system_internal): Fix category setting
27072 for a coding system of type iso-2022.
27073
27074 2008-02-01 Kenichi Handa <handa@m17n.org>
27075
27076 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27077
27078 2008-02-01 Kenichi Handa <handa@m17n.org>
27079
27080 * syntax.c (Vnext_word_boundary_function_table): New variable.
27081 (next-word-boundary-function-table): Declare it as a Lisp variable
27082 in syms_of_syntax.
27083 (scan_words): Call functions in Vnext_word_boundary_function_table
27084 if any.
27085
27086 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27087
27088 * fontset.c (fs_load_font): If fontp->charset is not negative,
27089 return fontp without setting its members.
27090
27091 2008-02-01 Dave Love <fx@gnu.org>
27092
27093 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27094
27095 * m/sparc.h (HAVE_ALLOCA): Delete.
27096
27097 * s/irix6-5.h: Don't include strings.h.
27098 (bcopy, bzero, bcmp): Don't undef.
27099
27100 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27101
27102 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27103 (TIOCSIGSEND): Don't test IRIX6.
27104 (bcopy, bzero, bcmp): Define conditionally.
27105
27106 2008-02-01 Kenichi Handa <handa@m17n.org>
27107
27108 * buffer.c (Qas, Qmake, Qto): New variables.
27109 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27110 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27111
27112 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27113 we are inserting a process output into a multibyte buffer.
27114
27115 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27116 multibyte_char_to_unibyte.
27117
27118 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27119 by the primary charset, make it eight-bit char.
27120 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27121
27122 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27123 (charset_8_bit__control, charset_8_bit_graphic)
27124 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27125 (define_charset_internal): New function.
27126 (syms_of_charset): Call define_charset_internal for pre-defined
27127 charsets.
27128
27129 * charset.h (charset_8_bit): Extern it.
27130
27131 * coding.c (make_conversion_work_buffer): Adjust for the change
27132 of Fset_buffer_multibyte.
27133 (encode_coding_raw_text): Increment p0 in the loop.
27134
27135 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27136
27137 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27138 Adjust for the change of Fset_buffer_multibyte.
27139
27140 * fns.c (Fstring_to_multibyte): New function.
27141 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27142
27143 2008-02-01 Dave Love <fx@gnu.org>
27144
27145 * xfns.c (x_put_x_image): Declare args.
27146
27147 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27148 (try_font_list): Declare an arg.
27149
27150 * xdisp.c (message2_nolog, set_message): Declare an arg.
27151
27152 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27153
27154 * syntax.c (scan_sexps_forward): Declare an arg.
27155
27156 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27157 Declare an arg.
27158
27159 * lisp.h (Fnew_fontset): Declare.
27160
27161 * keymap.c (push_key_description): Call CHARACTERP correctly.
27162
27163 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27164 (face_for_char): Delete unused vars.
27165 (Fset_fontset_font): Doc fix. Delete unused vars.
27166
27167 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27168
27169 * composite.c (update_compositions): Declare arg.
27170
27171 * cm.c (calccost, cmgoto): Declare args.
27172
27173 * charset.c: Remove `emacs' conditional. Doc fixes.
27174 (map_char_table_for_charset): Declare.
27175
27176 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27177
27178 * ccl.c: Remove `emacs' conditional.
27179
27180 2008-02-01 Kenichi Handa <handa@m17n.org>
27181
27182 The following changes are to allow specifying multiple font
27183 patterns for a character range (specified by script or charset).
27184
27185 * Makefile.in (abbrev.o): Depend on syntax.h.
27186 (xfaces.o): Depend on charset.h.
27187
27188 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27189 SINGLE_BYTE_CHAR_P.
27190
27191 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27192
27193 * character.h (Vchar_script_table): Extern it.
27194
27195 * character.c (Vscript_alist): Delete.
27196 (Vchar_script_table, Qchar_script_table): New variable.
27197 (syms_of_character): Declare Vchar_script_table as a lisp variable
27198 and initialize it.
27199
27200 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27201 have property char-table-extra-slots, make no extra slot.
27202
27203 * dispextern.h (struct face): Delete member `charset'.
27204 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27205 SINGLE_BYTE_CHAR_P.
27206 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27207 Add prototypes.
27208 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27209 (generate_ascii_font_name): Rename from generate_ascii_font.
27210
27211 * fontset.h (get_font_repertory_func): New prototype.
27212 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27213 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27214
27215 * fontset.c (Qprepend, Qappend): New variables.
27216 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27217 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27218 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27219 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27220 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27221 (load_font_get_repertory): New functions.
27222 (fontset_set): Delete.
27223 (fontset_face): New arg FACE. Return face ID, not face.
27224 Complete re-write to handle new fontset structure. Change caller.
27225 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27226 (face_for_char): Don't call lookup_face.
27227 (make_fontset_for_ascii_face): New arg FACE.
27228 (fs_load_font): New arg CHARSET_ID. Don't check
27229 Vfont_encoding_alist here.
27230 (find_font_encoding): New function.
27231 (list_fontsets): Use STRINGP, not ! NILP.
27232 (accumulate_script_ranges): New function.
27233 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27234 Completely re-written to handle new fontset structure.
27235 (Ffontset_font): Return a copy of element.
27236 (syms_of_fontset): Define symbols Qprepend and Qappend.
27237 Fix docstring of font-encoding-alist.
27238
27239 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27240 (Fset_fotset_font): Fix arguments to 5.
27241
27242 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27243
27244 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27245 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27246 (highlight_trailing_whitespace): Adjust for the change of
27247 lookup_named_face.
27248
27249 * xfaces.c: Include charset.h.
27250 (load_face_font): Delete argument C. Change caller.
27251 (generate_ascii_font_name): Rename from generate_ascii_font.
27252 (font_name_registry): New function.
27253 (cache_face): Store ascii faces before non-ascii faces in buckets.
27254 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27255 Lookup only ascii faces.
27256 (lookup_non_ascii_face): New function.
27257 (lookup_named_face): Delete argument C. Change caller.
27258 (lookup_derived_face): Delete argument C. Change caller.
27259 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27260 a string, just call font_list with it.
27261 (choose_face_font): Delete arguments FACE and C. New arg
27262 FONT_SPEC. Change caller.
27263 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27264 Change caller.
27265 (realize_non_ascii_face): New function.
27266 (realize_x_face): Call load_face_font here.
27267 (realize_tty_face): Delete argument C. Change caller.
27268 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27269 get a face ID.
27270 (dump_realized_face): Don't print charset of FACE.
27271
27272 * xfns.c (x_set_font): Always call x_new_fontset and
27273 store_frame_parameter.
27274 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27275 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27276
27277 * xterm.h (x_get_font_repertory): Extern it.
27278
27279 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27280 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27281 it->multibyte_p is zero.
27282 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27283 (x_new_fontset): If FONTSETNAME doesn't match any existing
27284 fontsets, create a new one.
27285 (x_get_font_repertory): New function.
27286
27287 2008-02-01 Kenichi Handa <handa@m17n.org>
27288
27289 * coding.c (Ffind_coding_systems_region_internal): Detect an
27290 ASCII only string correctly.
27291
27292 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27293 version is 0.
27294
27295 2008-02-01 Kenichi Handa <handa@m17n.org>
27296
27297 * lread.c: Include "coding.h".
27298 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27299 (load_each_byte, unread_char): New variables.
27300 (readchar_backlog): Delete.
27301 (readchar): Return a character unless load_each_byte is nonzero.
27302 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27303 cons. If unread_char is not -1, simply return it.
27304 (unreadchar): Handle the case that readcharfun is
27305 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27306 (read_multibyte): Delete.
27307 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27308 (read_emacs_mule_char): New functions.
27309 (Fload): Even if the file doesn't have the extension ".elc", if
27310 safe_to_load_p returns a positive version number, assume that the
27311 file contains bytecompiled code. If the version is less than 22,
27312 load the file while decoding multibyte sequences by emacs-mule.
27313 (readevalloop): Don't use readchar_backlog.
27314 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27315 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27316 (read_escape): Delete the arg BYTEREP.
27317 (read1): Set load_each_byte to 1 temporarily while handling
27318 #@NUMBER. Don't call read_multibyte.
27319 (read_vector): Call Fread with a cons. If readcharfun is
27320 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27321 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27322 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27323 and Qload_force_doc_strings.
27324
27325 2008-02-01 Kenichi Handa <handa@m17n.org>
27326
27327 * xdisp.c (face_before_or_after_it_pos):
27328 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
27329
27330 2008-02-01 Kenichi Handa <handa@m17n.org>
27331
27332 * character.h (TRAILING_CODE_P): New macro.
27333 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27334 (string_char_with_unification): Fix prototype.
27335 (Vscript_alist): Extern it.
27336
27337 * character.c (Vscript_alist): New variable.
27338 (string_char_with_unification, str_as_unibyte)
27339 (string_escape_byte8): Add `const' to local variables.
27340 (syms_of_character): Declare script-alist as a Lisp variable.
27341
27342 * charset.h (Vcharset_ordered_list): Extern it.
27343 (charset_ordered_list_tick): Extern it.
27344 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27345 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27346 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27347 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27348 (Funify_charset): Adjust for the change of Funify_charset.
27349
27350 * charset.c (charset_ordered_list_tick): New variable.
27351 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27352 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
27353 deunify instead of unify a charset.
27354 (string_xstring_p): Add `const' to local variables.
27355 (find_charsets_in_text): Add `const' to arguments and local variables.
27356 (encode_char): Adjust for the change of Funify_charset.
27357 Fix detecting of invalid code.
27358 (Fset_charset_priority): Increment charset_ordered_list_tick.
27359 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27360 and TO_CODE.
27361
27362 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27363 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27364 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27365 (decode_coding_ccl, consume_chars)
27366 (Ffind_coding_systems_region_internal)
27367 (Fcheck_coding_systems_region): Add `const' to local variables.
27368
27369 * print.c (print_object): Use octal form for printing the
27370 contents of a bool vector.
27371
27372 2008-02-01 Dave Love <fx@gnu.org>
27373
27374 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27375 <version == 20>: Refuse to load.
27376
27377 2008-02-01 Dave Love <fx@gnu.org>
27378
27379 * fns.c: Move coding.h.
27380 (Qcodeset, Qdays, Qmonths): New.
27381 (concat): Use CHARACTERP instead of INTEGERP.
27382 (Flocale_codeset): Delete.
27383 (Flanginfo): New function.
27384 (syms_of_fns): Change accordingly.
27385
27386 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27387
27388 2008-02-01 Dave Love <fx@gnu.org>
27389
27390 * casetab.c (init_casetab_once, init_casetab_once):
27391 Fix CHAR_TABLE_SET call.
27392
27393 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27394
27395 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27396
27397 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27398 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27399 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27400
27401 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27402
27403 * coding.c (ENCODE_DESIGNATION, decode_eol)
27404 (make_conversion_work_buffer, code_conversion_restore)
27405 (Fdefine_coding_system_internal): Convert Lisp types.
27406 (code_conversion_restore): Use EQ, not ==.
27407 (Fencode_coding_string): Fix code_convert_string call.
27408
27409 * coding.h (code_convert_region): Fix prototype.
27410
27411 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27412
27413 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27414 (Ffontset_info): Convert Lisp types.
27415
27416 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27417
27418 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27419
27420 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27421
27422 * chartab.c: Include "...h", not <...h> in some cases.
27423
27424 * callproc.c (Fcall_process): Remove unused variables.
27425
27426 2008-02-01 Dave Love <fx@gnu.org>
27427
27428 * coding.c (Fset_coding_system_priority): Allow null arg list.
27429
27430 2008-02-01 Dave Love <fx@gnu.org>
27431
27432 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27433 (Fself_insert_and_exit): Use CHARACTERP.
27434
27435 * callproc.c (Fcall_process): Remove unused vars.
27436
27437 * xterm.c (XTread_socket): Add extra dead keysyms.
27438
27439 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27440
27441 * dispextern.h: Remove prototypes for redraw_frame,
27442 redraw_garbaged_frames.
27443
27444 * cmds.c (Fself_insert_command): Use CHARACTERP.
27445
27446 * chartab.c (make_sub_char_table): Remove unused var.
27447 (Fset_char_table_default, Fmap_char_table): Doc fix.
27448
27449 * keymap.c (access_keymap): Remove generic char code.
27450 (push_key_description): Use CHARACTERP.
27451
27452 2008-02-01 Dave Love <fx@gnu.org>
27453
27454 * charset.c: Doc fixes.
27455 (Funify_charset): Extra checking.
27456
27457 2008-02-01 Dave Love <fx@gnu.org>
27458
27459 * lread.c: Remove some unused variables.
27460 (safe_to_load_p): If safe, return the magic number version byte.
27461 (Fload): Maybe use load-with-code-conversion.
27462
27463 2008-02-01 Kenichi Handa <handa@m17n.org>
27464
27465 * category.c (Fmodify_category_entry): Don't modify the contents
27466 of category_set for characters out of the range.
27467 Avoid unnecessary modification.
27468
27469 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27470 Vchar_unify_table. The default value of the table is now nil.
27471
27472 * character.c (syms_of_character): Setup Vchar_width_table for
27473 eight-bit-control and raw-byte chars.
27474
27475 * charset.h (enum define_charset_arg_index):
27476 Delete charset_arg_parents and add charset_arg_subset and
27477 charset_arg_superset.
27478 (enum charset_attr_index): Delete charset_parents and add
27479 charset_subset and charset_superset.
27480 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27481 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27482 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27483 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27484 (CHARSET_SUPERSET): New macros.
27485 (charset_work): Extern it.
27486 (ENCODE_CHAR): Use charset_work.
27487 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27488 (map_charset_chars): Extern it.
27489
27490 * charset.c (load_charset_map): Set the default value of encoder
27491 and deunifier char-tables to nil.
27492 (map_charset_chars): Change argument. Change callers.
27493 Use map_char_table_for_charset instead of map_char_table.
27494 (Fmap_charset_chars): New optional args from_code and to_code.
27495 (Fdefine_charset_internal): Adjust for the change of
27496 `define-charset' (:parents -> :subset or :superset).
27497 (charset_work): New variable.
27498 (encode_char, syms_of_charset): Adjust for the change of
27499 Fdefine_charset_internal.
27500 (Ffind_charset_string): Setup the vector `charsets' correctly.
27501
27502 * chartab.c (sub_char_table_ref_and_range): New arg default.
27503 Fix the previous change.
27504 (char_table_ref_and_range): Adjust for the above change.
27505 (map_sub_char_table_for_charset): New function.
27506 (map_char_table_for_charset): New function.
27507
27508 * keymap.c (describe_vector): Handle a char-table directly here.
27509 (describe_char_table): Delete.
27510
27511 * lisp.h (map_charset_chars): Delete.
27512
27513 2008-02-01 Dave Love <fx@gnu.org>
27514
27515 * fns.c (count_combining): Comment out (unused).
27516 (Flocale_codeset): New.
27517 (syms_of_fns): Defsubr it.
27518
27519 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27520 (size_t): Remove.
27521
27522 2008-02-01 Dave Love <fx@gnu.org>
27523
27524 * Makefile.in (chartab.o): Depend on charset.h.
27525
27526 2008-02-01 Kenichi Handa <handa@m17n.org>
27527
27528 * character.c (syms_of_character): Set the default value of
27529 Vprintable_chars to Qnil.
27530
27531 2008-02-01 Dave Love <fx@gnu.org>
27532
27533 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27534
27535 2008-02-01 Kenichi Handa <handa@m17n.org>
27536
27537 * charset.c (load_charset_map): Handle the case that from < to
27538 correctly.
27539
27540 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27541 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27542 Pay attention to raw-8-bit chars.
27543
27544 2008-02-01 Kenichi Handa <handa@m17n.org>
27545
27546 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27547 It is not bytecompiled now.
27548
27549 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27550 (charset_jisx0208): New variables.
27551 (Fdefine_charset_internal): Setup them if appropriate.
27552 (init_charset_once): Initialize them to -1.
27553
27554 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27555 (charset_jisx0208): Extern them.
27556
27557 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27558 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27559 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27560 (setup_iso_safe_charsets): Fix arguments to Fassq.
27561 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27562 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27563 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27564 (encode_coding_iso_2022): Change the 1st arg to
27565 ENCODE_ISO_CHARACTER to a variable.
27566
27567 2008-02-01 Kenichi Handa <handa@m17n.org>
27568
27569 * charset.h (enum define_charset_arg_index): New enums
27570 charset_arg_min_code and charset_arg_max_code.
27571 (struct charset): New member char_index_offset.
27572
27573 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27574 Take charset->char_index_offset into account.
27575 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27576 args[charset_arg_max_code]. Setup charset.char_index_offset.
27577 (syms_of_charset): Fix args to Fdefine_charset_internal.
27578
27579 2008-02-01 Dave Love <fx@gnu.org>
27580
27581 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27582
27583 2008-02-01 Dave Love <fx@gnu.org>
27584
27585 * coding.c: Doc fixes.
27586 (Fcoding_system_aliases): Fix return value.
27587 (Qmac): Remove (duplicated) definition.
27588
27589 2008-02-01 Dave Love <fx@gnu.org>
27590
27591 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27592 New functions.
27593
27594 * character.c (Fstring): Doc fix.
27595
27596 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27597
27598 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
27599 (font-encoding-alist): Doc fix.
27600
27601 2008-02-01 Dave Love <fx@gnu.org>
27602
27603 * term.c (costs_set): Declare static, non-initialized for pcc.
27604 (encode_terminal_code): Remove unused var.
27605
27606 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27607 for K&R.
27608
27609 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27610
27611 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27612 (suffixes): Move out of make_subsidiaries for K&R.
27613
27614 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27615
27616 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27617
27618 2008-02-01 Dave Love <fx@gnu.org>
27619
27620 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27621
27622 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27623
27624 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
27625
27626 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27627
27628 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27629
27630 2008-02-01 Kenichi Handa <handa@m17n.org>
27631
27632 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27633 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27634
27635 2008-02-01 Kenichi Handa <handa@m17n.org>
27636
27637 * coding.c (decode_coding_charset): Adjust for the change of
27638 Fdefine_coding_system_internal.
27639 (Fdefine_coding_system_internal): For a coding system of
27640 `charset' type, store a list of charset IDs in
27641 `charset_attr_charset_valids' element of coding attributes.
27642
27643 2008-02-01 Kenichi Handa <handa@m17n.org>
27644
27645 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
27646 (emacs_mule_char): New arg src. Delete arg `composition'.
27647 Change caller. Handle 2-byte and 3-byte charsets correctly.
27648 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27649 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27650 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
27651 (DECODE_EMACS_MULE_21_COMPOSITION):
27652 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
27653 sequence.
27654 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27655 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27656 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27657 and alt&rule composition.
27658 (decode_coding_iso_2022): Handle composition correctly.
27659 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27660
27661 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27662 re-defining a charset. If the charset has :emacs-mule-id, setup
27663 emacs_mule_bytes.
27664 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27665
27666 2008-02-01 Kenichi Handa <handa@m17n.org>
27667
27668 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27669 (encode_coding_big5, encode_coding_charset): If coding requires safe
27670 encoding, produce a character specified by
27671 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27672
27673 2008-02-01 Dave Love <fx@gnu.org>
27674
27675 * xterm.c (XSetIMValues): Declare.
27676
27677 * process.c: Conditionally include sys/wait.h, pty.h.
27678
27679 * print.c (print_object): Fix print format for 64-bit systems.
27680
27681 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27682
27683 * buffer.c (emacs_strerror): Declare.
27684
27685 * fontset.c (Fclear_face_cache): Declare.
27686 (accumulate_font_info): Comment-out (unused).
27687 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27688 variables.
27689
27690 * character.h (string_escape_byte8): Declare.
27691
27692 * charset.c (load_charset_map, load_charset_map_from_file):
27693 Remove unused vars.
27694 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27695 (Fmap_charset_chars): Doc fix.
27696
27697 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27698 (Fset_coding_system_priority, Fset_coding_system_priority)
27699 (Fdefine_coding_system_internal): Doc fix.
27700
27701 2008-02-01 Dave Love <fx@gnu.org>
27702
27703 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27704
27705 2008-02-01 Kenichi Handa <handa@m17n.org>
27706
27707 * character.c (string_escape_byte8): Make multibyte string with
27708 correct size.
27709
27710 * charset.c (Fmake_char): Delete unnecessary code.
27711
27712 2008-02-01 Kenichi Handa <handa@m17n.org>
27713
27714 * xfns.c (x_encode_text): Allocate coding.destination here, and
27715 call encode_coding_object with dst_object Qnil.
27716
27717 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27718 multibyte form correctly.
27719
27720 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27721 against Vfont_encoding_alist.
27722
27723 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27724 handling of charset list.
27725 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27726 (decode_coding_object): Move point to coding->dst_pos before
27727 calling post-read-conversion function.
27728 (encode_coding_object): Give correct arguments to
27729 pre-write-conversion. Ignore the return value of
27730 pre-write-conversion function. Pay attention to the case that
27731 pre-write-conversion changes the current buffer. If dst_object is
27732 Qt, even if coding->src_bytes is zero, allocate at least one byte
27733 to coding->destination.
27734
27735 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27736
27737 * charset.c (Fmake_char): Make it more backward compatible.
27738 (Fmap_charset_chars): Fix docstring.
27739
27740 2008-02-01 Dave Love <fx@gnu.org>
27741
27742 * coding.c: Doc fixes.
27743 (Fdefine_coding_system_alias): Use names, not symbols, in
27744 coding-system-alist.
27745
27746 2008-02-01 Kenichi Handa <handa@m17n.org>
27747
27748 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27749 of calling free_realized_face.
27750
27751 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
27752
27753 * charset.c (read_hex): Don't treat SPC as a comment starter.
27754 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27755 (Fdecode_char): Fix typo.
27756
27757 2008-02-01 Kenichi Handa <handa@m17n.org>
27758
27759 * charset.h (struct charset): New member `code_space_mask'.
27760
27761 * coding.c (coding_set_source): Delete the local variable beg_byte.
27762 (encode_coding_charset, Fdefine_coding_system_internal):
27763 Delete the local variable charset.
27764 (Fdefine_coding_system_internal):
27765 Setup attrs[coding_attr_charset_valids] correctly.
27766
27767 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27768 member to check if CODE is valid or not.
27769 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27770 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27771 is within the range of charset->min_code and carset->max_code.
27772
27773 2008-02-01 Dave Love <fx@gnu.org>
27774
27775 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27776
27777 * dispextern.h (generate_ascii_font): Fix return type.
27778
27779 * xfaces.c (generate_ascii_font): Fix arg declaration.
27780
27781 * coding.c (coding_inherit_eol_type)
27782 (Fset_terminal_coding_system_internal)
27783 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27784
27785 2008-02-01 Kenichi Handa <handa@m17n.org>
27786
27787 * coding.c (decode_coding_charset, encode_coding_charset):
27788 Handle multiple charsets correctly.
27789
27790 2008-02-01 Kenichi Handa <handa@m17n.org>
27791
27792 * search.c (boyer_moore): Fix handling of multibyte character
27793 translation.
27794
27795 * xdisp.c (display_mode_element): When the variable `elt' is
27796 changed, update `this' and `lisp_string'.
27797
27798 2008-02-01 Kenichi Handa <handa@m17n.org>
27799
27800 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27801
27802 * callproc.c (Fcall_process): Be sure to give the current buffer
27803 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27804
27805 * charset.c (struct charset_map_entries): New struct.
27806 (load_charset_map): Rename from parse_charset_map. New args
27807 entries and n_entries. Change caller.
27808 (load_charset_map_from_file): Rename from load_charset_map.
27809 Change caller. New arg control_flag. Call load_charset_map at
27810 the tail.
27811 (load_charset_map_from_vector): New function.
27812 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27813 (encode_char): If the charset is compact, change a character index
27814 to a code point.
27815
27816 * coding.c (coding_alloc_by_making_gap): Check the case that the
27817 source and destination are the same correctly.
27818 (decode_coding_raw_text): Set coding->consumed_char and
27819 coding->consumed to 0.
27820 (produce_chars): If coding->chars_at_source is nonzero, update
27821 coding->consumed_char and coding->consumed before calling
27822 alloc_destination.
27823 (Fdefine_coding_system_alias): Register ALIAS in
27824 Vcoding_system_alist.
27825 (syms_of_coding): Define `no-conversion' coding system at the tail.
27826
27827 * fileio.c (Finsert_file_contents): Set coding_system instead of
27828 val. If the current buffer is multibyte, always call
27829 decode_coding_gap.
27830
27831 * xfaces.c (try_font_list): Give higher priority to fontset's
27832 family than face's family.
27833
27834 2008-02-01 Kenichi Handa <handa@m17n.org>
27835
27836 * callproc.c (Fcall_process): Be sure to give the current buffer
27837 to decode_coding_c_string.
27838
27839 * xfaces.c (try_font_list): Give a family specified in a fontset
27840 higher priority than a family specified in a face.
27841
27842 2008-02-01 Kenichi Handa <handa@m17n.org>
27843
27844 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27845 Fix arguments to insert_from_buffer.
27846
27847 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27848
27849 2008-02-01 Kenichi Handa <handa@m17n.org>
27850
27851 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27852 (decode_coding_gap): Set coding->dst_multibyte correctly.
27853
27854 2008-02-01 Kenichi Handa <handa@m17n.org>
27855
27856 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27857 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27858 (encode_coding_utf_16): Substitute coding->default_char for
27859 non-Unicode characters.
27860 (decode_coding): Don't call record_insert here.
27861 (setup_coding_system): Initialize `surrogate' of
27862 coding->spec.utf_16 to 0.
27863 (EMIT_ONE_BYTE): Fix for multibyte case.
27864
27865 * insdel.c (insert_from_gap): Call record_insert.
27866
27867 2008-02-01 Kenichi Handa <handa@m17n.org>
27868
27869 * casefiddle.c (casify_region): Fix multibyte case.
27870
27871 * character.c (c_string_width): Add return type `int'.
27872 (char_string_with_unification): Delete arg ADVANCED.
27873
27874 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27875 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27876 (CHAR_STRING_ADVANCE): Make it do-while statement.
27877
27878 * chartab.c (sub_char_table_set_range): Optimize for the case
27879 DEPTH == 3. Add workaround code for a GCC optimization bug.
27880
27881 * charset.c (parse_charset_map): Remove an unused variable.
27882
27883 * coding.c: Delete unused variables.
27884
27885 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27886 earlier. If inserted is zero and the coding system doesn't
27887 require flushing, don't call decode_coding_gap.
27888
27889 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27890
27891 2008-02-01 Kenichi Handa <handa@m17n.org>
27892
27893 The following changes are for using Unicode as an internal
27894 character model, and use UTF-8 format for buffer/string
27895 representation.
27896
27897 * .gdbinit (xchartable): Adjust for the change of char table structure.
27898 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27899
27900 * Makefile.in (obj): Add character.o and chartab.o.
27901 (lisp, shortlisp): Remove utf-8.elc.
27902 (*.o): For many files, change dependency on charset.h to
27903 character.h, and add dependency on character.h.
27904 (character.o, chartab.o): New targets.
27905
27906 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27907 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27908 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27909 of "charset.h".
27910
27911 * dired.c, filelock.c: Include "character.h".
27912
27913 * alloc.c: Include "character.h" instead of "charset.h".
27914 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27915 (syms_of_alloc): Remove defsubr for Smake_char_table.
27916
27917 * buffer.c: Include "character.h" instead of "charset.h", don't
27918 include "coding.h".
27919 (Fset_buffer_multibyte): Adjust for UTF-8.
27920
27921 * buffer.h: EXFUN Fbuffer_live_p.
27922
27923 * callproc.c: Include "character.h" instead of "charset.h".
27924 (Fcall_process): Big change for the new code-conversion APIs.
27925
27926 * casetab.c: Include "character.h" instead of "charset.h".
27927 (set_canon, set_identity, shuffle): Adjust for the new
27928 map_char_table spec.
27929 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27930 accessing the char table structure.
27931
27932 * chartab.c: New file that implements char table.
27933
27934 * category.c: Include "character.h".
27935 (copy_category_entry): New function.
27936 (copy_category_table): Call map_char_table and copy_category_entry.
27937 (Fmake_category_table): Initialize all top-level slots.
27938 (char_category_set): New function.
27939 (modify_lower_category_set): Delete.
27940 (Fmodify_category_entry): Call char_table_ref_and_range.
27941
27942 * category.h (CATEGORY_SET): Just call char_category_set.
27943
27944 * ccl.c: Include "character.h".
27945 (Qccl, Qcclp): New variables.
27946 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27947 it's less than 256.
27948 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27949 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27950 and DST type.
27951 (ccl_driver): Change types of argument, adjust code accordingly.
27952 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27953 ccl_driver.
27954 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27955
27956 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27957 New members src_multibyte, dst_multibyte, consumed, and produced.
27958 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27959 (CODING_SPEC_CCL_PROGRAM): New macro.
27960 (ccl_driver): Update prototype.
27961 (Qccl, Qcclp, Fccl_program_p): Extern them.
27962 (CHECK_CCL_PROGRAM): New macro.
27963
27964 * character.c, character.h, chartab.c: New files.
27965
27966 * charset.c: Mostly re-written. Move character and multibyte sequence
27967 handling codes to character.c.
27968
27969 * charset.h: Mostly re-written. Move character and multibyte sequence
27970 handling codes to character.h.
27971
27972 * coding.c, coding.h: Mostly re-written.
27973
27974 * composite.c: Include "character.h" instead of "charset.h".
27975 (CHAR_WIDTH): Move to character.h.
27976 (HASH_KEY, HASH_VALUE): Delete.
27977
27978 * composite.h (enum composition_method): Change order of enumeration
27979 symbols.
27980
27981 * data.c: Include "character.h" instead of "charset.h".
27982 (Faref): Call CHAR_TABLE_REF for a char table.
27983 (Faset): Call CHAR_TABLE_SET for a char table.
27984
27985 * dispextern.h (free_realized_face, check_face_attribytes)
27986 (generate_ascii_font): Extern them.
27987 (free_realized_multibyte_face): Delete extern.
27988
27989 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27990 table structure.
27991
27992 * editfns.c: Include "character.h" instead of "charset.h".
27993 (Fchar_to_string): Always call CHAR_STRING.
27994
27995 * emacs.c (main): Call init_charset_once, init_charset,
27996 syms_of_chartab, and syms_of_character.
27997
27998 * fileio.c: Include "character.h" instead of "charset.h".
27999 (Finsert_file_contents): Big change for the new code-conversion API.
28000 (choose_write_coding_system, Fwrite_region): Likewise.
28001 (build_annotations_2): Delete.
28002 (e_write): Big change for the new code-conversion API.
28003
28004 * fns.c: Include "character.h" instead of "charset.h".
28005 (copy_sub_char_table): Move to chartab.c.
28006 (Fcopy_sequence): Call copy_char_table for a char table.
28007 (concat): Delete codes calling count_multibyte.
28008 (string_char_to_byte, string_byte_to_char): Adjust for the new
28009 multibyte form.
28010 (internal_equal): Adjust for the change of char table structure.
28011 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28012 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28013 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28014 (char_table_translate, optimize_sub_char_table)
28015 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28016 chartab.c.
28017 (char_table_ref_and_index): Delete.
28018 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28019 (Fmd5): Call preferred_coding_system instead of accessing
28020 Vcoding_category_list. Adjust for the new code-conversion API.
28021 (syms_of_fns): Move defsubr for char table related functions to
28022 chartab.c.
28023
28024 * fontset.c: Mostly re-written.
28025
28026 * fontset.h (struct font_info): Change type of the member encoding_type.
28027 (enum FONT_SPEC_INDEX): New enum.
28028 (fontset_font_pattern, fs_load_font): Update prototype.
28029 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28030
28031 * indent.c: Include "character.h" instead of "charset.h".
28032 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28033
28034 * insdel.c: Include "character.h" instead of "charset.h".
28035 (copy_text): Don't refer to Vnonascii_translation_table.
28036 (insert_from_gap): New function.
28037
28038 * keyboard.c: Include "character.h" instead of "charset.h".
28039 (command_loop_1): Never call direct_output_forward_char before
28040 a non-ASCII character.
28041 (read_char): If Vkeyboard_translate_table is a char table, always
28042 translate a character.
28043
28044 * keymap.c: Include "character.h".
28045 (store_in_keymap): Handle the case that IDX is a cons.
28046 (Fdefine_key): Handle the case that KEY is a cons and the car part
28047 is also a cons (range).
28048 (push_key_description): Adjust for the new character code.
28049 (describe_vector): Call describe_char_table for a char table.
28050 (describe_char_table): New function.
28051
28052 * keymap.h (describe_char_table): Extern it.
28053
28054 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28055 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28056 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28057 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28058 Delete.
28059 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28060 structure.
28061 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28062 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28063 (CHARTAB_SIZE_BITS_3): New macros.
28064 (chartab_size): Extern it.
28065 (struct Lisp_Char_Table): Re-design.
28066 (struct Lisp_Sub_Char_Table): New structure.
28067 (HASH_KEY, HASH_VALUE): Move from fns.c.
28068 (CHARACTERBITS): Define as 22.
28069 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28070 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28071 (GC_SUB_CHAR_TABLE_P): New macro.
28072 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28073 (code_convert_string_norecord): Delete extern.
28074 (init_character_once, syms_of_character, init_charset)
28075 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28076
28077 * lread.c: Include "character.h".
28078 (read_multibyte): New arg NBYTES.
28079 (read_escape): Change the meaning of returned *BYTEREP.
28080 (to_multibyte): Delete.
28081 (read1): Adjust the handling of char table and string.
28082
28083 * print.c: Include "character.h" instead of "charset.h".
28084 (print_string): Convert 8-bit raw bytes to octal form by
28085 string_escape_byte8.
28086 (print_object): Adjust for the new multibyte form. Print 8-bit
28087 raw bytes always in octal form. Handle sub char table correctly.
28088
28089 * process.c: Include "character.h" instead of "charset.h".
28090 (read_process_output, send_process): Adjust for the new
28091 code-conversion API.
28092
28093 * puresize.h (BASE_PURESIZE): Increase.
28094
28095 * regex.c: Include "character.h" instead of "charset.h".
28096 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28097 (regex_compile): Accept a range whose starting and ending
28098 character have different leading bytes.
28099 (analyse_first): Adjust for the above change.
28100
28101 * search.c: Include "character.h" instead of "charset.h".
28102 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28103 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28104
28105 * syntax.c: Include "character.h" instead of "charset.h".
28106 (syntax_parent_lookup): Delete.
28107 (Fmodify_syntax_entry): Accept a cons as CHAR.
28108 (skip_chars): Adjust for the new multibyte form.
28109 (init_syntax_once): Call char_table_set_range instead of directly
28110 accessing the structure of a char table.
28111
28112 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28113 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28114 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28115 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28116
28117 * term.c: Include "buffer.h" and "character.h".
28118 (encode_terminal_code, write_glyphs): Adjust for the new
28119 code-conversion API.
28120 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28121
28122 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28123
28124 * xdisp.c: Include "character.h".
28125 (get_next_display_element): Adjust for the new multibyte form.
28126 (disp_char_vector): Adjust for the new char table structure.
28127 (decode_mode_spec_coding): Adjust for the new structure of
28128 coding system.
28129 (decode_mode_spec): Adjust for the new code-conversion API.
28130
28131 * xfaces.c: Include "character.h" instead of "charset.h".
28132 (load_face_font): Adjust for the change of choose_face_font and
28133 FS_LOAD_FONT.
28134 (generate_ascii_font): New function.
28135 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28136 (set_font_frame_param): Adjust for the change of choose_face_font.
28137 (free_realized_face): Make it public.
28138 (free_realized_faces_for_fontset): Rename from
28139 free_realized_multibyte_face. Free also faces realized for ASCII.
28140 (choose_face_font): Change arguments. Adjust for the change of
28141 fontset_font_pattern and FS_LOAD_FONT.
28142
28143 * xfns.c: Include "character.h".
28144 (x_encode_text): Adjust for the new code-conversion API.
28145
28146 * xselect.c: Don't include "charset.h".
28147 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28148
28149 * xterm.c: Include "character.h".
28150 (x_encode_char): New argument CHARSET. Change caller.
28151 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28152 Call ENCODE_CHAR instead of SPLIT_CHAR.
28153 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28154 CHAR_WIDTH instead of CHARSET_WIDTH.
28155 (XTread_socket): Adjust for the new code-conversion API.
28156 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28157 (x_load_font): Adjust for the change of struct font.
28158
28159 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28160
28161 * xfaces.c (face_at_buffer_position): Remove unused vars.
28162
28163 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28164
28165 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28166 Fix overflow checking.
28167
28168 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28169
28170 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28171 Cancel previous change.
28172
28173 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28174
28175 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28176 ccl->eight_bit_control. Fix check for buffer overflow.
28177 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28178 (ccl_driver): Initialize extra_bytes to 0.
28179
28180 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28181
28182 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28183 return it ORed with ctrl_modifier.
28184
28185 2008-01-29 Miles Bader <miles@gnu.org>
28186
28187 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28188
28189 2008-01-28 Jason Rumney <jasonr@gnu.org>
28190
28191 * w32.c (stat): Don't double check for networked drive.
28192
28193 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28194
28195 * window.c (run_window_configuration_change_hook): New function.
28196 Code extracted from set_window_buffer. Set the selected frame.
28197 (set_window_buffer): Use it.
28198 * window.h (run_window_configuration_change_hook): Declare.
28199 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28200
28201 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28202
28203 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28204
28205 * Makefile.in: Remove references to unused macros.
28206
28207 2008-01-26 Eli Zaretskii <eliz@gnu.org>
28208
28209 * w32.c (g_b_init_get_sid_sub_authority)
28210 (g_b_init_get_sid_sub_authority_count): New static variables.
28211 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28212 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28213 (init_user_info): Use them to retrieve uid and gid.
28214 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28215 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28216 st_uid and st_gid of the file.
28217
28218 2008-01-26 Jason Rumney <jasonr@gnu.org>
28219
28220 * w32.c (logon_network_drive): New function.
28221 (stat): Use it.
28222
28223 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
28224
28225 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28226 invisible text covered with an ellipsis.
28227
28228 2008-01-25 Richard Stallman <rms@gnu.org>
28229
28230 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28231 jump back to beginning. Move some other initializations after that.
28232 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28233 New variables.
28234 (syms_of_xdisp): Init them.
28235
28236 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28237
28238 * buffer.c (reset_buffer_local_variables):
28239 Implement `permanent-local-hook'.
28240 (Qpermanent_local_hook): New variable.
28241 (syms_of_buffer): Init and staticpro it.
28242
28243 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
28244
28245 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28246
28247 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28248
28249 * fns.c (Fclrhash): Return TABLE.
28250
28251 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28252
28253 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28254 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28255 is set even without positional changes.
28256 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28257
28258 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28259
28260 2008-01-23 Jason Rumney <jasonr@gnu.org>
28261
28262 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28263
28264 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28265 the unicode range available in MULE by locale-coding-system.
28266 Improve dbcs lead byte detection. Set event timestamp and modifiers
28267 earlier.
28268
28269 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28270
28271 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28272 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28273 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28274 when used on child processes.
28275
28276 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
28277
28278 * dbusbind.c (Fdbus_method_return_internal): Rename from
28279 Fdbus_method_return.
28280 (Fdbus_unregister_object): Move to dbus.el.
28281 (Fdbus_call_method, Fdbus_method_return_internal)
28282 (Fdbus_send_signal): Improve debug messages.
28283
28284 2008-01-20 Martin Rudalics <rudalics@gmx.at>
28285
28286 * undo.c (undo_inhibit_record_point): New variable.
28287 (syms_of_undo): Initialize it.
28288 (record_point): Don't record point when undo_inhibit_record_point
28289 is set.
28290
28291 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28292
28293 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28294
28295 * xdisp.c (Qauto_hscroll_mode): New var.
28296 (syms_of_xdisp): Initialize it.
28297 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28298 window's buffer.
28299 (hscroll_windows): Don't check automatic_hscrolling_p here.
28300
28301 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28302 vscroll if we're setting window-buffer to the value it already has.
28303
28304 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28305
28306 * m/intel386.h: Remove references to XENIX.
28307
28308 2008-01-17 Andreas Schwab <schwab@suse.de>
28309
28310 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28311 instead of HAVE_X86_64_LIB64_DIR.
28312 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28313
28314 2008-01-17 Glenn Morris <rgm@gnu.org>
28315
28316 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28317 to HAVE_X86_64_LIB64_DIR.
28318
28319 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28320
28321 * s/irix3-3.h:
28322 * s/irix4-0.h:
28323 * s/386-ix.h:
28324 * s/domain.h:
28325 * s/hpux9-x11r4.h:
28326 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28327
28328 * sysdep.c: Remove code containing references to symbols defined
28329 by unsupported systems.
28330
28331 2008-01-16 Glenn Morris <rgm@gnu.org>
28332
28333 * coding.c (select-safe-coding-system-function): Doc fix.
28334
28335 2008-01-15 Glenn Morris <rgm@gnu.org>
28336
28337 * config.in: Revert 2008-01-13 change: this is a generated file.
28338
28339 2008-01-13 Tom Tromey <tromey@redhat.com>
28340
28341 * lisp.h: Fix typo.
28342
28343 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28344
28345 * m/sequent-ptx.h:
28346 * m/sequent.h:
28347 * s/ptx.h:
28348 * s/ptx4-2.h:
28349 * s/ptx4.h: Remove files for systems no longer supported.
28350
28351 * callproc.c (Fcall_process): Fix previous change.
28352
28353 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28354
28355 * unexsunos4.c: Remove file, system not supported anymore.
28356
28357 * m/mips.h:
28358 * m/intel386.h:
28359 * callproc.c:
28360 * config.in:
28361 * ecrt0.c:
28362 * emacs.c:
28363 * fileio.c:
28364 * frame.c:
28365 * getpagesize.h:
28366 * keyboard.c:
28367 * lread.c:
28368 * process.c:
28369 * puresize.h:
28370 * sysdep.c:
28371 * systty.h:
28372 * syswait.h:
28373 * unexec.c:
28374 * xdisp.c:
28375 * alloc.c: Remove code containing references to symbols defined by
28376 unsupported systems.
28377
28378 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28379
28380 * coding.c (detect_coding_mask): Fix previous change.
28381
28382 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28383
28384 * coding.c (detect_coding_iso2022): New arg
28385 latin_extra_code_state. Allow Latin extra codes only
28386 when *latin_extra_code_state is nonzero.
28387 (detect_coding_mask): If there is a NULL byte, detect the encoding
28388 as UTF-16 or binary. If Latin extra codes exist, detect the
28389 encoding as ISO-2022 only when there's no other proper encoding is
28390 found.
28391
28392 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28393
28394 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28395 #ifdef MAC_OS.
28396
28397 2008-01-08 Richard Stallman <rms@gnu.org>
28398
28399 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28400
28401 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
28402
28403 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28404 menu bar in parentheses.
28405
28406 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28407
28408 * m/7300.h:
28409 * m/acorn.h:
28410 * m/alliant-2800.h:
28411 * m/alliant.h:
28412 * m/alliant1.h:
28413 * m/alliant4.h:
28414 * m/altos.h:
28415 * m/amdahl.h:
28416 * m/apollo.h:
28417 * m/att3b.h:
28418 * m/aviion-intel.h:
28419 * m/aviion.h:
28420 * m/celerity.h:
28421 * m/clipper.h:
28422 * m/cnvrgnt.h:
28423 * m/convex.h:
28424 * m/cydra5.h:
28425 * m/delta88k.h:
28426 * m/dpx2.h:
28427 * m/dual.h:
28428 * m/elxsi.h:
28429 * m/f301.h:
28430 * m/gould-np1.h:
28431 * m/gould.h:
28432 * m/i860.h:
28433 * m/ibmps2-aix.h:
28434 * m/ibmrt-aix.h:
28435 * m/ibmrt.h:
28436 * m/irist.h:
28437 * m/is386.h:
28438 * m/isi-ov.h:
28439 * m/mega68.h:
28440 * m/mg1.h:
28441 * m/news-r6.h:
28442 * m/news-risc.h:
28443 * m/news.h:
28444 * m/nh3000.h:
28445 * m/nh4000.h:
28446 * m/ns16000.h:
28447 * m/ns32000.h:
28448 * m/nu.h:
28449 * m/orion.h:
28450 * m/orion105.h:
28451 * m/paragon.h:
28452 * m/pfa50.h:
28453 * m/plexus.h:
28454 * m/pyramid.h:
28455 * m/pyrmips.h:
28456 * m/sh3el.h:
28457 * m/sps7.h:
28458 * m/sr2k.h:
28459 * m/stride.h:
28460 * m/sun1.h:
28461 * m/sun2.h:
28462 * m/sun3-68881.h:
28463 * m/sun3-fpa.h:
28464 * m/sun3-soft.h:
28465 * m/sun3.h:
28466 * m/sun386.h:
28467 * m/symmetry.h:
28468 * m/tad68k.h:
28469 * m/tahoe.h:
28470 * m/targon31.h:
28471 * m/tek4300.h:
28472 * m/tekxd88.h:
28473 * m/tower32.h:
28474 * m/tower32v3.h:
28475 * m/ustation.h:
28476 * m/wicat.h:
28477 * m/xps100.h:
28478 * s/cxux.h:
28479 * s/cxux7.h:
28480 * s/dgux.h:
28481 * s/dgux4.h:
28482 * s/dgux5-4-3.h:
28483 * s/dgux5-4r2.h:
28484 * s/esix.h:
28485 * s/esix5r4.h:
28486 * s/hiuxmpp.h:
28487 * s/hiuxwe2.h:
28488 * s/iris3-5.h:
28489 * s/iris3-6.h:
28490 * s/isc2-2.h:
28491 * s/isc3-0.h:
28492 * s/isc4-0.h:
28493 * s/isc4-1.h:
28494 * s/newsos5.h:
28495 * s/newsos6.h:
28496 * s/osf1.h:
28497 * s/osf5-0.h:
28498 * s/riscix1-1.h:
28499 * s/riscix12.h:
28500 * s/sco4.h:
28501 * s/sco5.h:
28502 * s/sunos4-0.h:
28503 * s/sunos4-1.h:
28504 * s/sunos413.h:
28505 * s/sunos4shr.h:
28506 * s/umax.h:
28507 * s/unipl5-2.h:
28508 * s/xenix.h:
28509 * cxux-crt0.s:
28510 * unexapollo.c:
28511 * unexconvex.c:
28512 * unexenix.c:
28513 * unexsni.c: Remove files for systems no longer supported.
28514
28515 * m/intel386.h: Remove references to unsupported systems.
28516
28517 * w32.c (get_emacs_configuration): Remove reference to i860.
28518
28519 * sysdep.c: Remove dead code.
28520
28521 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28522
28523 * s/rtu.h:
28524 * m/masscomp.h: Remove files. Platform is obsolete.
28525
28526 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
28527
28528 * dbusbind.c (Fdbus_method_return): New function.
28529 (xd_read_message): Add the serial number to the event.
28530 (Fdbus_register_method): Activate the function.
28531
28532 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28533
28534 * keyboard.c (read_key_sequence): Fix typo.
28535
28536 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
28537
28538 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28539 (xd_signature, xd_append_arg): Handle element type detection for
28540 empty arrays.
28541 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28542 SDATA () calls; this must be solved more general.
28543 (Fdbus_register_signal): Use SBYTES instead of strlen.
28544
28545 2008-01-03 Magnus Henoch <magnus@zemdatav>
28546
28547 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28548 unsigned int for byte values (necessary for big-endian platform).
28549 (Fdbus_call_method): Handle the case of no returned arguments.
28550
28551 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28552
28553 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28554
28555 2007-12-31 Magnus Henoch <mange@freemail.hu>
28556
28557 * dbusbind.c (xd_signature): Signature of variant is just "v".
28558
28559 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
28560
28561 * dbusbind.c: Fix several errors and compiler warnings.
28562 Reported by Tom Tromey <tromey@redhat.com>.
28563 (XD_ERROR, XD_DEBUG_MESSAGE)
28564 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28565 (xd_append_arg): Part for basic D-Bus types rewritten.
28566 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28567 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28568 appropriate.
28569 (xd_read_message): Return Qnil. Don't signal an error; it is not
28570 useful during event reading.
28571 (Fdbus_register_signal): Signal an error if the check for
28572 FUNCTIONP fails.
28573 (Fdbus_register_method): New function. The implementation is not
28574 complete, the call of the function signals an error therefore.
28575 (Fdbus_unregister_object): New function, renamed from
28576 Fdbus_unregister_signal. The initial check signals an error, if
28577 the object is not well formed.
28578
28579 2007-12-30 Richard Stallman <rms@gnu.org>
28580
28581 * textprop.c (get_char_property_and_overlay):
28582 Signal error if POSITION is out of range in a buffer.
28583
28584 2007-12-29 Martin Rudalics <rudalics@gmx.at>
28585
28586 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28587 because the original parameters are in pure storage now.
28588
28589 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28590
28591 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28592
28593 2007-12-22 Eli Zaretskii <eliz@gnu.org>
28594
28595 * callint.c (syms_of_callint) <command-history>: Add reference to
28596 history-length in the doc string.
28597
28598 2007-12-17 Jason Rumney <jasonr@gnu.org>
28599
28600 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28601 before passing as wParam.
28602
28603 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
28604
28605 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28606 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28607 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28608 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28609 as number.
28610 (Fdbus_call_method): Fix docstring.
28611
28612 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
28613
28614 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28615 New macros.
28616 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28617 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28618 Simplify.
28619 (xd_signature): New function.
28620 (xd_append_arg): Compute also signatures. Major rewrite.
28621 (xd_retrieve_arg): Make debug messages friendly.
28622 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28623 Check for signatures of arguments.
28624
28625 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
28626
28627 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28628 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28629 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28630 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28631 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28632 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28633 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28634 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28635 (xd_retrieve_value): Remove. Functionality included in ...
28636 (xd_append_arg): New function.
28637 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28638
28639 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
28640
28641 * dbusbind.c (top): Include <stdio.h>.
28642 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28643 dbus_message_new_method_call and dbus_message_new_signal.
28644 (Fdbus_register_signal): Rename unique_name to uname.
28645 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28646 non-existing unique name. Fix typos in matching rule. Return an
28647 object which is useful in Fdbus_unregister_signal.
28648 (Fdbus_unregister_signal): Reimplementation, in order to remove
28649 only the corresponding entry.
28650 (Vdbus_registered_functions_table): Change the order of entries.
28651 Apply these changes in xd_read_message and Fdbus_register_signal.
28652
28653 2007-12-16 Andreas Schwab <schwab@suse.de>
28654
28655 * fileio.c (Finsert_file_contents): Fix overflow check to not
28656 depend on undefined integer overflow.
28657
28658 2007-12-14 Jason Rumney <jasonr@gnu.org>
28659
28660 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28661 for characters above 127.
28662
28663 2007-12-13 Jason Rumney <jasonr@gnu.org>
28664
28665 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28666 before dereferencing array.
28667 (lookup_vk_code): Remove zero comparison.
28668
28669 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
28670
28671 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28672 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28673 Use `unsigned int' instead of `uint'.
28674 (xd_read_message, Fdbus_register_signal): Split expressions into
28675 multiple lines before operators "&&" and "||", according to the
28676 GNU Coding Standards.
28677
28678 2007-12-14 Eli Zaretskii <eliz@gnu.org>
28679
28680 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28681
28682 2007-12-12 Juri Linkov <juri@jurta.org>
28683
28684 * buffer.c (Frename_buffer): In interactive spec replace
28685 `read-buffer' with `read-string' that uses `buffer-name-history'
28686 as history, and the current buffer's name as default.
28687
28688 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28689
28690 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28691 manipulating the backtrace manually.
28692 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28693 (struct backtrace, backtrace_list): Remove.
28694 (command_loop_1): Remove dead var `no_direct'.
28695
28696 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28697 preserve non-built-in buffer-local variables.
28698 (Fkill_all_local_variables): Don't re-create&re-set permanent
28699 buffer-local variables.
28700
28701 2007-12-09 Juri Linkov <juri@jurta.org>
28702
28703 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28704 Lisp code that uses `read-buffer' with current buffer as default.
28705
28706 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
28707
28708 * dbusbind.c (xd_read_message): Generate an event for every
28709 registered handler. There might be several handlers registered
28710 for the same signal.
28711 (Fdbus_register_signal): Don't overwrite a registration for the
28712 same signal. Add a new registration if handlers are different.
28713 (Vdbus_registered_functions_table): Rework doc string.
28714
28715 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
28716
28717 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28718 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28719 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28720 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28721 Unify argument lists.
28722 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28723 arguments and hash table keys. Use unique name for service.
28724 (Fdbus_unregister_signal): Remove checks.
28725 (Vdbus_registered_functions_table): Fix doc string.
28726
28727 2007-12-05 Magnus Henoch <mange@freemail.hu>
28728
28729 * process.c (make_process): Initialize pty_flag to 0.
28730
28731 2007-12-05 Jason Rumney <jasonr@gnu.org>
28732
28733 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28734 specified XBMs.
28735
28736 2007-12-05 Richard Stallman <rms@gnu.org>
28737
28738 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28739
28740 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28741
28742 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28743 New variable.
28744 (mac_try_close_socket) [MAC_OSX]: New function.
28745 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28746 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28747
28748 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28749 Use mac_try_close_socket.
28750
28751 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28752
28753 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28754 reloc_base.
28755 (copy_dysymtab): Compute relocation base here.
28756 (rebase_reloc_address) [__ppc64__]: New function.
28757 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28758 changed.
28759
28760 2007-12-05 Jason Rumney <jasonr@gnu.org>
28761
28762 * w32proc.c (sys_spawnve): Quote args with wildcards.
28763
28764 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28765
28766 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28767 __objc_* sections.
28768 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28769
28770 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
28771
28772 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28773 Move check for Vdbus_registered_functions_table to
28774 xd_read_queued_messages.
28775 (xd_read_queued_messages): Protect xd_read_message calls by
28776 internal_condition_case_1.
28777
28778 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
28779
28780 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28781 Qdbus_system_bus and Qdbus_session_bus, respectively.
28782 (Vdbus_intern_symbols): Remove.
28783 (Vdbus_registered_functions_table): New hash table.
28784 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28785 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28786 Rewrite in order to manage registered functions by hash table
28787 Vdbus_registered_functions_table.
28788
28789 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28790
28791 * xterm.c: Update URL to Window Manager Specification in comment.
28792
28793 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
28794
28795 * config.in (HAVE_DBUS): Add.
28796
28797 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28798 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28799 (obj): Add $(DBUS_OBJ).
28800 (LIBES): Add $(DBUS_LIBS).
28801 (dbusbind.o): New target.
28802
28803 * dbusbind.c: New file.
28804
28805 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28806
28807 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28808 (Qdbus_event): New Lisp symbol.
28809 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28810 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
28811 (keys_of_keyboard): Define dbus-event.
28812
28813 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28814
28815 2007-12-01 Richard Stallman <rms@gnu.org>
28816
28817 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28818
28819 2007-11-30 Jason Rumney <jasonr@gnu.org>
28820
28821 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28822 (w32con_reset_terminal_modes): Clear screen buffer.
28823 (w32_face_attributes): Don't use color indexes that are out of range.
28824 Only reverse the default colors.
28825
28826 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28827 WINDOWSNT.
28828
28829 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28830
28831 2007-11-29 Jason Rumney <jasonr@gnu.org>
28832
28833 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28834 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28835 if the terminal colors are initialized.
28836 (unspecified_fg, unspecified_bg): Remove unused declarations.
28837
28838 2007-11-29 Andreas Schwab <schwab@suse.de>
28839
28840 * keyboard.c (apply_modifiers): Fix typo.
28841
28842 2007-11-29 Richard Stallman <rms@gnu.org>
28843
28844 * keymap.c (Fcurrent_local_map): Doc fix.
28845
28846 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28847
28848 * s/gnu-kfreebsd.h: New file.
28849
28850 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28851
28852 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28853 Don't cast redundantly.
28854
28855 * keyboard.c (KEY_TO_CHAR): New macro.
28856 (parse_modifiers, apply_modifiers): Accept integer arguments.
28857 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28858 for chars and symbol keys.
28859 After doing such remapping, apply function-key-map again.
28860
28861 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28862
28863 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28864 compiled anymore.
28865
28866 2007-11-26 Andreas Schwab <schwab@suse.de>
28867
28868 * process.c (list_processes_1): Fix indentation level of the
28869 command column.
28870
28871 2007-11-23 Andreas Schwab <schwab@suse.de>
28872
28873 * editfns.c (Fformat): Handle %c specially since it requires the
28874 argument to be of type int.
28875
28876 2007-11-23 Markus Triska <markus.triska@gmx.at>
28877
28878 * emacs.c (main): Call init_editfns before init_process, since
28879 init_process sets Vprocess_connection_type depending on OS release.
28880
28881 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28882
28883 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28884 (find_symbol_value): Use do_symval_forwarding.
28885
28886 * data.c (set_internal): Set the value in the `cons-cell' (for
28887 Buffer_Local_values) not only for frame-local variables.
28888
28889 2007-11-22 Andreas Schwab <schwab@suse.de>
28890
28891 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28892 values to sprintf.
28893 * keymap.c (Fsingle_key_description): Likewise.
28894 * print.c (print_object): Likewise.
28895
28896 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28897
28898 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28899 file for image is nil.
28900
28901 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28902
28903 * term.c: Include stdarg.h.
28904 (fatal): Implement using varargs.
28905 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28906
28907 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28908
28909 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28910 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28911 Update call to buffer_slot_type_mismatch.
28912 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28913 (buffer_slot_type_mismatch): Update.
28914 * buffer.c (buffer_local_types): Remove.
28915 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28916 (defvar_per_buffer): Set the type in the buffer_objfwd.
28917
28918 2007-11-21 Jason Rumney <jasonr@gnu.org>
28919
28920 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28921 CreateFileMapping returns NULL on failure.
28922
28923 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28924
28925 * search.c (Fset_match_data): Remove the `evaporate' feature.
28926 (unwind_set_match_data): Don't use the `evaporate' feature.
28927
28928 2007-11-21 Jason Rumney <jasonr@gnu.org>
28929
28930 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28931
28932 * w32console.c (w32con_write_glyphs): Remove unused variables.
28933
28934 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28935
28936 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28937
28938 * s/darwin.h (MULTI_KBOARD): Remove.
28939
28940 * macfns.c (x_create_tip_frame, Fx_create_frame)
28941 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28942
28943 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28944
28945 * buffer.c (Fbuffer_local_value): Remove redundant test.
28946 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28947 than in `current-buffer' to match the comment.
28948 Do the swap using swap_in_global_binding.
28949
28950 * data.c (store_symval_forwarding, set_internal):
28951 * eval.c (specbind): Remove dead code.
28952
28953 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28954 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28955 Since we do not want to see internal Lisp_*fwd objects here.
28956
28957 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28958
28959 * sysdep.c (init_system_name): Use getaddrinfo if available.
28960
28961 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28962 (x_scroll_bar_note_movement): start, end, with, height in struct
28963 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28964
28965 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28966
28967 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28968
28969 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28970
28971 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28972 This undoes Richard's change of 14-Oct-2002.
28973
28974 * alloc.c (allocate_other_vector):
28975 * lisp.h (allocate_other_vector): Remove.
28976
28977 * window.c (struct save_window_data): Move non-lisp data to the end
28978 and make it `int' rather than Lisp_Object.
28979 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28980 Done wrap/unwrap integer values.
28981 (Fset_window_configuration, compare_window_configurations):
28982 Update use of fields to their new types.
28983
28984 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28985 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28986 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28987 (SET_SCROLL_BAR_X_WINDOW): Remove.
28988 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28989 Access the new x_window field directly.
28990 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28991 Don't wrap/unwrap integers into Lisp_Objects.
28992 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28993 (x_scroll_bar_report_motion):
28994 Don't wrap/unwrap integers into Lisp_Objects.
28995 (x_term_init): Use SDATA.
28996 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28997 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28998 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28999 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29000 * xfns.c (x_set_background_color):
29001 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29002 Access the new x_window field directly.
29003
29004 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29005 (allocate_pseudovector): Make non-static.
29006
29007 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29008 (allocate_pseudovector): Declare.
29009 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29010
29011 2007-11-15 Andreas Schwab <schwab@suse.de>
29012
29013 * editfns.c (Fformat): Correctly format EMACS_INT values.
29014 Also take precision into account when formatting an integer.
29015
29016 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29017
29018 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29019
29020 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29021 (syms_of_keyboard): Defsubr it.
29022
29023 * data.c (swap_in_global_binding): Fix longstanding bug where
29024 store_symval_forwarding was not called with the right second argument,
29025 thus causing objfwd-ing from being dropped.
29026
29027 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29028
29029 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29030 (Fx_display_pixel_height, Fx_display_planes)
29031 (Fx_display_color_cells, Fx_server_max_request_size)
29032 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29033 (Fx_display_visual_class, Fx_display_save_under):
29034 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29035 (Fx_display_pixel_height, Fx_display_planes)
29036 (Fx_display_color_cells, Fx_server_max_request_size)
29037 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29038 (Fx_display_mm_height, Fx_display_mm_width)
29039 (Fx_display_backing_store, Fx_display_visual_class)
29040 (Fw32_select_font, Fx_display_save_under):
29041 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29042 (Fx_display_pixel_height, Fx_display_planes)
29043 (Fx_display_color_cells, Fx_server_max_request_size)
29044 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29045 (Fx_display_save_under): Fix typos in docstrings.
29046
29047 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29048
29049 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29050 corresponding to deleted entries; they are an implementation detail.
29051 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29052 Remove variables.
29053 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29054 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29055 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29056 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29057 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29058 (Fw32_define_rgb_color, Fw32_load_color_file)
29059 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29060 Fix typos in docstrings.
29061 (Fx_server_version): Reflow docstring.
29062 (Fw32_shell_execute): Doc fixes.
29063
29064 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29065
29066 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29067 if w32_parse_hot_key returned nil.
29068
29069 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29070
29071 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29072
29073 2007-11-09 Jason Rumney <jasonr@gnu.org>
29074
29075 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29076
29077 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29078
29079 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29080 Remove W32_SCROLL_BAR_CLICK_EVENT.
29081
29082 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29083 Add MULTIMEDIA_KEY_EVENT.
29084
29085 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29086 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29087 (make_lispy_event) [WINDOWSNT]: Use it to translate
29088 MULTIMEDIA_KEY_EVENT.
29089
29090 * w32term.h (WM_APPCOMMAND): Define if not already.
29091 (GET_APPCOMMAND_LPARAM): Likewise.
29092
29093 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29094 WM_APPCOMMAND.
29095
29096 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29097 (syms_of_w32fns): Export and initialize it.
29098 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29099
29100 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29101
29102 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29103 twice.
29104
29105 * xdisp.c (handle_face_prop): Fix last change.
29106
29107 2007-11-09 Richard Stallman <rms@gnu.org>
29108
29109 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29110 not just for after-strings and before-strings.
29111 Call face_for_overlay_string and pass the overlay to it.
29112 (handle_display_prop): Determine whether property came from an overlay.
29113 Pass OVERLAY arg to handle_single_display_spec.
29114 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29115 (load_overlay_strings): Fill in it->string_overlays.
29116 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29117
29118 * xfaces.c (face_for_overlay_string): Function renamed from
29119 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29120
29121 * dispextern.h (struct it): New elt string_overlays.
29122 New elt from_overlay, also in stack.
29123 Rearrange a few elements.
29124 (face_for_overlay_string): Decl renamed from
29125 face_at_buffer_position_no_overlays, and add argument.
29126
29127 2007-11-09 Richard Stallman <rms@gnu.org>
29128
29129 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29130 to get the base face for an overlay string.
29131
29132 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29133
29134 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29135
29136 * xdisp.c (handle_stop): Move some code out of loop.
29137
29138 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29139
29140 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29141 Fix conversion from Lisp object to ATSUFontID.
29142
29143 2007-11-09 Jason Rumney <jasonr@gnu.org>
29144
29145 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29146
29147 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29148
29149 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29150 Don't assume regions are aligned to page boundary.
29151 (print_load_command_name): Add LC_UUID if defined.
29152
29153 2007-11-09 Richard Stallman <rms@gnu.org>
29154
29155 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29156
29157 2007-11-07 Jason Rumney <jasonr@gnu.org>
29158
29159 * s/windows95.h: Remove.
29160
29161 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29162
29163 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29164 abort with a message on unhandled store_type values.
29165
29166 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29167
29168 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29169 Remove HAVE_X11R5 and HAVE_X11R4.
29170
29171 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29172
29173 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29174
29175 2007-11-01 Johan Bockgård <bojohan@gnu.org>
29176
29177 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29178 Don't set s->stippled_p here, since it has already been set by
29179 x_set_glyph_string_gc from x_draw_glyph_string.
29180
29181 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29182
29183 * sunfns.c: Remove file.
29184
29185 * m/sun386.h:
29186 * m/sun2.h:
29187 * m/sparc.h: Remove Sun windows code.
29188
29189 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29190
29191 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29192 (init_keyboard): Set current_kboard's window-system to nil.
29193 (tty_read_avail_input): Typo.
29194 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29195
29196 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29197
29198 * s/usg5-4.h:
29199 * s/usg5-3.h:
29200 * s/ptx.h:
29201 * m/is386.h:
29202 * m/ibmps2-aix.h:
29203 * Makefile.in: Remove all mentions of X10.
29204
29205 * dispnew.c (syms_of_display): Don't mention version 10.
29206
29207 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
29208
29209 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29210 ($(BLD)/abbrev.$(O)): Remove.
29211
29212 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29213
29214 Rewrite abbrev.c in Elisp.
29215 * image.c (Qcount): Don't declare as extern.
29216 (syms_of_image): Initialize and staticpro `Qcount'.
29217 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29218 * emacs.c (main): Don't call syms_of_abbrev.
29219 * Makefile.in (obj): Remove abbrev.o.
29220 (abbrev.o): Remove.
29221 * abbrev.c: Remove.
29222
29223 2007-10-26 Martin Rudalics <rudalics@gmx.at>
29224
29225 * window.c (window_min_size_2): Don't count header-line.
29226
29227 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29228
29229 * frame.h (struct frame): Move all bit fields after the first bit
29230 field to take advantage of the available space. Group all the
29231 chars together to reduce wasted space due to padding.
29232
29233 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
29234
29235 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29236
29237 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29238 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29239 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29240 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29241 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29242 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29243 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29244 (last_marked, mark_object_loop_halt): Make static.
29245
29246 * frame.c (syms_of_frame) <delete-frame-functions>:
29247 Fix typo in docstring.
29248
29249 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
29250
29251 * w32.c (init_environment): Fix tiny memory leak.
29252 (w32_get_resource): Remove unused variable `ok'.
29253
29254 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29255
29256 Make `window-system' into a keyboard-local variable (rather than
29257 frame-local as done originally by multi-tty).
29258
29259 * keyboard.h (struct kboard): Add Vwindow_system.
29260 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29261 (mark_kboards): Mark Vwindow_system.
29262
29263 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29264 (init_display): Don't set the obsolete `window-system' frame-param.
29265
29266 * xterm.c (x_term_init):
29267 * w32term.c (w32_create_terminal):
29268 * term.c (init_tty): Set Vwindow_system.
29269 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29270 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29271
29272 * xfns.c (Fx_create_frame, x_create_tip_frame):
29273 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29274 * macfns.c (Fx_create_frame):
29275 Don't set the obsolete `window-system' frame-param.
29276
29277 * frame.h (Qwindow_system): Remove.
29278 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29279 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29280
29281 2007-10-24 Richard Stallman <rms@gnu.org>
29282
29283 * frame.c (x_figure_window_size): For fullscreen case,
29284 set USPosition | PPosition without clobbering rest of window_prompting.
29285
29286 * keyboard.c (Fcurrent_idle_time): Doc fix.
29287
29288 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29289
29290 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29291
29292 * process.c (unwind_request_sigio): Only define if __ultrix__.
29293
29294 * callproc.c (child_setup): Remove spurious *.
29295
29296 * lisp.h (Fget_text_property): Declare.
29297 (have_menus_p): Declare it here rather than in sys-dep header files.
29298 * macterm.h (have_menus_p):
29299 * msdos.h (have_menus_p):
29300 * xterm.h (have_menus_p): Remove.
29301
29302 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29303 (Fmake_variable_frame_local): Just check the variable's const-ness
29304 rather than checking nil or t.
29305
29306 2007-10-22 Jason Rumney <jasonr@gnu.org>
29307
29308 * w32fns.c: Include math.h.
29309 (w32_abort): Declaration moved to nt/config.nt.
29310
29311 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29312 (abort): Redefinition moved to nt/config.nt.
29313
29314 * m/windowsnt.h: Remove.
29315
29316 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
29317
29318 * emacs.c (Fdump_emacs): Fix typo in message.
29319 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29320 <installation-directory>: Reflow docstring.
29321
29322 2007-10-22 Juri Linkov <juri@jurta.org>
29323
29324 * minibuf.c: Allow minibuffer default to be a list of default values.
29325 With empty input use the first element of this list as returned default.
29326 (string_to_object)
29327 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29328 (read_minibuf): If defalt is cons, set histstring to its car.
29329 (Fread_string): If default_value is cons, set val to its car.
29330 (Fread_buffer): If def is cons, use its car.
29331 (Fcompleting_read): If defalt is cons, set val to its car.
29332
29333 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
29334
29335 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29336
29337 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
29338
29339 * doc.c (Fdocumentation): Check for advice in all cases.
29340
29341 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
29342
29343 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29344
29345 2007-10-19 Richard Stallman <rms@gnu.org>
29346
29347 * doc.c (Fdocumentation): Check for and handle an advised function.
29348
29349 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
29350
29351 * process.c (Fset_process_filter): Doc fix.
29352
29353 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29354
29355 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29356 which caused key-translation-map to applied repeatedly (thus breaking
29357 double-mode).
29358
29359 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29360
29361 * xselect.c (x_own_selection, x_handle_selection_clear)
29362 (x_clear_frame_selections):
29363 * w32menu.c (list_of_panes, list_of_items):
29364 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29365 * textprop.c (validate_plist, interval_has_all_properties)
29366 (interval_has_some_properties, interval_has_some_properties_list)
29367 (add_properties, text_property_list):
29368 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29369 * minibuf.c (Fassoc_string):
29370 * macselect.c (x_own_selection, x_clear_frame_selections)
29371 (Fx_disown_selection_internal):
29372 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29373 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29374
29375 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
29376
29377 * process.c: Link to libs for calling res_init() if available.
29378 (Fmake_network_process): Call res_init() before getaddrinfo or
29379 gethostbyname, if possible.
29380
29381 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29382
29383 * lread.c (read1): Set pvectype for char_tables.
29384
29385 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29386 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29387 Add type checks.
29388 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29389
29390 * alloc.c (free_misc): Use XMISCTYPE.
29391 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29392
29393 2007-10-17 Glenn Morris <rgm@gnu.org>
29394
29395 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29396 (syms_of_minibuf): Add Qcompletion_ignore_case.
29397 * dired.c (Qcompletion_ignore_case): Change to external.
29398 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29399 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29400 (Fread_file_name): Use it rather than intern'ing.
29401
29402 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29403 (Fread_coding_system): Ignore case of user input.
29404
29405 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29406
29407 * xdisp.c (handle_display_prop): Ignore display specs after
29408 replacing one when string text is being replaced.
29409 (handle_single_display_spec): Pretend as if characters with display
29410 property haven't been consumed only when buffer text is being replaced.
29411
29412 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29413
29414 * xfns.c (Fx_create_frame, Fx_display_list):
29415 * window.c (window_fixed_size_p, enlarge_window)
29416 (shrink_window_lowest_first):
29417 * macterm.c (init_font_name_table):
29418 * macfns.c (Fx_create_frame, Fx_display_list):
29419 * lread.c (close_load_descs):
29420 * keyboard.c (read_char_x_menu_prompt):
29421 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29422 * coding.c (code_convert_region_unwind): Test the type of an object
29423 rather than just !NILP before extracting data from it.
29424
29425 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29426
29427 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29428 (XMISCANY): New macro.
29429 (XMISCTYPE): Use it.
29430 (struct Lisp_Misc_Any): New type.
29431 (union Lisp_Misc): Use it.
29432 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29433 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29434 (find_symbol_value, set_internal, default_value, Fset_default)
29435 (Fmake_variable_buffer_local, Fmake_local_variable)
29436 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29437 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29438 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29439 * alloc.c (allocate_buffer): Set the size and tag.
29440 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29441 Use XMISCANY.
29442 (die): Follow the GNU convention for error messages.
29443 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29444 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29445 tag any more.
29446 (set_buffer_internal_1):
29447 * frame.c (store_frame_param):
29448 * eval.c (specbind):
29449 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29450
29451 * doc.c (Fsnarf_documentation): Simplify.
29452
29453 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29454
29455 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29456 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29457
29458 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29459
29460 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29461
29462 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29463
29464 * eval.c (do_autoload): Don't save autoloads.
29465
29466 * data.c (Ffset): Save autoload of the function being set.
29467
29468 2007-10-07 John Paul Wallington <jpw@pobox.com>
29469
29470 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29471 parameter before setting up faces.
29472
29473 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29474
29475 * ccl.c (Fregister_code_conversion_map):
29476 * keyboard.c (append_tool_bar_item): Reformat last change.
29477
29478 * lisp.h (eabs): Rename from `abs'. All callers changed.
29479
29480 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29481
29482 * buffer.c (add_overlay_mod_hooklist):
29483 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29484 * fontset.c (make_fontset):
29485 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29486 (append_tool_bar_item):
29487 * macmenu.c (grow_menu_items):
29488 * w32menu.c (grow_menu_items):
29489 * xmenu.c (grow_menu_items): Use larger_vector.
29490
29491 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29492
29493 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29494 selected frame'' on MSDOS).
29495
29496 2007-10-12 Martin Rudalics <rudalics@gmx.at>
29497
29498 * frame.c (Qexplicit_name): New variable.
29499 (x_report_frame_params): Report it in parameter alist.
29500 (syms_of_frame): Intern and staticpro it.
29501
29502 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29503
29504 * macfns.c (x_create_tip_frame): Set terminal for frame.
29505
29506 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29507
29508 * frame.c (Qenvironment): Remove.
29509 (syms_of_frame) <Qenvironment>: Don't initialize.
29510 (Fdelete_frame): Don't treat the `environment' param specially.
29511 * frame.h (Qenvironment): Don't declare.
29512 * callproc.c (set_initial_environment): Don't set unused frame param.
29513
29514 * frame.c (Fframe_with_environment): Remove.
29515 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29516
29517 * lisp.h (Fframe_with_environment): Don't declare.
29518
29519 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
29520
29521 * indent.c (indent_tabs_mode, last_known_column)
29522 (last_known_column_modified): Make static.
29523 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29524
29525 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29526
29527 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29528
29529 2007-10-09 Jason Rumney <jasonr@gnu.org>
29530
29531 * w32term.c (x_set_window_size): Disable code that attempts to tell
29532 Lisp code about a size change before it actually happens.
29533
29534 2007-10-09 Richard Stallman <rms@gnu.org>
29535
29536 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29537 return HANDLED_RETURN.
29538
29539 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29540
29541 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29542 when there's an unread command event.
29543
29544 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29545 window autoselection act appropriately when leaving selected frame.
29546 (syms_of_frame): Initialize focus_follows_mouse.
29547 * frame.h (focus_follows_mouse): Extern it.
29548 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29549 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29550 * msdos.c (dos_rawgetc): Likewise.
29551 * w32term.c (w32_read_socket): Likewise.
29552 * xterm.c (handle_one_xevent): Likewise.
29553 * xdisp.c (syms_of_xdisp): In doc-string of
29554 mouse-autoselect-window mention focus-follows-mouse.
29555
29556 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29557
29558 * macterm.c (mac_load_query_font): Fix missing return value.
29559 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29560 Add BLOCK_INPUT.
29561
29562 2007-10-08 Richard Stallman <rms@gnu.org>
29563
29564 * xdisp.c (get_window_cursor_type): Implement documented behavior
29565 for cursor-in-non-selected-windows = t.
29566
29567 2007-10-08 Jason Rumney <jasonr@gnu.org>
29568
29569 * w32.c (w32_get_resource): Always close registry keys.
29570
29571 2007-10-08 Jason Rumney <jasonr@gnu.org>
29572
29573 * makefile.w32-in (LIBS): Add COMCTL32.
29574
29575 * w32fns.c (globals_of_w32fns): Init common controls.
29576
29577 2007-10-08 Richard Stallman <rms@gnu.org>
29578
29579 * image.c (our_memory_buffer): Rename from omfib_buffer.
29580
29581 2007-10-08 Richard Stallman <rms@gnu.org>
29582
29583 * buffer.c (Foverlays_at): Doc fix.
29584
29585 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29586
29587 * fns.c (Fplist_put): Preserve uneven tail data.
29588
29589 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29590
29591 * termhooks.h (enum event_kind): Remove trailing comma.
29592
29593 * frame.h (enum): Remove trailing comma.
29594
29595 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29596
29597 * w32proc.c (delete_child): Don't terminate threads of zombies.
29598
29599 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29600
29601 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29602
29603 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29604 last-repeatable-command.
29605 (init_kboard): Initialize Vlast_repeatable_command.
29606 (command_loop_1): Set it to real_this_command unless that was
29607 bound to an input event.
29608 (mark_kboards): Mark it.
29609
29610 2007-10-08 Richard Stallman <rms@gnu.org>
29611
29612 * eval.c (condition-case): Doc fix.
29613
29614 2007-10-08 Masatake YAMATO <jet@gyve.org>
29615
29616 * xfaces.c (tty_supports_face_attributes_p): Fix code
29617 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29618 was copied and not edited.
29619
29620 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29621
29622 Add new `input-decode-map' keymap and use it for terminal
29623 escape sequences.
29624 * keyboard.h (struct kboard): Add Vinput_decode_map.
29625 Remove Vlocal_key_translation_map.
29626 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29627 (init_kboard): Init input-decode-map.
29628 Replace local-key-translation-map back with key-translation-map.
29629 (syms_of_keyboard): Declare input-decode-map.
29630 Remove local-key-translation-map. Update docstrings.
29631 (mark_kboards): Mark Vinput_decode_map.
29632 Don't mark Vlocal_key_translation_map.
29633 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29634 Replace local-key-translation-map back with key-translation-map.
29635 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29636 Bind in input-decode-map rather than function-key-map.
29637
29638 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29639 This was made redundant by the previous introduction of XSETPVECTYPE.
29640
29641 2007-10-09 Richard Stallman <rms@gnu.org>
29642
29643 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29644
29645 2007-09-29 Richard Stallman <rms@gnu.org>
29646
29647 * eval.c (internal_condition_case_2, internal_condition_case_1)
29648 (internal_condition_case): Reenable abort if x_catching_errors ()
29649 to see if that really happens and why.
29650
29651 2007-10-06 Andreas Schwab <schwab@suse.de>
29652
29653 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29654
29655 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
29656
29657 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29658
29659 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29660
29661 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29662
29663 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29664
29665 * window.h (struct window):
29666 * window.c (struct save_window_data, struct saved_window):
29667 * termhooks.h (struct terminal):
29668 * process.h (struct Lisp_Process):
29669 * frame.h (struct frame):
29670 * buffer.h (struct buffer):
29671 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29672 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29673 The size field of (pseudo)vectors is now unsigned.
29674 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29675
29676 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29677 Turn `count' into an integer.
29678
29679 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29680 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29681 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29682 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29683 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29684
29685 * alloc.c (allocate_pseudovector): New fun.
29686 (ALLOCATE_PSEUDOVECTOR): New macro.
29687 (allocate_window, allocate_terminal, allocate_frame)
29688 (allocate_process): Use it.
29689 (mark_vectorlike): New function.
29690 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29691 (mark_terminals): Use it.
29692 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29693 (Fmake_byte_code): Use XSETPVECTYPE.
29694
29695 * frame.c (Fframe_parameters): Minor simplification.
29696
29697 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29698
29699 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29700
29701 * buffer.c (Fget_buffer_create, init_buffer_once):
29702 * lread.c (defsubr):
29703 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29704
29705 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29706 defined differently in the m/*.h files.
29707 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29708 (XSETPVECTYPE): New macro.
29709 (XSETPSEUDOVECTOR): Use it.
29710
29711 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29712 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29713
29714 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29715 * lread.c (defvar_per_buffer):
29716 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29717
29718 * window.c (candidate_window_p): Only consider as visible frames that
29719 are on the same terminal.
29720
29721 * m/ibms390x.h (MARKBIT): Remove unused macro.
29722
29723 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
29724
29725 * lread.c (Fload): Fix typo in docstring.
29726
29727 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29728
29729 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29730 of a non-zero value can't yield zero.
29731
29732 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29733
29734 * term.c (term_clear_mouse_face, term_mouse_highlight)
29735 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29736
29737 * print.c (safe_debug_print): Use XHASH.
29738
29739 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29740 Lisp elements such as tags.
29741 (XHASH): New macro.
29742 (EQ): Use it.
29743 (SREF, SSET, STRING_COPYIN): Use SDATA.
29744 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29745
29746 * alloc.c (mark_terminal): Remove left-over declaration.
29747 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29748 (allocate_vectorlike): Remove type argument. Adjust callers.
29749 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29750 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29751
29752 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29753 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29754 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29755 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29756 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29757 Use them.
29758
29759 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29760 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29761 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29762
29763 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29764
29765 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29766 loaded by default.
29767
29768 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29769
29770 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29771 on this tty.
29772 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29773
29774 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29775 Update all users.
29776 (handle_one_term_event): Use Gpm_DrawPointer.
29777 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29778 Signal errors instead of returning nil. Always return nil.
29779 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29780 Make it a noop if gpm-mouse was not activated.
29781 (syms_of_term): Update names.
29782
29783 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29784
29785 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29786 (init_sys_modes): Check that gpm_tty is the current tty.
29787
29788 * alloc.c (allocate_terminal): Set the vector size to only count the
29789 lisp fields. Initialize those to nil.
29790 (mark_object): Don't treat terminals specially.
29791 (mark_terminal): Remove.
29792 (mark_terminals): Use mark_object instead.
29793
29794 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29795 the GC to the beginning.
29796
29797 * indent.h:
29798 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29799
29800 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29801
29802 2007-09-25 Jason Rumney <jasonr@gnu.org>
29803
29804 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29805
29806 * w32console.c (create_w32cons_output): Remove.
29807
29808 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29809
29810 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29811 (reset_sys_modes): Use reset_terminal_modes_hook.
29812
29813 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29814
29815 * eval.c (do_autoload): Don't output any message.
29816
29817 2007-09-24 Juri Linkov <juri@jurta.org>
29818
29819 * emacs.c (standard_args): Change priority of "--no-splash"
29820 from 40 to 3. Add "--no-desktop" with the same priority.
29821
29822 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29823
29824 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29825 and optimize the case where they are all 1.
29826
29827 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
29828
29829 * lisp.h (abs): Define if not defined.
29830 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29831 Don't define `abs', since it's defined in lisp.h.
29832
29833 2007-09-22 Eli Zaretskii <eliz@gnu.org>
29834
29835 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29836 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29837 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29838 (init_tty): Use DEV_TTY instead of "/dev/tty".
29839 [WINDOWSNT]: No need to protect from NAME arg being null.
29840
29841 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29842
29843 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29844 up the tty state.
29845
29846 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29847
29848 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29849 (gpm_tty): Change its type.
29850 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29851 (gpm_tty): Change its type and initialize it.
29852 (Fterm_open_connection): Check the frame is indeed a tty.
29853 Use the new gpm_tty.
29854 (Fterm_close_connection): Use the new gpm_tty.
29855 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29856 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29857
29858 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
29859
29860 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29861 underline_color, to draw strike-through.
29862
29863 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29864
29865 * lisp.h (allocate_terminal): Declare.
29866
29867 * window.c (candidate_window_p): Consider frames that are being placed
29868 by the user as somewhere between visible and iconified.
29869 (window_loop): Prefer windows on the current frame.
29870 (Fselect_window): Move the use of select-frame to the beginning so we
29871 can just delegate all the work (it'll call us back anyway).
29872
29873 * frame.c (Qdisplay_environment_variable):
29874 * frame.h (Qdisplay_environment_variable): Delete.
29875
29876 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29877 of the first arg, since that value may be a union.
29878
29879 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29880 parameter rather than Qdisplay_environment_variable. If all else
29881 fails, look for DISPLAY in initial-environment.
29882
29883 2007-09-21 Glenn Morris <rgm@gnu.org>
29884
29885 * Makefile.in (emacstool): Remove target.
29886 (lisp, shortlisp): Remove termdev.elc.
29887
29888 2007-09-21 Markus Triska <markus.triska@gmx.at>
29889
29890 * xterm.c (x_delete_display): Compile session management conditionally.
29891
29892 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29893
29894 * callproc.c (getenv_internal_1): New function.
29895 (getenv_internal): Use it.
29896 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29897
29898 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29899 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29900 (Fset_terminal_parameter): Work with dead terminals as well.
29901 (Fmodify_terminal_parameters): Remove.
29902
29903 * terminal.c (get_terminal): Handle terminals.
29904 Make sure the terminal returned is live.
29905 (create_terminal): Use allocate_terminal.
29906 (mark_terminals): Move to alloc.c.
29907 (delete_terminal): Use terminal->name as liveness status.
29908 NULL out fields after freeing their contents.
29909 Don't deallocate the object.
29910 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29911 rather than an int.
29912 (Fterminal_live_p): Accept non-integer arguments.
29913 (Fterminal_list): Return terminal objects rather than an ints.
29914
29915 * alloc.c (enum mem_type): New member for `terminal' objects.
29916 (allocate_terminal): New function.
29917 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29918 Handle terminals.
29919 (mark_terminal): New fun.
29920 (mark_terminals): Move from terminal.c.
29921
29922 * term.c (get_tty_terminal): Don't treat output_initial specially.
29923 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29924 (delete_tty): Use terminal->name as liveness status.
29925
29926 * termhooks.h (struct terminal): Make it into a pseudovector.
29927 Remove `deleted' replaced by checking `name's nullness.
29928
29929 * print.c (print_object): Handle terminals.
29930
29931 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29932 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29933
29934 * frame.c (make_terminal_frame):
29935 * keyboard.c (tty_read_avail_input):
29936 * w32term.c (x_delete_terminal):
29937 * xfns.c (Fx_create_frame, x_create_tip_frame):
29938 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29939
29940 2007-09-20 Glenn Morris <rgm@gnu.org>
29941
29942 * process.c (Fmake_network_process): Doc fix.
29943
29944 2007-09-19 Jason Rumney <jasonr@gnu.org>
29945
29946 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29947
29948 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29949
29950 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29951 Fix a C warning regarding variable constness.
29952
29953 * xterm.c (handle_one_xevent): Fix a C warning.
29954
29955 2007-09-18 Jason Rumney <jasonr@gnu.org>
29956
29957 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29958
29959 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29960
29961 * gtkutil.c (gdpy_def): New variable.
29962 (xg_initialize): Initialize gdpy_def.
29963 (xg_display_close): If no other display exists, set gdpy_def to a
29964 new connection.
29965
29966 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29967
29968 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29969 when we have no file name for the icon.
29970 (xg_tool_bar_expose_callback): Remove.
29971 (xg_create_tool_bar): Don't connect expose signal to
29972 xg_tool_bar_expose_callback.
29973 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29974
29975 2007-09-16 Andreas Schwab <schwab@suse.de>
29976
29977 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29978 values instead of zapping them.
29979
29980 2007-09-14 Glenn Morris <rgm@gnu.org>
29981
29982 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29983 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29984 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29985 scope and rename to omfib_buffer for clarity.
29986 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29987
29988 2007-09-14 Kenichi Handa <handa@m17n.org>
29989
29990 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29991
29992 2007-09-13 Jason Rumney <jasonr@gnu.org>
29993
29994 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29995
29996 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29997
29998 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29999 (mac_term_init): Call here instead, passing rif.
30000
30001 2007-09-13 Glenn Morris <rgm@gnu.org>
30002
30003 * s/hpux.h: No longer define `static' as nothing.
30004
30005 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30006
30007 * callint.c (Fcall_interactively): Remove unused var `fun'.
30008
30009 2007-09-12 Romain Francoise <romain@orebokech.com>
30010
30011 * window.c (prefer_window_split_horizontally, display_buffer):
30012 Revert 2007-09-08 change.
30013
30014 2007-09-12 Glenn Morris <rgm@gnu.org>
30015
30016 * alloca.c: Remove file.
30017 * Makefile.in (alloca): Do not undef.
30018 (allocaobj, alloca.o): Remove.
30019 (otherobj): Remove allocaobj.
30020 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30021 * regex.c (C_ALLOCA): Remove all references and code that was only
30022 used when this was defined.
30023 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30024 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30025 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30026
30027 * Makefile.in (SOURCES, unlock, relock): Delete.
30028
30029 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30030 (menu_grab_callback): All uses changed.
30031
30032 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30033 (x_reply_selection_request): All uses changed.
30034
30035 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30036
30037 * lread.c (load_warn_old_style_backquotes): Change message to look
30038 better when it appears in the middle of byte-compiler messages.
30039
30040 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30041
30042 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30043
30044 * xterm.c (x_create_terminal): Add comment.
30045
30046 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30047
30048 2007-09-10 Richard Stallman <rms@gnu.org>
30049
30050 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30051
30052 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30053
30054 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30055 (DEFUN): Document `intspec', use it instead of `prompt'.
30056
30057 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30058
30059 * data.c (Finteractive_form): If the interactive specification starts
30060 with a `(', use it as a Lisp form.
30061
30062 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30063 name and file modes.
30064
30065 * callint.c (Fcall_interactively): Comment fixes.
30066
30067 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30068
30069 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30070 and compiled functions.
30071
30072 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30073
30074 * window.c (prefer_window_split_horizontally): New variable.
30075 (display_buffer): Consider splitting window horizontally depending
30076 on prefer_window_split_horizontally.
30077
30078 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30079
30080 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30081
30082 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30083
30084 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30085
30086 * frame.c (x_set_frame_parameters): Check number is positive before
30087 using XFASTINT.
30088
30089 * window.c (freeze_window_start): Don't presume selected_window holds
30090 a window object.
30091 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30092
30093 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30094
30095 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30096
30097 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30098
30099 * window.c (Vsplit_window_preferred_function): New var.
30100 (Fdisplay_buffer): Use it.
30101 (syms_of_window): Export, and initialize it.
30102
30103 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30104
30105 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30106
30107 2007-09-06 Glenn Morris <rgm@gnu.org>
30108
30109 * gtkutil.c (menu_grab_callback) <cnt>:
30110 * xselect.c (x_reply_selection_request) <cnt>: Move static
30111 variable to file scope.
30112
30113 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30114
30115 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30116 consistent values of selected_frame and selected_window.
30117
30118 2007-09-04 Jason Rumney <jasonr@gnu.org>
30119
30120 * w32console.c (initialize_w32_display): Zero unused hooks.
30121
30122 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30123
30124 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30125 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30126
30127 2007-09-04 Jason Rumney <jasonr@gnu.org>
30128
30129 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30130 in w32console.c. Set up input. Remove XXX comments that have been
30131 confirmed as correct.
30132
30133 * s/ms-w32.h (MULTI_KBOARD): Define.
30134
30135 * w32console.c (one_and_only_w32cons): Remove.
30136 (initialize_w32_display): Take terminal argument.
30137
30138 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30139 initialize_w32_display.
30140 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30141
30142 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30143
30144 * keyboard.c (discard_mouse_events): Discard it.
30145 (make_lispy_event): Translate it to a lisp event.
30146 (lispy_wheel_names): Add wheel-left and right events.
30147 (syms_of_keyboard): Enlarge wheel_syms.
30148
30149 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30150 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30151
30152 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30153
30154 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30155 from WM_MOUSEHWHEEL.
30156 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30157
30158 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30159 terminal.
30160
30161 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30162 keyboard for the terminal.
30163
30164 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30165
30166 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30167 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30168 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30169 and resume-tty-function to resume-tty-hook.
30170 (Fsuspend_tty, Fresume_tty): Use new names.
30171
30172 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30173
30174 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30175 if it starts with "n:".
30176
30177 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30178
30179 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30180
30181 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30182
30183 * frame.h:
30184 * frame.c (Qterm_environment_variable): Remove.
30185 (syms_of_frame): Don't init and staticpro it.
30186
30187 * callproc.c (getenv_internal): Remove special case for $TERM.
30188
30189 * callproc.c (Vinitial_environment): New variable.
30190 (set_initial_environment): Initialize it.
30191 (syms_of_callproc): Declare it.
30192 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30193 TERM under which a process runs is never related to the TERM in which
30194 Emacs is running.
30195
30196 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30197
30198 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30199 * s/darwin.h: ... do it here.
30200
30201 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30202
30203 * lisp.h (set_initial_environment): Rename from set_global_environment.
30204
30205 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30206 removed by mistake on the multi-tty branch.
30207
30208 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30209 (Fmodify_frame_parameters): Return a value.
30210
30211 * image.c (png_load): Comment-out var only used in commented-out code.
30212
30213 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30214 before passing it to mark_object.
30215
30216 * xfaces.c (internal_resolve_face_name): Return a value.
30217 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30218
30219 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30220 (x_icon): Comment-out var only used in commented-out code.
30221
30222 2007-08-29 Romain Francoise <romain@orebokech.com>
30223
30224 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30225 QUIT hasn't been provided.
30226
30227 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30228
30229 * callproc.c (child_setup, getenv_internal): Use the
30230 display-environment-variable and term-environment-variable frame params.
30231 (set_initial_environment): Initialise Vprocess_environment.
30232
30233 * config.in: Disable multi-keyboard support on a mac.
30234
30235 * frame.c (Qterm_environment_variable)
30236 (Qdisplay_environment_variable): New variables.
30237 (syms_of_frame): Intern and staticpro them.
30238 (Fmake_terminal_frame): Disable output method test.
30239
30240 * frame.h: Declare them here.
30241
30242 * macfns.c (x_set_mouse_color): Get rif from the frame.
30243 (x_set_tool_bar_lines): Don't use updating_frame.
30244 (mac_window): Add 2 new parameters for consistency with other systems.
30245 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30246 frame parameters following what is done in X11 and w32. Don't use
30247 FRAME_MAC_DISPLAY_INFO.
30248 (Fx_open_connection, start_hourglass): Remove window-system check.
30249 (x_create_tip_frame): Get the keyboard from the terminal.
30250
30251 * macmenu.c: Reorder includes.
30252 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30253
30254 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30255 terminal parameter.
30256 (x_clear_frame): Add a frame parameter.
30257 (note_mouse_movement): Get rif from the frame.
30258 (mac_term_init): Initialize the terminal.
30259 (mac_initialize): Make static and move terminal initialization ...
30260 (mac_create_terminal): ... to this new function.
30261
30262 * macterm.h (struct mac_display_info): Add terminal.
30263 (mac_initialize): Delete declaration.
30264
30265 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30266
30267 * sysdep.c: Comment out text after #endif.
30268
30269 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30270 is defined. Better initialize ttys in windows. Use terminal
30271 specific mouse_position_hook.
30272
30273 * termhooks.h (union display_info): Add mac_display_info.
30274
30275 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30276 Set the default minibuffer frame, window_system and the rest of the
30277 frame parameters following what is done in X11.
30278
30279 * w32term.c (w32_initialize): Make static.
30280
30281 * xselect.c (x_handle_selection_clear): Only access
30282 terminal->kboard when MULTI_KBOARD is defined.
30283
30284 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30285 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30286
30287 2007-08-29 Jason Rumney <jasonr@gnu.org>
30288
30289 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30290 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30291
30292 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30293 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30294
30295 * keyboard.c (restore_kboard_configuration): Only define when
30296 MULTI_KBOARD defined.
30297
30298 * makefile.w32-in: Update dependancies from Makefile.in.
30299 (OBJ1): Add terminal.$(O)
30300
30301 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30302 Don't define function body.
30303 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30304
30305 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30306
30307 * w32.c (request_sigio, unrequest_sigio): Remove.
30308
30309 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30310 (w32con_clear_frame, w32con_clear_end_of_line)
30311 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30312 (w32con_delete_glyphs, w32con_set_terminal_window)
30313 (scroll_line, w32_sys_ring_bell): Add frame arg.
30314 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30315 Add terminal arg.
30316 (PICK_FRAME): Remove.
30317 (w32con_write_glyphs): Use frame specific terminal coding.
30318 (one_and_only_w32cons): New global variable.
30319 (initialize_w32_display): Use it for storing hooks.
30320 (create_w32cons_output): New function.
30321
30322 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30323 arg a frame.
30324
30325 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30326 Set window_system.
30327 (x_set_tool_bar_lines): Don't use updating_frame.
30328 (Fx_create_frame): Set terminal and ref count.
30329 (Fx_open_connection): Remove window-system check.
30330
30331 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30332
30333 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30334 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30335 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30336 Add frame arg.
30337 (x_delete_terminal, w32_create_terminal): New functions.
30338 (w32_term_init): Create a terminal.
30339 (w32_initialize): Move terminal specific initialization to
30340 w32_create_terminal.
30341
30342 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30343 (w32_clear_rect, w32_clear_area): Use background from frame.
30344 (w32_display_info): Add terminal.
30345 (w32_sys_ring_bell, x_delete_display): Declare here.
30346
30347 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30348
30349 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30350
30351 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30352
30353 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30354 Fix get_named_tty calls for the controlling tty.
30355
30356 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30357
30358 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
30359
30360 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30361
30362 * term.c (tty_insert_glyphs): Add missing first parameter.
30363
30364 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30365
30366 * buffer.c (Fbuffer_list, Fbury_buffer):
30367 Take frame->buried_buffer_list into account.
30368
30369 * cm.c (current_tty): New variable, for cmputc().
30370 (cmputc): Use it.
30371 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30372 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30373 (cmgoto): Add tty parameter. Pass it on to calccost().
30374 Use emacs_tputs() instead of tputs().
30375
30376 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30377 tputs().
30378 (current_tty): New variable, for cmputc().
30379 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30380
30381 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30382 (internal_condition_case, internal_condition_case_1)
30383 (internal_condition_case_2): Don't abort when x_catching_errors.
30384
30385 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30386 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30387 prevent crashes caused by bogus longjmps in read_char.
30388
30389 * keymap.h (Fset_keymap_parent): Add EXFUN.
30390
30391 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30392 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30393 Remove redundant definition.
30394
30395 * macfns.c (x_set_mouse_color, x_make_gc):
30396 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30397
30398 * w32term.c (x_free_frame_resources):
30399 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30400 (w32_initialize): Use the accessor macros for terminal characteristics.
30401
30402 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30403 Use the accessor macros for terminal characteristics.
30404 * msdos.c (internal_terminal_init): Use the accessor macros for
30405 terminal characteristics.
30406 (ScreenVisualBell, internal_terminal_init):
30407 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30408
30409 * termopts.h (no_redraw_on_reenter): Declare.
30410
30411 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30412 (mark_terminals, mark_ttys): Declare.
30413 (Fgarbage_collect): Call them.
30414 (mark_object): Mark buried_buffer_list.
30415
30416 * prefix-args.c: Include stdlib.h for exit.
30417
30418 * syssignal.h: Add comment.
30419
30420 * indent.c: Include stdio.h.
30421
30422 * window.h (Vinitial_window_system): Declare.
30423 (Vwindow_system): Delete declaration.
30424
30425 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30426
30427 * image.c (lookup_image): Don't initialize `c' until the xasserts
30428 have been run.
30429
30430 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30431 FRAME_FOREGROUND_PIXEL.
30432
30433 * print.c (print_preprocess): Don't lose print_depth levels while
30434 iterating.
30435
30436 * widget.c (update_from_various_frame_slots):
30437 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30438
30439 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30440 frames.
30441 (window_internal_height): Remove bogus make_number call.
30442 (init_window_once): Call make_terminal_frame with two zero parameters.
30443
30444 * fileio.c (Fread_file_name): Update comment.
30445
30446 * callint.c (Fcall_interactively):
30447 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30448 Make sure it is correctly unwound.
30449
30450 * xsmfns.c (x_session_close): New function.
30451
30452 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30453 Delete declarations.
30454
30455 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30456 (x_output): Remove background_pixel and foreground_pixel fields.
30457 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30458 (x_delete_device, x_session_close): Declare.
30459
30460 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30461 (read_filtered_event): Call `read_char' with a local
30462 `wrong_kboard_jmpbuf'.
30463
30464 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30465 Don't call single_kboard_state. Use FRAME_RIF.
30466
30467 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30468 systems.
30469
30470 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30471 (Fframe_with_environment, Fset_input_meta_mode)
30472 (Fset_quit_char): EXFUN.
30473 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30474 (init_sys_modes, reset_sys_modes): Update prototypes.
30475 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30476
30477 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30478 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30479 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30480 Delete declarations.
30481 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30482 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30483 New declarations.
30484
30485 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30486 already does that during init_display(). Call syms_of_keymap
30487 before syms_of_keyboard. Call `syms_of_terminal'.
30488 Call set_initial_environment, not set_process_environment.
30489 (shut_down_emacs): Call reset_all_sys_modes() instead of
30490 reset_sys_modes().
30491
30492 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30493 (internal_resolve_face_name, resolve_face_name_error): New functions.
30494 (resolve_face_name): Protect against loops and errors thrown by Fget.
30495 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30496 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30497
30498 * scroll.c: Replace CURTTY() with local variables throughout the
30499 file (where applicable).
30500 (calculate_scrolling, calculate_direct_scrolling)
30501 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30502 characteristics.
30503
30504 * keymap.c (Vfunction_key_map): Remove.
30505 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30506 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30507 (Vkey_translation_map): Remove.
30508 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30509 (Fdescribe_buffer_bindings)
30510 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30511 Update for terminal-local key-translation-map.
30512
30513 * Makefile.in (callproc.o): Update dependencies.
30514 (lisp, shortlisp): Add termdev.elc.
30515 (obj): Add terminal.o.
30516 (terminal.o): Add dependencies.
30517 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30518 (data.o, fns.o): Add termhooks.h dependency.
30519 (SOME_MACHINE_LISP): Add dnd.elc.
30520 (minibuf.o): Fix typo.
30521 Update dependencies.
30522
30523 * data.c (do_symval_forwarding, store_symval_forwarding)
30524 (find_symbol_value): Use the selected frame's keyboard, not
30525 current_kboard.
30526
30527 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30528 Vwindow_system.
30529
30530 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30531 Fmenu_bar_open.
30532 (syms_of_xmenu): Update defsubr.
30533 (mouse_position_for_popup, Fx_popup_menu)
30534 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30535 (set_frame_menubar, free_frame_menubar)
30536 (create_and_show_popup_menu, xmenu_show)
30537 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30538 an X frame.
30539
30540 * xselect.c (x_own_selection): Abort if not an X frame.
30541 (some_frame_on_display): Check if it is an X frame.
30542 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30543
30544 * coding.c: Include frame.h and termhooks.h.
30545 (terminal_coding, keyboard_coding): Delete.
30546 (Fset_terminal_coding_system_internal)
30547 (Fset_keyboard_coding_system_internal)
30548 (Fkeyboard_coding_system)
30549 (Fterminal_coding_system): Add a terminal parameter.
30550 Get terminal_coding from the terminal.
30551 (init_coding_once): Don't call setup_coding_system here.
30552
30553 * dispextern.h (set_scroll_region, turn_off_insert)
30554 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30555 (tty_clear_end_of_line, tty_setup_colors)
30556 (delete_tty, updating_frame)
30557 (produce_special_glyphs, produce_glyphs, write_glyphs)
30558 (insert_glyphs): Remove.
30559 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30560 (tty_turn_off_highlight, get_tty_size): Add declaration.
30561 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30562
30563 * frame.h (enum output_method): Add output_initial.
30564 (struct x_output): Delete.
30565 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30566 Access foreground_pixel and background_pixel directly from the frame.
30567 (tty_display): Delete.
30568 (struct frame): Add buried_buffer_list, foreground_pixel,
30569 background_pixel and terminal. Delete kboard.
30570 (union output_data): Add tty.
30571 (FRAME_KBOARD): Get the kboard from the terminal.
30572 (FRAME_INITIAL_P): New macro.
30573 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30574 (Qterm_environment_variable, Qdisplay_environment_variable)
30575 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30576 New declarations.
30577
30578 * termchar.h (tty_output, tty_display_info): New structures.
30579 (tty_list): Declare.
30580 (FRAME_TTY, CURTTY): New macros.
30581 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30582 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30583 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30584 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30585
30586 * callproc.c: Include frame.h and termhooks.h, for terminal
30587 parameters.
30588 (add_env): New function.
30589 (child_setup): Use it.
30590 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30591 (getenv_internal): Fix get_terminal_param call.
30592 (Fgetenv_internal, egetenv): Update doc.
30593 (syms_of_callproc): Initialize Vprocess_environment to nil.
30594 Register and initialize them. Remove obsolete defvars. Update doc
30595 strings.
30596 (child_setup): Handle Vlocal_environment_variables.
30597 (getenv_internal): Add terminal parameter.
30598 Handle Vlocal_environment_variables.
30599 (Fgetenv_internal): Add terminal parameter.
30600 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30601 environment in a frame (not terminal) parameter. Update doc strings.
30602 (set_initial_environment): Rename from set_global_environment.
30603 Store Emacs environment in initial frame parameter.
30604
30605 * xdisp.c (redisplay_internal): Update references to
30606 `previous_terminal_frame'.
30607 (display_mode_line, Fformat_mode_line): Replace calls to
30608 `push_frame_kboard' with `push_kboard'.
30609 (get_glyph_string_clip_rects): Add extra parentheses and
30610 braces to prevent compiler warnings.
30611 (calc_pixel_width_or_height): Add xassert to check that the
30612 frame is alive. Don't call `lookup_image' on a termcap frame.
30613 (message2_nolog, message3_nolog, redisplay_internal)
30614 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30615 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30616 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30617 (Fx_display_pixel_width, Fx_display_pixel_height)
30618 (Fx_display_planes, Fx_display_color_cells)
30619 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30620 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30621 (Fx_display_backing_store, Fx_display_visual_class)
30622 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30623 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30624
30625 * xfns.c (x_set_foreground_color x_set_background_color)
30626 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30627 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30628 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30629 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30630 terminal that is being deleted.
30631 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30632 frame parameter, and make sure it overrides any user-supplied setting.
30633 (Fx_close_connection, Fx_synchronize): Unify argument names with
30634 the rest of the DEFUNs.
30635
30636 * dispnew.c (Fsend_string_to_terminal): Update call to
30637 `get_tty_terminal'.
30638 (Fredraw_frame, Fsend_string_to_terminal)
30639 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30640 FRAME_TERMCAP_P and FRAME_TTY.
30641 (window_change_signal): Don't believe width/height values that are
30642 impossibly small.
30643 (Vinitial_window_system): Rename from Vwindow_system.
30644 (termscript, Wcm, rif): Delete.
30645
30646 * termhooks.h (struct terminal): New struct containing the
30647 previously global text display hooks and new members NAME,
30648 DELETED and PARAM_ALIST.
30649 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30650 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30651 (FRAME_RIF): New macros.
30652 (get_terminal_param, get_device): New declarations.
30653 (termscript): Delete declaration.
30654
30655 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30656 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30657 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30658 FRAME_FOREGROUND_PIXEL.
30659 (x_fully_uncatch_errors): Disable definition.
30660 (x_scroll_bar_expose): Fix reference to foreground pixel.
30661 (XTread_socket): Disable loop on all X displays.
30662 (x_delete_terminal): Don't set terminal->deleted and let
30663 delete_terminal delete the frames on the terminal.
30664 (x_delete_display): Doc update to reflect changes in
30665 delete_terminal.
30666 (x_display_info) <terminal>: Move member earlier in the struct.
30667 (deleting_tty): Remove old variable.
30668 (Fsuspend_tty): Call clear_tty_hooks.
30669 (Fresume_tty, init_tty): Call set_tty_hooks.
30670 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30671 errors on X frames.
30672 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30673 (handle_one_xevent): Initialize `f' to NULL.
30674 (x_delete_terminal, x_create_terminal): New functions.
30675 (XTset_terminal_modes, XTreset_terminal_modes)
30676 (XTread_socket, x_connection_closed, x_term_init)
30677 (x_term_init, x_delete_display): Add terminal parameter.
30678 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30679 X connections.
30680
30681 * frame.c: Include termchar.h.
30682 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30683 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30684 (Qdisplay_environment_variable): New vars.
30685 (Fframep): Deal with output_initial.
30686 (Fframe-live-p): Doc fix.
30687 (Fwindow-system): New function.
30688 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30689 (make_terminal_frame): Don't create frames on a terminal that is
30690 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30691 (store_frame_param): Check for found_for_frame before calling XFRAME.
30692 (Fmake_terminal_frame): Handle NULL tty names correctly.
30693 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30694 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30695 frames to refer to a deleted frame in their 'environment parameter.
30696 (Fframe_with_environment): New function.
30697 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30698 (get_future_frame_param): New function.
30699 (Fmake_terminal_frame): Use it.
30700 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30701
30702 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30703 * sysdep.c (reset_sys_modes): Update for renames.
30704
30705 * keyboard.c (tty_read_avail_input): New function.
30706 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30707 (syms_of_keyboard): Defsubr them.
30708 (Fset_input_meta_mode, Fset_quit_char): New functions.
30709 (Fset_input_mode): Split to above functions.
30710 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30711 parameter. Use it in call to `read_char'.
30712 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30713 Set wrong_kboard_jmpbuf correctly in recursive calls.
30714 Use current_kboard to access Vkeyboard_translate_table.
30715 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30716 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30717 Update longjmp invocations. Remember the original current_kboard,
30718 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30719 changes it. Comment out unnecessary calls to
30720 `record_single_kboard_state' and `any_kboard_state'.
30721 Update recursive calls.
30722 (wrong_kboard_jmpbuf): Remove global variable.
30723 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30724 Handle deleted interrupted_kboards correctly; that is a legal
30725 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30726 and read_char calls. Abort if interrupted_kboard died in read_char.
30727 (any_kboard_state, single_kboard_state)
30728 (push_frame_kboard): Remove function.
30729 (pop_kboard): Switch out of single_kboard mode if the kboard has
30730 been deleted. Remove unused variable. Help debugging by not
30731 changing current_kboard unnecessarily. Set current_kboard to the
30732 kboard of the selected frame when the stored kboard object has
30733 been deleted before pop_kboard.
30734 (temporarily_switch_to_single_kboard): Change first parameter to a
30735 frame pointer. Throw an error when caller wants to change kboards
30736 while in single_kboard mode. Don't push_kboard if we weren't in
30737 single kboard state. Don't pop_kboard if we popped into any
30738 kboard state.
30739 (restore_kboard_configuration): Abort if pop_kboard changed the
30740 kboard in single_kboard mode. Call pop_kboard only after setting
30741 up single_kboard mode.
30742 (Frecursive_edit): Switch to single_kboard mode only in nested
30743 command loops.
30744 (cmd_error, command_loop, command_loop_1, timer_check):
30745 Comment out unnecessary call to `any_kboard_state' and
30746 `record_single_kboard_state'.
30747 (delete_kboard): Exit single_kboard mode if we have just deleted
30748 that kboard. Use FRAME_KBOARD.
30749 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30750 `fatal_error_signal'.
30751 (record_single_kboard_state): Don't push_kboard if we weren't in
30752 single kboard state. Don't pop_kboard if we popped into any
30753 kboard state.
30754 (push_frame_kboard): Rename to push_kboard.
30755 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30756 (read_avail_input): Read input from all terminals.
30757 (mark_kboards): Also mark Vkeyboard_translate_table.
30758 (kbd_buffer_store_event_hold): Simplify condition.
30759 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30760 (Vkeyboard_translate_table): Move to struct kboard.
30761 (init_kboard): Initialize Vkeyboard_translate_table.
30762 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30763 Vkeyboard_translate_table. Update doc strings. Update docs of
30764 local-function-key-map and function-key-map.
30765
30766 * terminal.c: New file.
30767
30768 * term.c: Include errno.h.
30769 (Vring_bell_function, device_list, initial_device)
30770 (next_device_id, ring_bell, update_begin, update_end)
30771 (set_terminal_window, cursor_to, raw_cursor_to)
30772 (clear_to_end, clear_frame, clear_end_of_line)
30773 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30774 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30775 (syms_of_term): Move their initialization to terminal.c.
30776 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30777 (Ftty_display_color_cells)
30778 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30779 (clear_tty_hooks, set_tty_hooks)
30780 (init_tty, maybe_fatal): New functions.
30781 (Ftty_type): Return nil if terminal is not on a tty instead of
30782 throwing an error. Doc update.
30783 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30784 Doc update. Initialize new subrs and variables.
30785 (delete_tty): Use terminal->deleted.
30786 (tty_set_terminal_modes): Rename from set_terminal_modes.
30787 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30788 (set_scroll_region): Rename to `tty_set_scroll_region'.
30789 (turn_on_insert): Rename to `tty_turn_on_insert'.
30790 (turn_off_insert): Rename to `tty_turn_off_insert'.
30791 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30792 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30793 (toggle_highligh): Rename to `tty_toggle_highlight'.
30794 (background_highlight): Rename to `tty_background_highlight'.
30795 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30796 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30797 (tty_set_scroll_region, tty_background_highlight)
30798 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30799 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30800 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30801 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30802 Add static modifier.
30803 (tty_reset_terminal_modes, tty_set_terminal_window)
30804 (tty_set_scroll_region, tty_background_highlight)
30805 (tty_highlight_if_desired, tty_cursor_to)
30806 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30807 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30808 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30809 renames.
30810
30811 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30812
30813 * keyboard.c: Qrtl is new.
30814 (parse_tool_bar_item): Handle :rtl keyword.
30815 (syms_of_keyboard): Intern :rtl keyword.
30816
30817 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30818
30819 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30820 so no Lisp code is executed.
30821 (file_for_image, find_rtl_image): New functions.
30822 (xg_get_image_for_pixmap): Use file_for_image.
30823 (update_frame_tool_bar): If direction is RTL, use RTL image if
30824 defined. Use Gtk stock images if defined.
30825
30826 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30827
30828 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30829 for nonexistent or zero-width glyph in composition glyph.
30830
30831 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30832
30833 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30834
30835 * xdisp.c (Finvisible_p): New function.
30836 (syms_of_xdisp): defsubr it.
30837
30838 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
30839
30840 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30841 Doc fixes.
30842
30843 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30844
30845 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30846
30847 2007-08-24 Martin Rudalics <rudalics@gmx.at>
30848
30849 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30850 whether decoding has modified buffer contents.
30851
30852 2007-08-24 Jason Rumney <jasonr@gnu.org>
30853
30854 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30855 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30856 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30857 (init_svg_functions) [HAVE_NTGUI]: New function.
30858 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30859 (svg_load_image): Use them.
30860 (svg_load_image) [HAVE_NTGUI]: Implement background.
30861
30862 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30863
30864 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30865 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30866 (LIBX): Remove @RSVG_LIBS@.
30867 (LIBES): Add $(RSVG_LIBS).
30868
30869 * image.c (svg_load_image): Blend with specified background if exists.
30870 Use IMAGE_BACKGROUND. Add Mac OS Support.
30871
30872 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30873 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30874 Remove macros.
30875 [MAC_OSX] (socket_callback): Do nothing.
30876 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30877 ReceiveNextEvent.
30878 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30879 socket_callback.
30880 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30881
30882 2007-08-22 Glenn Morris <rgm@gnu.org>
30883
30884 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30885
30886 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30887
30888 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30889
30890 * image.c: Add support for SVG images. Some additional comments
30891 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30892 (svg_image_p): New function to test for SVG image.
30893 (svg_load): New function to load SVG image.
30894 (svg_load_image): New function, helper for svg_load.
30895 (Qsvg): New Lisp_object.
30896 (svg_keyword_index): New enum.
30897 (svg_format): New static `image_keyword' struct.
30898 (svg_type): New static `image_type' struct.
30899 (librsvg/rsvg.h): Include it.
30900
30901 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30902
30903 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30904
30905 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30906
30907 * lread.c (Qold_style_backquotes): New var.
30908 (syms_of_lread): Init and staticpro it.
30909 (load_warn_old_style_backquotes): New fun.
30910 (Fload): Use them to warn about old style backquotes.
30911 (end_of_file_error, Fload): Remove unused vars.
30912
30913 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30914
30915 * lread.c (Vold_style_backquotes): New var.
30916 (syms_of_lread): Init and export it to Elisp.
30917 (read1): Set it when we find an old-style (back)quote.
30918
30919 2007-08-22 Jason Rumney <jasonr@gnu.org>
30920
30921 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30922
30923 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30924
30925 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30926
30927 2007-08-19 Richard Stallman <rms@gnu.org>
30928
30929 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30930
30931 2007-08-19 Andreas Schwab <schwab@suse.de>
30932
30933 * alloc.c (pure): Round PURESIZE up.
30934
30935 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30936
30937 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30938 active frame.
30939
30940 2007-08-16 Richard Stallman <rms@gnu.org>
30941
30942 * eval.c (Fcommandp): Add parens to clarify.
30943
30944 * minibuf.c (Fall_completions): Use enum for type of table.
30945
30946 * emacs.c (USAGE2): Improve text.
30947
30948 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30949
30950 * term.c (tty_default_color_capabilities): Declare static
30951 variables in file scope, to avoid HPUX compiler problem.
30952
30953 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30954
30955 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30956 to gtk_toolbar_insert.
30957
30958 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30959
30960 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30961
30962 * insdel.c (reset_var_on_error): New fun.
30963 (signal_before_change, signal_after_change):
30964 Use it to reset (after|before)-change-functions to nil in case of error.
30965 Bind inhibit-modification-hooks to t.
30966 Don't bind (after|before)-change-functions to nil while they run.
30967
30968 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30969
30970 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30971 filling pixmap with stippled background.
30972
30973 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30974
30975 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30976 Don't use invisible frame as parent window for repositioning.
30977
30978 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30979
30980 * print.c (new_backquote_output): Rename from old_backquote_output.
30981 (print): Inverse its logic (according to its name) so as to match the
30982 behavior of new_backquote_flag in lread.c.
30983
30984 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30985
30986 * gmalloc.c (posix_memalign): New function.
30987
30988 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30989 ActivateControl/DeactivateControl here.
30990 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30991 frame-notice-user-settings is non-nil.
30992 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30993 for kEventParamFMFontStyle.
30994 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30995 mac_pass_command_to_system and mac_pass_control_to_system here.
30996 (XTread_socket): Call ActivateControl/DeactivateControl here.
30997 (XTread_socket) [TARGET_API_MAC_CARBON]:
30998 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30999 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31000 for window repositioning.
31001
31002 2007-08-08 Glenn Morris <rgm@gnu.org>
31003
31004 * Replace `iff' in doc-strings and comments.
31005
31006 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31007
31008 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31009
31010 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31011
31012 * fileio.c (Finsert_file_contents): Run format-decode and
31013 after_insert_file_functions on entire buffer when REPLACE is
31014 non-nil and inhibit modification_hooks and point_motion_hooks.
31015 For consistency, run after_insert_file_functions iff something
31016 got inserted. Move signal_after_change and update_compositions
31017 after code running after_insert_file_functions. Make sure that
31018 undo_list doesn't record intermediate steps of the decoding process.
31019
31020 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31021
31022 * emacs.c (main)
31023 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31024 Call malloc_enable_thread on interactive startup.
31025
31026 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31027 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31028 [USE_PTHREAD]: Conditionalize with it.
31029 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31030 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31031 New functions.
31032
31033 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31034
31035 * xdisp.c (redisplay_window): When restoring original buffer
31036 position, make sure it is still valid.
31037
31038 * image.c (png_load): Ignore png-supplied background color.
31039
31040 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31041
31042 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31043 Use kCFAbsoluteTimeIntervalSince1970.
31044
31045 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31046 New variable.
31047 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31048 event loop should be quit.
31049 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31050 Quit dialog event loop if quit_dialog_event_loop is set.
31051
31052 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31053 (Selection): New typedef. Use instead of ScrapRef.
31054 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31055 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31056 (mac_clear_selection): Rename from clear_scrap.
31057 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31058 scrap_has_target_type. All uses changed.
31059 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31060 (mac_selection_has_target_p): New functions.
31061 (mac_put_selection_value): Rename from put_scrap_string.
31062 (mac_get_selection_value): Rename from get_scrap_string.
31063 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31064 (put_scrap_private_timestamp, scrap_has_target_type)
31065 (get_scrap_private_timestamp): Remove functions.
31066 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31067 (x_own_selection, x_get_local_selection):
31068 Use mac_valid_selection_value_p.
31069 (x_own_selection): Don't use put_scrap_private_timestamp.
31070 Record OWNERSHIP-INFO into Vselection_alist instead.
31071 (x_get_local_selection): Don't check type if request is local.
31072 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31073 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31074
31075 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31076
31077 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31078 add comment explaining why.
31079
31080 2007-08-03 Richard Stallman <rms@gnu.org>
31081
31082 * fileio.c (Fvisited_file_modtime): Use make_time.
31083
31084 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31085
31086 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31087 build.
31088
31089 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31090
31091 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31092
31093 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31094
31095 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31096
31097 2007-07-30 Richard Stallman <rms@gnu.org>
31098
31099 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31100
31101 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31102
31103 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31104
31105 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31106
31107 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31108 remote default-directory.
31109
31110 * buffer.c (mode-line-format): Update doc string.
31111
31112 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31113
31114 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31115 scroll bar gap.
31116 (x_scroll_bar_create): Set bar->fringe_extended_p.
31117 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31118 on frame edge. Check fringe background extension. Don't clear
31119 extended fringe background area.
31120
31121 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31122 (w32_fill_area): Enclose multiple statements with do ... while (0).
31123
31124 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31125 Extend fringe background to scroll bar gap.
31126 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31127 Set bar->fringe_extended_p.
31128 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31129 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31130 background extension. Don't clear extended fringe background area.
31131
31132 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31133 New member fringe_extended_p.
31134
31135 2007-07-25 Glenn Morris <rgm@gnu.org>
31136
31137 * Relicense all FSF files to GPLv3 or later.
31138
31139 * COPYING: Switch to GPLv3.
31140
31141 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31142
31143 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31144
31145 * data.c (Finteractive_form): Check for the presence of an
31146 `interactive-form' symbol property more thoroughly.
31147
31148 * data.c (Finteractive_form): Use an `interactive-form' property if
31149 present, analogous to the function-documentation property.
31150
31151 2007-07-24 Jason Rumney <jasonr@gnu.org>
31152
31153 * w32fns.c (x_real_positions): Get real position from OS instead of
31154 calculating it.
31155
31156 2007-07-23 Jason Rumney <jasonr@gnu.org>
31157
31158 * filelock.c (current_lock_owner): Allow for @ sign in username.
31159
31160 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31161
31162 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31163 remote default-directory.
31164
31165 * buffer.c (mode-line-format): Describe above case in doc string.
31166
31167 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31168
31169 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31170 Define if not defined.
31171
31172 2007-07-18 Jason Rumney <jasonr@gnu.org>
31173
31174 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31175
31176 2007-07-18 Richard Stallman <rms@gnu.org>
31177
31178 * data.c (Fsetq_default): Doc fix.
31179
31180 * eval.c (Fsetq): Doc fix.
31181
31182 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
31183
31184 * coding.c (Ffind_operation_coding_system):
31185 * eval.c (For, Fand): Doc fixes.
31186 Reported by Johan Bockgård.
31187
31188 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31189
31190 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31191
31192 * xterm.h: Declare x_ewmh_activate_frame.
31193
31194 * xterm.c (x_ewmh_activate_frame): New function.
31195 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31196
31197 2007-07-17 Martin Rudalics <rudalics@gmx.at>
31198
31199 * window.c (Fdisplay_buffer): If largest or LRU window is the
31200 only window, split it even if it is not eligible for splitting.
31201 This restores the original behavior broken by the 2007-07-15
31202 change.
31203
31204 2007-07-17 Glenn Morris <rgm@gnu.org>
31205
31206 * abbrev.c (abbrev_check_chars): New function.
31207 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31208 Call abbrev_check_chars to check abbrev characters are word
31209 constituents. Doc fix.
31210
31211 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31212
31213 * process.c (Fstart_process, Fmake_network_process)
31214 (read_process_output): Fix up last changes.
31215
31216 2007-07-16 Eli Zaretskii <eliz@gnu.org>
31217
31218 * makefile.w32-in (clean): Don't delete *~.
31219
31220 2007-07-16 Andreas Schwab <schwab@suse.de>
31221
31222 * window.c (Fdisplay_buffer): Use NILP.
31223 (Fset_window_scroll_bars): Likewise.
31224
31225 2007-07-15 Martin Rudalics <rudalics@gmx.at>
31226
31227 * window.c (window_min_size_2): New function.
31228 (window_min_size_1, size_window, Fdisplay_buffer)
31229 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31230 windows without mode- or header-lines when window-min-height is
31231 too small.
31232 (size_window): Reset nodelete_p after testing it, following an
31233 earlier note by Kim F. Storm.
31234 (display_buffer): Do not set split_height_threshold to twice the
31235 value of window_min_height to avoid changing the value of a
31236 customizable variable. Rather explicitly check whether the
31237 height of the window that shall be splitted is at least as large
31238 as split_height_threshold.
31239 (Fwindow_full_width_p): New defun.
31240 (syms_of_window): Defsubr it.
31241
31242 * window.h: Add EXFUN for Fwindow_full_width_p.
31243
31244 2007-07-14 Jason Rumney <jasonr@gnu.org>
31245
31246 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31247
31248 2007-07-14 Richard Stallman <rms@gnu.org>
31249
31250 * eval.c (maybe_call_debugger): New function.
31251 (find_handler_clause): Use maybe_call_debugger.
31252 Call it when the handler says `debug'.
31253 Eliminate DEBUGGER_VALUE_PTR.
31254 (Fsignal): Eliminate debugger_value.
31255 (Qdebug): New variable.
31256 (syms_of_eval): Initialize it.
31257
31258 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
31259
31260 * eval.c (Fprogn):
31261 * keyboard.c (Ftrack_mouse):
31262 * print.c (Fwith_output_to_temp_buffer):
31263 * window.c (Fsave_window_excursion): Doc fix.
31264
31265 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31266
31267 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31268
31269 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31270
31271 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31272 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31273 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31274 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31275 Remove unused encoding_carryover.
31276 * process.c: Adjust all functions accordingly.
31277
31278 2007-07-12 Richard Stallman <rms@gnu.org>
31279
31280 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31281
31282 2007-07-11 Jason Rumney <jasonr@gnu.org>
31283
31284 * makefile.w32-in (LIBS): Include OLE32.
31285
31286 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31287 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31288
31289 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31290
31291 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31292 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31293 from a Lisp_Object into a bare pointer.
31294 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31295 Adjust the code correspondingly.
31296
31297 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31298
31299 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31300 (term_show_mouse_face): Remove unused var `j'.
31301 (handle_one_term_event): Remove unused vars `i' and `j'.
31302 Don't cast return value of ttyname since it's not necessary.
31303
31304 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31305
31306 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31307 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31308
31309 * fns.c (map_char_table): Use an array of int for `indices' rather than
31310 an array of Lisp_Objects (which are only ever integers anyway).
31311 (Fmap_char_table): Update caller.
31312 * lisp.h: Update prototype.
31313 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31314 * fontset.c (Ffontset_info):
31315 * casetab.c (set_case_table): Update callers.
31316
31317 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31318
31319 * keymap.c (struct accessible_keymaps_data)
31320 (struct where_is_internal_data): New structures.
31321 (accessible_keymaps_1, where_is_internal_1): Use them to change
31322 interface to adhere to the one used by map_keymap.
31323 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31324 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31325
31326 * keymap.h (map_keymap_function_t): More informative prototype.
31327
31328 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31329
31330 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31331 (looking_at_1): Don't change search_regs and last_thing_searched
31332 if `inhibit-changing-match-data' is non-nil.
31333 (string_match_1, search_buffer, set_search_regs): Likewise.
31334 (syms_of_search): Add Lisp level definition for
31335 `inhibit-changing-match-data' and set it to nil.
31336 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31337 start and end of the match, instead of using values in search_regs.
31338
31339 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31340
31341 * minibuf.c (Fcompleting_read): New value `confirm-only'
31342 for `require-match'.
31343
31344 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31345
31346 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31347 part of the 2007-06-27 change to syms_of_fileio.
31348
31349 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31350
31351 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31352 Check WINDOWP before using XWINDOW. Consolidate return statements.
31353
31354 2007-06-27 Richard Stallman <rms@gnu.org>
31355
31356 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31357
31358 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
31359
31360 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31361
31362 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31363
31364 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31365 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31366 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31367 (_free_internal, memalign): Use them.
31368 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31369 Initialize to PTHREAD_MUTEX_INITIALIZER.
31370 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31371 (morecore_nolock): Rename from morecore. All uses changed.
31372 Use only nolock versions of internal allocation functions.
31373 (_malloc_internal_nolock, _realloc_internal_nolock)
31374 (_free_internal_nolock): New functions created from
31375 _malloc_internal, _realloc_internal, and _free_internal.
31376 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31377 Copy hook value to automatic variable before its use.
31378 (memalign): Copy hook value to automatic variable before its use.
31379
31380 2007-06-26 Kenichi Handa <handa@m17n.org>
31381
31382 * coding.c (Ffind_operation_coding_system): Docstring improved.
31383 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31384
31385 2007-06-25 David Kastrup <dak@gnu.org>
31386
31387 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31388 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31389 cater for additional parameter.
31390
31391 * keymap.h: Adjust number of parameters to `current-active-maps'.
31392
31393 * doc.c (Fsubstitute_command_keys): Adjust call of
31394 `current-active-maps'.
31395
31396 2007-06-25 David Kastrup <dak@gnu.org>
31397
31398 * callint.c (Fcall_interactively): Make the parsing of interactive
31399 specs somewhat more readable.
31400
31401 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31402
31403 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31404 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31405 if extended background has already been filled.
31406
31407 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31408
31409 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31410 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31411
31412 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31413 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31414 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31415 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31416 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31417 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31418 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31419 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31420 Run timers during dialog popup.
31421 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31422
31423 2007-06-21 Jason Rumney <jasonr@gnu.org>
31424
31425 * image.c (convert_mono_to_color_image): Swap fore and background.
31426
31427 2007-06-20 Jason Rumney <jasonr@gnu.org>
31428
31429 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31430 (w32_free_bdf_font): Unmap memory not handle.
31431
31432 2007-06-20 Sam Steingold <sds@gnu.org>
31433
31434 * gmalloc.c (__morecore): Fix the declaration to comply with the
31435 definition.
31436
31437 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
31438
31439 * w32term.c (w32_delete_display): Remove leftover declaration.
31440 (w32_define_cursor, w32_initialize): Make static.
31441
31442 * w32.c (_wsa_errlist): Fix typo in error message.
31443 (init_environment): Ignore any environment variable from the
31444 registry having a null value.
31445
31446 2007-06-20 Glenn Morris <rgm@gnu.org>
31447
31448 * Makefile.in (LIBGIF): Default to -lgif.
31449
31450 2007-06-17 Jason Rumney <jasonr@gnu.org>
31451
31452 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31453 unicode strings.
31454
31455 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
31456
31457 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31458 Fix typo in docstring.
31459
31460 2007-06-16 Eli Zaretskii <eliz@gnu.org>
31461
31462 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31463 and their keybindings.
31464
31465 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
31466
31467 * composite.c (update_compositions): Fix last fix.
31468
31469 2007-06-14 Jason Rumney <jasonr@gnu.org>
31470
31471 * w32.c (get_process_times_fn): New function pointer.
31472 (globals_of_w32): Intialize it if present in kernel32.dll.
31473 (w32_get_internal_run_time): New function.
31474
31475 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31476
31477 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31478
31479 * composite.c (update_compositions): Check the validness of
31480 compositions.
31481
31482 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31483
31484 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31485 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31486
31487 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31488 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31489
31490 * macgui.h (USE_MAC_TOOLBAR): New define.
31491
31492 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31493 Return immediately unless popup is activated.
31494
31495 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31496 background to scroll bar gap.
31497 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31498 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31499 scroll bars on frame edge. Check fringe background extension.
31500 Don't clear extended fringe background area.
31501 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31502 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31503 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31504 [USE_MAC_TOOLBAR]: New macros.
31505 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31506 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31507 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31508 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31509 [USE_MAC_TOOLBAR]: New functions.
31510 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31511 manually if previous repositioning has failed.
31512 (mac_handle_keyboard_event): Use precomputed event kind.
31513 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31514 as tool bar item click. Handle mouse movement over tool bar items.
31515
31516 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31517 toolbar_win_gravity.
31518 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31519 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31520 Add externs.
31521
31522 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31523 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31524
31525 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
31526
31527 * image.c (search_image_cache): Remove unused variable.
31528
31529 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
31530
31531 * xfns.c, xmenu.c: Link to xaw3d if available.
31532
31533 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31534
31535 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31536 frame_foreground and frame_background.
31537
31538 * image.c (lookup_image): Save frame foreground and background colors.
31539 (search_image_cache): Check if saved and current frame colors match.
31540
31541 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31542
31543 * regex.c (regex_compile): Remove the `regnum' counter.
31544 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31545
31546 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31547
31548 * term.c: Include intervals.h to declare Fget_text_property.
31549
31550 2007-06-10 Jason Rumney <jasonr@gnu.org>
31551
31552 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31553
31554 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
31555
31556 * callint.c (Fcall_interactively):
31557 * editfns.c (Fdelete_and_extract_region):
31558 * fileio.c (Fread_file_name):
31559 * fns.c (Fmapconcat):
31560 * keyboard.c (cmd_error_internal):
31561 * keymap.c (Fkey_description):
31562 * lread.c (openp):
31563 * minibuf.c (read_minibuf):
31564 * search.c (wordify):
31565 * sunfns.c (sel_read):
31566 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31567 * xfns.c (x_default_scroll_bar_color_parameter):
31568 * xmenu.c (menu_help_callback):
31569 * xselect.c (Fx_get_atom_name):
31570 * xterm.c (x_term_init): Use empty_unibyte_string.
31571
31572 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31573
31574 * alloc.c (init_strings): Initialize canonical empty strings.
31575 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31576 canonical empty string when the requested size is 0.
31577
31578 * emacs.c (empty_unibyte_string): Rename from empty_string.
31579 (empty_multibyte_string): New canonical empty string.
31580 (syms_of_emacs): Don't initialize empty_string.
31581
31582 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31583 string, if appropriate.
31584 (empty_unibyte_string, empty_multibyte_string): New externs.
31585 (empty_string): Remove extern.
31586
31587 * lread.c (syms_of_lread): Use empty_unibyte_string.
31588
31589 2007-06-07 Jason Rumney <jasonr@gnu.org>
31590
31591 * s/ms-w32.h: Don't define HAVE_TZNAME.
31592
31593 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31594
31595 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31596
31597 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31598
31599 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31600 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31601
31602 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31603 Don't call next handler.
31604 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31605 Remove argument. Install handler to application.
31606 (set_frame_menubar): Don't change deep_p.
31607 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31608 FRAME_OUTER_TO_INNER_DIFF_Y.
31609 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31610 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31611 [HAVE_DIALOGS]: New macros.
31612 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31613 Use them.
31614 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31615
31616 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31617 init_service_handler. All callers changed. Return OSStatus value.
31618
31619 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31620 All callers changed so as not to call SetPortWindowPort.
31621 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31622 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31623 mac_draw_string_common.
31624 (mac_draw_image_string_qd): Likewise.
31625 (mac_draw_string_common): Use them. Add INLINE.
31626 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31627 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31628 GetGlobalMouse.
31629 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31630 and FRAME_OUTER_TO_INNER_DIFF_Y.
31631 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31632 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31633 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31634 repositioning window to mac_handle_window_event.
31635 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31636 saving window location to mac_handle_window_event
31637 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31638 (install_menu_target_item_handler): Remove argument in extern.
31639 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31640 Also accept command events.
31641 (do_keystroke): New function created from XTread_socket.
31642 (init_command_handler): Remove functions.
31643 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31644 and save window location by kEventWindowShowing and kEventWindowHiding
31645 handlers here. Don't call next handler for window state change and
31646 focus events.
31647 (mac_handle_application_event, mac_handle_keyboard_event)
31648 [TARGET_API_MAC_CARBON]: New functions.
31649 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31650 kEventWindowShowing and kEventWindowHiding events. Move installation
31651 of mouse, font, text input and menu target item handlers to
31652 install_application_handler.
31653 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31654 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31655 New function.
31656 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31657 Register it.
31658 (XTread_socket) [TARGET_API_MAC_CARBON]:
31659 Consolidate SendEventToEventTarget calls.
31660 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31661 Move application activation handler to mac_handle_application_event.
31662 Move keyboard handler to mac_handle_keyboard_event.
31663 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31664 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31665 init_command_handler. Call install_application_handler.
31666
31667 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31668 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31669
31670 2007-06-07 Glenn Morris <rgm@gnu.org>
31671
31672 * emacs.c (main): Use `emacs-copyright' in --version output.
31673
31674 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
31675
31676 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31677
31678 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31679
31680 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31681
31682 * macgui.h: Replace WindowPtr with WindowRef.
31683
31684 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31685 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31686 Replace ControlHandle with ControlRef.
31687 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31688
31689 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31690 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31691 Replace ControlHandle with ControlRef.
31692 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31693 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31694
31695 * macterm.h (struct scroll_bar): Rename member control_handle_low
31696 and control_handle_high to control_ref_low and control_ref_high.
31697 All uses changed.
31698 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31699 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31700 respectively. All uses changed.
31701 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31702 (install_window_handler, remove_window_handler): Replace WindowPtr
31703 with WindowRef in externs.
31704
31705 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
31706
31707 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31708
31709 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
31710
31711 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31712
31713 * frame.c (Fmouse_position, Fmouse_pixel_position):
31714 Condition on HAVE_GPM too.
31715
31716 * term.c (term_mouse_highlight): Remove unused variables.
31717 (Fterm_open_connection): Set gpm_zerobased to 1.
31718 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31719 Use zero based co-ordinates.
31720 (handle_one_term_event): Report a drag as mouse movement too.
31721
31722 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31723
31724 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
31725
31726 * image.c (search_image_cache): New function. Require background
31727 color match if background color is unspecified in the image spec.
31728 (uncache_image, lookup_image): Use it.
31729
31730 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
31731
31732 * window.c (Fshrink_window): Reflow docstring.
31733
31734 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
31735
31736 * Version 22.1 released.
31737
31738 2007-06-01 Richard Stallman <rms@gnu.org>
31739
31740 * xfns.c (x_encode_text): Add GCPRO.
31741
31742 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31743
31744 * xfns.c (x_set_name_internal): Save encoded name before
31745 x_encode_text in case string data is relocated.
31746
31747 2007-05-31 Richard Stallman <rms@gnu.org>
31748
31749 * buffer.c (syms_of_buffer): Doc fix.
31750
31751 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
31752
31753 * sysdep.c (init_sys_modes): Add rather than replace with
31754 O_NONBLOCK.
31755
31756 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31757 term_mouse_moveto.
31758
31759 * termhooks.h (term_mouse_moveto): New extern.
31760
31761 * term.c (mouse_face_window): Rename...
31762 (Qmouse_face_window): ...to this.
31763 (term_show_mouse_face, term_clear_mouse_face)
31764 (term_mouse_highlight): Use Qmouse_face_window.
31765 (term_mouse_moveto): New function.
31766 (term_mouse_position): Make it work.
31767 (syms_of_term): Uncomment assignment to mouse_position_hook.
31768 Staticpro Qmouse_face_window.
31769
31770 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31771
31772 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31773 around current_column call.
31774
31775 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31776
31777 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31778 * xdisp.c (next_element_from_buffer):
31779 * window.c (delete_window):
31780 * term.c (term_mouse_highlight):
31781 * msdos.c (getdefdir):
31782 * macterm.c (mac_create_bitmap_from_bitmap_data)
31783 (init_font_name_table):
31784 * fns.c (Fsxhash):
31785 * data.c (Fmake_local_variable):
31786 * ccl.c (ccl_driver): Likewise.
31787
31788 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31789
31790 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31791 Call mac_wakeup_from_rne on window size change.
31792
31793 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
31794
31795 * image.c (uncache_image): Fix typo.
31796
31797 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31798
31799 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31800
31801 2007-05-22 Richard Stallman <rms@gnu.org>
31802
31803 * xterm.c (x_connection_closed): Remove NO_RETURN.
31804
31805 2007-05-22 Martin Rudalics <rudalics@gmx.at>
31806
31807 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31808
31809 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
31810
31811 * image.c (uncache_image): New function.
31812 (Fimage_refresh): New function.
31813
31814 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31815
31816 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31817
31818 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
31819
31820 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31821 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31822
31823 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
31824
31825 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31826 conditional on [HAVE_GPM_H].
31827
31828 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31829
31830 * syntax.c (skip_chars): Update syntax-table only after we checked that
31831 the new location is valid.
31832
31833 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31834
31835 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31836 mac_get_window_bounds.
31837
31838 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
31839
31840 * Makefile.in (LIBGPM): Allow it to be set from configure.
31841 If set then link Emacs with it.
31842
31843 * config.in: Regenerate.
31844
31845 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31846 New externs.
31847
31848 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31849 Include gpm.h.
31850 (handle_one_term_event, term_gpm): New externs.
31851
31852 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31853 and allow it to be interrupted by SIGIO.
31854
31855 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31856 (wait_reading_process_output): Wait on gpm_fd too.
31857 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31858 (add_gpm_wait_descriptor_called_flag): New variable.
31859 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31860
31861 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31862 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31863 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31864 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31865 (make_lispy_event): Add case GPM_CLICK_EVENT.
31866 (read_avail_input): Handle mouse input.
31867
31868 * term.c (write_glyphs_with_face): New function.
31869 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31870 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31871 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31872 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31873 (last_mouse_x, last_mouse_y): New variables.
31874 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31875 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31876 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31877 (Fterm_close_connection): New functions.
31878 (term_init): Initialise mouse_face_window.
31879
31880 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
31881
31882 * xdisp.c (redisplay_window): If first window line is a
31883 continuation line, recompute the new window start instead of
31884 recentering.
31885
31886 2007-05-18 Glenn Morris <rgm@gnu.org>
31887
31888 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31889 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31890
31891 2007-05-17 Glenn Morris <rgm@gnu.org>
31892
31893 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31894
31895 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31896
31897 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31898 dead key repeat and up events.
31899
31900 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
31901
31902 * image.c (pbm_load): Check image size for monochrome pbm.
31903
31904 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
31905
31906 * xterm.c (XTread_socket): Revert last change.
31907
31908 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
31909
31910 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31911
31912 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31913
31914 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31915
31916 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31917 mixup (YAILOM).
31918
31919 2007-05-07 Andreas Schwab <schwab@suse.de>
31920
31921 * keymap.c (Flookup_key): Fix typo in last change.
31922
31923 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31924
31925 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31926 mapping for unibyte strings.
31927
31928 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31929
31930 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31931 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31932
31933 2007-04-29 Richard Stallman <rms@gnu.org>
31934
31935 * insdel.c (replace_range): For undo, record insertion first.
31936
31937 2007-04-29 Andreas Schwab <schwab@suse.de>
31938
31939 * lisp.h (VECSIZE): Use OFFSETOF.
31940
31941 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31942
31943 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31944 disabled lines.
31945
31946 2007-04-28 Richard Stallman <rms@gnu.org>
31947
31948 * lread.c (read_escape): In a string, \s is always space.
31949
31950 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31951
31952 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31953
31954 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31955 submenu for menu bar items.
31956
31957 See ChangeLog.10 for earlier changes.
31958
31959 ;; Local Variables:
31960 ;; coding: utf-8
31961 ;; End:
31962
31963 Copyright (C) 2007-2011 Free Software Foundation, Inc.
31964
31965 This file is part of GNU Emacs.
31966
31967 GNU Emacs is free software: you can redistribute it and/or modify
31968 it under the terms of the GNU General Public License as published by
31969 the Free Software Foundation, either version 3 of the License, or
31970 (at your option) any later version.
31971
31972 GNU Emacs is distributed in the hope that it will be useful,
31973 but WITHOUT ANY WARRANTY; without even the implied warranty of
31974 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31975 GNU General Public License for more details.
31976
31977 You should have received a copy of the GNU General Public License
31978 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.