1 2011-03-18 Paul Eggert <eggert@cs.ucla.edu>
3 character.h: Rename locals to avoid shadowing.
4 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
5 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
6 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
7 (BUF_DEC_POS): Be more systematic about renaming local temporaries
10 * textprop.c (property_change_between_p): Remove; unused.
12 * intervals.c (interval_start_pos): Now static.
14 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
16 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
17 locals to avoid shadowing.
19 * sound.c (wav_play, au_play, Fplay_sound_internal):
20 Fix pointer signedness.
21 (alsa_choose_format): Remove unused local var.
22 (wav_play): Initialize a variable to 0, to prevent undefined
25 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
27 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
29 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
30 * sysdep.c (sys_subshell): Likewise.
31 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
33 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
34 This should get cleaned up, so that child_setup has the
35 same signature on all platforms.
37 * callproc.c (call_process_cleanup): Now static.
38 (relocate_fd): Rename locals to avoid shadowing.
40 2011-03-17 Eli Zaretskii <eliz@gnu.org>
42 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
44 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
46 Fix more problems found by GCC 4.5.2's static checks.
48 * process.c (make_serial_process_unwind, send_process_trap):
49 (sigchld_handler): Now static.
51 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
52 That way, the code declares only the vars that it needs.
53 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
54 * s/cygwin.h (PTY_ITERATION): Likewise.
55 * s/darwin.h (PTY_ITERATION): Likewise.
56 * s/gnu-linux.h (PTY_ITERATION): Likewise.
58 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
59 * process.c (allocate_pty): Don't declare stb unless it's needed.
61 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
62 (CONSTANTLIM): Remove; unused.
63 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
64 Define only if needed.
66 * unexelf.c (unexec): Name an expression,
67 to avoid gcc -Wbad-function-cast warning.
68 Use a different way to cause a compilation error if anyone uses
69 n rather than nn, a way that does not involve shadowing.
70 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
72 * deps.mk (unexalpha.o): Remove; unused.
74 New file unexec.h, the (simple) interface for unexec (Bug#8267).
76 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
77 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
79 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
80 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
81 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
82 Change as necessary to match prototype in unexec.h.
84 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
86 (back_comment, skip_chars): Mark vars as initialized.
88 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
89 Rename locals to avoid shadowing.
91 * lread.c (read1): Rewrite so as not to use empty "else".
92 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
94 * print.c (Fredirect_debugging_output): Fix pointer signedess.
96 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
97 warning when compiling print.c.
99 * font.c (font_unparse_fcname): Abort in an "impossible" situation
100 instead of using an uninitialized var.
101 (font_sort_entities): Mark var as initialized.
103 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
105 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
106 pointers to constants.
107 (font_parse_fcname): Remove unused vars.
108 (font_delete_unmatched): Now static.
109 (font_get_spec): Remove; unused.
110 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
111 (font_update_drivers, Ffont_get_glyphs, font_add_log):
112 Rename or move locals to avoid shadowing.
114 * fns.c (require_nesting_list, require_unwind): Now static.
115 (Ffillarray): Rename locals to avoid shadowing.
117 * floatfns.c (domain_error2): Define only if needed.
118 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
120 * alloc.c (mark_backtrace): Move decl from here ...
121 * lisp.h: ... to here, so that it can be checked.
123 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
124 (Fdefvar): Rewrite so as not to use empty "else".
125 (lisp_indirect_variable): Name an expression,
126 to avoid gcc -Wbad-function-cast warning.
127 (Fdefvar): Rename locals to avoid shadowing.
129 * callint.c (quotify_arg, quotify_args): Now static.
130 (Fcall_interactively): Rename locals to avoid shadowing.
131 Use const pointer when appropriate.
133 * lisp.h (get_system_name, get_operating_system_release):
134 Move decls here, to check interfaces.
135 * process.c (get_operating_system_release): Move decl to lisp.h.
136 * xrdb.c (get_system_name): Likewise.
137 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
138 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
139 some of which prompt warnings from gcc -Wbad-function-cast.
140 (Fformat_time_string, Fencode_time, Finsert_char):
141 (Ftranslate_region_internal, Fformat):
142 Rename or remove local vars to avoid shadowing.
143 (Ftranslate_region_internal): Mark var as initialized.
145 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
148 * lisp.h (eassert): Check that the argument compiles, even if
149 ENABLE_CHECKING is not defined.
151 * data.c (Findirect_variable): Name an expression, to avoid
152 gcc -Wbad-function-cast warning.
153 (default_value, arithcompare, arith_driver, arith_error): Now static.
154 (store_symval_forwarding): Rename local to avoid shadowing.
155 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
156 variables as initialized.
157 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
159 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
160 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
161 Rename locals to avoid shadowing.
162 (mark_stack): Move local variables into the #ifdef region where
164 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
165 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
167 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
168 (GC_STRING_CHARS): Remove; not used.
169 (Fmemory_limit): Cast sbrk's returned value to char *.
171 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
172 avoids undefined behavior in theory.
174 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
176 Use functions, not macros, for up- and down-casing (Bug#8254).
177 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
178 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
179 to use the following functions instead of these macros.
180 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
181 EMACS_INT, since callers assume the returned value fits in int.
182 (upcase1): Likewise, for UPCASE_TABLE.
183 (uppercasep, lowercasep, upcase): New static inline functions.
184 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
185 the race-condition problem in the old DOWNCASE.
187 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
188 Rename locals to avoid shadowing.
189 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
190 (regex_compile, re_search_2, re_match_2_internal):
191 Remove unused local vars.
192 (FREE_VAR): Rewrite so as not to use empty "else",
193 which gcc can warn about.
194 (regex_compile, re_match_2_internal): Mark locals as initialized.
195 (RETALLOC_IF): Define only if needed.
196 (WORDCHAR_P): Likewise. This one is never needed, but is used
197 only in a comment talking about a compiler bug, so put inside
198 the #if 0 of that comment.
199 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
200 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
203 * search.c (boyer_moore): Rename locals to avoid shadowing.
204 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
205 (PREV_CHAR_BOUNDARY): Likewise.
207 * search.c (simple_search): Remove unused var.
209 * dired.c (compile_pattern): Move decl from here ...
210 * lisp.h: ... to here, so that it can be checked.
211 (struct re_registers): New forward decl.
213 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
215 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
217 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
218 Rename locals to avoid shadowing.
219 (Fvertical_motion): Mark locals as initialized.
221 * casefiddle.c (casify_object, casify_region): Now static.
222 (casify_region): Mark local as initialized.
224 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
226 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
227 New macros, so that the caller can use some names other than
229 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
231 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
232 argument, for consistency with GCPRO2_VAR, etc: it is now the
233 prefix of the variable, not the variable itself. All uses
235 * dired.c (directory_files_internal, file_name_completion):
236 Rename locals to avoid shadowing.
238 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
239 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
240 dired.c's scmp function, had undefined behavior.
241 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
242 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
243 * buffer.h: ... to here, because these macros use current_buffer,
244 and the new implementation with inline functions needs to have
245 current_buffer in scope now, rather than later when the macros
247 (downcase, upcase1): New static inline functions.
248 (DOWNCASE, UPCASE1): Reimplement using these functions.
249 This avoids undefined behavior in expressions like
250 DOWNCASE (x) == DOWNCASE (y), which previously suffered
251 from race conditions in accessing the global variables
252 case_temp1 and case_temp2.
253 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
254 * lisp.h (case_temp1, case_temp2): Remove their decls.
255 * character.h (ASCII_CHAR_P): Move from here ...
256 * lisp.h: ... to here, so that the inline functions mentioned
259 * dired.c (directory_files_internal_unwind): Now static.
261 * fileio.c (file_name_as_directory, directory_file_name):
262 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
264 (file_name_as_directory): Use const pointers when appropriate.
265 (Fexpand_file_name): Likewise. In particular, newdir might
266 point at constant storage, so make it a const pointer.
267 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
268 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
270 (Fset_file_times, Finsert_file_contents, auto_save_error):
271 Rename locals to avoid shadowing.
273 * minibuf.c (choose_minibuf_frame_1): Now static.
274 (Ftry_completion, Fall_completions): Rename or remove locals
277 * marker.c (bytepos_to_charpos): Remove; unused.
279 * lisp.h (verify_bytepos, count_markers): New decls,
280 so that gcc does not warn that these functions aren't declared.
282 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
283 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
284 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
285 (copy_text): Remove unused local var.
287 * filelock.c (within_one_second): Now static.
288 (lock_file_1): Rename local to avoid shadowing.
290 * buffer.c (fix_overlays_before): Mark locals as initialized.
291 (fix_start_end_in_overlays): Likewise. This function should be
292 simplified by using pointers-to-pointers, but that's a different
294 (switch_to_buffer_1): Now static.
295 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
296 (report_overlay_modification): Rename locals to avoid shadowing.
298 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
299 Fix pointer signedness issue.
300 (sys_subshell): Mark local as volatile if checking for lint,
301 to suppress a gcc -Wclobbered warning that does not seem to be right.
302 (MAXPATHLEN): Define only if needed.
304 * process.c (serial_open, serial_configure): Move decls from here ...
305 * systty.h: ... to here, so that they can be checked.
307 * fns.c (get_random, seed_random): Move extern decls from here ...
308 * lisp.h: ... to here, so that they can be checked.
310 * sysdep.c (reset_io): Now static.
311 (wait_for_termination_signal): Remove; unused.
313 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
314 (copy_keymap_item, append_key, push_text_char_description):
316 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
317 (DENSE_TABLE_SIZE): Remove; unused.
318 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
320 Rename locals to avoid shadowing.
322 * keyboard.c: Declare functions static if they are not used elsewhere.
323 (echo_char, echo_dash, cmd_error, top_level_2):
324 (poll_for_input, handle_async_input): Now static.
325 (read_char, kbd_buffer_get_event, make_lispy_position):
326 (make_lispy_event, make_lispy_movement, apply_modifiers):
327 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
328 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
329 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
330 (read_key_sequence, read_char): Mark locals as initialized.
331 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
333 * keyboard.h (make_ctrl_char): New decl.
334 (mark_kboards): Move decl here ...
335 * alloc.c (mark_kboards): ... from here.
337 * lisp.h (force_auto_save_soon): New decl.
339 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
340 (DEFINE_DUMMY_FUNCTION): New macro.
341 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
343 (main): Add casts to avoid warnings
344 if GCC considers string literals to be constants.
346 * lisp.h (fatal_error_signal): Add decl, since it's exported.
348 * dbusbind.c: Pointer signedness fixes.
349 (xd_signature, xd_append_arg, xd_initialize):
350 (Fdbus_call_method, Fdbus_call_method_asynchronously):
351 (Fdbus_method_return_internal, Fdbus_method_error_internal):
352 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
353 (Fdbus_register_signal): Use SSDATA when the context wants char *.
355 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
356 if GCC considers string literals to be constants.
357 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
359 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
361 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
362 (print_preprocess, print_object): New macro to fix last change.
364 * print.c (print_preprocess): Don't forget font objects.
366 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
368 * emacs.c (USAGE3): Doc fixes.
370 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
372 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
375 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
377 * lisp.h (VWindow_system, Qfile_name_history):
378 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
379 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
380 (w32_system_caret_x, w32_system_caret_y): Declare extern.
382 * w32select.c: Don't #include "keyboard.h".
383 (run_protected): Add extern declaration for waiting_for_input.
385 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
386 * w32console.c (detect_input_pending, read_input_pending)
387 (encode_terminal_code):
388 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
389 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
390 (w32_system_caret_y, Qfile_name_history):
391 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
392 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
393 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
394 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
395 * w32proc.c (Qlocal, report_file_error):
396 * w32term.c (Vwindow_system, updating_frame):
397 * w32uniscribe.c (initialized, uniscribe_font_driver):
398 Remove unneeded extern declarations.
400 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
402 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
404 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
406 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
407 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
408 These macros can no longer be used for assignment.
410 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
411 struct members directly, instead of using BUF_BEGV etc.
412 (record_buffer_markers, fetch_buffer_markers): New functions for
413 recording and fetching special buffer markers.
414 (set_buffer_internal_1, set_buffer_temp): Use them.
416 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
418 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
420 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
421 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
423 * xdisp.c (hscroll_window_tree):
424 (reconsider_clip_changes): Use PT instead of BUF_PT.
426 2011-03-13 Eli Zaretskii <eliz@gnu.org>
428 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
429 $(EMACS_ROOT)/lib/intprops.h.
431 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
433 Fix more problems found by GCC 4.5.2's static checks.
435 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
436 to unsigned char * to avoid compiler diagnostic.
437 (xg_free_frame_widgets): Make it clear that a local variable is
438 needed only if USE_GTK_TOOLTIP.
439 (gdk_window_get_screen): Make it clear that this macro is needed
440 only if USE_GTK_TOOLTIP.
441 (int_gtk_range_get_value): New function, which avoids a diagnostic
442 from gcc -Wbad-function-cast.
443 (xg_set_toolkit_scroll_bar_thumb): Use it.
444 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
445 diagnostic from gcc -Wbad-function-cast.
446 (get_utf8_string, xg_get_file_with_chooser):
447 Rename locals to avoid shadowing.
448 (create_dialog): Move locals to avoid shadowing.
450 * xgselect.c (xg_select): Remove unused var.
452 * image.c (four_corners_best): Mark locals as initialized.
453 (gif_load): Initialize transparent_p to zero (Bug#8238).
454 Mark another local as initialized.
455 (my_png_error, my_error_exit): Mark with NO_RETURN.
457 * image.c (clear_image_cache): Now static.
458 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
459 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
460 (x_edge_detection): Remove unnecessary cast that
461 gcc -Wbad-function-cast diagnoses.
462 (gif_load): Fix pointer signedness.
463 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
464 (jpeg_load, gif_load): Rename locals to avoid shadowing.
466 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
468 Improve quality of tests for time stamp overflow.
469 For example, without this patch (encode-time 0 0 0 1 1
470 1152921504606846976) returns the obviously-bogus value (-948597
471 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
472 reports time overflow. See
473 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
474 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
475 * editfns.c: Include limits.h and intprops.h.
476 (TIME_T_MIN, TIME_T_MAX): New macros.
477 (time_overflow): Move earlier, to before first use.
478 (hi_time, lo_time): New functions, for an accurate test for
480 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
481 (Fget_internal_run_time): Don't assume time_t fits in int.
482 (make_time): Use list2 instead of Fcons twice.
483 (Fdecode_time): More accurate test for out-of-range times.
484 (check_tm_member): New function.
485 (Fencode_time): Use it, to test for out-of-range times.
486 (lisp_time_argument): Don't rely on undefined left-shift and
487 right-shift behavior when checking for time stamp overflow.
489 * editfns.c (time_overflow): New function, refactoring common code.
490 (Fformat_time_string, Fdecode_time, Fencode_time):
491 (Fcurrent_time_string): Use it.
493 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
494 * dired.c (make_time): Move to ...
495 * editfns.c (make_time): ... here.
496 * systime.h: Note the move.
498 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
500 * fringe.c (update_window_fringes): Remove unused variables.
502 * unexmacosx.c (copy_data_segment): Also copy __got section.
505 2011-03-12 Eli Zaretskii <eliz@gnu.org>
507 * termcap.c [MSDOS]: Include "msdos.h".
508 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
509 Constify `char *' arguments and their references according to
510 prototypes in tparam.h.
512 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
514 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
515 Adapt all references accordingly.
517 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
519 2011-03-11 Tom Tromey <tromey@redhat.com>
521 * buffer.c (syms_of_buffer): Remove obsolete comment.
523 2011-03-11 Eli Zaretskii <eliz@gnu.org>
525 * termhooks.h (encode_terminal_code): Declare prototype.
527 * msdos.c (encode_terminal_code): Don't declare prototype.
529 * term.c (encode_terminal_code): Now external again, used by
530 w32console.c and msdos.c.
532 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
533 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
535 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
537 Fix some minor problems found by GCC 4.5.2's static checks.
539 * fringe.c (update_window_fringes): Mark locals as initialized
541 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
543 * alloc.c (mark_fringe_data): Move decl from here ...
544 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
545 to check its interface.
546 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
548 * fontset.c (free_realized_fontset): Now static.
549 (Fset_fontset_font): Rename local to avoid shadowing.
550 (fontset_font): Mark local as initialized.
551 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
553 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
555 * xselect.c (x_disown_buffer_selections): Remove; not used.
556 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
557 (x_own_selection, Fx_disown_selection_internal): Rename locals
559 (x_handle_dnd_message): Remove local to avoid shadowing.
561 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
562 so that the caller can use some name other than gcpro1.
563 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
564 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
565 (Fx_backspace_delete_keys_p):
566 Use them to avoid shadowing, and rename vars to avoid shadowing.
567 (x_decode_color, x_set_name, x_window): Now static.
568 (Fx_create_frame): Add braces to silence GCC warning.
569 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
570 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
571 Remove unused locals.
572 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
573 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
574 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
577 * xterm.h (x_mouse_leave): New decl.
579 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
580 Remove unused functions.
581 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
582 (x_calc_absolute_position): Now static.
583 (XTread_socket): Don't define label "out" unless it's used.
584 Don't declare local "event" unless it's used.
585 (x_iconify_frame, x_free_frame_resources): Don't declare locals
586 unless they are used.
587 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
588 (x_fatal_error_signal): Remove; not used.
589 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
590 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
591 (x_error_catcher, x_connection_closed, x_error_handler):
592 (x_error_quitter, xembed_send_message, x_iconify_frame):
593 (my_log_handler): Rename locals to avoid shadowing.
594 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
595 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
597 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
598 or move locals to avoid shadowing.
599 (tty_defined_color, merge_face_heights): Now static.
600 (free_realized_faces_for_fontset): Remove; not used.
601 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
602 does not deduce is never used uninitialized.
603 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
604 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
606 * terminal.c (store_terminal_param): Now static.
608 * xmenu.c (menu_highlight_callback): Now static.
609 (set_frame_menubar): Remove unused local.
610 (xmenu_show): Rename parameter to avoid shadowing.
611 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
612 since they might point to immutable storage.
613 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
614 since it's unused otherwise.
616 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
617 Add a FIXME, since the code still doesn't look right. (Bug#8215)
618 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
619 avoids a gcc -Wuninitialized diagnostic.
620 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
621 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
622 does not deduce are never used uninitialized.
624 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
626 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
627 * window.c (window_loop, size_window):
628 (run_window_configuration_change_hook, enlarge_window): Likewise.
630 * window.c (display_buffer): Now static.
631 (size_window): Mark variables that gcc -Wuninitialized
632 does not deduce are never used uninitialized.
633 * window.h (check_all_windows): New decl, to forestall
634 gcc -Wmissing-prototypes diagnostic.
635 * dispextern.h (bidi_dump_cached_states): Likewise.
637 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
639 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
641 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
642 and to avoid gcc -Wuninitialized warning.
643 (load_charset_map): Mark variables that gcc -Wuninitialized
644 does not deduce are never used uninitialized.
645 (load_charset): Abort instead of using uninitialized var (Bug#8229).
647 * coding.c (coding_set_source, coding_set_destination):
648 Use "else { /* comment */ }" rather than "else /* comment */;"
649 for clarity, and to avoid gcc -Wempty-body warning.
650 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
651 a block, when the outer 'i' will do.
652 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
653 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
654 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
655 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
656 (Fdecode_sjis_char, Fdefine_coding_system_internal):
657 Rename locals to avoid shadowing.
658 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
659 * coding.c (emacs_mule_char, encode_invocation_designation):
660 Now static, since they're not used elsewhere.
661 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
662 (decode_coding_object, encode_coding_object, detect_coding_system):
663 (decode_coding_emacs_mule): Mark variables that gcc
664 -Wuninitialized does not deduce are never used uninitialized.
665 (detect_coding_iso_2022): Initialize a local variable that might
666 be used uninitialized. Leave a FIXME because it's not clear that
667 this initialization is needed. (Bug#8211)
668 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
669 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
670 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
671 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
672 Remove unused macros.
674 * category.c (hash_get_category_set): Remove unused local var.
675 (copy_category_table): Now static, since it's not used elsewhere.
676 * character.c (string_count_byte8): Likewise.
678 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
679 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
681 * chartab.c (copy_sub_char_table): Now static, since it's not used
683 (sub_char_table_ref_and_range, char_table_ref_and_range):
684 Rename locals to avoid shadowing.
685 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
687 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
688 (BIDI_BOB): Remove unused macro.
690 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
691 deduce are never used uninitialized.
692 * term.c (encode_terminal_code): Likewise.
694 * term.c (encode_terminal_code): Now static. Remove unused local.
696 * tparam.h: New file.
697 * term.c, tparam.h: Include it.
698 * deps.mk (term.o, tparam.o): Depend on tparam.h.
699 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
700 Move these decls to tparam.h, and make them agree with what
701 is actually in tparam.c. The previous trick of using incompatible
702 decls in different modules does not conform to the C standard.
703 All callers of tparam changed to use tparam's actual API.
704 * tparam.c (tparam1, tparam, tgoto):
705 Use const pointers where appropriate.
707 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
708 * cm.h (struct cm): Likewise.
709 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
710 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
711 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
712 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
713 (turn_on_face, init_tty): Likewise.
714 * termchar.h (struct tty_display_info): Likewise.
716 * term.c (term_mouse_position): Rename local to avoid shadowing.
718 * alloc.c (mark_ttys): Move decl from here ...
719 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
721 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
723 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
725 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
727 * search.c (compile_pattern_1): Remove argument regp, unused since
728 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
729 (compile_pattern): Don't pass it.
731 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
733 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
734 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
736 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
738 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
740 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
741 gdk_window_get_screen, gdk_window_get_geometry,
742 gdk_x11_window_lookup_for_display and GDK_KEY_g.
743 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
744 (xg_get_pixbuf_from_pixmap): New function.
745 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
746 to Pixmap, take frame as parameter, remove GdkColormap parameter.
747 Call xg_get_pixbuf_from_pixmap instead of
748 gdk_pixbuf_get_from_drawable.
749 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
750 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
751 (xg_check_special_colors): Use GtkStyleContext and its functions
753 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
754 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
755 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
756 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
757 gtk_widget_get_preferred_size.
758 (xg_frame_resized): gdk_window_get_geometry only takes 5
760 (xg_win_to_widget, xg_event_is_for_menubar): Call
761 gdk_x11_window_lookup_for_display.
762 (xg_set_widget_bg): New function.
763 (delete_cb): New function.
764 (xg_create_frame_widgets): connect delete-event to delete_cb.
765 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
766 (xg_set_background_color): Call xg_set_widget_bg.
767 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
768 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
769 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
770 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
772 (update_frame_tool_bar): Call gtk_widget_hide.
773 (xg_initialize): Use GDK_KEY_g.
775 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
777 (x_session_initialize): Call gdk_x11_set_sm_client_id.
779 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
780 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
781 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
783 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
785 * w32xfns.c (select_palette): Check success of RealizePalette against
788 2011-03-07 Ben Key <bkey76@gmail.com>
790 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
791 (file_dialog_callback): Fix locating the window handle of the File Name
792 text field. After disabling it, set focus on the list control.
793 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
794 Name text field to "Current Directory" if it does not already have
795 another value. (Bug#8181)
797 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
799 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
800 parameter for hbar cursors. Based on a patch by Ben Key
803 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
805 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
808 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
810 current_column: Now returns EMACS_INT, fixing some iftc
811 that was introduced in the 2002-06-02 change "temporarily"; see
812 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
813 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
814 * cmds.c (internal_self_insert): Likewise.
815 * indent.c (Fcurrent_column): Likewise.
816 * keymap.c (describe_command): Likewise.
817 * minibuf.c (read_minibuf): Likewise.
818 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
820 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
822 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
823 not int or double, if they might contain a column number.
824 * indent.c (current_column, Findent_to, indented_beyond_p):
825 (compute_motion, vmotion): Likewise.
826 * keymap.c (describe_command): Likewise.
827 * xdisp.c (pint2str): Likewise.
828 * indent.c (last_known_column): Now EMACS_INT, not int.
829 * minibuf.c (minibuf_prompt_width): Likewise.
830 * indent.c (current_column, current_column_1, position_indentation):
831 Return EMACS_INT, not double.
832 * lisp.h (current_column): Likewise.
833 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
835 * lisp.h (indented_beyond_p): Likewise.
837 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
838 from xdisp.c, and make static, since these are used only here.
839 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
842 * cmds.c (internal_self_insert): Reindent to match Emacs style.
843 * xdisp.c (redisplay_window): Likewise.
845 * xdisp.c: Rename or move local decls to avoid shadowing.
846 (init_iterator, handle_fontified_prop, handle_single_display_spec):
847 (message_dolog, message_with_string, redisplay_internal):
848 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
849 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
850 (display_line, display_string, rows_from_pos_range):
851 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
852 Rename or move local decls.
853 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
854 (produce_glyphless_glyph): Make a pointer "const"
855 since it might point to immutable storage.
856 (update_window_cursor): Now static, since it's not used elsewhere.
857 (SKIP_GLYPHS): Removed unused macro.
859 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
861 * window.c (Fnext_window): Doc fix. (Bug#5567)
863 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
865 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
867 2011-03-02 Ken Brown <kbrown@cornell.edu>
869 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
871 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
873 Work around some portability problems with symlinks.
875 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
876 generate a special message for it. Suggested by Eli Zaretskii in
877 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
878 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
879 Simplify the code by assuming that the readlink and symlink calls
880 exist, even if they always fail on this host.
881 (Ffile_readable_p): Likewise, for fifos.
882 * config.in: Regenerate.
884 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
886 * frame.c (store_frame_param): Don't store value directly in
887 buffer_list and buried_buffer_list; copy the list and remove dead
890 2011-02-27 Eli Zaretskii <eliz@gnu.org>
892 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
894 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
896 * w32.c (symlink, readlink): New stub functions.
898 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
900 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
901 This avoids a gcc warning in some configurations.
903 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
905 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
906 (set_menu_bar_lines, x_get_resource_string): New decls.
907 * msdos.c (set_menu_bar_lines): Omit decl.
909 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
910 It's always given int values and used as an int. This suppresses
911 a gcc "comparison of unsigned expression >= 0" warning in some
914 * dispnew.c: Rename locals to avoid shadowing.
915 (update_text_area, scrolling_window, update_frame_1): Rename locals.
917 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
919 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
920 (copy_glyph_row_contents): Remove; not used.
921 (frame_row_to_window, check_current_matrix_flags):
922 (window_change_signal): Now static, since they're not used elsewhere.
923 (check_current_matrix_flags): Surround with "#if 0", since its
924 only use is in a comment. Maybe both the comment and the "#if 0"
925 stuff should be removed?
927 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
928 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
929 contexts that actually need it.
931 2011-02-26 Eli Zaretskii <eliz@gnu.org>
933 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
934 (lstat): Define for DJGPP < 2.04.
936 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
938 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
939 as per recent filemodestring API change. Reported by Jonas Öster in
940 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
942 2011-02-23 Ben Key <bkey76@gmail.com>
944 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
945 directly, for bar cursors.
947 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
949 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
950 into the frame's cursor_width.
952 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
954 * print.c (print_object): Never print old-style backquotes.
955 Obey escapeflag for hash tables as well.
957 2011-02-23 Kenichi Handa <handa@m17n.org>
959 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
960 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
962 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
964 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
966 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
968 * lread.c (openp): Correct Boolean typo in last commit.
970 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
972 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
973 key to Emacs, treat as unmodified (go to input manager processing).
975 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
977 Assume S_ISLNK etc. work, since gnulib supports this.
978 * config.in: Regenerate.
979 * dired.c (lstat): Remove.
980 (file_name_completion): Assume S_ISDIR works.
981 (file_name_completion_stat): Assume S_ISLNK works.
982 Do not bother calling stat unless lstat says it's a symlink.
983 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
984 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
985 (check_writable, Ffile_writable_p, Fset_file_times):
986 Assume S_ISDIR works.
987 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
989 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
990 * filelock.c (S_ISLNK): Remove.
991 * lread.c (openp): Assume S_ISDIR works.
992 * xrdb.c (S_ISDIR): Remove.
994 2011-02-21 Eli Zaretskii <eliz@gnu.org>
996 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
998 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
999 (GLOBAL_SOURCES): Remove filemode.c.
1000 (OBJ1): Remove $(BLD)/filemode.$(O).
1002 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1004 Import filemode module from gnulib.
1005 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1006 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1007 (filemode.o): Remove; this is now in ../lib.
1008 * dired.c: Include <filemode.h>.
1009 (filemodestring): Remove now-redundant decl.
1010 * config.in: Regenerate.
1012 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1014 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1015 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1017 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1019 * makefile.w32-in: Remove md5.$(O).
1020 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1021 lib/makefile.w32-in.
1023 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1025 Import crypto/md5 and stdint modules from gnulib.
1026 * Makefile.in (base_obj): Remove md5.o, since this file
1028 * config.in: Regenerate.
1029 * md5.h, md5.h: Move to ../lib.
1030 * deps.mk (md5.o): Remove.
1031 (fns.o): Depend on ../lib/md5.h, not md5.h.
1033 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1035 * termcap.c (tputs): Don't declare baud_rate.
1037 * s/msdos.h (strtold): Define to _strtold.
1039 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1041 * process.c (Fstart_process, Fmake_serial_process)
1042 (Fmake_network_process, server_accept_connection):
1043 Use empty_unibyte_string.
1045 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1047 * lread.c (Qdir_ok): New constant.
1048 (syms_of_lread): Initialize it.
1049 (openp): Don't ignore directories if the predicate returns dir-ok.
1051 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1053 * xdisp.c (display_line): Fix the change made for bug#7939.
1055 * terminal.c (create_terminal): Use default-keyboard-coding-system
1056 and default-terminal-coding-system to initialize coding systems of
1057 the new terminal. (Bug#7840)
1059 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1061 * lisp.h (BYTE_MARK_STACK): New macro.
1062 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1064 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1065 (struct byte_stack): Only define `top' and `bottom' if used.
1066 (mark_byte_stack): Only define if used.
1067 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1069 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1071 * term.c (OUTPUT_IF): Use OUTPUT.
1073 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1074 redundantly scan byte-code stacks, catchlist, and handlerlist.
1076 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1078 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1079 (Fns_read_file_name): Replace B_ with BVAR.
1081 * nsterm.m (ns_term_init): Use KVAR.
1083 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1085 * msdos.c (internal_terminal_init): Use KVAR.
1087 * w32fns.c (Fx_create_frame): Use KVAR.
1089 * w32term.c (w32_create_terminal): Use KVAR.
1091 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1092 (getloadavg): Declare prototype which was removed from lisp.h.
1094 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1096 * fileio.c (Finsert_file_contents, Fwrite_region):
1097 Remove references to buffer_file_type.
1098 (syms_of_fileio): Don't intern and staticpro
1099 find-buffer-file-type.
1101 * callproc.c (syms_of_callproc): Remove references to
1104 * buffer.c (reset_buffer_local_variables): Don't set
1106 (init_buffer_once): Likewise.
1107 (syms_of_buffer): Don't define buffer-file-type.
1109 * buffer.h (struct buffer): Remove buffer_file_type.
1111 2011-02-16 Tom Tromey <tromey@parfait>
1113 * callint.c (Fcall_interactively): Update for change to field names.
1114 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1115 * cmds.c (Fself_insert_command): Update for change to field names.
1116 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1117 (Fdescribe_buffer_bindings): Update for change to field names.
1118 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1119 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1120 Update for change to field names.
1121 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1122 (echo_length, echo_truncate, cmd_error, command_loop_1)
1123 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1124 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1125 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1126 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1127 Update for change to field names.
1128 * xfns.c (Fx_create_frame): Update for change to field names.
1129 * xterm.c (x_connection_closed, x_term_init): Update for change to
1131 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1132 Update for change to field names.
1133 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1134 Update for change to field names.
1135 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1136 (delete_frame): Update for change to field names.
1137 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1138 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1139 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1141 2011-02-16 Tom Tromey <tromey@redhat.com>
1143 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1145 2011-02-16 Tom Tromey <tromey@parfait>
1147 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1148 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1149 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1150 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1151 (with_echo_area_buffer, setup_echo_area_for_printing)
1152 (set_message_1, update_menu_bar, update_tool_bar)
1153 (text_outside_line_unchanged_p, redisplay_internal)
1154 (try_scrolling, try_cursor_movement, redisplay_window)
1155 (try_window_reusing_current_matrix, row_containing_pos)
1156 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1157 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1158 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1159 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1161 * window.c (window_display_table, unshow_buffer, window_loop)
1162 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1163 (select_window, Fforce_window_update, temp_output_buffer_show)
1164 (Fset_window_configuration, save_window_save): Replace B_ with
1166 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1167 Replace B_ with BVAR.
1168 * undo.c (record_point, record_insert, record_delete)
1169 (record_marker_adjustment, record_first_change)
1170 (record_property_change, Fundo_boundary, truncate_undo_list)
1171 (Fprimitive_undo): Replace B_ with BVAR.
1172 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1173 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1174 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1175 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1176 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1177 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1178 (string_match_1, fast_looking_at, newline_cache_on_off)
1179 (search_command, search_buffer, simple_search, boyer_moore)
1180 (Freplace_match): Replace B_ with BVAR.
1181 * process.c (get_process, list_processes_1, Fstart_process)
1182 (Fmake_serial_process, Fmake_network_process)
1183 (read_process_output, send_process, exec_sentinel)
1184 (status_notify, setup_process_coding_systems): Replace B_ with
1186 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1187 (strout, print_string, temp_output_buffer_setup, print_object):
1188 Replace B_ with BVAR.
1189 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1190 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1191 Replace B_ with BVAR.
1192 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1193 (set_marker_both, set_marker_restricted_both, unchain_marker):
1194 Replace B_ with BVAR.
1195 * lread.c (readchar, unreadchar, openp, readevalloop)
1196 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1197 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1198 * keymap.c (Flocal_key_binding, Fuse_local_map)
1199 (Fcurrent_local_map, push_key_description)
1200 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1201 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1202 (read_key_sequence): Replace B_ with BVAR.
1203 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1204 * intervals.c (set_point_both, get_local_map): Replace B_ with
1206 * insdel.c (check_markers, insert_char, insert_1_both)
1207 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1208 (adjust_after_replace, replace_range, del_range_2)
1209 (modify_region, prepare_to_modify_buffer)
1210 (Fcombine_after_change_execute): Replace B_ with BVAR.
1211 * indent.c (buffer_display_table, recompute_width_table)
1212 (width_run_cache_on_off, current_column, scan_for_column)
1213 (Findent_to, position_indentation, compute_motion, vmotion):
1214 Replace B_ with BVAR.
1215 * fringe.c (get_logical_cursor_bitmap)
1216 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1218 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1219 * font.c (font_at): Replace B_ with BVAR.
1220 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1221 Replace B_ with BVAR.
1222 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1223 (unlock_buffer): Replace B_ with BVAR.
1224 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1225 (Ffile_regular_p, Ffile_selinux_context)
1226 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1227 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1228 (Finsert_file_contents, choose_write_coding_system)
1229 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1230 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1231 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1232 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1233 (save_excursion_restore, Fprevious_char, Fchar_before)
1234 (general_insert_function, Finsert_char, Finsert_byte)
1235 (make_buffer_string_both, Finsert_buffer_substring)
1236 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1237 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1238 (Ftranslate_region_internal, save_restriction_restore)
1239 (Fchar_equal): Replace B_ with BVAR.
1240 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1241 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1242 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1243 * dired.c (directory_files_internal): Replace B_ with BVAR.
1244 * data.c (swap_in_symval_forwarding, set_internal)
1245 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1246 Replace B_ with BVAR.
1247 * composite.c (fill_gstring_header)
1248 (composition_compute_stop_pos, composition_adjust_point)
1249 (Ffind_composition_internal): Replace B_ with BVAR.
1250 * coding.c (decode_coding, encode_coding)
1251 (make_conversion_work_buffer, decode_coding_gap)
1252 (decode_coding_object, encode_coding_object)
1253 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1254 (Funencodable_char_position, Fcheck_coding_systems_region):
1255 Replace B_ with BVAR.
1256 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1258 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1259 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1260 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1261 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1262 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1263 * category.c (check_category_table, Fcategory_table)
1264 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1265 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1267 * casefiddle.c (casify_object, casify_region): Replace B_ with
1269 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1271 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1273 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1274 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1276 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1277 (get_truename_buffer, Fget_buffer_create)
1278 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1279 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1280 (Fbuffer_local_value, buffer_lisp_local_variables)
1281 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1282 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1283 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1284 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1285 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1286 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1287 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1288 (record_overlay_string, overlay_strings, init_buffer_once)
1289 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1291 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1293 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1294 window is changed inside calls to do_pending_window_change.
1297 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1299 Remove no-longer needed getloadavg symbols.
1300 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1301 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1302 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1303 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1304 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1305 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1306 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1307 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1308 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1309 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1310 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1311 (LDAV_SYMBOL): Remove.
1312 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1313 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1315 Import getloadavg module from gnulib.
1316 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1317 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1319 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1320 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1321 * config.in: Regenerate.
1323 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1325 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1327 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1329 * print.c (float_to_string): Ensure that a decimal point is
1330 printed if using dtoastr (Bug#8033).
1332 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1334 * msdos.c (IT_frame_up_to_date):
1335 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1337 * dired.c (directory_files_internal):
1338 * fileio.c (Finsert_file_contents):
1339 * insdel.c (prepare_to_modify_buffer):
1340 * xdisp.c (pos_visible_p):
1341 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1342 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1343 Use B_ for the MS-Windows build.
1345 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1347 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1348 resource that specifies helvetica for menus and dialogs.
1350 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1351 (apply_systemfont_to_menu): Set resources *menubar*font and
1352 *popup*font. Remove defflt.
1353 (set_frame_menubar, create_and_show_popup_menu):
1354 Call apply_systemfont_to_menu before lw_create_widget.
1356 2011-02-14 Tom Tromey <tromey@redhat.com>
1358 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1360 * keyboard.h: Remove obsolete comment.
1362 2011-02-14 Tom Tromey <tromey@parfait>
1364 * composite.c (fill_gstring_header)
1365 (composition_compute_stop_pos, composition_adjust_point)
1366 (Ffind_composition_internal): Use B_.
1367 * intervals.c (set_point_both, get_local_map): Use B_.
1368 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1369 * process.c (get_process, list_processes_1, Fstart_process)
1370 (Fmake_serial_process, Fmake_network_process)
1371 (read_process_output, send_process, exec_sentinel)
1372 (status_notify, setup_process_coding_systems): Use B_.
1373 * bytecode.c (Fbyte_code): Use B_.
1374 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1375 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1376 (skip_syntaxes, scan_lists): Use B_.
1377 * lread.c (readchar, unreadchar, openp, readevalloop)
1378 (Feval_buffer, Feval_region): Use B_.
1379 * print.c (printchar, strout, print_string, PRINTDECLARE)
1380 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1381 (print_object): Use B_.
1382 * font.c (font_at): Use B_.
1383 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1385 * callint.c (check_mark, Fcall_interactively): Use B_.
1386 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1387 (save_excursion_restore, Fprevious_char, Fchar_before)
1388 (general_insert_function, Finsert_char, Finsert_byte)
1389 (make_buffer_string_both, Finsert_buffer_substring)
1390 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1391 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1392 (Ftranslate_region_internal, save_restriction_restore)
1393 (Fchar_equal): Use B_.
1394 * data.c (swap_in_symval_forwarding, set_internal)
1395 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1397 * undo.c (record_point, record_insert, record_delete)
1398 (record_marker_adjustment, record_first_change)
1399 (record_property_change, Fundo_boundary, truncate_undo_list)
1400 (Fprimitive_undo): Use B_.
1401 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1402 (string_match_1, fast_looking_at, newline_cache_on_off)
1403 (search_command, search_buffer, simple_search, boyer_moore)
1404 (Freplace_match): Use B_.
1405 * indent.c (buffer_display_table, recompute_width_table)
1406 (width_run_cache_on_off, current_column, scan_for_column)
1407 (Findent_to, position_indentation, compute_motion, vmotion):
1409 * casefiddle.c (casify_object, casify_region): Use B_.
1410 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1411 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1412 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1413 (Ffile_regular_p, Ffile_selinux_context)
1414 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1415 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1416 (Finsert_file_contents, choose_write_coding_system)
1417 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1418 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1419 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1420 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1421 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1422 (set_marker_both, set_marker_restricted_both, unchain_marker):
1424 * insdel.c (check_markers, insert_char, insert_1_both)
1425 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1426 (adjust_after_replace, replace_range, del_range_2)
1427 (modify_region, prepare_to_modify_buffer)
1428 (Fcombine_after_change_execute): Use B_.
1429 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1430 (unlock_buffer): Use B_.
1431 * keymap.c (Flocal_key_binding, Fuse_local_map)
1432 (Fcurrent_local_map, push_key_description)
1433 (Fdescribe_buffer_bindings): Use B_.
1434 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1435 (read_key_sequence): Use B_.
1436 * fringe.c (get_logical_cursor_bitmap)
1437 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1438 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1439 * xfaces.c (compute_char_face): Use B_.
1440 * character.c (chars_in_text, Fget_byte): Use B_.
1441 * category.c (check_category_table, Fcategory_table)
1442 (Fset_category_table, char_category_set): Use B_.
1443 * coding.c (decode_coding, encode_coding)
1444 (make_conversion_work_buffer, decode_coding_gap)
1445 (decode_coding_object, encode_coding_object)
1446 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1447 (Funencodable_char_position, Fcheck_coding_systems_region):
1449 * charset.c (Ffind_charset_region): Use B_.
1450 * window.c (window_display_table, unshow_buffer, window_loop)
1451 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1452 (select_window, Fforce_window_update, temp_output_buffer_show)
1453 (Fset_window_configuration, save_window_save): Use B_.
1454 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1455 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1456 (with_echo_area_buffer, setup_echo_area_for_printing)
1457 (set_message_1, update_menu_bar, update_tool_bar)
1458 (text_outside_line_unchanged_p, redisplay_internal)
1459 (try_scrolling, try_cursor_movement, redisplay_window)
1460 (try_window_reusing_current_matrix, row_containing_pos)
1461 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1462 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1463 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1464 (get_window_cursor_type, note_mouse_highlight): Use B_.
1465 * frame.c (make_frame_visible_1): Use B_.
1466 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1467 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1468 (WINDOW_WANTS_MODELINE_P): Use B_.
1469 * syntax.h (Vstandard_syntax_table): Update.
1470 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1471 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1472 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1473 * character.h (FETCH_CHAR_ADVANCE): Update.
1474 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1475 * category.h (Vstandard_category_table): Update.
1476 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1478 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1479 * buffer.c (swapfield_): New macro.
1480 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1481 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1482 (Fget_buffer_create, clone_per_buffer_values)
1483 (Fmake_indirect_buffer, reset_buffer)
1484 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1485 (Fbuffer_local_value, buffer_lisp_local_variables)
1486 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1487 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1488 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1489 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1490 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1491 (Fbuffer_swap_text, Fset_buffer_multibyte)
1492 (swap_out_buffer_local_variables, record_overlay_string)
1493 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1495 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1496 (BUFFER_INTERNAL_FIELD, B_): New macro.
1497 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1499 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1501 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1504 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1506 * callproc.c (Fcall_process):
1507 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1510 2011-02-12 Martin Rudalics <rudalics@gmx.at>
1512 * window.c (select_window): Check inhibit_point_swap argument when
1513 deciding whether to return immediately.
1515 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
1517 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1520 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
1522 * config.in (TERMINFO): New definition.
1524 * s/netbsd.h: Use it to choose between terminfo and termcap
1527 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1529 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1530 The difference doesn't matter here, in practice, and sizeof is
1531 more portable to non-GCC compilers. Also, this makes the code
1532 match the already-existing comment.
1534 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1536 * process.c (create_process): Reset SIGPIPE handler in the child.
1537 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1539 2011-02-12 Eli Zaretskii <eliz@gnu.org>
1541 * xdisp.c <this_line_min_pos>: New variable.
1542 (move_it_in_display_line_to): Record in this_line_min_pos the
1543 smallest position iterated across.
1544 (display_line): Use this_line_min_pos to record the smallest
1545 position in the line even if it is not displayed due to
1546 hscrolling. (Bug#7939)
1548 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1550 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1551 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1552 (struct md5_ctx): Use it.
1554 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1555 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1557 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1558 FC_HINT_STYLE is supported.
1560 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1562 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1563 Make sure we don't do x_catch_errors twice.
1565 2011-02-10 Glenn Morris <rgm@gnu.org>
1567 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1569 2011-02-09 Eli Zaretskii <eliz@gnu.org>
1571 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1573 (globals.h, gl-stamp): New targets.
1574 (clean): Clean gl-stamp and globals.h.
1576 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1578 * Makefile.in (gl-stamp): Create globals.h here.
1579 (globals.h): Don't do it here.
1580 (mostlyclean): Clean globals.h and gl-stamp.
1582 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1584 * Makefile.in ($(otherobj)): Depend on globals.h.
1585 Otherwise 'make -j10' failed on my host, because the build lacked
1586 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1588 2011-02-08 Tom Tromey <tromey@redhat.com>
1590 * Makefile.in (NS_OBJC_OBJ): New variable.
1591 (base_obj): Rename from 'obj'.
1592 (obj): New variable.
1593 (globals.h, gl-stamp, $(obj)): New targets.
1594 (GLOBAL_SOURCES): New variable.
1595 * globals.h: Remove.
1596 * nsselect.m (Vselection_alist): Define. Reverts part of
1597 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1598 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1600 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1602 2011-02-08 Kenichi Handa <handa@m17n.org>
1604 * font.c (Ffont_get): Do not cache :otf value.
1606 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1608 conform to C89 pointer rules
1610 * dired.c (scmp, file_name_completion):
1611 Change types between char * and unsigned char *, to satisfy C89
1612 rules about pointer type compatibility.
1613 * casefiddle.c (casify_object, casify_region): Likewise.
1614 * search.c (Freplace_match, Fregexp_quote): Likewise.
1615 * alloc.c (make_string, make_specified_string, make_pure_string):
1617 * data.c (Fstring_to_number): Likewise.
1618 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1619 (print_object): Likewise.
1620 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1621 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1622 (Fformat): Likewise.
1623 * callint.c (Fcall_interactively): Likewise.
1624 * fns.c (string_make_multibyte, string_to_multibyte):
1625 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1626 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1628 * lread.c (read1, hash_string): Likewise.
1629 * process.c (read_process_output, send_process, Fprocess_send_region):
1631 * callproc.c (Fcall_process): Likewise.
1632 * doprnt.c (doprnt): Likewise.
1633 * indent.c (compute_motion): Likewise.
1634 * xfont.c (xfont_decode_coding_xlfd): Likewise.
1635 * ralloc.c (resize_bloc): Likewise.
1636 * image.c (tiff_load): Likewise.
1637 * xml.c (make_dom, parse_region): Likewise.
1638 * character.c (strwidth): Make its argument const char *, not const
1639 unsigned char *, since more callers prefer it that way. All callers
1642 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1644 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1645 Emacs assumes two's complement elsewhere, but the assumption is
1646 easy to remove here, and this suppresses a warning with Sun C 5.8.
1648 conform to C89 pointer rules
1650 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1651 (same_x_server, x_term_init):
1652 Change types between char * and unsigned char *, to satisfy C89
1653 rules about pointer type compatibility.
1654 * doc.c (get_doc_string, Fsnarf_documentation):
1655 (Fsubstitute_command_keys): Likewise.
1656 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1657 * bitmaps/gray.xbm (gray_bits): Likewise.
1658 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
1659 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1661 * keymap.c (Ftext_char_description): Likewise.
1662 * minibuf.c (Fread_buffer): Likewise.
1663 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1664 (DRIVE_LETTER) [defined DOS_NT]:
1665 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1666 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1667 (search_embedded_absfilename, Fsubstitute_in_file_name):
1668 (barf_or_query_if_file_exists, Fmake_directory_internal):
1669 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1670 (Finsert_file_contents, Fwrite_region):
1672 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1673 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1674 Likewise. This changes these functions' signatures, which is
1675 more convenient since most callers use char *. All remaining
1677 * editfns.c (general_insert_function): Change signature to
1678 match changes to insert functions' signatures.
1679 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1680 Use explicit cast when converting between void * and function pointer
1681 types, as C89 requires this.
1683 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1685 don't ignore chdir failure
1686 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1688 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1689 remaining unchecked chdir calls in this function; some DOS/NT
1690 expert needs to fix them.
1691 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1692 in this function; some NextStep expert needs to fix them.
1694 2011-02-05 Glenn Morris <rgm@gnu.org>
1696 * xfaces.c (Finternal_set_lisp_face_attribute):
1697 Try to clarify some error messages. (Bug#2659)
1699 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
1701 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1702 current_column cache (bug#7946).
1704 2011-02-05 Kenichi Handa <handa@m17n.org>
1706 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1708 * xftfont.c (xftfont_open): Likewise.
1710 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
1712 * window.c (Fselect_window): Add missing return value.
1714 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1716 xstrcasecmp: conform to C89 pointer rules
1717 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1718 to const char *, since they're usually low-level C strings, and
1719 this stays compatible with C89 pointer rules. All callers changed.
1721 * charset.c: Conform to C89 pointer rules.
1722 (define_charset_internal): Switch between char * and unsigned char *.
1724 * xmenu.c: Conform to C89 const rules.
1725 (xmenu_show, xdialog_show): Declare local var as char *, not
1726 const char *, to stay compatible with C89 const rules.
1728 * xdisp.c: Conform to C89 pointer rules.
1729 (store_mode_line_noprop, display_string, reseat_to_string):
1730 (c_string_pos, number_of_chars, message_dolog):
1731 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1732 (display_mode_element, display_string):
1733 Switch between char * and unsigned char * to stay compatible wth
1736 * regex.c: Conform to C89 pointer rules.
1737 (re_wctype): Add cast, as C89 does not allow assigning between
1738 char * and unsigned char *.
1739 (regex_compile): Likewise.
1741 sync from gnulib to remove HAVE_STDBOOL_H
1742 * config.in: Regenerate.
1744 2011-02-04 Eli Zaretskii <eliz@gnu.org>
1746 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1747 Replace all uses of lisp.h with $(LISP_H), and all uses of
1748 process.h with $(PROCESS_H).
1749 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1750 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1752 * deps.mk: Update for recent changes: gnutls support, gnulib
1753 imports, addition of globals.h.
1755 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1756 ../lib/ignore-value.h.
1758 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1760 allow C code to suppress warnings about ignored return values
1762 We need to go through the code and for each such warning, either
1763 fix the code to pay attention to the returned value, or tell GCC
1764 that we really do want to ignore the returned value. Here is one
1765 example of how to do the latter.
1766 * sysdep.c: Include <ignore-value.h>.
1767 (sys_subshell): Suppress an undesirable warning about not checking
1768 the returned value of 'write', as there's nothing useful one can
1769 do with that returned value.
1771 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1773 * xterm.c (x_connection_closed): Remove all calls that calls
1776 2011-02-01 Eli Zaretskii <eliz@gnu.org>
1778 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1781 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1783 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1784 (x_session_check_input): Change args and return type so it can be used
1785 as argument to add_read_fd. Make static. Remove call to select.
1786 Call kbd_buffer_store_event for emacs_event.
1787 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1788 (ice_conn_watch_CB): Call add_read_fd.
1790 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1791 x_session_check_input.
1792 (x_session_initialized): Remove definition.
1793 (x_initialize): Remove setting of x_session_initialized.
1795 * xterm.h (x_session_check_input): Remove declaration.
1797 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1799 format-time-string now supports subsecond time stamp resolution
1800 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
1801 for consistency with its new argument and with gnulib nstrftime.
1802 All callers changed. New argument NS.
1803 (Fformat_time_string): Check that the time argument's microseconds
1804 component, if any, is in range; this avoids integer overflow and
1805 also nstrftime needs this. Document %N.
1807 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
1809 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1810 of int. All uses adjusted.
1811 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1812 (svg_load_image): Remove casts.
1814 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
1816 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1817 function definitions for compiling with libpng-1.5.
1818 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1819 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1822 2011-01-31 Eli Zaretskii <eliz@gnu.org>
1824 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1826 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1827 ($(BLD)/strftime.$(O)): Remove prerequisites.
1829 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1831 src/emacs.c now gets version number from configure.in
1832 * emacs.c (emacs_version): Set to VERSION so that it
1833 is determined automatically from ../configure.in.
1835 2011-01-31 Jim Meyering <meyering@redhat.com>
1837 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1838 Use xmalloc rather than malloc.
1840 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1842 strftime: import from gnulib
1843 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1844 * deps.mk (strftime.o): Remove.
1845 * editfns.c: Include <strftime.h>, supplied by gnulib.
1846 (emacs_strftimeu): Remove decl.
1847 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1849 * config.in: Regenerate.
1850 * strftime.c: Remove; we now use strftime from gnulib.
1852 Use SSDATA when the context wants char *.
1853 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1854 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1855 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1856 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1857 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1858 Use SSDATA (not SDATA) when the context of the expression wants
1859 char * (not unsigned char *).
1861 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1863 * .gdbinit: Read global lisp variables as globals.f_V*.
1865 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1867 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1869 (PROP_SAVE): Likewise.
1871 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
1873 * keyboard.c (make_lispy_position): Fix typo in last change
1876 2011-01-29 Eli Zaretskii <eliz@gnu.org>
1878 * s/ms-w32.h (HAVE_MKTIME): Remove.
1880 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1881 (GNULIB): New variable.
1882 (LIBS): Add $(GNULIB).
1883 $(TEMACS): Depend on $(GNULIB).
1884 <top-level>: Fix font-lock disrupted by a lone `"'.
1886 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1888 * nsselect.m (ns_string_from_pasteboard): Get length of string
1889 and use make_string instead of build_string (Bug#7934).
1890 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1891 instead of stringWithUTF8String (Bug#7934).
1893 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
1895 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1896 descenders would not become one pixel too tall (Bug#7887).
1898 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
1900 * keyboard.c (make_lispy_position): For clicks on right fringe or
1901 margin, compute text position using the X coordinate relative to
1902 the left of the text area (Bug#7839).
1904 2011-01-28 Kenichi Handa <handa@m17n.org>
1906 * ftfont.c (ftfont_spec_pattern): Check each extra property
1909 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1911 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1913 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
1915 * font.c (font_parse_fcname): Undefine a temporary macro.
1917 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1919 Let the debugger continue to the normal handler (bug#7825).
1920 * eval.c (maybe_call_debugger): Declare before new use.
1921 (find_handler_clause): Don't call debugger any more.
1922 Ignore Vstack_trace_on_error.
1924 (syms_of_eval): Remove Vstack_trace_on_error.
1925 (Fsignal): Only modify handlerlist when we know we need to do it.
1926 Call the debugger when necessary.
1927 * globals.h (Vstack_trace_on_error): Remove.
1929 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
1931 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1933 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
1935 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1936 the buffer's point-max (bug#7876).
1938 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
1940 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
1941 Remove unused case (Bug#6811).
1943 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1945 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1946 setFrameTopLeftPoint is constrained.
1948 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1950 Check return values of some library calls.
1951 * emacs.c (main): Check dup result.
1952 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1953 (frame_name_fnn_p): Check strtol result.
1955 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
1956 when calling XpmCreatePixmapFromData.
1958 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1959 * lisp.h (SSDATA): New macro.
1960 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1961 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1962 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1963 * xsmfns.c (SSDATA): Likewise.
1965 2011-01-22 Martin Rudalics <rudalics@gmx.at>
1967 * window.c (select_window): New function.
1968 (Fselect_window): Call it.
1969 (inhibit_point_swap): Variable deleted.
1970 (Fset_window_configuration): Call select_window directly.
1972 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1974 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1976 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1978 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1979 screen, not the window screen.
1980 (x_set_window_size): Remove constraints.
1981 Calculate origin.y only if zooming is 0 and without referring to a
1983 (windowWillResize): Don't modify frameSize.
1984 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1985 (initFrameFromEmacs): Initialize ns_userRect.
1986 (windowShouldZoom): Set zooming to one. Remove all other code.
1987 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1988 Zero it after restore.
1989 (constrainFrameRect): New method for EmacsWindow.
1990 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1993 * nsterm.h (ns_output): Add dont_constrain and zooming.
1994 (EmacsView): Add ns_userRect.
1996 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1997 if ns_alternate_modifier is none.
1999 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2001 * unexmacosx.c: Add comment about include order.
2003 2011-01-20 Glenn Morris <rgm@gnu.org>
2005 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2006 Give it a doc string.
2007 * globals.h: Add Vread_expression_history.
2009 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2010 Give it a doc string.
2011 * globals.h: Add Vkbd_macro_termination_hook.
2013 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2015 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2017 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2019 Fix X11 compilation failure.
2020 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2021 * xselect.c (Vselection_alist): Remove declaration, moving its
2022 documentation to globals.h. This fixes a compilation failure
2023 induced by the earlier change to globals.h today.
2025 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2027 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2029 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2030 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2031 (ns_input_spi_name, ns_input_spi_arg)
2032 (ns_alternate_modifier, ns_right_alternate_modifier)
2033 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2034 (ns_right_control_modifier, ns_function_modifier)
2035 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2036 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2037 (x_underline_at_descent_line): Remove declaration.
2038 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2040 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2041 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2042 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2044 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2047 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2049 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2051 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2052 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2053 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2055 * globals.h (struct emacs_globals): Add f_ns_input_file,
2056 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2057 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2058 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2059 f_ns_right_alternate_modifier, f_ns_command_modifier,
2060 f_ns_right_command_modifier, f_ns_control_modifier,
2061 f_ns_right_control_modifier, f_ns_function_modifier,
2062 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2063 f_Vns_version_string, f_Vns_sent_selection_hooks,
2064 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2065 and corresponding defines.
2067 2011-01-19 Sam Steingold <sds@gnu.org>
2069 * w32.c (check_windows_init_file): Remove declarations of
2070 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2071 * w32fns.c: Fix an error introduced by the previous patch.
2073 2011-01-19 Tom Tromey <tromey@redhat.com>
2075 * window.c: Fix error introduced by previous patch.
2077 2011-01-18 Tom Tromey <tromey@parfait>
2079 * globals.h: New file.
2080 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2081 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2082 (Vwindow_system_version): Remove declaration.
2083 * w32term.h (Vw32_enable_palette)
2084 (Vx_pixel_size_width_font_regexp): Remove declaration.
2085 * w32menu.c (Voverriding_local_map)
2086 (Voverriding_local_map_menu_flag): Remove declaration.
2087 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2088 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2089 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2090 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2091 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2092 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2093 (w32_use_full_screen_buffer): Remove declaration.
2094 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2095 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2096 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2097 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2098 (no_redraw_on_reenter, visible_bell): Remove declaration.
2099 * sysdep.c (Vsystem_name): Remove declaration.
2100 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2101 * menu.h (Vmenu_updating_frame): Remove declaration.
2102 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2104 * lisp.h (Vafter_init_time, Vafter_load_alist)
2105 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2106 (Vcompletion_regexp_list, Vcurrent_load_list)
2107 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2108 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2109 (Vexec_directory, Vexec_path, Vexec_suffixes)
2110 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2111 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2112 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2113 (Vinstallation_directory, Vinvocation_directory)
2114 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2115 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2116 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2117 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2118 (Vscalable_fonts_allowed, Vselect_active_regions)
2119 (Vshell_file_name, Vstandard_input, Vstandard_output)
2120 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2121 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2122 (Vuser_login_name, Vwindow_scroll_functions)
2123 (Vwindow_system_version, Vx_no_window_manager)
2124 (Vx_resource_class, Vx_resource_name, baud_rate)
2125 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2126 (history_delete_duplicates, inhibit_x_resources)
2127 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2128 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2129 (use_dialog_box, use_file_dialog): Remove declaration.
2131 * keymap.h (Voverriding_local_map)
2132 (Voverriding_local_map_menu_flag, meta_prefix_char):
2134 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2135 (Vinput_method_function, Vkey_translation_map)
2136 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2137 (do_mouse_tracking, extra_keyboard_modifiers)
2138 (num_nonmacro_input_events): Remove declaration.
2139 * intervals.h (Vchar_property_alias_alist)
2140 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2141 (Vtext_property_default_nonsticky): Remove declaration.
2142 * gtkutil.h (x_gtk_file_dialog_help_text)
2143 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2144 (x_gtk_whole_detached_tool_bar): Remove declaration.
2145 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2146 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2147 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2148 (focus_follows_mouse): Remove declaration.
2149 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2150 (Vignore_relative_composition, Votf_script_alist)
2151 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2153 * font.h (Vfont_log): Remove declaration.
2154 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2155 (Vdos_windows_version, dos_codepage, dos_country_code)
2156 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2157 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2159 * disptab.h (Vglyph_table, Vstandard_display_table):
2161 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2162 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2163 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2164 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2165 (inverse_video, mode_line_in_non_selected_windows)
2166 (tool_bar_button_relief, tool_bar_max_label_size)
2167 (underline_minimum_offset)
2168 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2170 * composite.h (Vauto_composition_function)
2171 (Vcomposition_function_table): Remove declaration.
2172 * commands.h (Vexecuting_kbd_macro)
2173 (Vminibuffer_local_completion_map)
2174 (Vminibuffer_local_filename_completion_map)
2175 (Vminibuffer_local_filename_must_match_map)
2176 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2177 (Vminibuffer_local_ns_map, Vthis_command)
2178 (Vunread_command_events, cursor_in_echo_area)
2179 (last_command_event, last_nonmenu_event, unread_command_char):
2181 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2182 (Vdefault_file_name_coding_system)
2183 (Vdefault_process_coding_system, Vfile_name_coding_system)
2184 (Vlast_coding_system_used, Vlocale_coding_system)
2185 (Vselect_safe_coding_system_function)
2186 (Vtranslation_table_for_input, coding_system_require_warning)
2187 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2188 (eol_mnemonic_unix, inherit_process_coding_system):
2190 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2192 * character.h (Vauto_fill_chars, Vchar_direction_table)
2193 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2194 (Vscript_representative_chars, Vtranslation_table_vector)
2195 (Vunicode_category_table): Remove declaration.
2196 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2197 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2198 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2199 (inhibit_modification_hooks): Remove declaration.
2200 * xterm.c (syms_of_xterm): Update.
2201 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2202 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2203 (x_mouse_click_focus_ignore_position)
2204 (x_underline_at_descent_line)
2205 (x_use_underline_position_properties): Remove.
2206 * xsmfns.c (syms_of_xsmfns): Update.
2207 (Vx_session_id, Vx_session_previous_id): Remove.
2208 * xsettings.c (syms_of_xsettings): Update.
2209 (Vxft_settings, use_system_font): Remove.
2210 * xselect.c (syms_of_xselect): Update.
2211 (Vselection_converter_alist, Vx_lost_selection_functions)
2212 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2213 * xfns.c (syms_of_xfns): Update.
2214 (Vgtk_version_string, Vmotif_version_string)
2215 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2216 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2217 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2218 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2219 (Vx_sensitive_text_pointer_shape)
2220 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2221 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2222 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2224 * xfaces.c (syms_of_xfaces): Update.
2225 (Vface_default_stipple, Vface_font_rescale_alist)
2226 (Vface_ignored_fonts, Vface_new_frame_defaults)
2227 (Vface_remapping_alist, Vfont_list_limit)
2228 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2229 * xdisp.c (syms_of_xdisp): Update.
2230 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2231 (Vdisplay_pixels_per_inch, Vfontification_functions)
2232 (Vframe_title_format, Vglobal_mode_string)
2233 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2234 (Vicon_title_format, Vinhibit_redisplay)
2235 (Vline_number_display_limit, Vline_prefix)
2236 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2237 (Vmenu_updating_frame, Vmessage_log_max)
2238 (Vmouse_autoselect_window, Vnobreak_char_display)
2239 (Voverlay_arrow_position, Voverlay_arrow_string)
2240 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2241 (Vresize_mini_windows, Vshow_trailing_whitespace)
2242 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2243 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2244 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2245 (Vwindow_text_change_functions, Vwrap_prefix)
2246 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2247 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2248 (highlight_nonselected_windows, hscroll_margin)
2249 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2250 (inhibit_menubar_update, inhibit_try_cursor_movement)
2251 (inhibit_try_window_id, inhibit_try_window_reusing)
2252 (line_number_display_limit_width)
2253 (make_cursor_line_fully_visible_p, message_truncate_lines)
2254 (mode_line_inverse_video, multiple_frames, overline_margin)
2255 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2256 (tool_bar_max_label_size, underline_minimum_offset)
2257 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2259 * window.c (syms_of_window): Update.
2260 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2261 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2262 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2263 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2264 (mode_line_in_non_selected_windows, next_screen_context_lines)
2265 (window_min_height, window_min_width): Remove.
2266 (scroll_margin): Remove declaration.
2267 * w32term.c (syms_of_w32term): Update.
2268 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2269 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2270 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2271 (w32_use_visible_system_caret, x_underline_at_descent_line)
2272 (x_use_underline_position_properties): Remove.
2273 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2275 * w32select.c (syms_of_w32select): Update.
2276 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2277 * w32proc.c (syms_of_ntproc): Update.
2278 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2279 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2280 (Vw32_start_process_inherit_error_mode)
2281 (Vw32_start_process_share_console)
2282 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2283 (Vsystem_name): Remove declaration.
2284 * w32font.c (syms_of_w32font): Update.
2285 (Vw32_charset_info_alist): Remove.
2286 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2287 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2288 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2289 (Vw32_enable_palette, Vw32_lwindow_modifier)
2290 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2291 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2292 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2293 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2294 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2295 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2296 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2297 (Vx_sensitive_text_pointer_shape)
2298 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2299 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2300 (w32_mouse_move_interval)
2301 (w32_pass_extra_mouse_buttons_to_system)
2302 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2303 (w32_strict_fontnames, w32_strict_painting): Remove.
2304 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2305 (Vw32_recognize_altgr, Vwindow_system_version)
2306 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2308 * w32console.c (syms_of_ntterm): Update.
2309 (w32_use_full_screen_buffer): Remove.
2310 (Vtty_defined_color_alist): Remove declaration.
2311 * w16select.c (syms_of_win16select): Update.
2312 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2313 * undo.c (syms_of_undo): Update.
2314 (Vundo_outer_limit, Vundo_outer_limit_function)
2315 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2317 * textprop.c (syms_of_textprop): Update.
2318 (Vchar_property_alias_alist, Vdefault_text_properties)
2319 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2321 * terminal.c (syms_of_terminal): Update.
2322 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2323 * term.c (syms_of_term): Update.
2324 (Vresume_tty_functions, Vsuspend_tty_functions)
2325 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2327 * syntax.c (syms_of_syntax): Update.
2328 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2329 (open_paren_in_column_0_is_defun_start)
2330 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2331 (words_include_escapes): Remove.
2332 * search.c (syms_of_search): Update.
2333 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2334 * process.c (syms_of_process): Update.
2335 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2336 (delete_exited_processes): Remove.
2337 * print.c (syms_of_print): Update.
2338 (Vfloat_output_format, Vprint_charset_text_property)
2339 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2340 (Vprint_length, Vprint_level, Vprint_number_table)
2341 (Vstandard_output, print_escape_multibyte)
2342 (print_escape_newlines, print_escape_nonascii, print_quoted):
2344 * msdos.c (syms_of_msdos): Update.
2345 (Vdos_unsupported_char_glyph): Remove.
2346 (unibyte_display_via_language_environment): Remove declaration.
2347 * minibuf.c (syms_of_minibuf): Update.
2348 (Vcompletion_regexp_list, Vhistory_add_new_input)
2349 (Vhistory_length, Vminibuffer_completing_file_name)
2350 (Vminibuffer_completion_confirm)
2351 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2352 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2353 (Vminibuffer_history_position, Vminibuffer_history_variable)
2354 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2355 (Vread_buffer_function, Vread_expression_map)
2356 (completion_ignore_case, enable_recursive_minibuffers)
2357 (history_delete_duplicates, minibuffer_allow_text_properties)
2358 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2360 * marker.c (syms_of_marker): Update.
2361 (byte_debug_flag): Remove.
2362 * macros.c (syms_of_macros): Update.
2363 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2364 * lread.c (syms_of_lread): Update.
2365 (Vafter_load_alist, Vbyte_boolean_vars)
2366 (Vbytecomp_version_regexp, Vcurrent_load_list)
2367 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2368 (Vload_history, Vload_path, Vload_read_function)
2369 (Vload_source_file_function, Vload_suffixes, Vobarray)
2370 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2371 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2372 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2373 (force_load_messages, load_convert_to_unibyte)
2374 (load_dangerous_libraries, load_force_doc_strings)
2375 (load_in_progress): Remove.
2376 * keymap.c (syms_of_keymap): Update.
2377 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2378 (Vminibuffer_local_completion_map)
2379 (Vminibuffer_local_filename_completion_map)
2380 (Vminibuffer_local_filename_must_match_map)
2381 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2382 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2383 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2385 * keyboard.c (syms_of_keyboard): Update.
2386 (Vauto_save_timeout, Vcommand_error_function)
2387 (Vcommand_hook_internal, Vdeactivate_mark)
2388 (Vdeferred_action_function, Vdeferred_action_list)
2389 (Vdisable_point_adjustment, Vdouble_click_time)
2390 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2391 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2392 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2393 (Vinput_method_function, Vinput_method_previous_message)
2394 (Vkey_translation_map, Vlast_event_frame)
2395 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2396 (Vminibuffer_message_timeout, Voverriding_local_map)
2397 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2398 (Vpre_command_hook, Vprefix_help_command)
2399 (Vsaved_region_selection, Vselect_active_regions)
2400 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2401 (Vthis_command, Vthis_command_keys_shift_translated)
2402 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2403 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2404 (Vtty_erase_char, Vunread_command_events)
2405 (Vunread_input_method_events, Vunread_post_input_method_events)
2406 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2407 (double_click_fuzz, extra_keyboard_modifiers)
2408 (inhibit_local_menu_bar_menus, last_command_event)
2409 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2410 (menu_prompting, meta_prefix_char, num_input_keys)
2411 (num_nonmacro_input_events, polling_period, unread_command_char):
2413 * insdel.c (syms_of_insdel): Update.
2414 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2415 * indent.c (syms_of_indent): Update.
2416 (indent_tabs_mode): Remove.
2417 * image.c (syms_of_image): Update.
2418 (Vimage_cache_eviction_delay, Vimage_types)
2419 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2420 (cross_disabled_images): Remove.
2421 * fringe.c (syms_of_fringe): Update.
2422 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2423 * frame.c (syms_of_frame): Update.
2424 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2425 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2426 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2427 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2428 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2430 * fontset.c (syms_of_fontset): Update.
2431 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2432 (Vfontset_alias_alist, Vignore_relative_composition)
2433 (Votf_script_alist, Vuse_default_ascent)
2434 (Vvertical_centering_font_regexp): Remove.
2435 * font.c (syms_of_font): Update.
2436 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2437 (Vfont_weight_table, Vfont_width_table): Remove.
2438 * fns.c (syms_of_fns): Update.
2439 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2440 * filelock.c (syms_of_filelock): Update.
2441 (Vtemporary_file_directory): Remove.
2442 * fileio.c (syms_of_fileio): Update.
2443 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2444 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2445 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2446 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2447 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2448 (Vwrite_region_annotate_functions)
2449 (Vwrite_region_annotations_so_far)
2450 (Vwrite_region_post_annotation_function)
2451 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2452 (Vw32_get_true_file_attributes): Remove declaration.
2453 * eval.c (syms_of_eval): Update.
2454 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2455 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2456 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2457 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2458 (max_lisp_eval_depth, max_specpdl_size): Remove.
2459 * emacs.c (syms_of_emacs): Update.
2460 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2461 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2462 (Vinstallation_directory, Vinvocation_directory)
2463 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2464 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2465 (Vsystem_configuration, Vsystem_configuration_options)
2466 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2467 (inhibit_x_resources, noninteractive1): Remove.
2468 * editfns.c (syms_of_editfns): Update.
2469 (Vbuffer_access_fontified_property)
2470 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2471 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2472 (Vuser_login_name, Vuser_real_login_name): Remove.
2473 * dosfns.c (syms_of_dosfns): Update.
2474 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2475 (dos_codepage, dos_country_code, dos_decimal_point)
2476 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2477 (dos_super_key, dos_timezone_offset): Remove.
2478 * doc.c (syms_of_doc): Update.
2479 (Vbuild_files, Vdoc_file_name): Remove.
2480 * dispnew.c (syms_of_display): Update.
2481 (Vglyph_table, Vinitial_window_system)
2482 (Vredisplay_preemption_period, Vstandard_display_table)
2483 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2484 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2485 * dired.c (syms_of_dired): Update.
2486 (Vcompletion_ignored_extensions): Remove.
2487 (Vw32_get_true_file_attributes): Remove declaration.
2488 * dbusbind.c (syms_of_dbusbind): Update.
2489 (Vdbus_debug, Vdbus_registered_buses)
2490 (Vdbus_registered_objects_table): Remove.
2491 * data.c (syms_of_data): Update.
2492 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2493 * composite.c (syms_of_composite): Update.
2494 (Vauto_composition_function, Vauto_composition_mode)
2495 (Vcompose_chars_after_function, Vcomposition_function_table):
2497 * coding.c (syms_of_coding): Update.
2498 (Vcharset_revision_table, Vcoding_category_list)
2499 (Vcoding_system_alist, Vcoding_system_for_read)
2500 (Vcoding_system_for_write, Vcoding_system_list)
2501 (Vdefault_process_coding_system, Venable_character_translation)
2502 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2503 (Vlast_coding_system_used, Vlatin_extra_code_table)
2504 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2505 (Vprocess_coding_system_alist)
2506 (Vselect_safe_coding_system_function)
2507 (Vstandard_translation_table_for_decode)
2508 (Vstandard_translation_table_for_encode)
2509 (Vtranslation_table_for_input, coding_system_require_warning)
2510 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2511 (eol_mnemonic_unix, inherit_process_coding_system)
2512 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2513 (inhibit_null_byte_detection): Remove.
2514 * cmds.c (syms_of_cmds): Update.
2515 (Vpost_self_insert_hook): Remove.
2516 * charset.c (syms_of_charset): Update.
2517 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2518 (inhibit_load_charset_map): Remove.
2519 * character.c (syms_of_character): Update.
2520 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2521 (Vchar_width_table, Vprintable_chars)
2522 (Vscript_representative_chars, Vtranslation_table_vector)
2523 (Vunicode_category_table): Remove.
2524 * ccl.c (syms_of_ccl): Update.
2525 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2526 (Vtranslation_hash_table_vector): Remove.
2527 * category.c (syms_of_category): Update.
2528 (Vword_combining_categories, Vword_separating_categories): Remove.
2529 * callproc.c (syms_of_callproc): Update.
2530 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2531 (Vexec_directory, Vexec_path, Vexec_suffixes)
2532 (Vinitial_environment, Vprocess_environment)
2533 (Vshared_game_score_directory, Vshell_file_name): Remove.
2534 * callint.c (syms_of_callint): Update.
2535 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2536 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2537 * bytecode.c (syms_of_bytecode): Update.
2538 (Vbyte_code_meter, byte_metering_on): Remove.
2539 * buffer.c (syms_of_buffer): Update.
2540 (Vafter_change_functions, Vbefore_change_functions)
2541 (Vchange_major_mode_hook, Vfirst_change_hook)
2542 (Vinhibit_read_only, Vkill_buffer_query_functions)
2543 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2544 * alloc.c (syms_of_alloc): Update.
2545 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2546 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2547 (cons_cells_consed, floats_consed, garbage_collection_messages)
2548 (gc_cons_threshold, gcs_done, intervals_consed)
2549 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2550 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2552 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2553 (DEFVAR_INT): Assume global is in `globals'.
2554 * alloc.c (globals): Define.
2556 2011-01-18 Tom Tromey <tromey@redhat.com>
2558 * image.c (Vimagemagick_render_type): Remove redundant
2561 2011-01-18 Tom Tromey <tromey@redhat.com>
2563 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2564 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2565 (redisplay_window): Update.
2566 (syms_of_xdisp): Update.
2568 2011-01-18 Tom Tromey <tromey@redhat.com>
2570 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2571 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2573 * gtkutil.c (xg_uses_old_file_dialog):
2574 (xg_get_file_with_chooser):
2575 (xg_tool_bar_detach_callback): Don't redeclare globals.
2577 2011-01-18 Tom Tromey <tromey@redhat.com>
2579 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2580 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2582 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2584 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2585 defined __GNUC__. ../configure now checks for this GCC feature,
2586 which is now also supported by IBM and Oracle compilers.
2587 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2588 since Solaris malloc returns mult-of-8.
2590 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
2592 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2594 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
2596 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2597 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2598 * data.c (Fnumber_to_string): Use it.
2599 * print.c (float_to_string, print_object): Likewise.
2601 Include <unistd.h> unilaterally.
2602 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2603 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2604 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2605 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2606 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2608 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2609 unistd.h is always present now, possibly supplied by gnulib.
2611 * mktime.c: Remove; moving to ../lib.
2613 Use gnulib's mktime module.
2614 * deps.mk (mktime.o): Remove rule.
2616 Use gnulib's ftoastr module.
2617 * print.c: Include ftoastr.h.
2618 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2619 Remove; no longer needed.
2620 (float_to_string): Use dtoastr rather than rolling our own code,
2621 which had an off-by-one bug on non-IEEE hosts.
2623 Automate syncing from gnulib.
2624 * Makefile.in (lib): New macro.
2625 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2626 ($(lib)/libgnu.a): New rule.
2627 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2629 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2630 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2631 so change the type of 'ign' to unsigned int from int.
2633 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2635 * xterm.h (struct x_display_info): Remove stray semicolon.
2636 The extra semicolon didn't conform to the C standard.
2637 Problem reported by Sun cc.
2639 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2640 These changes make compilation easier to follow with Sun cc.
2641 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2642 EMACS_INT values without provoking overflow diagnostics.
2643 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2644 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2645 diagnostic with signed left shift.
2647 * fileio.c (make_temp_name): Remove unreachable code.
2649 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2650 Previously it was marked by preceding it with "return;", but
2651 Sun cc complains about this.
2653 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2654 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2655 which fixed Bug#2370. Caught by Sun cc.
2657 2011-01-15 Martin Rudalics <rudalics@gmx.at>
2659 * window.c (inhibit_point_swap): New variable.
2660 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2662 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2663 of setting selected_window to nil (Bug#7728).
2665 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2667 * image.c (imagemagick_load_image, Finit_image_library):
2668 Free intermediate image after creating a MagickWand from it.
2669 Terminate MagickWand environment after image loading.
2671 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
2673 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2674 unexpected return values.
2675 (Fdbus_register_method): Remove connection initialization.
2677 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
2679 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2680 used by Fdbus_register_service.
2681 (QCdbus_request_name_replace_existing): Likewise.
2682 (QCdbus_request_name_do_not_queue): Likewise.
2683 (QCdbus_request_name_reply_primary_owner): Likewise.
2684 (QCdbus_request_name_reply_in_queue): Likewise.
2685 (QCdbus_request_name_reply_exists): Likewise.
2686 (QCdbus_request_name_reply_already_owner): Likewise.
2687 (Fdbus_register_service): New function.
2688 (Fdbus_register_method): Use Fdbus_register_service to do the name
2690 (syms_of_dbusbind): Add symbols dbus-register-service,
2691 :allow-replacement, :replace-existing, :do-not-queue,
2692 :primary-owner, :existing, :in-queue and :already-owner.
2694 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
2696 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2697 when removing extra buttons.
2699 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
2701 * fns.c (Fyes_or_no_p): Doc fix.
2703 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2705 * fns.c (Fyes_or_no_p): Add usage.
2707 2011-01-08 Glenn Morris <rgm@gnu.org>
2709 * makefile.w32-in ($(EMACS)):
2710 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2712 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2713 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2715 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2717 * image.c (imagemagick_load_image): Fix some resource leaks and
2720 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
2722 * fns.c (Fyes_or_no_p): Accept format string args.
2724 2011-01-07 Glenn Morris <rgm@gnu.org>
2726 * emacs.c (no_site_lisp): New int.
2727 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2728 (main): Set no_site_lisp.
2729 (standard_args): Add --no-site-lisp.
2730 * lisp.h (no_site_lisp): New int.
2731 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2732 directories to Vload_path.
2734 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2736 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2738 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2740 * dbusbind.c (Fdbus_register_method): Add optional parameter
2741 dont_register_service. Updated docstring accordingly.
2743 2011-01-04 Glenn Morris <rgm@gnu.org>
2745 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2747 2011-01-03 Eli Zaretskii <eliz@gnu.org>
2749 * image.c (png_jmpbuf): Remove definition.
2750 (my_png_error, png_load): Don't use png_jmpbuf.
2752 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2754 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2756 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2758 * image.c <Qlibpng_version>: New variable.
2759 (syms_of_image): Intern and staticpro it. Set its value to the
2760 version of PNG library we were compiled with.
2761 (my_png_error, png_load): Avoid GCC warnings about direct access
2762 to png_ptr->jmpbuf. (Bug#7716)
2763 (png_jmpbuf): New macro.
2764 (my_png_error, png_load): Use it instead of #ifdef'ing according
2765 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
2767 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2769 * .gdbinit (xgetptr): Fix the union+lsb case.
2770 (xbacktrace): Fix the union case.
2772 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2774 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2775 different from selected-window's.
2777 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2779 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2780 equivalent of a menu item when the key sequence is given by the
2781 `:keys' attribute. (Bug#7662)
2783 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2784 the basic faces are supported.
2786 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
2788 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2790 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2792 * xdisp.c (Fformat_mode_line): Fix last change.
2794 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
2796 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2799 2011-01-02 Eli Zaretskii <eliz@gnu.org>
2801 * fileio.c (Fexpand_file_name): One more doc fix.
2803 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
2805 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2806 image or label in the container.
2807 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2808 (xg_show_toolbar_item): Function deleted.
2809 (xg_tool_item_stale_p): New function.
2810 (update_frame_tool_bar): Calculate tool-bar style once per call.
2811 Instead of hiding text labels, omit them. Don't use
2812 xg_show_toolbar_item; create new GtkToolItems from scratch if
2813 necessary, instead of trying to re-use them. This avoids an
2814 annoying animation when changing tool-bars.
2816 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2818 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2819 title and buffer filename only for RepresentedFilename.
2820 Handle bad UTF-8 in buffer name (Bug#7517).
2822 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2824 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2826 * nsfns.m (ns_set_name_iconic): Remove.
2827 (ns_set_name_internal): New function (Bug#7517).
2828 (Vicon_title_format): Extern declare.
2829 (ns_set_name): Call ns_set_name_internal.
2830 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2831 (x_implicitly_set_name): Ditto.
2832 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2833 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2835 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2837 * window.c (syms_of_window): Add missing defsubr for
2840 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2842 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2843 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2845 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2847 * buffer.c: Remove unused declarations.
2848 * buffer.h: Likewise.
2849 * charset.h: Likewise.
2850 * composite.h: Likewise.
2851 * dispextern.h: Likewise.
2852 * dispnew.c: Likewise.
2854 * fontset.c: Likewise.
2855 * fontset.h: Likewise.
2856 * intervals.h: Likewise.
2857 * keymap.h: Likewise.
2859 * syntax.c: Likewise.
2860 * syntax.h: Likewise.
2861 * termhooks.h: Likewise.
2862 * window.h: Likewise.
2863 * xsettings.h: Likewise.
2864 * xterm.c: Likewise.
2865 * xterm.h: Likewise.
2867 * chartab.c (sub_char_table_ref): Make static.
2868 * dispnew.c (line_hash_code, required_matrix_height)
2869 (required_matrix_width): Likewise.
2870 * eval.c (interactive_p, apply_lambda): Likewise.
2871 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2873 * font.c (QCadstyle, QCregistry, font_make_spec)
2874 (font_parse_fcname, font_encode_char, font_at): Likewise.
2875 * frame.c (x_frame_get_arg): Likewise.
2876 * keymap.c (get_keyelt): Likewise.
2877 * lread.c (read_filtered_event): Likewise.
2878 * print.c (write_string_1): Likewise.
2879 * window.c (delete_window, window_height, window_width)
2880 (foreach_window): Likewise.
2881 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2882 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2883 (xembed_send_message): Likewise.
2885 * eval.c (run_hook_list_with_args): Delete.
2886 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2887 * terminal.c (get_terminal_param): Likewise.
2888 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2890 * scroll.c: Fix comment.
2892 * dispnew.c (add_window_display_history)
2893 (add_frame_display_history, glyph_row_slice_p)
2894 (find_glyph_row_slice, flush_stdout)
2895 (check_matrix_pointer_lossage, matrix_row)
2896 (check_matrix_invariants, check_window_matrix_pointers)
2897 (check_matrix_pointers, window_to_frame_vpos)
2898 (window_to_frame_hpos): Prototize.
2899 * textprop.c (erase_properties): Likewise.
2901 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2903 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2904 (print_preprocess): Fix handling of uninterned symbols in last change.
2906 * print.c (print, print_preprocess, print_object): Use a hash table
2907 rather than a linear table for Vprint_number_table.
2909 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
2911 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2913 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
2915 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2916 (parse_tool_bar_item): Use it to obtain image separators for
2917 displays not using native tool-bar separators.
2919 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2920 specially, since this is now done in parse_tool_bar_item.
2922 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2924 Minor clean up to silence some gcc warnings.
2925 * window.c (Fset_window_buffer):
2926 * xterm.c (x_set_frame_alpha): Restructure code to silence
2928 (handle_one_xevent): Remove unused var `p'.
2929 (do_ewmh_fullscreen): Remove unused var `lval'.
2930 (xembed_set_info): Remove unused var `atom'.
2931 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2933 * fontset.c (fontset_id_valid_p, dump_fontset):
2934 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2935 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2936 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2937 label only when it's used.
2938 * image.c (x_create_bitmap_from_xpm_data):
2939 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2941 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2943 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2944 (decode_coding_emacs_mule): Remove unused label `retry'.
2945 (detect_eol): Add parens to silence compiler warning.
2946 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2947 it's used to silence the compiler.
2948 (make_number): Modernize k&r declaration.
2949 (mark_char_table): Add parens to silence compiler warning.
2951 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
2953 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2955 (menu_separator_name_p): New function, from gtkutil.c.
2956 (separator_names): Move from gtkutil.c.
2958 * keyboard.h (menu_separator_name_p): Add prototype.
2960 * gtkutil.c (XG_BIN_CHILD): New macro.
2961 (xg_get_menu_item_label, xg_update_menubar)
2962 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2963 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2964 (separator_names, xg_separator_p): Move to keyboard.c.
2965 (create_menus, xg_update_submenu, update_frame_tool_bar):
2966 Use menu_separator_name_p.
2968 * nsmenu.m (name_is_separator): Function deleted.
2969 (addItemWithWidgetValue): Use menu_separator_name_p.
2971 * w32menu.c (name_is_separator): Function deleted.
2972 (add_menu_item): Use menu_separator_name_p.
2974 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2976 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2977 same as the background, use the face forground as cursor.
2979 2010-12-13 Eli Zaretskii <eliz@gnu.org>
2981 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2983 2010-12-13 Eli Zaretskii <eliz@gnu.org>
2985 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2986 (face_before_or_after_it_pos, next_element_from_string)
2987 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2988 calculations of maximum string length before calling
2989 string_char_and_length and STRING_CHAR_AND_LENGTH.
2990 (string_char_and_length): Update commentary: MAXLEN is no longer
2993 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2995 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2996 as (Qsave_session arg).
2998 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2999 (smc_die_CB): Make an event with arg Qt.
3000 (Fhandle_save_session): If event has Qt as argument,
3001 call Fkill_emacs (Bug#7552).
3003 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3005 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3007 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3009 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3011 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3013 * dispextern.h (struct it): New member overlay_strings_charpos.
3015 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3016 charpos where we computed n_overlay_strings.
3017 (next_overlay_string): Load overlay strings at recorded position,
3018 which may not be the same as the iterator's charpos (Bug#7016).
3020 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3022 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3023 obscured due to a vscroll (Bug#7537).
3025 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3027 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3029 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3030 Use FRAME_TOOLBAR_HEIGHT.
3031 (x_set_offset): Handle XNegative and YNegative in
3032 f->size_hint_flags (Bug#7510).
3034 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3036 * w32fns.c (Fx_show_tip): Call try_window with last argument
3037 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3038 solved. Round up the tip height to an integral multiple of the
3039 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3042 2010-12-08 Glenn Morris <rgm@gnu.org>
3044 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3046 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3048 * xml.c (parse_region): Ignore blank HTML nodes.
3049 (make_dom): Return CDATA sections (like <style>foo</style>) as
3052 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3054 * lread.c (read1): Allow newstyle unquote outside of backquote.
3055 Disallow old-style backquotes inside new-style backquotes.
3056 Don't count unquotes to figure out when we're "syntactically inside
3057 but semantically outside of a backquote" any more.
3058 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3061 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3063 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3065 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3067 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3068 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3069 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3071 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3073 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3075 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3076 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3077 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3078 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3079 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3080 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3081 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3082 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3083 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3084 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3085 * m/hp800.h: Remove file.
3086 * m/mips.h: Remove file.
3088 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3090 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3091 with cursor color and draw a rectangle around the image (Bug#7412).
3093 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3095 * frame.c (x_set_font): Remove unused variable.
3097 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3099 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3101 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3102 drawing text under filled box cursor (Bug#7479).
3104 2010-11-27 Kenichi Handa <handa@m17n.org>
3106 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3108 (Fdefine_charset_internal): Adjust for the above change.
3109 (init_charset_once): Likewise.
3111 * charset.h (emacs_mule_charset): Adjust the prototype.
3112 Delete duplicated extern.
3114 * coding.c (emacs_mule_char): Adjust for the change of
3117 * lread.c (read_emacs_mule_char): Adjust for the change of
3120 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3122 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3123 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3125 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3127 * alloc.c (mark_terminals): Ensure that the image cache is marked
3128 even if the terminal object was marked earlier (Bug#6301).
3130 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3132 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3134 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3136 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3137 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3138 Use 23 as menubar height if 0. (Bug#7425).
3140 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3142 * xdisp.c (set_message_1): Force paragraph direction in echo area
3145 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3146 when the click is on the header or mode line.
3148 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3150 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3151 `cursor' property of the first character in overlay strings.
3152 (Bug#7474) (Bug#7481)
3154 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3156 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3157 (NSLeftAlternateKeyMask): New defines.
3158 (keyDown): Parse left and right keys separately (Bug#7458).
3159 Compare Left key masks exactly (Bug#7458).
3161 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3163 * intervals.c (temp_set_point_both): Define before calling, to
3166 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3168 * nsmenu.m: Use #include <config.h> instead of "config.h".
3170 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3171 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3172 Move declarations ...
3173 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3174 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3177 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3178 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3180 * print.c (print_output_debug_flag):
3181 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3182 (safe_debug_print): New declaration.
3186 * sound.c: Include <sys/ioctl.h> unconditionally.
3188 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3190 * alloc.c (mark_maybe_object): Return early if given a Lisp
3193 2010-11-21 Ken Brown <kbrown@cornell.edu>
3195 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3197 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3199 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3201 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3202 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3203 NSRightControlKeyMask also (Bug#7458).
3204 (keyDown): Ditto (Bug#7458).
3205 (syms_of_nsterm): Defvar ns-right-command-modifier and
3206 ns-right-control-modifier (Bug#7458).
3208 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3210 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3211 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3213 * intervals.h (temp_set_point, temp_set_point_both):
3214 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3216 2010-11-20 Ken Brown <kbrown@cornell.edu>
3218 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3220 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3222 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3223 \xNNNNNN for hex-code display of glyphless characters.
3225 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3227 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3228 Set important to ! vert_only.
3229 (xg_show_toolbar_item): Don't show label horizontally if
3230 tool item isn't important.
3231 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3232 xg_make_tool_item, or update important on existing tool item.
3234 * keyboard.c (QCvert_only): New variable.
3235 (parse_tool_bar_item): Check for QCvert_only.
3236 (syms_of_keyboard): Initialize QCvert_only.
3238 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3240 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3242 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3245 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3247 * xfaces.c (lookup_face): Make static.
3248 * dispnew.c (copy_row_except_pointers): Likewise.
3249 * syntax.c (dec_bytepos): Likewise.
3250 (inc_bytepos): Remove.
3251 * dispextern.h (lookup_face): Remove declaration.
3253 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3255 * xdisp.c (set_cursor_from_row): Display cursor after all the
3256 glyphs that come from an overlay. Don't overstep the last glyph
3257 when skipping glyphs from an overlay. (Bug#6687)
3259 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3261 * alloc.c (refill_memory_reserve): Move declaration ...
3262 * lisp.h (refill_memory_reserve): ... here.
3264 * strftime.c (_strftime_copytm): Add declaration.
3266 * callproc.c (syms_of_callproc): Use intern_c_string.
3268 Move declarations from .c files to .h files.
3269 * process.c (timers_run):
3270 * minibuf.c (quit_char):
3271 * lread.c (read_emacs_mule_char):
3272 * keyboard.c (minibuf_level, message_enable_multibyte)
3273 (pending_malloc_warning):
3274 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3275 (Qonly): Remove declarations.
3276 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3277 (Vselect_active_regions):
3278 * keyboard.h (timers_run): Add declarations.
3280 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3281 (tm_diff): Convert definitions to standard C.
3282 (extra_args_spec_iso): Remove, unused.
3284 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3286 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3288 * config.in (HAVE_G_TYPE_INIT): New symbol.
3290 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3292 * lread.c (Fload): Mention `load-in-progress' and
3293 `load-file-name'. (Bug#7346)
3295 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3296 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3297 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3298 subprocesses. Use buffer_free only ifdef subprocesses.
3300 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3301 the subprocesses version, not in the non-subprocesses one.
3303 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3305 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3307 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3308 lines on text-mode terminals. (bug#7417)
3310 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3312 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3313 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3315 2010-11-17 Kenichi Handa <handa@m17n.org>
3317 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3318 change (set charset-ID list instead of charset-symbol list).
3320 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3322 * keyboard.c (make_lispy_position): For text area clicks, record Y
3323 pixel position relative to the text area, excluding header line.
3324 Also change X and Y to Lisp_Objects, not pointers; don't return
3325 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3326 buffer_posn_from_coords counting from the start of the text area.
3327 (Fposn_at_x_y, make_lispy_event): Callers changed.
3329 * window.c (coordinates_in_window): Change X and Y to ints rather
3330 than pointers; don't return coordinates via pointers.
3331 (struct check_window_data): Change X and Y from pointers to ints.
3332 (window_from_coordinates): Remove args WX and WY; don't return
3333 coordinates via pointers.
3334 (Fcoordinates_in_window_p, window_from_coordinates):
3335 (check_window_containing, Fwindow_at): Callers changed.
3336 (window_relative_x_coord): New function.
3338 * window.h (window_from_coordinates, window_relative_x_coord):
3341 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3342 the start of the text area.
3344 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3345 call. Use window_relative_x_coord.
3346 (note_mouse_highlight): Change window_from_coordinates call.
3348 * w32term.c (w32_read_socket):
3349 * msdos.c (dos_rawgetc):
3350 * xterm.c (handle_one_xevent): Likewise.
3352 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3354 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3355 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3356 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3357 Convert definitions to standard C.
3358 * regex.c: Do not include <stdlib.h>, config.h does it.
3360 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3361 (regerror, regfree): Convert definitions to standard C.
3362 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3363 (__mktime_internal): Convert definitions to standard C.
3365 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3370 * w32.c: Remove config.h include guards.
3372 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3375 * process.c: Include <sys/ioctl.h> unconditionally,
3376 keyboard.c already does it.
3378 * keyboard.c (pending_malloc_warning): Add const to match
3379 definition in alloc.c.
3380 (Fset_input_interrupt_mode): Simplify #ifdefs.
3382 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3384 Clean up systty.h macros.
3385 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3386 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3387 definition in all uses.
3388 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3389 * sysdep.c (discard_tty_input, child_setup_tty)
3390 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3391 * emacs.c (shut_down_emacs):
3392 * callproc.c (child_setup):
3393 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3395 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3397 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3399 * w32fns.c (Fx_create_frame):
3400 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3401 resource here; it's now done at startup.
3403 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3405 * xterm.c (set_wm_state): Add Qnil to final cons.
3407 * xselect.c (x_send_client_event): Remove unused variables cons and
3410 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3412 * keyboard.c (modify_event_symbol): Add const to array elements of
3414 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3415 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3416 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3417 Add const to array elements.
3418 (scroll_bar_parts): Make static. Fix position of const.
3420 * w32fns.c (lispy_function_keys): Add const to extern.
3422 * w32inevt.c (lispy_function_keys): Likewise.
3424 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3426 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3427 resource here; it's now done at startup.
3429 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3431 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3433 Fix compilation on Solaris.
3434 * sysdep.c: Do not #include <term.h>.
3435 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3437 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3439 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3441 * xterm.c (set_wm_state): Don't put Atom in cons, call
3442 make_fixnum_or_float on them first.
3443 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3444 Xatom_net_supported correctly.
3446 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3447 (Fx_send_client_event): to here.
3449 2010-11-13 Martin Rudalics <rudalics@gmx.at>
3451 * window.c (Fwindow_use_time): New function.
3453 2010-11-13 Eli Zaretskii <eliz@gnu.org>
3455 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3456 zero-width characters.
3458 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3460 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3461 box before drawing the glyphs inside it.
3463 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3465 * dispextern.h (enum glyphless_display_method):
3466 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3469 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3471 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3472 whitespace in "[]", to simulate a box. Don't use uninitialized
3475 2010-11-11 Julien Danjou <julien@danjou.info>
3477 * xsettings.c (init_xsettings): Use already fetch atoms.
3479 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3482 * xselect.c (Fx_send_client_event): Split and create
3483 x_send_client_event.
3485 * lisp.h: Do not EXFUN Fx_send_client_event.
3487 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3489 (wm_supports): Use atoms from dpyinfo.
3490 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3491 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3492 (xembed_set_info): Use atoms from dpyinfo.
3493 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3494 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3495 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3496 Get all atoms in one round-trip.
3497 (set_wm_state): Use x_send_client_event rather than
3498 Fx_send_client_event, using Atom directly.
3499 (x_ewmh_activate_frame): Ditto.
3500 (x_set_sticky): Pass atoms to set_wm_state.
3501 (do_ewmh_fullscreen): Ditto.
3503 * xterm.h (x_display_info): Add Xatom_net_supported,
3504 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3505 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3507 * xfns.c (Fx_show_tip): Fix typo in docstring.
3509 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3511 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3514 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3516 * font.c (font_filter_properties): Add const to array elements of
3519 * font.h (font_filter_properties): Likewise.
3521 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3524 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3526 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
3528 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3529 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3530 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3531 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3532 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3534 2010-11-10 Glenn Morris <rgm@gnu.org>
3536 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3538 2010-11-09 Eli Zaretskii <eliz@gnu.org>
3540 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
3542 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
3544 * image.c (free_image): Don't garbage the frame here, since this
3545 function can be called while redisplaying (Bug#7210).
3546 (uncache_image): Garbage the frame here (Bug#6426).
3548 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
3550 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3551 parent is the root window. Check this after traversing window tree.
3553 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
3555 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
3557 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3558 before traversing window tree (Bug#5721).
3560 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3562 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3564 * xdisp.c (note_mode_line_or_margin_highlight):
3565 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
3567 2010-11-06 Eli Zaretskii <eliz@gnu.org>
3569 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3570 adjust width of tool-tip frame to the width of text, excluding the
3571 stretch glyph at the beginning of R2L glyph rows.
3573 * w32fns.c (Fx_show_tip): Likewise.
3575 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3577 * nsfont.m: Include termchar for new mouse-highlight.
3578 (nsfont_draw): Use MOUSE_HL_INFO.
3580 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3582 Unify mouse-highlight code for all GUI and TTY sessions.
3584 * term.c: Remove static mouse_face_* variables. All users
3586 (term_show_mouse_face, term_clear_mouse_face)
3587 (fast_find_position, term_mouse_highlight): Functions deleted.
3588 (tty_draw_row_with_mouse_face): New function.
3589 (term_mouse_movement): Call note_mouse_highlight instead of
3590 term_mouse_highlight.
3592 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3593 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3594 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3595 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3596 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3597 Replace Display_Info with Mouse_HLInfo everywhere where
3598 mouse_face_* members were accessed for mouse highlight purposes.
3600 * xterm.c (x_update_window_begin, x_update_window_end)
3601 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
3602 (handle_one_xevent, x_free_frame_resources, x_term_init):
3603 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
3604 members were accessed for mouse highlight purposes.
3606 * w32term.c (x_update_window_begin, x_update_window_end)
3607 (x_update_end, w32_read_socket, x_free_frame_resources)
3608 (w32_initialize_display_info): Replace Display_Info with
3609 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3610 for mouse highlight purposes.
3612 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3613 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3614 unless the frame is on a window-system.
3615 (get_tool_bar_item, handle_tool_bar_click)
3616 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3617 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3618 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3619 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3620 Replace Display_Info with Mouse_HLInfo everywhere where
3621 mouse_face_* members were accessed for mouse highlight purposes.
3622 (coords_in_mouse_face_p): Move prototype out of the
3623 HAVE_WINDOW_SYSTEM conditional.
3624 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3625 HAVE_WINDOW_SYSTEM block.
3626 (try_window_id) [HAVE_GPM || MSDOS]:
3627 Call x_clear_window_mouse_face.
3628 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
3629 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3630 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3631 calling draw_glyphs directly.
3632 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3633 (cursor_in_mouse_face_p, rows_from_pos_range)
3634 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3635 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3636 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3637 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3639 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3640 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3642 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
3643 (x_consider_frame_title, tool_bar_lines_needed):
3644 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
3645 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3646 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3647 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3650 * dispnew.c (mirror_make_current): Set Y coordinate of the
3651 mode-line and header-line rows.
3652 (init_display): Setup initial frame's output_data for text
3655 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3656 its own definition on msdos.c.
3658 * msdos.c (show_mouse_face, clear_mouse_face)
3659 (fast_find_position, IT_note_mode_line_highlight)
3660 (IT_note_mouse_highlight): Functions deleted.
3661 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3662 instead of IT_note_mouse_highlight.
3663 (draw_row_with_mouse_face, popup_activated): New functions.
3664 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3665 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3666 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3667 where mouse_face_* members were accessed for mouse highlight
3670 * msdos.h (initialize_msdos_display): Add prototype.
3672 * frame.h (MOUSE_HL_INFO): New macro.
3674 * lisp.h (Mouse_HLInfo): New data type.
3676 * xterm.h (struct x_display_info):
3677 * w32term.h (struct w32_display_info):
3678 * nsterm.h (struct ns_display_info):
3679 * termchar.h (struct tty_display_info): Use it instead of
3680 mouse_face_* members.
3682 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3684 (frame_to_window_pixel_xy, note_mouse_highlight)
3685 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3686 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3687 HAVE_WINDOW_SYSTEM conditional.
3688 (draw_row_with_mouse_face): Declare prototype.
3689 (tty_draw_row_with_mouse_face): Declare prototype.
3691 2010-11-05 Eli Zaretskii <eliz@gnu.org>
3693 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3694 Remove unused variables.
3696 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3698 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3699 logic pointed out by Eli Zaretskii.
3701 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3703 * coding.c (coding-category-list): Refer to set-coding-system-priority
3704 instead of the obsolete set-coding-priority in the doc string.
3706 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3708 * nsfont.m (nsfont_draw): Correct previous patch to return
3710 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3711 don't change the method signature, change the return.
3713 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3715 * nsfont.m (nsfont_draw)
3716 * nsimage.m (EmacsImage-setXBMColor:)
3717 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3719 2010-11-03 Julien Danjou <julien@danjou.info>
3721 * image.c (gif_load): Add support for transparency and specified
3724 2010-11-01 Kenichi Handa <handa@m17n.org>
3726 * dispextern.h (lookup_glyphless_char_display): Extern it.
3728 * termhooks.h (struct terminal): New member charset_list.
3730 * coding.c (Fset_terminal_coding_system_internal): Set the
3731 `charset_list' member of struct terminal.
3733 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
3734 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3736 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3737 (lookup_glyphless_char_display): Set it->what at the end.
3738 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3739 (last_glyphless_glyph_merged_face_id): Make them non-static.
3741 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3742 Fix the arg with_background for font->driver->draw.
3744 2010-11-01 Kenichi Handa <handa@m17n.org>
3746 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3747 Surround chp by parentheses.
3749 2010-11-01 Kenichi Handa <handa@m17n.org>
3751 Implement various display methods for glyphless characters.
3753 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3754 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3755 (Qzero_width): New variables.
3756 (THIN_SPACE_WIDTH): New macro.
3757 (lookup_glyphless_char_display): New function.
3758 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3759 (last_glyphless_glyph_merged_face_id): New variables.
3760 (get_next_display_element): Check glyphless characters.
3761 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3762 last_glyphless_glyph_face_id.
3763 (fill_glyphless_glyph_string): New function.
3764 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3765 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3766 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3767 (x_produce_glyphs): If a suitable font is not found, produce a
3768 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3769 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3770 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3772 (Vglyphless_char_display): Declare it as a Lisp variable.
3774 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
3775 (struct glyph): Change the size of the member "type" to 3.
3776 Add glyphless to the union slice and u.
3777 (enum display_element_type): Add IT_GLYPHLESS.
3778 (enum glyphless_display_method): New enum.
3779 (struct it): New member glyphless_method.
3780 (Vglyphless_char_display): Extern it.
3782 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3783 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3785 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
3786 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3788 * nsterm.m (ns_draw_glyph_string): Handle the case
3789 GLYPHLESS_GLYPH (the detail is not yet implemented).
3791 2010-10-31 Glenn Morris <rgm@gnu.org>
3793 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3795 * frame.c (syms_of_frame) <tool-bar-mode>:
3796 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3798 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
3800 * xterm.c (x_connection_closed): Print informative error message
3801 when aborting on GTK. This requires using shut_down_emacs
3802 directly instead of Fkill_emacs.
3804 2010-10-29 Eli Zaretskii <eliz@gnu.org>
3806 * emacs.c (main): Call syms_of_filelock unconditionally.
3808 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3809 clause, but keep part of it conditioned on CLASH_DETECTION.
3811 2010-10-29 Glenn Morris <rgm@gnu.org>
3813 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3814 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3815 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3816 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3817 Sync docs between X, W32, NS.
3819 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3820 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3822 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
3824 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3825 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3827 2010-10-26 Eli Zaretskii <eliz@gnu.org>
3829 * cmds.c (internal_self_insert): Don't insert if argument N is
3830 zero or negative. (Bug#7281)
3832 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3834 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3836 2010-10-25 Glenn Morris <rgm@gnu.org>
3838 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3840 2010-10-24 Glenn Morris <rgm@gnu.org>
3842 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3843 (Fx_window_property, Fx_file_dialog):
3844 * xfns.c (Fx_synchronize, Fx_change_window_property)
3845 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3847 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
3849 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3851 2010-10-24 Eli Zaretskii <eliz@gnu.org>
3853 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3855 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3856 Deprecate use as a boolean flag.
3858 2010-10-24 Jim Meyering <jim@meyering.net>
3860 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3862 2010-10-24 Glenn Morris <rgm@gnu.org>
3864 * w16select.c (syms_of_win16select) <selection-coding-system>:
3865 <next-selection-coding-system>:
3866 * w32select.c (syms_of_w32select) <selection-coding-system>:
3867 <next-selection-coding-system>:
3868 Sync docs with select.el.
3870 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3873 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3874 Sync doc with the xterm.c version.
3876 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3877 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3879 2010-10-23 Glenn Morris <rgm@gnu.org>
3881 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
3882 * frame.c (syms_of_frame) <menu-bar-mode>:
3883 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
3884 <hourglass-delay>: Sync docs with Lisp.
3886 2010-10-23 Eli Zaretskii <eliz@gnu.org>
3888 Implement mouse highlight for bidi-reordered lines.
3890 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3891 (mouse_face_from_string_pos): New function, replaces
3892 fast_find_string_pos.
3893 (note_mouse_highlight): Call it instead of fast_find_string_pos.
3894 (note_mode_line_or_margin_highlight): Support bidi-reordered
3895 strings and R2L glyph rows. Fix comments.
3896 (note_mouse_highlight): When bidi reordering is turned on in a
3897 buffer, call next-single-property-change and
3898 previous-single-property-change with last argument nil.
3899 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
3900 glyph that stands for no text beyond the line end.
3901 (row_containing_pos): Don't return too early when CHARPOS is in a
3902 bidi-reordered continued line. Return immediately when the first
3903 hit is found in a line that is not continued, or when an exact
3904 match for CHARPOS is found.
3905 (rows_from_pos_range): New function.
3906 (mouse_face_from_buffer_pos): Use it instead of calling
3907 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3908 function to support mouse highlight in bidi-reordered lines and
3909 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3910 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3911 that the former is always above the latter or identical to it.
3912 (show_mouse_face): Support drawing highlighted R2L lines.
3913 (coords_in_mouse_face_p): New function, bidi-aware.
3914 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3915 Call it instead of comparing with mouse-face members of dpyinfo.
3916 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3917 usage of hpos and vpos.
3919 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3921 * xrdb.c: Include keyboard.h for MOTIF.
3923 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3926 * xfns.c: Include Xm/TextF and Xm/List.
3927 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3928 Make ANSI prototypes.
3930 2010-10-22 Glenn Morris <rgm@gnu.org>
3932 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3933 Remove ccl and duplicate mouse.
3935 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
3937 * insdel.c (prepare_to_modify_buffer): Don't set
3938 saved-region-selection if modification hooks are disabled.
3940 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
3942 * cmds.c (Fdelete_char): Doc fix.
3944 2010-10-19 Ken Brown <kbrown@cornell.edu>
3946 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3948 2010-10-19 Kenichi Handa <handa@m17n.org>
3950 Fix incorrect font metrics when the same font is opened with
3951 different pixelsizes.
3953 * xftfont.c: Include composite.h.
3954 (xftfont_shape): New function.
3955 (syms_of_xftfont): Set xftfont_driver.shape.
3957 2010-10-18 Julien Danjou <julien@danjou.info>
3959 * frame.c (Fframe_pointer_visible_p):
3960 Add `frame-pointer-visible-p' to get the pointer visibility.
3962 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3964 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3965 non-"EAGAIN"-like error to signal to Emacs that the socket should
3968 2010-10-15 Eli Zaretskii <eliz@gnu.org>
3970 * unexcoff.c (make_hdr): Fix prototype according to changes in
3971 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3973 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3975 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3977 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3978 made building the X menu fail.
3979 (really-oldXMenu): Fix my previous fix.
3981 2010-10-14 Damyan Pepper <damyanp@gmail.com>
3983 Fix handling of font properties on Windows (bug#6303).
3984 * font.c (font_filter_properties): New function, refactored from
3985 ftfont_filter_properties.
3986 * font.h (font_filter_properties): Declare.
3987 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3988 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3989 (w32font_filter_properties): New function.
3990 (w32font_driver): Add w32font_filter_properties.
3992 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
3994 * font.c (Ffont_variation_glyphs):
3995 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3997 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
3999 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4000 * w32font.c (w32_generic_family):
4001 * w32inevt.c (key_event):
4002 * w32menu.c (fill_in_menu):
4003 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4004 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4005 * w32term.c (w32_read_socket): Make static.
4007 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4009 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4010 prototypes; all callers changed.
4012 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4014 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4016 (WIN32OBJ, FONTOBJ): Remove.
4017 (OBJ1): Redistribute object files with OBJ2.
4018 (LIBS, $(TEMACS)): Use TLIB2.
4019 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4020 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4022 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4024 * emacs.c (Vdynamic_library_alist)
4025 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4028 * lisp.h (Vdynamic_library_alist): Declare extern.
4030 * image.c (Vimage_library_alist)
4031 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4032 (lookup_image_type): Use Vdynamic_library_alist.
4033 (Finit_image_library): Doc fix.
4035 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4037 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4038 (lispdir): Remove trailing /, update all uses.
4040 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4042 * nsterm.m (Qleft): Declare.
4043 (ns_right_alternate_modifier): New variable.
4044 (NSRightAlternateKeyMask): New define.
4045 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4046 ns_right_alternate_modifier isn't Qleft.
4047 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4048 as emacs modifier for NSRightAlternateKeyMask.
4049 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4051 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4053 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4054 gnutls is ready, return EAGAIN as the errno.
4056 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4062 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4064 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4065 (PROFILING_LDFLAGS): Remove, not needed anymore.
4067 * Makefile.in: Use $(...) everywhere instead of ${...}.
4068 (CRT_DIR): Move near potential user.
4069 (START_FILE): Move near CRT_DIR, it might use it.
4071 * sysdep.c (LPASS8): Remove, unused.
4072 (emacs_ospeed): Change from being a global to a local in the only
4073 user: init_baud_rate.
4075 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4077 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4078 (emacs_gnutls_write): Remove the debuggin fsync call.
4079 (emacs_gnutls_read): Return -1 if we got an error from
4080 gnutls_read. This allows us to actually read lots of data from
4082 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4083 According to the documentation, this is correct, and it seems to
4086 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4088 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4090 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4092 * keyboard.c: Revert last change; it was not intended to be
4093 synchronized with the trunk.
4095 2010-10-08 Kenichi Handa <handa@m17n.org>
4097 * coding.c (complement_process_encoding_system): Fix previous change.
4099 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4101 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4102 (Fdbus_init_bus): ... here. (Bug#7113)
4104 2010-10-08 Glenn Morris <rgm@gnu.org>
4106 * buffer.c (before-change-functions, after-change-functions):
4107 Three-year overdue doc fix following 2007-08-13 change.
4109 2010-10-08 Kenichi Handa <handa@m17n.org>
4111 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4112 eol-format, inherit from the system's default.
4113 (complement_process_encoding_system): Make a new coding system
4114 inherit the original eol-format.
4116 2010-10-08 Kenichi Handa <handa@m17n.org>
4118 * coding.c (complement_process_encoding_system): New function.
4120 * coding.h (complement_process_encoding_system): Extern it.
4122 * callproc.c (Fcall_process): Complement the coding system for
4124 (Fcall_process_region): Complement the coding system for encoding
4125 the input to the process.
4127 * process.c (Fstart_process): Complement the coding system for
4129 (send_process): Complement the coding system for encoding what
4130 sent to the process.
4132 2010-10-08 Kenichi Handa <handa@m17n.org>
4134 * xfont.c (xfont_open): Fix setting of font->average_width from
4135 :avgwidth property (Bug#7123).
4137 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4139 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4142 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4143 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4144 has not defined SIGIO.
4146 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4148 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4149 draw the outermost line using the black relief, for legibility.
4150 Omit drawing the four corner pixels.
4152 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4154 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4155 (read_key_sequence): Inline echo_prompt.
4156 (echo_dash): Add a dash only if key is continued (Bug#7137).
4158 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4160 Remove O_RDONLY, O_WRONLY definitions, not needed.
4167 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4169 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4171 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4173 * gnutls.c: Add property list symbol holders.
4174 (emacs_gnutls_handshake): Clarify how sockets are passed to
4176 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4177 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4178 and keyfiles to be a list of file names. Default to "NORMAL" for
4179 the priority string. Improve logging.
4181 2010-10-03 Glenn Morris <rgm@gnu.org>
4183 * fileio.c (Vdirectory_sep_char): Remove.
4185 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4187 * termhooks.h: Remove #ifdef CONSP.
4189 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4191 Include <fcntl.h> unconditionally.
4200 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4203 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4205 * sysdep.c (flush_pending_output): Remove code, does not do
4206 anything on any platform.
4209 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4210 Remove select emulation, all systems support select.
4211 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4212 * process.c (create_process): Remove #if 0 code.
4214 Remove unused arguments for unexec.
4215 The third one is never used, and the last two are always passed as zero.
4216 * emacs.c (unexec): Add declaration.
4217 (Fdump_emacs): Only pass the first two arguments to unexec.
4219 * unexw32.c (unexec):
4220 * unexsol.c (unexec):
4221 * unexhp9k800.c (unexec):
4222 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4223 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4224 (find_section): Use const.
4225 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4226 (unexec_error): Declare it NO_RETURN.
4227 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4228 it as an argument, remove data_start and entry_address arguments, unused.
4229 (unexec): Remove bss_start, data_start and
4230 entry_address arguments.
4231 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4232 it as an argument, remove data_start and entry_address arguments, unused.
4233 (unexec): Remove bss_start, data_start and
4234 entry_address arguments.
4236 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4238 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4240 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4241 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4242 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4243 Fix typos in docstrings.
4244 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4245 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4247 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4249 * keyboard.c (command_loop_1): Make sure the mark is really alive
4250 before using it (Bug#7044).
4252 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4254 * makefile.w32-in (tags): Rename target to full-tags.
4256 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4258 * emacs.c (main): Remove !WINDOWSNT conditional.
4259 (Fkill_emacs): Don't mention exemption on MS-Windows.
4261 2010-10-02 Glenn Morris <rgm@gnu.org>
4263 * character.c (Fchar_bytes): Remove obsolete function.
4264 (syms_of_character): Remove Schar_bytes.
4266 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4267 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4269 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4270 (kill-emacs-hook): Doc fix.
4272 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4274 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4275 (parse_region): Rework to take regions instead of strings, and
4276 renamed to reflect that these are the libxml functions.
4278 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4280 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4281 screen dimensions in tty->Wcm.
4283 * xdisp.c (set_cursor_from_row): When the row is truncated and
4284 point is outside the range of displayed characters, position the
4285 cursor inside the scroll margin. (Bug#6349)
4287 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4289 Do not include stdlib.h and string.h, config.h does it.
4311 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4313 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4316 * process.c: Move #include <pty.h> earlier.
4317 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4318 (pty_name): Move definition later.
4320 * nsselect.m (syms_of_nsselect):
4321 * nsmenu.m (syms_of_nsmenu):
4322 * nsfns.m (syms_of_nsfns):
4323 * msdos.c (syms_of_msdos):
4325 * image.c (syms_of_image):
4326 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4328 * point.h: Remove, unused.
4330 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4332 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4333 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4334 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4336 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4338 * xml.c (parse_string): Use const.
4340 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4342 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4343 Also only override Vprint_level if it isn't already bound, and increase
4344 the level to 8 to produce more useful backtraces for bug reports.
4346 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4348 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4350 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4352 * w32console.c (vga_stdcolor_name): Remove unused function;
4353 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4355 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4357 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4358 (Fgnutls_boot): Start the handshake.
4359 (emacs_gnutls_read): Perform the handshake from the reader loop.
4360 (Fgnutls_boot): Remove some debugging messages.
4361 Change indentation throughout to use the Emacs style.
4362 (emacs_gnutls_handshake): Cast the fds to something that's
4363 possibly the expected length.
4364 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4366 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4368 * process.c (make_process): Set the gnutls_p field to zero by
4370 (read_process_output): Always call the gnutls_read function if the
4371 stream is a gnutls stream.
4372 (send_process): Ditto for writes.
4374 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4375 or write anything until the state is GNUTLS_STAGE_READY.
4376 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4378 2010-09-29 Eli Zaretskii <eliz@gnu.org>
4380 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4382 (handle_invisible_prop, iterate_out_of_display_property)
4383 (next_element_from_buffer): If bidi_it.first_elt is set, call
4384 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4387 * print.c (print_object): Fix format string and argument types for
4388 printing a Lisp_Misc_Marker.
4390 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4391 (load_overlay_strings, get_overlay_strings_1)
4392 (get_overlay_strings, forward_to_next_line_start)
4393 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4394 (get_next_display_element, next_element_from_string)
4395 (next_element_from_c_string, next_element_from_buffer)
4396 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4397 (message_dolog, message_log_check_duplicate, message2_nolog)
4398 (message3, message3_nolog, vmessage, set_message, set_message_1)
4399 (hscroll_window_tree, text_outside_line_unchanged_p)
4400 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4401 (find_last_unchanged_at_beg_row)
4402 (find_first_unchanged_at_end_row, row_containing_pos)
4403 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4404 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4405 Use EMACS_INT for buffer and string positions.
4407 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4408 (row_containing_pos): Adjust prototype.
4410 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4411 (message2_nolog, set_message): Adjust prototypes.
4413 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4415 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4416 (Fgnutls_boot): Use SDATA.
4417 (Fgnutls_handshake): Remove unused var `max_log_level'.
4419 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4421 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4424 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4426 * xgselect.c (xg_select): Clear file descriptors not set from
4429 * process.c (wait_reading_process_output): Add missing FD_CLR
4430 for write_mask (must mirror connect_wait_mask).
4432 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4434 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4436 (Fgnutls_boot): Use changed process members. Use log level with a
4437 function parameter to set it. Bring back Emacs-level debugging
4438 messages at log level 1 and 2.
4440 * process.c (make_process): Initialize gnutls_log_level.
4442 * process.h: Add gnutls_log_level and rename x509_cred and
4443 anon_cred to have the gnutls_ prefix for consistency.
4445 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4447 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
4449 * w32.c (g_b_init_get_sid_identifier_authority)
4450 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4452 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4453 (init_winsock): Remove useless assignment.
4454 (open_process_token, get_token_information, lookup_account_sid)
4455 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4456 (get_security_descriptor_owner, get_security_descriptor_group)
4457 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4458 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4459 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4460 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4461 (unc_volume_file_attributes, convert_from_time_t)
4462 (create_toolhelp32_snapshot, process32_first, process32_next)
4463 (open_thread_token, impersonate_self, revert_to_self)
4464 (get_process_memory_info, get_process_working_set_size)
4465 (global_memory_status, global_memory_status_ex, socket_to_fd)
4466 (shutdown_handler): Make static.
4468 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4470 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4471 (xd_pending_messages): Functions removed.
4472 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4473 order to be compatible with add_read_fd. Determine bus from data,
4474 and call xd_read_message just for this bus.
4475 (xd_add_watch): Use xd_read_queued_messages as callback function.
4478 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4480 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4482 * gnutls.c (gnutls_log_function): Add more debugging.
4483 (emacs_gnutls_read): Don't infloop while reading.
4485 2010-09-27 Kenichi Handa <handa@m17n.org>
4487 These changes are to remove restriction on the number of glyphs in
4490 * dispextern.h (struct glyph): Change the member "slice" to union.
4491 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
4492 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4494 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4495 instead of glyph->slice.
4496 (marginal_area_string): Likewise.
4498 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4500 (append_composite_glyph): Likewise.
4502 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4504 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4505 (append_composite_glyph): Likewise.
4506 (fill_image_glyph_string): Use glyph->slice.img instead of
4508 (append_glyph, produce_image_glyph, append_stretch_glyph)
4509 (note_mouse_highlight): Likewise.
4511 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4513 * process.c (add_keyboard_wait_descriptor)
4514 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4515 (wait_reading_process_output): Don't pass write_mask to select
4516 if SELECT_CANT_DO_WRITE_MASK is defined.
4517 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4519 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4520 (delete_write_fd): Declare.
4522 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4523 (write_mask): New variable.
4524 (max_input_desc): Rename from max_keyboard_desc.
4525 (fd_callback_info): New variable.
4526 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4528 (Fmake_network_process): FD_SET write_mask.
4529 (deactivate_process): FD_CLR write_mask.
4530 (wait_reading_process_output): Connecting renamed to Writeok.
4531 check_connect removed. check_write is new. Remove references to gpm.
4532 Use Writeok/check_write unconditionally (i.e. no #ifdef
4533 NON_BLOCKING_CONNECT) instead of Connecting.
4534 Loop over file descriptors and call callbacks in fd_callback_info
4535 if file descriptor is ready for I/O.
4536 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4537 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4538 (keyboard_bit_set): Use max_input_desc.
4539 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4540 Remove #ifdef subprocesses. Use max_input_desc.
4541 (init_process): Initialize write_mask and fd_callback_info.
4543 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4545 * dbusbind.c: Include process.h.
4546 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4547 (xd_read_message_1): New functions.
4548 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4549 Handle watch for both read and write.
4550 (Fdbus_init_bus): Also register xd_toggle_watch.
4551 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4552 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4553 to dbus_connection_flush.
4554 (xd_read_message): Move most of the code to xd_read_message_1.
4555 Call xd_read_message_1 until status is COMPLETE.
4557 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4559 * term.c: Do not include sys/ioctl.h, not needed.
4560 (init_tty): Reorder code to reduce the number of #ifdefs.
4563 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4565 * process.h: Set up GnuTLS support.
4567 * process.c (make_process, Fstart_process)
4568 (read_process_output, send_process): Set up GnuTLS support for
4569 process input/output file descriptors.
4571 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4573 * gnutls.c: The source code for GnuTLS support in Emacs.
4575 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4577 * config.in: Set up GnuTLS support.
4579 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4580 (obj, LIBES): Set up GnuTLS support.
4582 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
4584 * w32.c (get_emacs_configuration_options): Fix previous change.
4586 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
4588 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4589 alive before using it (Bug#6977).
4591 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4593 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4595 * dispextern.h: EMACS_INT/int fixup.
4597 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4600 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4602 2010-09-25 Eli Zaretskii <eliz@gnu.org>
4604 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4605 (Fselect_window, window_scroll_pixel_based)
4606 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4607 Use EMACS_INT for buffer positions.
4609 * textprop.c (validate_interval_range, interval_of)
4610 (property_change_between_p, Fadd_text_properties)
4611 (set_text_properties_1, Fremove_text_properties)
4612 (Fremove_list_of_text_properties, Ftext_property_any)
4613 (Ftext_property_not_all, copy_text_properties)
4614 (text_property_list, extend_property_ranges)
4615 (verify_interval_modification): Use EMACS_INT for buffer
4618 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4619 for buffer positions.
4621 * process.c (read_process_output, send_process)
4622 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4623 and string positions and size.
4625 * print.c (print_object, print_string, strout): Use EMACS_INT for
4628 * minibuf.c (string_to_object): Use EMACS_INT for string position
4631 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4633 * lread.c <read_from_string_index, read_from_string_index_byte>
4634 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4635 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4636 buffer positions and string length.
4638 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4640 (echo_truncate, adjust_point_for_property, read_char)
4641 (gen_help_event, make_lispy_event, modify_event_symbol)
4642 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4643 for buffer positions and string length.
4645 * keyboard.h (gen_help_event): Adjust prototype.
4647 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4649 * commands.h <last_point_position>: Declare EMACS_INT.
4651 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4652 (truncate_echo_area): Accept EMACS_INT argument.
4654 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4656 * lisp.h (truncate_echo_area): Adjust prototype.
4658 * composite.c (composition_adjust_point): Return EMACS_INT.
4660 * composite.h (composition_adjust_point): Adjust prototype.
4662 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
4664 * process.c (Fmake_network_process): When arg :host is 'local,
4665 use address 127.0.0.1, not name "localhost". (Bug#6781)
4667 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4669 * indent.c (Fcurrent_indentation, indented_beyond_p)
4670 (compute_motion): Use EMACS_INT for buffer position variables.
4672 * lisp.h (indented_beyond_p): Adjust prototype.
4674 * buffer.c (overlay_strings): Return EMACS_INT.
4676 * buffer.h (overlay_strings): Adjust prototype.
4678 * region-cache.c (pp_cache): Adjust format to arguments.
4680 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4681 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4682 (verror): Use EMACS_INT for size of allocated buffer.
4684 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4687 * xdisp.c (redisplay_internal, try_window_id)
4688 (set_cursor_from_row, find_first_unchanged_at_end_row):
4689 Use EMACS_INT for buffer positions.
4691 * dispextern.h (set_cursor_from_row): Adjust prototype.
4693 * dispnew.c (increment_matrix_positions)
4694 (increment_row_positions, copy_glyph_row_contents)
4695 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4698 * dispextern.h (mode_line_string, marginal_area_string)
4699 (increment_matrix_positions, increment_row_positions):
4702 * data.c (Faref, Faset): Use EMACS_INT for string length and
4705 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4706 characters to insert.
4708 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4711 * syntax.c (scan_words, update_syntax_table)
4712 (prev_char_comend_first, back_comment, skip_chars)
4713 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4714 Use EMACS_INT for buffer and string positions.
4716 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4718 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4721 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4723 * scroll.c (calculate_scrolling, line_ins_del)
4724 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4727 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4728 (region_cache_backward, region_cache_forward)
4729 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4732 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4734 * eval.c (verror): Fix EMACS_INT/int conversion.
4736 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
4737 (print_preprocess, print_check_string_charset_prop)
4738 (print_object): Fix EMACS_INT/int conversion.
4740 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4742 2010-09-24 Eli Zaretskii <eliz@gnu.org>
4744 * callproc.c (Fcall_process): Use EMACS_INT for count of
4745 characters read from the subprocess.
4747 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4749 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4752 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4753 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4755 (advance_to_char_boundary, Fset_buffer_multibyte)
4756 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4757 (overlay_touches_p, record_overlay_string, overlay_strings)
4758 (recenter_overlay_lists, fix_start_end_in_overlays)
4759 (modify_overlay, Fmove_overlay, report_overlay_modification)
4760 (evaporate_overlays): Use EMACS_INT for buffer positions.
4762 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4765 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4768 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4769 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4770 (Fsubstring_no_properties, substring_both, Ffillarray)
4771 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4772 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4773 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4774 (Fmd5): Use EMACS_INT for buffer and string positions and length
4775 variables and arguments.
4777 * lisp.h (substring_both): Adjust prototype.
4779 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
4781 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4782 * w32fns.c (clipboard_sequence_fn): Don't declare.
4783 (globals_of_w32fns): Don't initialize it.
4785 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
4787 * syntax.c (back_comment): Detect the case where a 1-char comment
4788 starter is also the 2nd char of a 2-char comment ender.
4790 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
4792 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4794 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4796 * eval.c (verror): EMACS_INT/int cleanup.
4798 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4799 unwind_protect more than 2GB worth of functions.
4801 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4803 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4804 string and avoid compiler warnings.
4805 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4808 * lread.c (oblookup): EMACS_INT/int cleanup.
4810 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4812 2010-09-23 Eli Zaretskii <eliz@gnu.org>
4814 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4816 * lisp.h (clip_to_bounds): Adjust prototype.
4818 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4820 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4822 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4824 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4826 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4829 * lisp.h: Change the definition of all marker.c functions that
4830 take and return buffer stuff to be EMACS_INT instead of int.
4832 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4833 (buf_charpos_to_bytepos, bytepos_to_charpos)
4834 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4835 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4836 for all buffer positions.
4838 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
4840 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4841 (split_interval_right, find_interval, next_interval)
4842 (delete_node, delete_interval, interval_deletion_adjustment)
4843 (adjust_intervals_for_deletion, merge_interval_right)
4844 (merge_interval_left, graft_intervals_into_buffer)
4845 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4847 * intervals.h (traverse_intervals): Update prototype.
4849 2010-09-23 Eli Zaretskii <eliz@gnu.org>
4851 * indent.c (compute_motion): Use EMACS_INT for arguments to
4852 region_cache_forward.
4854 * region-cache.c (struct boundary, struct region_cache):
4855 Use EMACS_INT for positions.
4856 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4857 (delete_cache_boundaries, set_cache_region)
4858 (invalidate_region_cache, know_region_cache)
4859 (region_cache_forward, region_cache_backward, pp_cache):
4860 Use EMACS_INT for buffer positions.
4862 * region-cache.h (know_region_cache, invalidate_region_cache)
4863 (region_cache_forward, region_cache_backward): Adjust prototypes.
4865 * search.c (string_match_1, fast_c_string_match_ignore_case)
4866 (looking_at_1, scan_buffer, scan_newline)
4867 (find_next_newline_no_quit, find_before_next_newline)
4868 (search_command, trivial_regexp_p, search_buffer, simple_search)
4869 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4870 and string positions and length.
4872 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4873 (find_before_next_newline): Adjust prototypes.
4875 * editfns.c (transpose_markers, update_buffer_properties)
4876 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4877 (get_pos_property, Fconstrain_to_field)
4878 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4879 (Fchar_after, Fchar_before, Finsert_char)
4880 (Finsert_buffer_substring, Fcompare_buffer_substrings)
4881 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4882 Use EMACS_INT for buffer and string position variables.
4883 (Finsert_char): Protect against too large insertions.
4885 * lisp.h (clip_to_bounds): Adjust prototype.
4887 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4888 (balance_an_interval, split_interval_right, split_interval_left)
4889 (find_interval, next_interval, update_interval)
4890 (adjust_intervals_for_insertion, delete_node, delete_interval)
4891 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4892 (offset_intervals, merge_interval_right, merge_interval_left)
4893 (graft_intervals_into_buffer, adjust_for_invis_intang)
4894 (move_if_not_intangible, get_local_map, copy_intervals)
4895 (copy_intervals_to_string, compare_string_intervals)
4896 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
4897 and for interval tree size.
4899 * intervals.h (traverse_intervals, split_interval_right)
4900 (split_interval_left, find_interval, offset_intervals)
4901 (graft_intervals_into_buffer, copy_intervals)
4902 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4903 (update_interval): Adjust prototypes.
4905 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4906 Use EMACS_INT for buffer position variables and arguments.
4908 * composite.c (get_composition_id, find_composition)
4909 (run_composition_function, compose_text)
4910 (composition_gstring_width, autocmp_chars)
4911 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4912 for buffer positions and string length variables and arguments.
4914 * composite.h (get_composition_id, find_composition, compose_text)
4915 (composition_gstring_width): Adjust prototypes.
4917 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4919 * xdisp.c (store_mode_line_noprop, display_mode_element):
4920 Use EMACS_INT for string positions.
4922 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4925 * intervals.h (get_property_and_range): Adjust prototype.
4927 * character.c (parse_str_as_multibyte, str_as_multibyte)
4928 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
4929 (string_count_byte8, string_escape_byte8, c_string_width)
4930 (strwidth, lisp_string_width, multibyte_chars_in_text):
4931 Use EMACS_INT for string length variables and arguments.
4933 * character.h (parse_str_as_multibyte, str_as_multibyte)
4934 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
4935 (c_string_width, strwidth, lisp_string_width):
4938 * font.c (font_intern_prop): Use EMACS_INT for string length
4941 * font.c (font_intern_prop): Use EMACS_INT for string length
4944 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4947 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4948 (Fmake_string): Protect against too large strings.
4949 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4950 (live_misc_p): Use ptrdiff_t instead of int for pointer
4952 (string_bytes, check_sblock, check_string_free_list)
4953 (allocate_string_data, compact_small_strings, Fmake_string)
4954 (Fmake_bool_vector, make_string, make_unibyte_string)
4955 (make_multibyte_string, make_string_from_bytes)
4956 (make_specified_string_string, Fmake_list, Fmake_vector):
4957 Use EMACS_INT for string length variables and arguments.
4958 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4959 (Fpurecopy): Use EMACS_INT for string size.
4960 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4963 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4964 (make_string_from_bytes, make_specified_string_string)
4965 (make_pure_string, string_bytes, check_point_in_composition):
4968 2010-09-22 Eli Zaretskii <eliz@gnu.org>
4970 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4971 (check_translation): Use EMACS_INT for buffer positions and
4974 * undo.c (record_marker_adjustment, record_delete)
4975 (record_change, record_point, record_insert)
4976 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4979 * lisp.h (record_marker_adjustment, record_delete)
4980 (record_change, record_point, record_insert)
4981 (record_property_change, Fprimitive_undo): Adjust prototypes.
4983 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
4984 Eli Zaretskii <eliz@gnu.org>
4986 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4988 2010-09-22 Eli Zaretskii <eliz@gnu.org>
4990 * minibuf.c (Fminibuffer_contents)
4991 (Fminibuffer_contents_no_properties)
4992 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4995 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4998 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4999 (allocate_string_data): Accept EMACS_INT for string length.
5001 * editfns.c (Ffield_string, Ffield_string_no_properties)
5002 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5003 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5004 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5005 (Ffield_end): Use EMACS_INT for buffer positions.
5007 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5010 * lisp.h (allocate_string_data, make_uninit_string)
5011 (make_uninit_multibyte_string, make_buffer_string)
5012 (make_buffer_string_both): Adjust prototypes.
5014 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5016 * xml.c: Switch to GNU indentation.
5017 (make_dom): Change parse tree format to match xml.el.
5018 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5019 (Fxml_parse_string_internal): Rename from xml-parse-string.
5021 2010-09-22 Kenichi Handa <handa@m17n.org>
5023 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5024 only if we are not at a composition.
5025 (set_iterator_to_next): Give it->end_charpos to
5026 composition_compute_stop_pos.
5027 (set_iterator_to_next, next_element_from_buffer): Likewise.
5029 * dispnew.c (buffer_posn_from_coords): Fix position when the
5030 current display element is a grapheme cluster in bidi-reordered
5033 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5035 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5036 the regions may overlap.
5038 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5040 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5042 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5044 * emacs.c: Do not include sys/ioctl.h, not needed.
5046 * doprnt.c: Do not include stdlib.h, config.h does it.
5047 Move #include before macro definition.
5049 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5051 * Makefile.in (temacs): Link using $(CC) not $(LD).
5052 (LD_FIRSTFLAG): Define using autoconf.
5055 Remove HAVE_TERMIOS definitions.
5056 * s/usg5-4-common.h (HAVE_TERMIOS):
5057 * s/template.h (HAVE_TERMIOS):
5058 * s/gnu-linux.h (HAVE_TERMIOS):
5059 * s/darwin.h (HAVE_TERMIOS):
5060 * s/cygwin.h (HAVE_TERMIOS):
5061 * s/bsd-common.h (HAVE_TERMIOS):
5062 * s/aix4-2.h (HAVE_TERMIOS):
5063 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5064 defined on all non-MS platforms.
5065 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5067 * xterm.c (xt_action_hook): Use const.
5069 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5071 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5072 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5073 (gethostname) [!HAVE_SOCKETS]: Remove.
5074 (SOCK_REPLACE_HANDLE): Remove macro.
5075 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5076 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5077 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5078 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5080 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5082 * deps.mk (xml.o): Add dependencies.
5084 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5085 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5087 * bidi.c (bidi_paragraph_init): Accept an additional argument
5088 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5089 search back until a paragraph with a strong directional character
5090 is found, and use that to determine paragraph's base direction.
5092 * dispextern.h (bidi_paragraph_init): Update prototype.
5094 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5096 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5097 of w32api >= 3.15. (Bug#6989)
5099 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5101 * process.c (wait_reading_process_output): Don't message about
5102 accept-process-output unless the time limit really is zero.
5104 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5106 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5107 int/Lisp_Object mixup).
5109 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5111 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5114 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5116 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5117 bar's pixel width to Lisp (Bug#7048).
5119 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5121 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5123 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5125 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5126 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5128 2010-09-17 Kenichi Handa <handa@m17n.org>
5130 * ftfont.c (ftfont_check_otf): Fix previous change.
5132 2010-09-14 Kenichi Handa <handa@m17n.org>
5134 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5135 existence of GSUB or GPOS.
5137 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5139 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5141 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5143 * xml.c (parse_buffer): Rename to parse_string(), since that's
5145 (parse_string): Return nil when the document can't be parsed.
5147 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5149 * xterm.c (get_current_vm_state): New function.
5150 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5151 want_fullscreen so set_wm_state calls are few (Bug#7013).
5152 (x_handle_net_wm_state): Move code to get_current_vm_state and
5155 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5157 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5159 2010-09-14 Kenichi Handa <handa@m17n.org>
5161 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5162 we may use designation or locking-shift.
5164 2010-09-14 Kenichi Handa <handa@m17n.org>
5166 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5167 sequence when the source is multibyte.
5169 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5171 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5172 Don't make first argument optional. Doc fix.
5174 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5176 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5177 parameters for the doc string.
5179 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5181 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5183 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5185 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5186 (syms_of_fns): Don't defsubr Sy_or_n_p.
5187 * lisp.h: Don't declare Fy_or_n_p.
5188 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5190 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5192 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5194 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5197 (Fhtml_parse_buffer): New function to interface to the libxml2
5198 html parsing function.
5200 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5202 * biditype.h: Regenerate.
5204 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5206 * nsimage.m (ns_load_image): Check argument types.
5208 * image.c: Remove all uses of gcpro.
5209 (xpm_load): Check all lisp types.
5210 (pbm_load): Likewise.
5211 (png_load): Likewise.
5212 (jpeg_load): Likewise.
5213 (tiff_load): Likewise.
5214 (gif_load): Likewise.
5215 (imagemagick_load_image): Likewise.
5216 (imagemagick_load): Likewise.
5217 (svg_load): Likewise.
5218 (gs_load): Likewise.
5220 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5222 * w32uniscribe.c (uniscribe_shape): Update commentary.
5223 Don't try to reorder grapheme clusters, since LGSTRING should always
5224 hold them in the logical order.
5225 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5226 return glyph codes in the logical order.
5228 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5230 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5231 (imagemagick_load_image): Fix type mismatch.
5232 (Fimagemagick_types): Likewise. Doc fix.
5234 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5236 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5238 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5240 * xselect.c: Remove declaration of cut-buffer objects and functions.
5241 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5242 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5243 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5244 (Fx_rotate_cut_buffers_internal): Remove.
5245 (syms_of_xselect): Remove defsubr of above.
5246 Remove intern of QCUT_BUFFERn.
5248 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5250 * cmds.c (Vblink_paren_function): Remove.
5251 (internal_self_insert): Make it insert N chars at a time.
5252 Don't call blink-paren-function.
5253 (Fself_insert_command): Adjust accordingly.
5254 (syms_of_cmds): Don't declare blink-paren-function.
5256 2010-08-31 Kenichi Handa <handa@m17n.org>
5258 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5261 * term.c (encode_terminal_code): Fix the previous change.
5262 (produce_glyphs): Don't set it->char_to_display here.
5263 Don't handle unibyte-display-via-language-environment here.
5264 (produce_special_glyphs): Set temp_it.char_to_display before
5265 calling produce_glyphs.
5267 * xdisp.c (get_next_display_element): Set it->char_to_display
5268 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5270 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5271 calling PRODUCE_GLYPHS.
5272 (append_space_for_newline): Save and store it->char_to_display.
5273 Set it->char_to_display before calling PRODUCE_GLYPHS.
5274 (extend_face_to_end_of_line): Set it->char_to_display before
5275 calling PRODUCE_GLYPHS.
5276 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5277 character to its byte value.
5278 (get_char_glyph_code): New function.
5279 (produce_stretch_glyph): Set it2.char_to_display too before
5280 calling x_produce_glyphs.
5281 (x_produce_glyphs): Simplify by using the same code for ASCII and
5282 non-ASCII characters. Don't set it->char_to_display here.
5283 Don't handle unibyte-display-via-language-environment here. For a
5284 character of no glyph, use font->space_width instead of FONT_WIDTH.
5286 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5288 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5290 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5292 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5294 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5296 * marker.c (Fcopy_marker): Make the first arg optional.
5298 2010-08-30 Kenichi Handa <handa@m17n.org>
5300 * composite.c (composition_update_it): Fix computing of
5303 2010-08-29 Kenichi Handa <handa@m17n.org>
5305 * term.c (encode_terminal_code): Encode byte chars to the
5306 corresponding bytes.
5308 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5310 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5312 2010-08-26 Kenichi Handa <handa@m17n.org>
5314 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5315 on calling composition_compute_stop_pos.
5317 2010-08-25 Kenichi Handa <handa@m17n.org>
5319 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5322 * composite.c (composition_compute_stop_pos): Don't break
5324 (composition_reseat_it): Likewise. Fix calculation of character
5325 position starting a composition.
5326 (Fcomposition_get_gstring): Don't limit the number of components
5327 for automatic composition.
5329 2010-08-25 Kenichi Handa <handa@m17n.org>
5331 * composite.c (composition_compute_stop_pos): In forward search,
5332 pay attention to the possibility that some character after ENDPOS
5333 will be composed with charactrs before ENDPOS.
5335 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5337 * keyboard.c (command_loop_1): Don't clobber primary selection
5338 during handle-switch-frame (Bug#6872).
5340 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5342 * dbusbind.c: Accept UNIX domain sockets as bus address.
5343 (Fdbus_close_bus): New function.
5344 (Vdbus_registered_buses): New variable.
5345 (xd_initialize): Implement string as bus address.
5346 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5347 (Fdbus_get_unique_name, Fdbus_call_method)
5348 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5349 (Fdbus_method_error_internal, Fdbus_send_signal)
5350 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5351 check. This is done in xd_initialize_bus. Adapt doc string, if
5353 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5354 Vdbus_registered_buses.
5355 (Vdbus_registered_objects_table): Create hash.
5357 2010-08-22 Juri Linkov <juri@jurta.org>
5359 * keyboard.c (Fexecute_extended_command): Move reading a command name
5360 with `completing-read' to a new Elisp function `read-extended-command'.
5361 Call it to read a command to `function' (bug#5364, bug#5214).
5363 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5365 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5367 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5369 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5370 instead of SAFE_ALLOCA.
5372 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5374 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5377 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5379 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5381 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5383 * doc.c (Fsnarf_documentation): Initialize skip_file before
5386 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
5388 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5390 (HAVE_TERMIO): Remove.
5392 2010-08-22 Eli Zaretskii <eliz@gnu.org>
5394 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5396 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5399 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5400 it's done in nt/config.nt.
5402 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5404 * unexcoff.c (report_error, make_hdr, write_segment)
5405 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5406 Convert argument lists and prototypes to ANSI C.
5407 (make_hdr, write_segment): Remove unused variables.
5408 (unexec): Remove commented-out line. Initialize `new' to shut up
5411 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5413 Simplify termio code.
5414 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5415 HAVE_TERMIO code is obsolete.
5416 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5417 * systty.h: Do not define HAVE_TCATTR.
5418 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5419 Do not define EMACS_HAVE_TTY_PGRP. Only define
5420 EMACS_GET_TTY_PGRP for !DOS_NT.
5421 * sysdep.c: Include sysselect.h unconditionally. Do not include
5422 sys/ioctl.h and termios.h, systty.h does it.
5423 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5424 (init_baud_rate): Remove HAVE_TERMIO code.
5425 (child_setup_tty): Remove HAVE_TERMIO code.
5426 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5427 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5428 (new_ltchars, new_tchars): Remove, unused.
5429 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5430 code. Remove special casing for __mips__, it was a no-op.
5431 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5432 (init_sys_modes): Remove HPUX special case.
5433 * process.c: Include stdlib.h unconditionally. Do not include
5434 fcntl.h, systty.h does it. Remove conditional code for
5435 HAVE_SERIAL, it is always true.
5436 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5437 always true when SIGNALS_VIA_CHARACTERS is true.
5438 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5439 !WINDOWSNT means HAVE_TERMIOS.
5440 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5441 conditional, which is true for all HAVE_TERMIOS systems.
5442 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5443 instead of HAVE_TERMIOS.
5444 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5445 EMACS_HAVE_TTY_PGRP.
5446 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5447 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5450 2010-08-21 Eli Zaretskii <eliz@gnu.org>
5452 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5453 mirroring pixel positions.
5455 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5457 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5459 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5460 malloc_sbrk_used, nothing uses them.
5462 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5463 defined, unconditionally defined in lisp.h.
5465 * term.c: Do not include <termios.h>, systty.h does it.
5467 * s/unixware.h (HAVE_TCATTR):
5468 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5469 systty.h defines it when HAVE_TERMIOS is defined.
5471 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5473 * dispnew.c (buffer_posn_from_coords): Fix last change for text
5474 terminals: add one-character offset for R2L lines.
5476 * emacs.c <emacs_version>: Add a comment regarding
5477 msdos/mainmake.v2's dependency on the syntax of this declaration.
5479 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5481 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5482 position for R2L lines by mirroring the pixel position wrt the
5483 text are box. Improve commentary.
5485 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5487 * image.c (imagemagick_clear_image): Remove debugging output.
5489 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5491 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5492 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5493 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5495 (syms_of_cmds): Initialize the new vars.
5497 2010-08-19 Jason Rumney <jasonr@gnu.org>
5499 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5501 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5503 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5505 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5507 2010-08-18 Eli Zaretskii <eliz@gnu.org>
5509 * xterm.c (x_draw_bar_cursor):
5510 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5511 R2L, draw the bar cursor on its right rather than on its left.
5513 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5515 * eval.c (Fdefmacro): Only obey one declaration.
5517 * casefiddle.c (casify_region): Setup gl_state.
5519 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5521 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5523 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5525 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
5527 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
5529 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5530 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5531 QPRIMARY => NXPrimaryPboard.
5532 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5533 NXPrimaryPboard => QPRIMARY.
5534 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5535 NXSecondaryPboard = SecondarySelection.
5536 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5538 2010-08-18 Joakim Verona <joakim@verona.se>
5540 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5542 (imagemagick_image_p): New function to test for ImageMagic image.
5543 (imagemagick_load): New function to load ImageMagick image.
5544 (imagemagick_load_image): New function, helper for imagemagick_load.
5545 (imagemagick-types): New function.
5546 (Qimagemagick): New Lisp_object.
5547 (imagemagick-render-type): New variable, decides which renderer to use.
5549 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5551 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5554 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5556 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5557 x_set_tool_bar_position handler.
5559 2010-08-17 Eli Zaretskii <eliz@gnu.org>
5561 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5562 x_set_tool_bar_position handler, needed to support changes from
5563 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5565 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5567 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
5568 declaration (Bug#6863).
5569 (syms_of_nsselect): Don't intern QPRIMARY.
5571 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5573 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5575 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
5577 * keyboard.c (command_loop_1): Avoid setting selection twice,
5578 since it's done in deactivate-mark as well.
5579 (Vselect_active_regions): Change default to t. Replace `lazy'
5580 with non-default value `only', meaning only set PRIMARY for
5581 temporarily active regions.
5583 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5584 select-active-regions.
5586 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5588 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5591 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5593 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5595 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5597 * keyboard.c (parse_tool_bar_item): malloc buf.
5598 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5601 2010-08-14 Eli Zaretskii <eliz@gnu.org>
5603 * xterm.c (x_draw_stretch_glyph_string):
5604 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5605 the cursor on the right edge of the stretch glyph.
5607 * xdisp.c (window_box_right_offset, window_box_right):
5610 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5611 direction when point is inside a run of whitespace characters.
5613 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5615 2010-08-14 Jason Rumney <jasonr@gnu.org>
5617 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5619 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
5621 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5623 2010-08-13 Jason Rumney <jasonr@gnu.org>
5625 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5626 (MessageBoxW_Proc): New function typedef.
5627 (unicode-message-box): New function pointer.
5628 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
5630 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5632 * frame.h (Qtool_bar_position): Declare.
5634 * xfns.c (Fx_create_frame): Call x_default_parameter for
5637 2010-08-13 Eli Zaretskii <eliz@gnu.org>
5639 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5640 (report_error, report_error_1): Ditto.
5641 (write_segment): Remove "#if 0" unused code.
5642 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5643 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5644 (start_of_text): Remove unused function (was used only if NO_REMAP
5647 * msdos.c (IT_set_face): Fix format string to match argument
5649 (IT_write_glyphs, IT_note_mode_line_highlight)
5650 (IT_set_frame_parameters): Remove unused variables.
5651 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5652 (IT_set_terminal_modes): Disambiguate expression in if clause.
5653 (Fmsdos_remember_default_colors): Return Qnil.
5654 (IT_set_frame_parameters): Add parens to disambiguate boolean
5655 expression for logging the cursor type to termscript.
5656 (keyboard_layout_list, keypad_translate_map)
5657 (grey_key_translate_map): Add braces in inner initializers.
5658 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5659 (dos_rawgetc): Remove unused label.
5660 (XMenuActivate): Add braces to remove ambiguous `else'.
5661 (dos_ttraw): Always return a value.
5663 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5665 * dosfns.h (x_set_title): Declare.
5667 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5668 Remove unused variables.
5670 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5672 (init_dosfns): Declare get_lim_data.
5673 (system_process_attributes): Declare Fget_internal_run_time.
5675 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5676 list to be consistent with menu.h.
5678 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5679 warnings due to mixing of "char *" and "const char *".
5681 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5683 Introduce a new comment style "c" flag.
5684 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5685 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5686 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5687 (syntax_prefix_flag_p): New function.
5688 (Fstring_to_syntax): Understand new "c" flag.
5689 (Finternal_describe_syntax_value): Recognize new flag; use the
5690 SYNTAX_FLAGS_* macros.
5691 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5692 comment style to accomodate the new styles.
5693 (back_comment, forw_comment, Fforward_comment, scan_lists)
5694 (scan_sexps_forward): Update code to obey the new comment style flag.
5696 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5698 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5700 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5702 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5704 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
5706 * gtkutil.h (xg_check_special_colors): Declare.
5708 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5709 (xg_create_frame_widgets): Connect theme name changes to
5712 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5713 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5714 (x_term_init): Use char[] display_opt and name_opt instead of
5715 string literal. file is const char*.
5717 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5718 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5719 props. Free them at the end.
5721 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5723 * xrdb.c (get_system_app): Make path const and use char *p for
5726 * xmenu.c (Fx_popup_dialog): error_name is const char*.
5727 (xmenu_show): error parameter is const char **. pane_string is const
5729 (button_names): Is const char *.
5730 (xdialog_show): error_name and pane_string is const.
5732 * process.h (synch_process_death): Is const char*.
5734 * w32menu.c (w32_menu_show):
5735 * nsmenu.m (ns_menu_show): error parameter is const char **.
5737 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5740 * menu.c (Fx_popup_menu): error_name is const.
5742 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5743 with unsigned char and XtPointer with void *.
5745 * gtkutil.h: Replace widget_value with struct _widget_value.
5746 (enum button_type, struct _widget_value): Remove and use the one from
5749 * gtkutil.c (get_utf8_string): Always return an allocated string.
5751 (create_dialog, xg_create_one_menuitem, create_menus)
5752 (xg_item_label_same_p, xg_update_menu_item): Free result from
5754 (xg_separator_p, xg_item_label_same_p): label is const.
5756 * font.h (font_open_by_name): Make name const.
5758 * font.c (font_open_by_name): Make name const.
5760 * floatfns.c (matherr): Use a const char* variable for x->name.
5762 * emacs.c (main): Pass char[] to putenv instead of literal.
5764 * callproc.c (synch_process_death): Make const.
5765 (Fcall_process): Make signame const.
5767 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5768 (addDisplayItemWithImage): Use const char*.
5770 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5771 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5773 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5775 * keyboard.h (_widget_value): name, value and key are const char*.
5777 * unexmacosx.c (unexec_error): Use const char *.
5779 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5781 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
5782 (font_parse_name, font_open_by_name):
5783 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
5784 (font_parse_name, font_open_by_name): Remove const.
5786 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5788 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5791 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5792 * m/amdx86-64.h: Likewise.
5793 * m/arm.h: Likewise.
5794 * m/hp800.h: Likewise.
5795 * m/ia64.h: Likewise.
5796 * m/ibmrs6000.h: Likewise.
5797 * m/ibms390.h: Likewise.
5798 * m/intel386.h: Likewise.
5799 * m/iris4d.h: Likewise.
5800 * m/m68k.h: Likewise.
5801 * m/macppc.h: Likewise.
5802 * m/mips.h: Likewise.
5803 * m/sh3.h: Likewise.
5804 * m/sparc.h: Likewise.
5805 * m/template.h: Likewise.
5806 * m/vax.h: Likewise.
5807 * m/xtensa.h: Likewise.
5808 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5812 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5814 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5816 Use const char* instead of char*.
5817 Reduce the number of warnings with -Wwrite-strings.
5818 * xrdb.c (get_environ_db, get_system_name):
5819 * unexelf.c (find_section):
5820 * term.c (string_cost, string_cost_one_line, per_line_cost)
5821 (get_named_tty, init_tty):
5822 * sysdep.c (sys_subshell):
5823 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5824 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5825 * search.c (Freplace_match):
5826 * process.c (Fmake_network_process, send_process, init_process):
5827 * lread.c (Fload, init_lread):
5828 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5829 * keyboard.c (parse_tool_bar_item, struct event_head):
5830 * gtkutil.h (xg_get_font_name):
5831 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5832 (make_widget_for_menu_item, make_menu_item, create_menus)
5833 (xg_make_tool_item):
5834 * font.c (parse_matrix, font_parse_name):
5835 * floatfns.c (rounding_driver, float_error_fn_name):
5836 * filelock.c (get_boot_time_1, lock_file_1):
5837 * fileio.c (barf_or_query_if_file_exists, check_writable):
5838 * editfns.c (get_system_name, get_operating_system_release)
5839 (Fencode_time, Fset_time_zone_rule):
5840 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5841 * buffer.c (defvar_per_buffer): Use const.
5843 2010-08-08 Kenichi Handa <handa@m17n.org>
5845 * charset.c: Include <stdlib.h>.
5846 (struct charset_sort_data): New struct.
5847 (charset_compare): New function.
5848 (Fsort_charsets): New function.
5849 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5851 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5852 number in CTEXT extended segment.
5854 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5856 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5857 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5859 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5861 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5862 (Fhash_table_size): Fix typos in docstrings.
5863 (Fmake_hash_table): Doc fix.
5865 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
5867 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5870 2010-08-08 Ken Brown <kbrown@cornell.edu>
5872 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5873 the MSDOS definition.
5875 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5877 Use const char* instead of char*.
5878 * xterm.c (x_create_toolkit_scroll_bar):
5879 * xfont.c (xfont_list_pattern):
5880 * xfns.c (x_default_scroll_bar_color_parameter)
5881 (xic_create_fontsetname, x_default_font_parameter)
5883 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5884 (store_mode_line_string, decode_mode_spec, display_string):
5885 * menu.c (digest_single_submenu):
5886 * keymap.h (initial_define_key, initial_define_lispy_key):
5887 * keymap.c (initial_define_key, initial_define_lispy_key):
5888 * image.c (image_error, image_keyword):
5889 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5890 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5891 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5892 (ftfont_list, ftfont_match):
5893 * frame.c (frame_parm_table):
5894 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5895 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5896 (font_add_log, font_deferred_log):
5897 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5898 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5899 (font_add_log, font_deferred_log):
5900 * emacs.c (argmatch):
5901 * dispextern.h (struct it):
5902 * coding.c (ENCODE_DESIGNATION):
5903 * charset.c (define_charset_internal): Use const.
5905 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5907 * xrdb.c: Remove include guard.
5908 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
5909 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5910 realloc->xrealloc instead of using #defines.
5912 2010-08-08 Eli Zaretskii <eliz@gnu.org>
5914 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
5915 * editfns.c (Fline_beginning_position, Fline_end_position):
5916 State in the doc strings that start and end of line are in the
5919 * xdisp.c (display_line): Move the handling of overlay arrow after
5920 the call to find_row_edges. (Bug#6699)
5922 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
5924 * keyboard.c (command_loop_1):
5925 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5927 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
5929 * insdel.c (prepare_to_modify_buffer): Save active region text to
5930 Vsaved_region_selection.
5932 * xselect.c (QPRIMARY): Move to keyboard.c.
5934 * keyboard.c (Vselect_active_regions): Move from simple.el.
5935 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5936 (command_loop_1): Set window selection prior to deactivating the mark.
5938 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
5940 * alloc.c (lisp_malloc):
5941 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5942 * charset.h (emacs_mule_charset):
5943 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5944 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5946 * lisp.h (Fcheck_coding_system, Fget_text_property)
5947 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5948 Remove duplicate declarations.
5950 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5952 * process.c: Simplify include logic.
5954 * keyboard.h (quit_char): Add declaration.
5955 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
5956 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5959 * w32.c: Remove the above declarations.
5961 Remove extern declarations in .c files, .h files have them.
5968 * eval.c: Remove declarations.
5970 * frame.c (frame_params): Make const.
5972 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5974 * emacs.c (emacs_copyright, emacs_version): Make static.
5975 (Vinitial_window_system, Vauto_save_list_file_name)
5976 (Vinhibit_redisplay): Remove declarations.
5977 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5980 Use const for some arrays and functions.
5981 * xterm.h (xg_set_icon_from_xpm_data):
5982 * xfns.c (xg_set_icon_from_xpm_data):
5984 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5985 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5986 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5987 (frame.c frame_parms):
5988 * emacs-icon.h (gnu_xpm_bits):
5989 * callint.c (callint_argfuns): Use const.
5991 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5993 * sysdep.c: Move include term.h last of includes (Bug#6812).
5995 2010-08-06 Eli Zaretskii <eliz@gnu.org>
5997 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5999 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6001 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6003 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6005 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6007 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6009 * xterm.h (x_get_focus_frame): Declare.
6011 * keyboard.h (poll_for_input_1): Unconditionally declare.
6013 * nsterm.h (x_set_menu_bar_lines): Declare.
6015 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6017 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6019 * window.c: Include menu.h.
6021 * unexmacosx.c (print_region_list, print_regions)
6022 (build_region_list, find_emacs_zone_regions)
6023 (unexec_regions_merge, read_load_commands, dump_it)
6024 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6026 * term.c: Check HAVE_SYS_IOCTL_H.
6028 * sysdep.c: Check HAVE_TERM_H.
6030 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6032 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6033 (ns_ring_bell, ns_defined_color, hide_hourglass)
6034 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6035 Convert to ANSI C prototypes.
6036 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6039 * nsterm.h : Include sysselect.h.
6040 (x_sync, x_get_focus_frame, x_set_mouse_position)
6041 (x_set_mouse_pixel_position, x_make_frame_visible)
6042 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6043 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6044 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6045 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6048 * nsmenu.m (popup_activated, name_is_separator)
6049 (syms_of_nsmenu): Convert to ANSI C prototypes.
6050 (runMenuAt): Prototypes and move declarations before code.
6052 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6054 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6057 * nsfns.m (have_menus_p, ns_display_info_for_name)
6058 (x_set_cursor_type, ns_appkit_version_str)
6059 (ns_appkit_version_int, ns_do_applescript)
6060 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6061 (syms_of_nsfns): Convert to ANSI C prototypes.
6063 * menu.h (x_set_menu_bar_line): Declare.
6064 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6066 * lisp.h (fmod_float): Declare.
6068 * image.c (xpm_scan, xpm_make_color_table_v)
6069 (xpm_put_color_table_v, xpm_get_color_table_v)
6070 (xpm_make_color_table_h, xpm_put_color_table_h)
6071 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6072 (xpm_load): Convert to ANSI C prototypes.
6074 * emacs.c: Include nsterm.h if HAVE_NS.
6076 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6078 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6080 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6081 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6082 (socket_options): Use const char* for name.
6084 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6086 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6088 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6089 Don't declare xmalloc_widget_value and digest_single_submenu.
6091 * w32font.c (Qlatin): Remove declaration.
6093 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6095 * dired.c (compile_pattern): Restore declaration.
6097 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6099 Remove extern declarations in .c files, .h files have them.
6126 * xterm.c: Remove declarations.
6128 Cleanup syssignal.h.
6129 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6130 (main_thread): Move down to remove #ifdef.
6131 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6132 Remove conditional definition following unconditional ones.
6134 * lisp.h: Remove HAVE_SHM code, unused.
6135 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6136 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6137 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6138 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6139 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6140 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6141 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6142 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6143 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6144 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6145 (Qwindow_scroll_functions, Vafter_load_alist)
6146 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6147 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6148 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6149 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6150 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6151 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6152 (initial_argv, last_nonmenu_event, load_in_progress)
6153 (noninteractive_need_newline, scroll_margin): Add declarations.
6155 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6156 Remove declarations, menu.h has them.
6157 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6158 (Vinput_method_function, Qinput_method_function)
6159 (Qevent_symbol_element_mask, last_event_timestamp):
6160 * dispextern.h (Voverflow_newline_into_fringe):
6161 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6162 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6163 (syms_of_w32font, syms_of_nsfont):
6164 * fontset.h (find_font_encoding, Qlatin):
6165 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6166 (Vtool_bar_mode, set_frame_menubar):
6167 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6168 * xterm.h (Qx_gtk_map_stock):
6169 * keymap.h (meta_prefix_char): Add declarations.
6171 * term.c: Remove dead code.
6173 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6174 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6175 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6176 which is what was there before BSD_PGRPS was removed.
6178 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6180 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6182 * unexcoff.c: Renamed from unexec.c.
6184 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6186 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6188 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6190 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6193 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6195 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6196 to TRUE if depth of screen is < 16.
6198 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6200 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6201 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6202 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6204 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6206 * xterm.h (USE_GTK_TOOLTIP): New define.
6207 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6209 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6210 to Control-D (Bug#6771).
6212 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6214 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6215 Wording by Drew Adams <drew.adams@oracle.com>.
6217 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6219 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6222 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6223 calling gtk_widget_queue_draw.
6224 (x_free_frame_resources): Call xg_free_frame_widgets.
6226 * xfns.c (x_gtk_use_system_tooltips): New variable.
6227 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6228 new gtkutil tooltip functions to show the tooltip.
6229 (Fx_hide_tip): Call xg_hide_tooltip.
6230 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6232 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6233 (xg_show_tooltip, xg_hide_tooltip): Declare.
6235 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6236 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6238 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6239 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6240 Remove code that is commented out.
6242 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6244 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6246 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6248 * xselect.c (x_own_selection): Use list4.
6250 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6252 * buffer.c (Qwindow): Do not define, already defined in data.c.
6253 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6255 2010-07-29 Chad Brown <yandros@mit.edu>
6257 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6258 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6259 * config.in: Undef HAVE_DIRENT_H.
6260 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6261 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6263 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6265 Rename s/usg5-4.h -> s/usg5-4-common.h.
6266 * s/usg5-4.h: Rename file to ...
6267 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6270 * s/irix6-5.h: Update includes accordingly.
6272 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6274 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6276 * xterm.h (struct x_output): Add toolbar_top_height,
6277 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6278 Remove toolbar_height.
6279 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6280 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6281 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6282 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6284 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6286 * xfns.c (x_set_tool_bar_position): New function.
6287 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6288 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6289 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6291 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6292 and FRAME_TOOLBAR_LEFT_WIDTH.
6294 * gtkutil.h (xg_change_toolbar_position): Declare.
6296 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6297 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6298 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6299 (xg_create_frame_widgets): Create a hobox for placing widgets
6300 vertically. Use gtk_box_pack_start.
6301 (xg_height_or_width_changed): Rename from xg_height_changed.
6302 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6303 (xg_update_frame_menubar, free_frame_menubar): Change to
6304 xg_height_or_width_changed.
6305 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6306 size correctly. Remove hardcoded 4, instead use handlebox size -
6308 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6309 size correctly. Use handlebox size + toolbar size as additional size.
6310 (xg_pack_tool_bar): POS is a new parameter.
6311 Set orientation of tool bar based on pos.
6312 Only make handlebox_widget if NULL.
6313 Check if tool bar goes to vbox or hbox depending on pos.
6314 (xg_update_tool_bar_sizes): New function.
6315 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6316 height, call xg_update_tool_bar_sizes instead.
6317 (free_frame_tool_bar): Remove from hbox or vbox depending on
6318 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6319 (xg_change_toolbar_position): New function.
6321 * frame.h (struct frame): Add tool_bar_position.
6324 * frame.c (Qtool_bar_position): New variable.
6325 (make_frame): Set tool_bar_position to Qtop.
6326 (frame_parms): Add tool-bar-position.
6327 (x_report_frame_params): Store tool_bar_position.
6328 (x_set_fringe_width): Reset wm size hint after fringe changes.
6330 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6332 Make lisp_time_argument declaration work on all systems.
6333 * lisp.h (lisp_time_argument): Move declaration ...
6334 * systime.h (lisp_time_argument): ... here
6335 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6337 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6339 * vm-limit.c (POINTER): Add typedef for it.
6340 (start_of_data): Change return type from POINTER to char *.
6342 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6345 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6347 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6348 Remove reference to __osf__, unused.
6350 * mem-limits.h: Remove duplicated includes.
6351 (NULL): Remove definition, unused.
6352 (POINTER): Remove definition.
6353 (start_of_data): Use char* in prototype, as the function
6356 Remove extern declarations from .c files, and them to .h files.
6357 * keyboard.h (Qhelp_echo, waiting_for_input)
6358 (input_available_clear_time, ignore_mouse_drag_p)
6359 (Vdouble_click_time, real_this_command, Vthis_original_command):
6360 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6361 (Voverriding_local_map_menu_flag):
6362 * lisp.h (Qinteractive_form, use_file_dialog)
6363 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6364 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6365 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6366 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6367 (Qfunction, debug_on_next_call, Qfield)
6368 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6369 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6370 (Qfile_directory_p, Qinsert_file_contents)
6371 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6372 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6373 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6374 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6375 (Qminibuffer_prompt)
6376 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6377 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6378 (gray_bitmap_bits, xic_create_fontsetname):
6379 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6381 * xsmfns.c (Vuser_login_name):
6382 * xrdb.c (Vdouble_click_time):
6383 * xfaces.c (xic_create_fontsetname):
6384 * w32select.c (waiting_for_input):
6385 * print.c (minibuffer_auto_raise):
6386 * msdos.c (Qhelp_echo):
6387 * macros.c (real_this_command):
6388 * keymap.c (Voverriding_local_map):
6389 * xterm.c (poll_for_input_1, gray_bitmap_width)
6390 (gray_bitmap_height, gray_bitmap_bits;
6391 * xmenu.c ( Voverriding_local_map)
6392 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6393 (use_file_dialog, Xt_app_con):
6394 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6395 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6396 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6397 (Qtool_bar_lines, ignore_mouse_drag_p):
6398 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6399 (Qrear_nonsticky, nconc2):
6400 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6401 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6402 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6403 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6404 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6405 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6407 * doc.c (Voverriding_local_map, Qremap):
6408 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6409 (Vcompletion_regexp_list):
6410 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6411 (Qcompletion_ignore_case):
6412 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6413 (Vhistory_length, Vthis_original_command, real_this_command)
6414 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6415 * image.c (Qrisky_local_variable):
6416 * fontset.c (QCname):
6417 * fns.c (minibuffer_auto_raise, QCname):
6418 * dispnew.c (char_ins_del_cost):
6419 * composite.c (font_fill_lglyph_metrics):
6420 * cmds.c (Qface, Vtranslation_table_for_input):
6421 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6422 * ccl.c (charset_unicode):
6423 * callproc.c (Vtemporary_file_directory):
6424 * buffer.c (emacs_strerror): Remove extern declarations.
6426 * data.c (Qwindow): Make non-static, used from other files too.
6427 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6429 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6430 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6431 * s/usg5-4.h (COFF):
6433 * s/msdos.h (COFF, NO_REMAP):
6434 * s/ms-w32.h (NO_REMAP):
6435 * s/hpux10-20.h (NO_REMAP):
6436 * m/sparc.h (SEGMENT_MASK):
6437 * m/m68k.h (NO_REMAP):
6438 * m/intel386.h (SEGMENT_MASK):
6439 * m/arm.h (NO_REMAP):
6441 * m/template.h: Remove references to unused defines.
6443 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6445 * xsettings.c (Ftool_bar_get_system_style): Also check for
6448 * xdisp.c (Qtext_image_horiz): Define.
6449 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
6450 to documentation of tool-bar-style.
6452 * lisp.h (Qtext_image_horiz): Declare.
6454 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6455 style text_image_horiz.
6457 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6459 * emacs.c (Fkill_emacs): Remove return statement.
6461 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6462 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6463 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6464 Remove local extern declarations.
6466 * xmenu.c: Do not included lwlib.h, not needed.
6468 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6470 * process.c: Move definitions earlier to minimize #ifdefs.
6472 * xterm.h (x_get_customization_string, x_load_resources)
6473 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6474 (x_check_errors, x_property_data_to_lisp, defined_color)
6475 (xic_set_xfontset, x_defined_color): Use const.
6477 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6478 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6480 * xselect.c (selection_data_to_lisp_data)
6481 (x_property_data_to_lisp):
6482 * xrdb.c (x_get_string_resource, file_p)
6483 (x_get_customization_string, magic_file_p, search_magic_path)
6484 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6485 (x_get_string_resource): Use const.
6487 * xfns.c: Include xlwmenu.h when USE_LUCID.
6488 (x_defined_color, xic_set_xfontset): Use const.
6489 (Fx_hide_tip): Remove local extern declaration.
6491 * xfaces.c (Qmouse_face): Remove declaration.
6492 (face_color_gray_p, tty_defined_color, defined_color)
6493 (face_color_gray_p, face_color_supported_p): Add const.
6495 * xdisp.c (do_mouse_tracking): Remove declaration.
6496 (add_to_log): Use const.
6498 * minibuf.c (Qmouse_face): Remove declaration.
6500 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6502 * keyboard.h (do_mouse_tracking): Add declaration.
6504 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6505 (QCdata, QCtype, Qcenter): Remove declarations.
6507 * frame.c (x_get_resource_string, x_get_string_resource)
6508 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6509 (x_default_parameter): Use const.
6511 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6512 (QCheight, QCsize, QCname): Remove declarations.
6514 * emacs.c (main): Remove local extern declaration.
6516 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6519 * dispnew.c: Remove duplicate #include <unistd.h>.
6520 (update_window, update_frame_1, init_display): Remove local extern
6523 * dispextern.h (add_to_log): Remove declaration.
6524 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6525 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6527 * dired.c (scmp): Add const.
6528 (directory_files_internal): Remove local extern declaration.
6530 * data.c (Finteractive_form): Use const.
6532 * composite.c (syms_of_composite): Remove local extern declarations.
6534 * charset.c (add_to_log): Remove declaration.
6536 * character.c (strwidth, parse_str_to_multibyte): Add const.
6538 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6540 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6542 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
6543 (Lisp_Subr): Make doc and intspec constant.
6544 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6545 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6546 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6547 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6548 (display_arg): Add declarations.
6550 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
6552 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6554 * window.c (Fwindow_height): Doc fix (bug#6518).
6556 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
6558 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6560 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6562 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6563 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6566 * frame.h (Qtty_color_mode): Add declaration.
6568 * lisp.h (Ftop_level, Fexit_recursive_edit)
6569 (Fabort_recursive_edit): Mark as NO_RETURN.
6571 2010-07-26 Kenichi Handa <handa@m17n.org>
6573 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
6574 number of glyphs gets smaller than the original length. (Bug#6621)
6576 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
6578 * lread.c (unreadpure, mapatoms_1): Make static.
6580 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6582 * terminfo.c (tparam): Fix prototype of tparm.
6584 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6586 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6587 find start of text segment.
6588 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6591 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6593 2010-07-25 Ken Brown <kbrown@cornell.edu>
6595 * vm-limit.c (check_memory_limits): Fix previous change;
6596 accidentally reverted an earlier change.
6598 2010-07-25 Ken Brown <kbrown@cornell.edu>
6600 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6601 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6603 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
6605 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6606 * dired.c (opendir, readdir): Fix prototypes.
6607 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6608 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6609 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6610 (telldir): Remove declaration.
6611 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6612 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6613 * syssignal.h (strsignal): Fix prototype.
6614 * term.c (tparam): Fix prototype.
6615 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6616 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6617 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6619 * w32gui.h (XParseGeometry): Fix prototype.
6620 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6621 * w32term.c (my_set_focus): Declare inside #if 0.
6622 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6623 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6624 (drain_message_queue, get_next_msg, post_msg, parse_button)
6625 (ClipboardSequence_Proc): Fix prototypes.
6626 (wait_for_sync): Remove declaration.
6628 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
6630 * w32fns.c (w32_to_x_color): Remove, unused.
6632 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6634 * lisp.h: Remove leftover P_.
6636 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6638 * ecrt0.c, unexalpha.c: Remove files, unused.
6640 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6642 * cmds.c (internal_self_insert): Make static.
6643 * lisp.h (internal_self_insert): Remove declaration.
6645 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
6647 * alloc.c (free_float):
6648 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6649 * frame.c (delete_frame_handler):
6650 * ralloc.c (reorder_bloc):
6651 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6652 Remove unused static functions.
6654 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6655 it is called only from NS code.
6657 * w32term.c (my_set_focus): #ifdef away; it is called only from
6660 * w32fns.c (x_edge_detection):
6661 * xfaces.c (may_use_scalable_font_p):
6662 Remove obsolete static declarations.
6664 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
6666 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6667 (emacs_blocked_realloc, uninterrupt_malloc):
6668 * fringe.c (w32_reset_fringes):
6669 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6670 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6671 * sound.c (be2hs, do_play_sound):
6672 * vm-limit.c (get_lim_data, ret_lim_data):
6673 * w32term.c (x_free_frame_resources):
6674 * xfaces.c (x_create_gc, x_free_gc):
6675 Convert definitions to standard C.
6677 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6679 * eval.c (Feval, Ffuncall): Use the new names.
6681 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6682 (DEFUN): Add braces around the union initialisation and use ## to
6683 specify the right union alternative and avoid a cast.
6685 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
6687 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6689 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
6691 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6693 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6695 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6696 is related to the menu bar (Bug#6499).
6697 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
6699 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6701 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6703 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6705 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6706 i.e. don't put back ButtonRelease (Bug#6608).
6708 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6709 instead of Window. Call xg_event_is_for_menubar when
6712 * gtkutil.h (xg_event_is_for_menubar): Declare.
6714 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6716 2010-07-16 Eli Zaretskii <eliz@gnu.org>
6718 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6719 when it's the same as the old foreground. (Bug#6609)
6721 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6723 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6724 widget is non-null (Bug#6645).
6726 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6728 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6729 Convert old-style definition.
6731 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6734 2010-07-15 Eli Zaretskii <eliz@gnu.org>
6736 * fringe.c (update_window_fringes): Restore mistakenly reverted
6737 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6739 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6741 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6742 (SET_SAVED_KEY_EVENT): Remove (not used).
6743 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6744 remove size parameter.
6745 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6746 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6747 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6749 (x_set_window_size_1): scroll_bar_actual_width is always
6750 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
6752 * xdisp.c (pending_menu_activation): Remove extern declaration.
6753 (prepare_menu_bars): Remove setting of pending_menu_activation.
6755 * xmenu.c (pending_menu_activation): Remove.
6756 (x_activate_menubar): Set popup_activated_flag for Xt also.
6757 Remove setting of pending_menu_activation.
6758 (set_frame_menubar): Remove check of pending_menu_activation.
6759 Declare menubar_size before code. Correct spelling in comment.
6761 2010-07-14 Kenichi Handa <handa@m17n.org>
6763 * font.c (font_open_entity): Cancel previous change.
6764 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6766 2010-07-13 Eli Zaretskii <eliz@gnu.org>
6768 Remove subprocesses #ifdefs.
6769 * process.c <inhibit_sentinels>: Move to the common part.
6770 (Fwaiting_for_user_input_p): Move to the common part; return nil
6771 if async subprocesses aren't supported.
6772 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6773 MS-DOS. Remove "#ifdef subprocesses".
6774 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6775 (gettimeofday): Remove "#ifdef subprocesses".
6776 (wait_without_blocking): Remove function.
6777 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6778 Remove "#ifdef subprocesses".
6779 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6781 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6782 wait_for_termination on MS-DOS.
6783 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6784 initialization of inhibit_sentinels.
6785 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6786 subprocesses" conditional.
6787 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6788 wait_for_termination, since `buffer' cannot be an integer when
6789 async subprocesses are not supported
6790 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6791 for ifdefing away the call to Fprocess_status.
6793 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6794 away the entire body of the function.
6796 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6798 Remove subprocesses #ifdefs from term.c.
6799 * process.c (add_keyboard_wait_descriptor)
6800 (delete_keyboard_wait_descriptor): Move to common section, do
6801 nothing when subprocesses is not defined.
6802 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6803 Remove subprocesses #ifdefs.
6805 Convert maybe_fatal to standard C.
6806 * lisp.h (verror): Declare.
6807 * eval.c (verror): New function containing the code from ...
6808 (error): ... this. Call verror.
6809 * term.c (vfatal): New function containing the code from ...
6810 (fatal): ... this. Call vfatal.
6811 (maybe_fatal): Convert to standard C, use variable number of
6812 arguments. Declare as non-return.
6813 (init_tty): Fix maybe_fatal call.
6815 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6817 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6818 (_scroll_bar_note_movement): Convert definitions to standard C.
6819 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6820 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6822 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6824 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6825 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6826 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6827 (xaw_jump_callback, xaw_scroll_callback)
6828 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
6829 (x_wm_set_size_hint, x_activate_timeout_atimer):
6830 Convert definitions to standard C.
6831 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6832 (popup_activate_callback, popup_deactivate_callback)
6833 (menu_highlight_callback, menubar_selection_callback)
6834 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6835 (free_frame_menubar, popup_selection_callback, as)
6836 (create_and_show_popup_menu, dialog_selection_callback)
6837 (create_and_show_dialog):
6838 * xfns.c (hack_wm_protocols, x_window):
6839 * xfaces.c (x_update_menu_appearance):
6840 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6841 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6842 (set_frame_size, update_wm_hints, setup_frame_gcs)
6843 (update_various_frame_slots, update_from_various_frame_slots)
6844 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6845 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6846 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6848 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6850 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
6852 2010-07-12 Eli Zaretskii <eliz@gnu.org>
6854 * process.c (setup_process_coding_systems): Move to the part
6855 shared by non-subprocesses systems, and make its body empty when
6856 subprocesses is not defined.
6857 (close_process_descs): Move to the part shared by non-subprocesses
6859 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6862 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6864 * editfns.c (transpose_markers): Convert old-style definition.
6865 * emacs.c (abort, shut_down_emacs, fixup_locale)
6866 (synchronize_system_time_locale)
6867 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6868 * floatfns.c (extract_float, matherr, init_floatfns)
6869 (syms_of_floatfns): Likewise.
6870 * fns.c (make_hash_table): Likewise.
6871 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6872 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6873 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6874 (ftfont_variation_glyphs): Likewise.
6875 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6876 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6877 * lread.c (read_filtered_event): Likewise.
6878 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6879 * process.c (wait_reading_process_output): Likewise.
6880 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6881 * search.c (search_buffer, boyer_moore): Likewise.
6882 * syntax.c (scan_sexps_forward): Likewise.
6883 * xdisp.c (try_scrolling): Likewise.
6884 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6885 (face_at_string_position): Likewise.
6886 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6887 * xselect.c (x_get_window_property, receive_incremental_selection)
6888 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6890 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6892 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6894 * callproc.c (child_setup): Remove subprocesses conditional.
6895 Remove code dealing with SET_EMACS_PRIORITY, unused.
6897 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
6898 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6900 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6901 (__do_global_dtors, __main): Use void in definition.
6902 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6903 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6904 the only users from ...
6905 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6906 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6907 (HAVE_VOLATILE): Remove, unused.
6909 Convert more function definitions to standard C.
6910 * xdisp.c (window_box_edges, handle_single_display_spec)
6911 (display_string): Convert definition to standard C.
6912 * scroll.c (do_direct_scrolling, scrolling_1):
6913 * dispnew.c (allocate_matrices_for_frame_redisplay)
6914 (mirrored_line_dance):
6915 * coding.c (code_convert_string):
6916 * charset.c (map_charset_chars):
6917 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6918 (Fregister_ccl_program, Fregister_code_conversion_map):
6919 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6920 (head_table): Make static and const.
6922 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6924 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6925 (PROFILING_LDFLAGS): Set from substitution.
6926 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6929 2010-07-12 Kenichi Handa <handa@m17n.org>
6931 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6932 (shortlisp): Likewise.
6934 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6936 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6937 of FONT_ENTITY_INDEX.
6938 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6939 property, get the property value dynamically.
6940 (Ffont_put): Accept font-entity and font-object too.
6941 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
6942 return value changed.
6943 (syms_of_font): Adjust for the above change.
6945 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6947 * blockinput.h: Remove obsolete comment.
6949 * lisp.h: Include <stddef.h>.
6950 (OFFSETOF): Don't define.
6951 (VECSIZE): Use offsetof instead of OFFSETOF.
6952 (PSEUDOVECSIZE): Likewise.
6953 * process.c (conv_sockaddr_to_lisp): Likewise.
6954 * alloc.c: Don't include <stddef.h>.
6955 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6957 * process.c: Remove obsolete comment.
6959 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
6961 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6963 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6965 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6967 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6968 * editfns.c (Fuser_full_name, Fformat): Likewise.
6969 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6970 * fileio.c (Ffile_symlink_p): Likewise.
6971 * filelock.c (current_lock_owner): Likewise.
6972 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6973 * fontset.c (fontset_pattern_regexp): Likewise.
6974 * lread.c (read1): Likewise.
6975 * sysdep.c (init_system_name): Likewise.
6976 * xfns.c (select_visual): Likewise.
6977 * s/hpux10-20.h (index, rindex): Don't define.
6978 * s/ms-w32.h (index): Likewise.
6979 * s/usg5-4.h: Likewise.
6981 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6983 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6984 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6985 (egetenv): Likewise.
6986 * doprnt.c (doprnt): Likewise.
6987 * editfns.c (set_time_zone_rule, format2): Likewise.
6988 * emacs.c (decode_env_path): Likewise.
6989 * eval.c (signal_error, error): Likewise.
6990 * insdel.c (replace_range_2): Likewise.
6991 * keyboard.c (cmd_error_internal): Likewise.
6992 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6993 * print.c (write_string, write_string_1, print_error_message):
6995 * vm-limit.c (warn_function, memory_warnings): Likewise.
6996 * xdisp.c (message1, message1_nolog, message_with_string)
6997 (vmessage, message, message_nolog): Likewise.
6998 * emacs.c: Remove duplicate declaration.
6999 * keyboard.h: Likewise.
7000 * lisp.h: Update prototypes.
7002 * eval.c: Fix indentation problem.
7004 * keyboard.c: Include "process.h".
7006 * eval.c: Remove obsolete noinline declaration.
7009 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7011 * doprnt.c (doprnt): Take a va_list argument instead of count and
7013 * eval.c (error): Change to a standard-C variadic function.
7014 * xdisp.c (vmessage): Rename from message, made static, and
7015 changed to take a va_list argument.
7016 (message): New variadic wrapper.
7017 (message_nolog): Now a variadic function, calling vmessage.
7018 * lisp.h: Include stdarg.h for va_list.
7019 (doprnt, error, message, message_nolog): Decls updated.
7021 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7023 * process.c (syms_of_process) <delete-exited-processes>: Define
7024 even if !subprocesses.
7025 (delete_exited_processes): Ditto.
7027 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7028 (delete_exited_processes): Don't define.
7030 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7032 * frame.c (make_frame): Initialize menu_bar_lines and
7033 tool_bar_lines members.
7034 (make_initial_frame, make_terminal_frame):
7035 Initialize menu_bar_lines using value of menu-bar-mode.
7037 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7039 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7041 * process.c: Reshuffle #include's. Condition some of the global
7042 and static variables on `subprocesses'.
7043 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7044 Leave only one implementation.
7045 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7046 (kill_buffer_processes, Flist_system_processes)
7047 (Fprocess_attributes, init_process, syms_of_process): Unify the
7048 implementations for with subprocesses and without them.
7050 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7052 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7053 correct size for Motif.
7054 (free_frame_menubar): Call x_set_window_size to update frame size.
7056 * xfns.c (x_window): Set borderWidth to 0 for pane and
7057 EmacsFrame. Frame size calculation is wrong otherwise.
7059 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7061 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7062 allows to suppress errors when polling in Emacs' main loop.
7063 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7064 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7065 (Fdbus_method_error_internal, Fdbus_send_signal)
7066 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7067 (Fdbus_register_method): Use it. (Bug#6579)
7069 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7071 * alloc.c: Convert DEFUNs to standard C.
7139 * xsmfns.c: Likewise.
7141 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7143 * process.c (kbd_is_on_hold, hold_keyboard_input)
7144 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7146 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7148 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7149 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7152 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7154 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7157 Clean up include guards.
7158 * tparam.c: Remove include guards for config.h, string.h and code
7159 that assumes #ifndef emacs.
7167 Remove prefix-args.c
7168 * prefix-args.c: Remove file.
7169 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7170 * Makefile.in (temacs${EXEEXT}): Remove references to
7171 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7172 (mostlyclean): Remove reference to prefix-args.
7173 (prefix-args): Remove.
7175 Simplify cstart_of_data, start_of_code and related code.
7176 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7177 (start_of_data): Merge into start_of_data function.
7178 * sysdep.c (start_of_text): Remove. Move simplified versions of
7179 it in the only users: unexaix.c and unexec.c.
7180 (read_input_waiting): Remove local declaration of quit_char.
7181 (start, etext): Remove declarations.
7182 (start_of_data): Merge with the version in mem-limits.h and move
7184 * vm-limit.c (start_of_data): Merged and simplified version of the
7185 code formerly in mem-limits.h and sysdep.c.
7186 * unexec.c (start): New declaration, moved from sysdep.c.
7187 (start_of_text): Simplified version of the code formerly in sysdep.c.
7188 * unexaix.c (start_of_text): Simplified version of the code
7189 formerly in sysdep.c.
7190 * m/alpha.h (HAVE_TEXT_START): Remove.
7191 (TEXT_START): Move ...
7192 * unexalpha.c (TEXT_START): ... here.
7193 * s/hpux10-20.h (TEXT_START): Remove.
7194 * s/darwin.h (TEXT_START):
7195 * m/mips.h (TEXT_START):
7196 * m/macppc.h (HAVE_TEXT_START):
7197 * m/m68k.h (TEXT_START):
7198 * m/iris4d.h (TEXT_START):
7199 * m/intel386.h (TEXT_START):
7200 * m/ibmrs6000.h (TEXT_START):
7201 * m/ia64.h (HAVE_TEXT_START):
7202 * s/msdos.h (TEXT_START): Likewise.
7204 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7206 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7207 (overrun_check_free, xstrdup, allocate_string)
7208 (allocate_string_data, compact_small_strings, Fmake_string)
7209 (make_unibyte_string, make_multibyte_string)
7210 (make_string_from_bytes, make_specified_string, make_float)
7211 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7212 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7213 memcpy, memmove, memset, memcmp.
7214 * atimer.c (start_atimer, set_alarm): Likewise.
7215 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7216 (mmap_realloc, init_buffer_once): Likewise.
7217 * callint.c (Fcall_interactively): Likewise.
7218 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7219 (getenv_internal_1): Likewise.
7220 * casefiddle.c (casify_object): Likewise.
7221 * ccl.c (ccl_driver): Likewise.
7222 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7223 * charset.c (load_charset_map_from_file)
7224 (load_charset_map_from_file, load_charset_map_from_vector)
7225 (Fdefine_charset_internal): Likewise.
7226 * cm.c (Wcm_clear): Likewise.
7227 * coding.c (decode_eol, decode_coding_object)
7228 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7229 * data.c (Faset): Likewise.
7230 * dired.c (directory_files_internal, file_name_completion_stat):
7232 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7233 (clear_glyph_row, copy_row_except_pointers)
7234 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7235 (save_current_matrix, restore_current_matrix)
7236 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7237 (mirror_line_dance, scrolling_window): Likewise.
7238 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7240 * doprnt.c (doprnt): Likewise.
7241 * editfns.c (Fuser_full_name, make_buffer_string_both)
7242 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7243 * emacs.c (sort_args): Likewise.
7244 * eval.c (Fapply, Ffuncall): Likewise.
7245 * fileio.c (Ffile_name_directory, make_temp_name)
7246 (Fexpand_file_name, search_embedded_absfilename)
7247 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7248 (auto_save_error): Likewise.
7249 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7250 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7251 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7252 (Fmake_hash_table): Likewise.
7253 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7254 * ftfont.c (ftfont_text_extents): Likewise.
7255 * getloadavg.c (getloadavg): Likewise.
7256 * image.c (define_image_type, make_image, make_image_cache)
7257 (x_create_x_image_and_pixmap, xbm_image_p)
7258 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7259 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7260 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7261 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7262 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7263 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7265 * indent.c (scan_for_column, compute_motion): Likewise.
7266 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7267 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7268 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7269 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7270 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7271 (store_user_signal_events, menu_bar_items, tool_bar_items)
7272 (process_tool_bar_item, append_tool_bar_item)
7273 (read_char_minibuf_menu_prompt, read_key_sequence)
7274 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7276 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7278 * lisp.h (STRING_COPYIN): Likewise.
7279 * lread.c (Fload, read1, oblookup): Likewise.
7280 * msdos.c (Frecent_doskeys): Likewise.
7281 * nsfns.m (Fx_create_frame): Likewise.
7282 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7284 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7285 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7287 * nsmenu.m (ns_update_menubar): Likewise.
7288 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7289 * print.c (print_unwind, printchar, strout, print_string)
7290 (print_error_message): Likewise.
7291 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7292 (Fmake_network_process, Fnetwork_interface_list)
7293 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7294 (init_process): Likewise.
7295 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7296 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7298 * scroll.c (do_scrolling, do_direct_scrolling)
7299 (scrolling_max_lines_saved): Likewise.
7300 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7301 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7302 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7303 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7304 (emacs_set_tty): Likewise.
7305 * term.c (encode_terminal_code, calculate_costs)
7306 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7308 * termcap.c (tgetst1, gobble_line): Likewise.
7309 * termhooks.h (EVENT_INIT): Likewise.
7310 * tparam.c (tparam1): Likewise.
7311 * unexalpha.c (unexec): Likewise.
7312 * unexec.c (write_segment): Likewise.
7313 * unexmacosx.c (unexec_write_zero): Likewise.
7314 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7315 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7316 * w32font.c (w32font_list_family, w32font_text_extents)
7317 (w32font_list_internal, w32font_match_internal)
7318 (w32font_open_internal, compute_metrics, Fx_select_font):
7320 * w32menu.c (set_frame_menubar, add_menu_item)
7321 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7322 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7323 * w32uniscribe.c (uniscribe_list_family): Likewise.
7324 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7325 * window.c (make_window, replace_window, set_window_buffer)
7326 (Fsplit_window): Likewise.
7327 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7328 (add_to_log, message3, x_consider_frame_title)
7329 (append_space_for_newline, extend_face_to_end_of_line)
7330 (decode_mode_spec_coding, init_glyph_string): Likewise.
7331 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7332 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7333 (face_attr_equal_p, make_realized_face, make_face_cache)
7334 (free_realized_faces, lookup_named_face, smaller_face)
7335 (face_with_height, lookup_derived_face)
7336 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7337 (Finternal_set_font_selection_order, realize_default_face)
7338 (compute_char_face, face_at_buffer_position)
7339 (face_for_overlay_string, face_at_string_position, merge_faces):
7341 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7342 (Fx_window_property, x_create_tip_frame)
7343 (Fx_backspace_delete_keys_p): Likewise.
7344 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7345 (xfont_text_extents): Likewise.
7346 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7347 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7348 * xselect.c (x_queue_event, x_get_window_property)
7349 (receive_incremental_selection): Likewise.
7350 * xsmfns.c (x_session_check_input): Likewise.
7351 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7352 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7354 * character.h (BCOPY_SHORT): Removed.
7355 * config.in: Regenerate.
7356 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7357 * emacs.c (main) [PROFILING]: Don't declare
7358 dump_opcode_frequencies.
7359 * lisp.h (safe_bcopy): Remove declaration.
7360 (memset) [!HAVE_MEMSET]: Declare.
7361 (memcpy) [!HAVE_MEMCPY]: Likewise.
7362 (memmove) [!HAVE_MEMMOVE]: Likewise.
7363 (memcmp) [!HAVE_MEMCMP]: Likewise.
7364 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7365 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7367 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7368 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7369 (BCOPY_DOWNWARD_SAFE): Don't define.
7370 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7371 (memcpy) [!HAVE_MEMCPY]: Define.
7372 (memmove) [!HAVE_MEMMOVE]: Define.
7373 (memcmp) [!HAVE_MEMCMP]: Define.
7375 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7377 * process.c (kbd_is_on_hold): New variable.
7378 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7380 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7381 select on empty input mask.
7382 (init_process): Initialize kbd_is_on_hold to 0.
7384 * process.h (hold_keyboard_input, unhold_keyboard_input)
7385 (kbd_on_hold_p): Declare.
7387 * keyboard.c (input_available_signal): Declare.
7388 (kbd_buffer_nr_stored): New function.
7389 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7390 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7391 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7392 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7393 (tty_read_avail_input): If input is on hold, return.
7394 Don't read more that free slots in kbd_buffer (Bug#6571).
7396 2010-07-07 Eli Zaretskii <eliz@gnu.org>
7401 * w16select.c: Convert function definitions to ANSI C.
7403 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7404 Remove unused prototypes.
7406 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7408 * coding.c, sysdep.c: Convert some more functions to standard C.
7410 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7412 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7413 (encode_coding_object): Use SPECPDL_INDEX.
7414 (syms_of_coding): Use DOS_NT.
7416 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7418 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7420 Make the function member of Lisp_Subr use standard C prototypes.
7421 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7422 (DECL_ALIGN): Add a cast for the function.
7423 * eval.c (Feval, Ffuncall): Use the proper type for each type
7426 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
7428 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7429 fringe face id, so face-remapping-alist works (Bug#6091).
7431 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
7433 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7434 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7435 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7437 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7439 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7440 * lisp.h: Declare x_get_keysym_name.
7441 * keyboard.c (modify_event_symbol): Don't declare
7442 x_get_keysym_name here.
7444 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7446 * ecrt0.c: Revert conversion to standard C.
7448 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7450 * vm-limit.c (memory_warnings):
7451 * keyboard.c (modify_event_symbol):
7452 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7453 (round2, emacs_rint):
7454 * process.c (send_process, old_sigpipe): Convert function
7455 definitions and declarations to standard C.
7457 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
7459 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7460 * xdisp.c: Convert function definitions to standard C.
7462 * cm.c (cmputc): Arg C is now int, not char.
7463 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7465 2010-07-05 James Cloos <cloos@jhcloos.com>
7467 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7469 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7470 _NET_WM_ICON_NAME atoms.
7472 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7473 and _NET_WM_ICON_NAME properties, too, matching what is
7474 done in the Gtk+ case.
7476 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7478 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7480 * xsmfns.c (SSDATA): New macro.
7481 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7482 passed to strlen/strcpy/strcat.
7483 (create_client_leader_window): Surround with #ifndef USE_GTK.
7484 Cast 7:th arg to XChangeProperty to (unsigned char *).
7486 * xsettings.c (something_changedCB, parse_settings)
7487 (apply_xft_settings): Reformat prototype.
7488 (something_changedCB, init_gconf): Remove unused variable i.
7489 (read_settings): Remove unused variable long_len.
7491 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7492 (xg_get_image_for_pixmap, create_dialog)
7493 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7494 (menuitem_highlight_callback, make_menu_item)
7495 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7496 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7497 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7498 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7499 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7500 (xg_tool_bar_item_expose_callback): Reformat prototype.
7501 (xg_update_menubar): GList *group => GSList *group.
7502 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7504 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7505 to GTK_IMAGE (wimage).
7507 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7509 * atimer.c: Use "" instead of <> for local includes for
7510 consistency with the rest of the code.
7512 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7513 * xrdb.c (get_system_name):
7514 * window.c (shrink_windows):
7515 * syntax.c (forw_comment):
7516 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7518 * mem-limits.h (start_of_data):
7519 * lread.c (readevalloop):
7520 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7521 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7522 * frame.c (x_get_focus_frame):
7523 * floatfns.c (fmod_float):
7524 * fileio.c (choose_write_coding_system):
7525 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7526 (malloc_initialize_hook, sort_args, synchronize_locale):
7527 * doprnt.c (doprnt):
7528 * dired.c (compile_pattern):
7529 * data.c (fmod_float):
7530 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7531 (map_char_table_for_charset):
7532 * charset.c (define_charset_internal):
7533 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7536 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
7537 Stefan Monnier <monnier@iro.umontreal.ca>
7539 * lread.c (read1): Fix up last change to not mess up `c'.
7541 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7543 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7545 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7549 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
7550 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7551 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7552 arg, as required by internal_condition_case_1.
7553 * print.c (strout): Use const char* for arg PTR.
7554 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7555 (analyse_first): Fix "const const".
7556 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
7557 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
7558 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
7560 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7562 * alloc.c: Convert function definitions to standard C.
7636 * xterm.c: Likewise.
7638 2010-07-03 Eli Zaretskii <eliz@gnu.org>
7640 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7641 frames other than the initial one. Fix reversal of colors when
7642 `reverse' is specified in the frame parameters.
7643 Call update_face_from_frame_parameter instead of
7644 internal-set-lisp-face-attribute. Initialize screen colors from
7645 initial_screen_colors[] when f->default_face_done_p is zero,
7646 instead of depending on being called with default-frame-alist as
7649 * xfaces.c (update_face_from_frame_parameter): Move out of
7650 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7651 with HAVE_WINDOW_SYSTEM.
7653 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7654 to menu-bar-mode, if not set in the frame parameters or in
7655 default-frame-alist.
7657 * w32console.c (sys_tputs): Adjust argument list to prototype in
7660 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
7662 * lisp.h (memory_warnings): Fix prototype.
7664 * cm.h (evalcost): Fix prototype.
7666 * cm.c (evalcost): Fix arg type.
7668 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7670 * term.c (term_clear_mouse_face, Fidentity):
7671 * syssignal.h (signal_handler_t):
7672 * lisp.h (memory_warnings):
7673 * coding.h (preferred_coding_system):
7675 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7677 2010-07-02 Eli Zaretskii <eliz@gnu.org>
7679 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7682 * msdos.h (load_pixmap): Don't define away.
7684 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7687 * atimer.h: Remove define for P_.
7689 * alloc.c: Remove __P and P_ from .c and .m files.
7751 * xterm.c: Likewise.
7753 Remove P_ and __P macros.
7754 * atimer.h: Remove P_ and __P macros.
7792 * xterm.h: Likewise.
7794 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7796 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7799 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7800 * syssignal.h: Remove code for Lynx, not supported anymore.
7801 * vm-limit.c: Remove unused code the depends on emacs not being
7802 defined and NO_LIM_DATA being defined.
7803 * mem-limits.h: Remove dead code.
7805 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7807 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7809 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7810 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7812 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7813 parameters, they are already absolute.
7815 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7816 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
7818 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
7820 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7821 Update FRAME_TOOLBAR_HEIGHT.
7823 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7824 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
7826 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
7828 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7829 Don't check default-frame-alist.
7831 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7833 * process.c (create_process): Avoid using invalid file descriptors.
7835 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7837 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7839 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7840 Improve documentation. Return font regardless of use_system_font.
7841 (syms_of_xsettings): Improve documentation for font-use-system-font.
7843 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7845 * xfaces.c (realize_face): Garbage the frame if a face is removed
7848 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7850 * keyboard.c: Remove duplicate <setjmp.h>.
7851 (read_key_sequence): Remove volatile qualifiers.
7853 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7855 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7856 (struct glyph_row): New members left_fringe_offset and
7857 right_fringe_offset.
7859 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7861 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7862 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7864 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
7865 Take account of bitmap offset.
7866 (draw_window_fringes): Take account of window vscroll.
7867 (update_window_fringes): Likewise. Extend top-aligned top indicator
7868 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7869 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7870 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7872 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
7874 * w32fns.c (Qtooltip): Declare.
7875 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7877 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7879 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7880 grab on just Press (Bug#6499).
7882 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
7884 * frame.c (Qtooltip): New var.
7885 (delete_frame): Use it. Fix faulty if statement. Don't update
7886 mode line for tooltip frames. Suggested by Martin Rudalics.
7888 * xfns.c (x_create_tip_frame):
7889 * w32fns.c (x_create_tip_frame): Use it.
7891 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
7893 * xftfont.c (xftfont_open): Check font width one by one also when
7896 * ftfont.c (ftfont_open): Ditto.
7898 2010-06-30 Glenn Morris <rgm@gnu.org>
7900 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7902 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7904 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7905 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7906 * s/darwin.h (SYSTEM_MALLOC):
7907 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7909 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7911 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7912 (ns_get_screen): Don't assign integer to f.
7913 (Fx_display_color_cells): Declarations before statements.
7915 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7917 * xfns.c (x_default_font_parameter): Remove got_from_system
7920 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
7921 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7922 New defines based on what configure finds.
7924 * xterm.c (XTflash): Use gtk_widget_get_window.
7925 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7926 gtk_adjustment_get_page_size.
7927 (handle_one_xevent): Use gtk_widget_get_mapped.
7928 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7931 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7933 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7934 HAVE_GTK_FILE_SELECTION_NEW.
7936 * gtkutil.c (xg_display_open, xg_display_close):
7937 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
7938 (xg_display_open): Return type is void.
7939 (gtk_widget_set_has_window)
7940 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7941 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7942 (gtk_adjustment_set_page_increment)
7943 (gtk_adjustment_get_step_increment): #define these if not found
7945 (remove_submenu): New define based on Gtk+ version.
7946 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7947 Use gtk_widget_get_window.
7948 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7949 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7950 (create_dialog): Use gtk_dialog_get_action_area and
7951 gtk_dialog_get_content_area.
7952 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7953 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7954 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
7955 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7956 Use g_object_ref and g_object_unref.
7957 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7958 Use gtk_widget_get_sensitive.
7959 (xg_update_submenu): Use remove_submenu.
7960 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7961 properties instead to get old x and y position.
7962 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7963 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
7964 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
7965 (xg_get_tool_bar_widgets): New function.
7966 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7967 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7968 (toolbar_set_orientation): New #define based on if configure
7969 finds gtk_orientable_set_orientation.
7970 (xg_create_tool_bar): Call toolbar_set_orientation.
7971 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7972 instead of gtk_box_pack_start_defaults.
7974 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
7976 * cmds.c (Fdelete_backward_char): Move into Lisp.
7978 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7980 * s/freebsd.h (BSD4_2): Remove redundant definition.
7981 bsd-common.h defines it already.
7983 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
7985 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7986 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7987 tool-bar-mode, which are now set using these X resources at
7988 startup, to determine the defaults (Bug#2249).
7990 * w32fns.c (Fx_create_frame):
7991 * nsfns.m (Fx_create_frame): Likewise.
7993 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7995 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
7997 * gtkutil.c (xg_update_scrollbar_pos):
7998 Avoid C99 mid-block variable declaration.
8000 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8002 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8004 * gtkutil.h (xg_show_scroll_bar): Remove.
8006 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8007 if height is less than scroll bar min size.
8008 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8010 * xfns.c (x_default_font_parameter): Try to open font from system
8011 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8013 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8015 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8017 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8019 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8020 most-positive-fixnum, be extra accurate when scrolling window
8021 start, to avoid missing the cursor line.
8023 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8025 * xdisp.c (try_scrolling): Compute the limit for searching point
8026 in forward scroll from scroll_max, instead of an arbitrary limit
8028 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8030 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8033 2010-06-16 Glenn Morris <rgm@gnu.org>
8035 * editfns.c (Fbyte_to_string): Pacify compiler.
8037 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8039 * lread.c (read1): Phase out old-style backquotes a bit more.
8041 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8043 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8046 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8048 * bidi.c (bidi_initialize): Remove explicit initialization of
8049 bidi_type_table; include biditype.h instead. Don't support
8050 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8051 (bidi_mirror_char): Use bidi_mirror_table.
8053 * biditype.h: New file.
8055 * bidimirror.h: New file.
8057 * window.c (syms_of_window): Doc fix (bug#6409).
8059 2010-06-12 Romain Francoise <romain@orebokech.com>
8061 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8064 2010-06-10 Glenn Morris <rgm@gnu.org>
8066 * editfns.c (Fbyte_to_string): Pacify compiler.
8068 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8070 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8072 * alloc.c (Fmake_byte_code): Don't access undefined argument
8075 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8077 * xdisp.c (next_element_from_image): Ensure that after-strings are
8078 read the next time we hit handle_stop (Bug#1336).
8080 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8082 * lread.c (read1): Signal error if #s is not followed by paren.
8084 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8086 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8088 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8090 2010-06-15 Glenn Morris <rgm@gnu.org>
8092 * editfns.c (Fbyte_to_string): Pacify compiler.
8094 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8096 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8097 Check `object's type before accessing its guts.
8099 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8101 * s/usg5-4.h: Fix previous change.
8102 Suggested by Lawrence Mitchell <wence@gmx.li>
8104 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8106 * minibuf.c (Fall_completions): Add more checks.
8108 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8110 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8112 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8114 * lread.c (X_OK): Remove, unused.
8116 * dispnew.c: Remove obsolete comment.
8118 Remove INCLUDED_FCNTL.
8119 * xterm.c (INCLUDED_FCNTL):
8120 * callproc.c (INCLUDED_FCNTL):
8121 * alloc.c (INCLUDED_FCNTL):
8122 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8123 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8125 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8127 * window.c (Fselect_window): Move `record_buffer' up to the
8128 beginning of this function, so the buffer gets recorded
8129 even if the selected window does not change.
8130 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8132 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8134 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8135 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8137 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8139 Remove BSTRING related code, all platforms define it.
8140 * s/usg5-4.h (BSTRING): Remove definition.
8141 * s/template.h (BSTRING):
8142 * s/msdos.h (BSTRING):
8143 * s/ms-w32.h (BSTRING):
8144 * s/hpux10-20.h (BSTRING):
8145 * s/gnu-linux.h (BSTRING):
8146 * s/darwin.h (BSTRING):
8147 * s/cygwin.h (BSTRING):
8148 * s/bsd-common.h (BSTRING):
8149 * s/aix4-2.h (BSTRING): Likewise.
8150 * sysdep.c: Remove code depending on BSTRING not being defined.
8152 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8154 Remove obsolete macro BASE_LEADING_CODE_P.
8155 * character.h (BASE_LEADING_CODE_P): Remove.
8156 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8157 * buffer.c (Fset_buffer_multibyte):
8158 * indent.c (scan_for_column, compute_motion):
8159 * insdel.c (count_combining_before, count_combining_after):
8160 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8162 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8164 Turn `directory-sep-char' into a noop.
8166 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8167 (DIRECTORY_SEP): Define unconditionally.
8169 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8171 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8172 call dostounix_filename directly.
8174 * fileio.c (CORRECT_DIR_SEPS): Remove.
8175 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8176 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8177 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8178 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8180 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8181 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8183 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8185 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8188 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8190 * ccl.c (Fccl_program_p): Fix typo in docstring.
8192 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8194 Move UNEXEC definition to autoconf.
8195 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8196 * s/sol2-10.h (UNEXEC):
8197 * s/irix6-5.h (UNEXEC):
8198 * s/hpux10-20.h (UNEXEC):
8199 * s/gnu-linux.h (UNEXEC):
8200 * s/darwin.h (UNEXEC):
8201 * s/cygwin.h (UNEXEC):
8202 * s/bsd-common.h (UNEXEC):
8203 * s/aix4-2.h (UNEXEC):
8204 * m/alpha.h (UNEXEC): Likewise.
8205 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8207 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8209 Remove obsolete pre-unicode2 macros.
8210 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8211 * composite.c (composition_reseat_it):
8213 * fns.c (Ffillarray):
8214 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8215 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8217 2010-06-03 Juri Linkov <juri@jurta.org>
8219 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8220 (Fswitch_to_buffer): Remove unused variable `err'.
8222 2010-06-03 Glenn Morris <rgm@gnu.org>
8224 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8226 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8227 now that AH_BOTTOM does it.
8229 * m/hp800.h (HAVE_ALLOCA):
8230 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8232 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8233 Remove NOT_C_CODE tests, it is always true now.
8235 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8237 Fix config.h includes.
8245 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8248 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8250 * s/sol2-6.h: Remove obsolete comments.
8252 Remove unnecessary alloca.h includes.
8253 * keymap.c: Do not include alloca.h, config.h does that.
8254 * sysdep.c: Likewise. Do not define fwrite, not used.
8256 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8258 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8259 the HAVE_TERMIO where it belongs (bug#6149).
8261 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8263 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8266 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8268 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8269 state is always cached (bug#6306).
8271 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8273 Fix cursor motion in bidi-reordered continued lines.
8274 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8275 only after finding point's row. Fix the logic. Rewrite the loop
8276 over continuation lines in bidi-reordered buffers.
8277 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8278 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8280 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8282 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8284 2010-05-28 Kenichi Handa <handa@m17n.org>
8286 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8287 Don't sheck SPEC if it is nil.
8288 (font_list_entities): Call font_delete_unmatched if
8289 Vface_ignored_fonts is non-nil. (Bug#6287)
8291 2010-05-28 Glenn Morris <rgm@gnu.org>
8293 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8295 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8297 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8299 (internal_delete_file, Frename_file): Callers changed.
8300 (delete_by_moving_to_trash): Doc fix.
8301 (Fdelete_directory_internal): Don't move to trash.
8303 * callproc.c (delete_temp_file):
8304 * buffer.c (Fkill_buffer): Callers changed.
8306 * lisp.h: Update prototype.
8308 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8310 * xdisp.c (redisplay_window): After redisplay, check if point is
8311 still valid before setting it (Bug#6177).
8313 2010-05-27 Glenn Morris <rgm@gnu.org>
8315 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8316 Convert comments to Makefile format.
8318 * Makefile.in (bootstrap-clean): No more Makefile.c.
8320 2010-05-26 Glenn Morris <rgm@gnu.org>
8322 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8323 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8325 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8327 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8329 2010-05-26 Kenichi Handa <handa@m17n.org>
8331 * composite.c (composition_compute_stop_pos): Fix condition for
8334 2010-05-25 Glenn Morris <rgm@gnu.org>
8336 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8337 Move before TEMACS_LDFLAGS.
8338 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8339 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8341 * Makefile.in (NOT_C_CODE): No longer define.
8342 (config.h): No longer include.
8344 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8345 variables it may reference.
8347 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8348 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8350 2010-05-25 Kenichi Handa <handa@m17n.org>
8352 * dispextern.h (struct composition_it): New members rule_idx and
8355 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8356 that the character positions of IT point the last character of the
8357 current grapheme cluster.
8358 (next_element_from_composition): Don't change character positions
8360 (append_composite_glyph): Set glyph->charpos to
8363 * composite.c (autocmp_chars): Change the first argument to RULE,
8364 and try composition with RULE only.
8365 (composition_compute_stop_pos): Record the index number of the
8366 composition rule in CMP_IT->rule_idx.
8367 (composition_reseat_it): Call autocmp_chars repeatedly until the
8368 correct rule of the composition is found.
8369 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8370 is at the last character of the current grapheme cluster when
8371 CMP_IT->reversed_p is nonzero.
8373 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8375 * editfns.c (Fbyte_to_string): New function.
8377 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8379 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8380 Suggested by Masatake YAMATO <yamato@redhat.com>.
8382 2010-05-23 Eli Zaretskii <eliz@gnu.org>
8384 * dispextern.h (init_iterator): Sync prototype with changed definition.
8386 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8388 * s/netbsd.h: If terminfo is found, use it in preference to
8389 termcap. (Bug#6190) [Backport from trunk]
8391 2010-05-19 Eli Zaretskii <eliz@gnu.org>
8393 Redesign and reimplement bidi-aware edge positions of glyph rows.
8395 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8396 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8397 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8398 and maxpos members instead of start.pos and end.pos, respectively.
8400 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8401 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8402 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8403 (try_window_reusing_current_matrix, try_window_id):
8404 Use ROW->minpos rather than ROW->start.pos.
8405 (init_from_display_pos, init_iterator): Use EMACS_INT for
8406 character and byte positions.
8407 (find_row_edges): Rename from find_row_end. Accept additional
8408 arguments for minimum and maximum buffer positions seen by
8409 display_line for this row. Don't use iterator to find the
8410 position following the maximum one; instead, increment the
8411 position found by display_line directly. Fix logic; eol_pos
8412 should be tested before the rest. Handle the case of characters
8413 delivered from display vector (bug#6036). Fix tests related to
8414 it->method. Handle the truncated_on_right_p rows.
8415 (RECORD_MAX_MIN_POS): New macro.
8416 (display_line): Use it to record the minimum and maximum buffer
8417 positions for glyphs in the row being assembled. Record the
8418 position of the newline that terminates the line. If word wrap is
8419 in effect, restore minimum and maximum positions seen up to the
8420 wrap point, when iterator returns to it.
8421 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8422 row and cursor not already at point. Restore original pre-bidi
8423 code for unidirectional buffers.
8425 * dispnew.c (increment_row_positions, check_matrix_invariants):
8426 Increment and check row->start.pos and row->end.pos, in addition
8427 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8429 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8430 Display truncated_on_left_p and truncated_on_right_p flags.
8432 (pmtxrows): Display the ordinal number of each row. Don't display
8433 rows beyond the last one.
8435 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8436 it is not copied by bidi_copy_it.
8438 2010-05-22 Eli Zaretskii <eliz@gnu.org>
8440 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8443 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
8445 * image.c (Fimage_flush): Rename from image-refresh.
8447 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
8449 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8452 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8453 (clear_image_cache): If the number of cached images is unusually
8454 large, decrease the cache eviction delay (Bug#6230).
8456 2010-05-21 Glenn Morris <rgm@gnu.org>
8458 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8459 Move these rules to ns.mk.
8462 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8464 * Makefile.in (CANNOT_DUMP): New, set by configure.
8465 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8467 2010-05-20 Juri Linkov <juri@jurta.org>
8469 * fileio.c (Fdelete_file): Change interative spec to use
8470 `read-file-name' like in `find-file-read-args' where the default
8471 value is `default-directory' instead of `buffer-file-name'.
8472 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8474 2010-05-20 Kevin Ryde <user42@zip.com.au>
8476 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8477 (Voverriding_terminal_local_map, Vsystem_key_alist)
8478 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8480 2010-05-20 Glenn Morris <rgm@gnu.org>
8482 * Makefile.in (DEPDIR): New constant.
8483 (DEPFLAGS): Set with configure, not cpp.
8484 (MKDEPDIR): New, set by configure.
8485 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8486 (clean): Use $DEPDIR.
8487 (deps_frag): Include from configure.
8488 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8489 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8491 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8492 Fix reallocation of the cache. (Bug#6210)
8494 2010-05-19 Glenn Morris <rgm@gnu.org>
8496 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8498 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8499 (GNULIB_VAR): Remove.
8500 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8502 * m/ibms390x.h (LINKER):
8503 * m/macppc.h (LINKER) [GNU_LINUX]:
8504 * s/aix4-2.h (ORDINARY_LINK):
8505 * s/cygwin.h (LINKER):
8506 * s/darwin.h (ORDINARY_LINK):
8507 * s/gnu.h (ORDINARY_LINK):
8508 * s/netbsd.h (LINKER):
8509 * s/usg5-4.h (ORDINARY_LINK):
8512 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8514 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
8516 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8517 prevent stack overflow if number of arguments is too large
8520 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
8522 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8524 2010-05-18 Glenn Morris <rgm@gnu.org>
8526 * s/gnu-linux.h: Combine two conditionals.
8528 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
8531 * Makefile.in (RALLOC_OBJ): New, set by configure.
8532 (rallocobj): Replace with the previous variable.
8533 (otherobj): Use $RALLOC_OBJ.
8535 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8536 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8538 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8539 (gmallocobj, vmlimitobj): Replace with previous two variables.
8540 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8542 2010-05-17 Glenn Morris <rgm@gnu.org>
8544 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8545 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8547 2010-05-16 Glenn Morris <rgm@gnu.org>
8549 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8551 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8553 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8556 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8557 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8559 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8560 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8561 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8562 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8563 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8565 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8566 Remove ${STARTFLAGS}, nothing ever sets it.
8568 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8570 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8572 2010-05-16 Glenn Morris <rgm@gnu.org>
8574 * Makefile.in (LIBX_BASE): Always define.
8576 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8578 * Makefile.in (LIBXT): Always define.
8580 2010-05-15 Glenn Morris <rgm@gnu.org>
8582 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
8584 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8585 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8587 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
8589 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
8590 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8592 * emacs.c (main): Initialize initial-environment and
8593 process-environment before generating from env, not after.
8595 Handle --version reasonably in CANNOT_DUMP configuration.
8596 * emacs.c (emacs_version, emacs_copyright): New string variables.
8597 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8598 (syms_of_emacs): Defvar them, and initialize them from the C
8600 (main): If initialization hasn't been done, print initial version
8601 info from the C strings, instead of starting an interactive session.
8603 2010-05-15 Eli Zaretskii <eliz@gnu.org>
8605 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8606 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
8607 (bidi_paragraph_init): Remove redundant assertion that we are at
8608 the beginning of a line after call to bidi_find_paragraph_start.
8610 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8611 (syms_of_xdisp): Defsubr it.
8613 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8615 * Makefile.in: Fix MSDOS-related comments.
8617 2010-05-15 Glenn Morris <rgm@gnu.org>
8619 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8620 (really-lwlib, really-oldXMenu): Always define.
8621 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8623 * Makefile.in: Simplify cpp conditional.
8625 * Makefile.in (${ns_appdir}): Simplify using umask.
8627 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8629 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8631 * eval.c (specbind): Remove left-over duplicate test.
8632 Disallow let-binding frame-local vars. Add comment.
8634 2010-05-14 Eli Zaretskii <eliz@gnu.org>
8636 Make the cache of bidi iterator states dynamically allocated.
8637 * bidi.c (bidi_cache_shrink): New function.
8638 (bidi_init_it): Call it.
8639 (bidi_cache_iterator_state): Enlarge the cache if needed.
8641 * bidi.c (bidi_move_to_visually_next): Rename from
8642 bidi_get_next_char_visually. All callers changed.
8644 2010-05-14 Kenichi Handa <handa@m17n.org>
8646 * dispextern.h (struct composition_it): New member reversed_p.
8648 * composite.c (composition_compute_stop_pos): Search backward if
8650 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8651 Set CMP_IT->reversed_p.
8652 (composition_update_it): Pay attention to CMP_IT->reversed_p.
8654 * xdisp.c (set_iterator_to_next):
8655 Call composition_compute_stop_pos with negative ENDPOS if we are
8656 scanning backward. Call composition_compute_stop_pos if scan
8657 direction is changed.
8658 (next_element_from_buffer): Call composition_compute_stop_pos with
8659 negative ENDPOS if we are scanning backward.
8660 (next_element_from_composition): Pay attention to
8661 IT->cmp_it.reversed_p.
8663 2010-05-14 Kenichi Handa <handa@m17n.org>
8665 * font.c (font_range): Return the range for the font found at first.
8667 2010-05-14 Glenn Morris <rgm@gnu.org>
8669 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8671 * Makefile.in (mktime, X11, register): Move undefs to configure.
8673 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8674 (MSDOS_X_OBJ): New variable.
8675 (MSDOS_SUPPORT_REAL): New constant.
8676 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8677 (obj): Use MSDOS_X_OBJ.
8678 (lisp): Use MSDOS_SUPPORT as a variable.
8680 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8681 (GPM_MOUSE_SUPPORT): Now it's a constant.
8682 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8685 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
8686 (ns_appresdir): Remove, unused.
8688 * Makefile.in (SHELL): Move outside cpp section.
8690 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8692 2010-05-13 Glenn Morris <rgm@gnu.org>
8694 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8695 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8697 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8698 HAVE_WINDOW_SYSTEM must be too.
8700 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8701 (lisp): Remove WINNT_SUPPORT.
8703 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8704 Let configure set these variables (to empty) in this case as well.
8706 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8707 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8709 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8710 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8711 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8712 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8713 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
8714 the values output by configure.
8715 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8717 2010-05-12 Glenn Morris <rgm@gnu.org>
8719 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8720 (LINKER_WAS_SPECIFIED): Remove.
8722 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8723 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8724 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8725 * s/cygwin.h (LIB_GCC):
8726 * s/freebsd.h (LIB_GCC):
8727 * s/gnu-linux.h (LIB_GCC):
8728 * s/msdos.h (LIB_GCC):
8729 * s/netbsd.h (LIB_GCC):
8732 2010-05-11 Karel Klíč <kklic@redhat.com>
8734 * ftfont.c: Fix incorrect parentheses of #if condition for
8735 definining M17N_FLT_USE_NEW_FEATURE.
8737 2010-05-11 Glenn Morris <rgm@gnu.org>
8739 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8740 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8742 2010-05-10 Eli Zaretskii <eliz@gnu.org>
8744 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8745 unibyte buffers. See
8746 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8748 2010-05-10 Glenn Morris <rgm@gnu.org>
8750 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8751 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8752 (LIBES): Use LIBS_SYSTEM as a variable.
8753 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8754 * s/aix4-2.h (LIBS_SYSTEM):
8755 * s/freebsd.h (LIBS_SYSTEM):
8756 * s/hpux10-20.h (LIBS_SYSTEM):
8757 * s/sol2-6.h (LIBS_SYSTEM):
8758 * s/unixware.h (LIBS_SYSTEM):
8761 * s/aix4-2.h (MAIL_USE_LOCKF):
8762 * s/bsd-common.h (MAIL_USE_FLOCK):
8763 * s/darwin.h (MAIL_USE_FLOCK):
8764 * s/gnu-linux.h (MAIL_USE_FLOCK):
8765 * s/irix6-5.h (MAIL_USE_FLOCK):
8766 * s/template.h (MAIL_USE_FLOCK):
8769 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
8771 * Version 23.2 released.
8773 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
8775 * composite.c (autocmp_chars): Save point as marker before calling
8776 auto-composition-function (Bug#5984).
8778 * lisp.h (restore_point_unwind): Add prototype.
8780 * fileio.c (restore_point_unwind): Remove static attribute.
8782 2010-05-08 Kenichi Handa <handa@m17n.org>
8784 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8785 new feature of libotf and m17n-flt.
8786 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8787 Call OTF_check_features even if no specific feature is given.
8788 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8789 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8790 that OUT is NULL. Use OTF_drive_gsub_with_log and
8791 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8793 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
8794 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8795 Setup mflt_enable_new_feature and mflt_try_otf.
8797 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8799 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8801 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8802 box and toolbar (Bug #6139).
8803 (xg_create_tool_bar): Remove comment (Bug #6139).
8804 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8805 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8807 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
8809 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8810 Update dependencies.
8812 2010-05-08 Eli Zaretskii <eliz@gnu.org>
8814 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8817 2010-05-08 Glenn Morris <rgm@gnu.org>
8819 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8821 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8822 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8823 (termcapobj): Replace with TERMCAP_OBJ.
8824 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8825 (LIBES): Use LIBS_TERMCAP as a variable.
8827 * s/freebsd.h (osreldate.h): No longer include, since this file
8828 does not use __FreeBSD_version any more.
8830 * s/aix4-2.h (TERMINFO):
8831 * s/cygwin.h (TERMINFO):
8832 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8833 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8834 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8835 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8836 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8837 * s/irix6-5.h (TERMINFO):
8838 * s/netbsd.h (LIBS_TERMCAP):
8839 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8840 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8841 * s/usg5-4.h (TERMINFO):
8844 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8846 * eval.c (unbind_to): Don't unbind a local binding into the global
8847 binding when the local binding disappeared. Inversely, don't unbind
8848 a global binding into a newly created local binding.
8849 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8850 can specify the frame to use, when applicable. Adjust callers.
8852 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
8853 Stefan Monnier <monnier@iro.umontreal.ca>
8855 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8857 2010-05-07 Eli Zaretskii <eliz@gnu.org>
8859 * w32fns.c: Include w32.h.
8860 (Fw32_shell_execute): Decode the error message before passing it
8861 to `error'. (Bug#6126)
8863 * msdos.c (dos_set_window_size):
8864 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8865 instead of `XSYMBOL (foo)->value'.
8867 2010-05-07 Eli Zaretskii <eliz@gnu.org>
8869 Fix the MS-DOS build, broken by autoconfiscation.
8871 * Makefile.in: Don't use Make-style comments past the "start of
8873 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8875 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8876 edited directly by msdos/sed1v2.inp).
8878 2010-05-07 Glenn Morris <rgm@gnu.org>
8880 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8881 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8882 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8883 move out of cpp section.
8884 * s/freebsd.h (LD_SWITCH_SYSTEM):
8885 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8886 * s/netbsd.h (LD_SWITCH_SYSTEM):
8887 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8889 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8891 Define LIB_STANDARD and START_FILES using autoconf.
8892 * s/usg5-4.h (LIB_STANDARD):
8893 * s/netbsd.h (START_FILES):
8894 * s/irix6-5.h (LIB_STANDARD):
8895 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8896 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8897 * s/freebsd.h (START_FILES):
8898 * s/darwin.h (START_FILES):
8899 * s/cygwin.h (START_FILES):
8900 * s/aix4-2.h (LIB_STANDARD):
8901 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8902 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8905 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8907 Remove NEED_BSDTTY and NEED_UNISTD_H.
8908 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8909 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8910 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8911 <sys/ptyio.h> and <unistd.h>.
8913 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8915 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8916 * s/gnu.h (START_FILES): Remove empty definition.
8918 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8920 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8922 2010-05-06 Glenn Morris <rgm@gnu.org>
8924 * Makefile.in (CPP, LN_S): Remove unused variables.
8926 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8928 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8930 2010-05-05 Lawrence Mitchell <wence@gmx.li>
8932 * m/sparc.h: Fix typo in earlier change.
8934 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8937 * eval.c (Fdefvaralias): Remove unintended nested if.
8938 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8940 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
8942 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8944 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8947 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8948 * s/gnu-linux.h (BSD_PGRPS): Remove.
8949 * term.c (dissociate_if_controlling_tty):
8950 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8951 (init_sys_modes, reset_sys_modes):
8953 * callproc.c (Fcall_process, child_setup): Remove code depending
8956 Remove POSIX_SIGNALS.
8957 * s/usg5-4.h (POSIX_SIGNALS):
8958 * s/netbsd.h (POSIX_SIGNALS):
8959 * s/msdos.h (POSIX_SIGNALS):
8960 * s/ms-w32.h (POSIX_SIGNALS):
8961 * s/hpux11.h (POSIX_SIGNALS):
8962 * s/gnu.h (POSIX_SIGNALS):
8963 * s/gnu-linux.h (POSIX_SIGNALS):
8964 * s/freebsd.h (POSIX_SIGNALS):
8965 * s/darwin.h (POSIX_SIGNALS):
8966 * s/cygwin.h (POSIX_SIGNALS):
8967 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8969 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8970 * process.c (create_process):
8972 * sysdep.c (wait_for_termination, init_signals):
8973 * process.c (create_process):
8974 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8975 remove all code that assumes the contrary.
8977 2010-05-04 Glenn Morris <rgm@gnu.org>
8979 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8981 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8982 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8983 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8984 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8985 LD_SWITCH_SYSTEM_tmp.
8986 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8987 New variables, set by configure.
8989 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8990 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8991 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8992 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8993 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8995 * s/aix4-2.h (C_SWITCH_SYSTEM):
8996 * m/alpha.h (C_SWITCH_MACHINE):
8997 Move to configure.in.
8998 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8999 New variables, set by configure.
9000 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9001 $c_switch_machine and $c_switch_system.
9003 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9005 * s/hpux10-20.h (LIB_STANDARD): New definition.
9006 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9007 on it, not used anymore.
9009 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9011 * eval.c (internal_condition_case_n): Rename from
9012 internal_condition_case_2.
9013 (internal_condition_case_2): New function.
9015 * xdisp.c (safe_call): Use internal_condition_case_n.
9017 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9018 (internal_delete_file, Frename_file): Callers changed.
9020 * buffer.c (Fkill_buffer):
9021 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9023 * lisp.h: Update prototypes.
9025 2010-05-03 Glenn Morris <rgm@gnu.org>
9027 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9028 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9029 (LIBXT): Set with configure, not cpp.
9031 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9033 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9035 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9036 The FreeBSD is not needed, the default works, Solaris version is
9037 not needed, and the remaining case is not supported by configure.
9039 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9041 * xsmfns.c (CHDIR_OPT): New define.
9042 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9045 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9048 * emacs.c (USAGE1): Mention --chdir.
9049 (main): Handle --chdir.
9050 (standard_args): Add --chdir.
9051 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9054 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9056 Remove LD_SWITCH_MACHINE.
9057 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9058 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9061 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9062 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9065 * m/ibmrs6000.inp: Remove file, unused.
9066 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9067 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9069 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9071 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9074 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9076 Emulate POSIX_SIGNALS on MS-Windows.
9078 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9079 (SIG_SETMASK, SIG_UNBLOCK): Define.
9081 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9082 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9083 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9085 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9088 Miscellaneous fixes of bidi display.
9090 * xdisp.c (find_row_end): New function, refactored from display_line.
9091 (display_line): Use it.
9092 (extend_face_to_end_of_line): In almost-filled rows, extend only
9093 if the row is R2L and not continued.
9094 (display_line): Fix prepending of truncation glyphs to R2L rows.
9095 Preserve overlay and string info in row->end.
9096 (insert_left_trunc_glyphs): Support addition of left truncation
9098 (set_cursor_from_row): Don't place cursor on the vertical border
9099 glyph between adjacent windows. Fix a crash when a display string
9100 is continued to the next line. Don't return zero if cursor was
9101 found by `cursor' property of a display string.
9102 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9103 test for that explicitly.
9105 2010-05-01 Glenn Morris <rgm@gnu.org>
9107 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9109 (OTHER_OBJ): Remove.
9110 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9111 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9113 2010-05-01 Karel Klíč <kklic@redhat.com>
9115 * fileio.c (Ffile_selinux_context): Context functions may return null.
9117 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9119 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9121 2010-04-30 Glenn Morris <rgm@gnu.org>
9123 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9124 (OTHER_OBJ): Define as a separate variable, for clarity.
9126 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9128 * xsettings.c: Include limits.h and update file comment.
9130 2010-04-30 Glenn Morris <rgm@gnu.org>
9132 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9133 Set with configure, not cpp.
9134 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9136 * Makefile.in (mallocobj): Remove.
9137 (otherobj): Simplify using @OTHER_OBJ@.
9139 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9140 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9141 Don't bother making nsgui.h dependency platform-specific.
9143 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9145 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9147 * process.c (read_process_output, exec_sentinel): Don't burp if the
9148 sentinel/filter kills the current buffer (bug#6060).
9150 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9151 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9152 Remove unused var `args'.
9153 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9154 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9155 * doc.c (store_function_docstring): Use XSETCAR.
9157 2010-04-28 Glenn Morris <rgm@gnu.org>
9159 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9160 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9162 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9164 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9165 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9167 * Makefile.in (FONT_OBJ): New, set by configure.
9168 (FONT_DRIVERS): Use $FONT_OBJ.
9170 * Makefile.in (LIBXMU): Set with configure, not cpp.
9171 * s/aix4-2.h (LIBXMU):
9172 * s/hpux10-20.h (LIBXMU):
9173 Remove definition, now set in configure.
9175 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9177 * m/amdx86-64.h [i386]: Move this test to configure.in.
9179 2010-04-27 Glenn Morris <rgm@gnu.org>
9181 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9182 * s/unixware.h (NEED_LIBW): Remove definition.
9184 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9185 (TOOLKIT_LIBW): New, set by configure.
9186 (@X_TOOLKIT_TYPE@): No longer define it.
9188 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9189 (MOTIF_LIBW): Set with configure, not cpp.
9190 * s/aix4-2.h (LIB_MOTIF):
9191 * s/gnu-linux.h (LIB_MOTIF):
9192 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9194 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9197 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9198 (obj): Use autoconf for unexec instead of cpp.
9199 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9200 Remove definitions and undefs. Inline definitions in the only user.
9201 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9203 2010-04-27 Glenn Morris <rgm@gnu.org>
9205 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9206 since the defaults (set by the system file) are fine in most cases.
9207 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9208 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9209 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9210 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9211 Remove definitions, since they are set correctly in s/gnu-linux.h.
9212 * s/freebsd.h (START_FILES, LIB_STANDARD):
9213 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9214 * s/hpux10-20.h (START_FILES):
9215 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9216 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9218 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9219 (MOTIF_LIBW): Use $LIBXP.
9220 (otherobj): Use $WIDGET_OBJ.
9222 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9224 * Makefile.in (LIBS_MACHINE): Remove, unused.
9226 Use autoconf instead of cpp for LIB_MATH.
9227 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9228 * s/cygwin.h (LIB_MATH): Likewise.
9229 * Makefile.in (LIB_MATH): Do not define with cpp.
9230 (LIBES): Use autoconf for LIB_MATH.
9232 2010-04-26 Kenichi Handa <handa@m17n.org>
9234 * composite.c (Ffind_composition_internal): Fix the return value
9235 for an automatic composition.
9237 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9239 Remove all NO_ARG_ARRAY uses.
9240 * fns.c (concat2, concat3, nconc2):
9241 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9242 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9243 * m/xtensa.h (NO_ARG_ARRAY):
9244 * m/template.h (NO_ARG_ARRAY):
9245 * m/sparc.h (NO_ARG_ARRAY):
9246 * m/sh3.h (NO_ARG_ARRAY):
9247 * m/mips.h (NO_ARG_ARRAY):
9248 * m/macppc.h (NO_ARG_ARRAY):
9249 * m/iris4d.h (NO_ARG_ARRAY):
9250 * m/intel386.h (NO_ARG_ARRAY):
9251 * m/ibms390x.h (NO_ARG_ARRAY):
9252 * m/ibms390.h (NO_ARG_ARRAY):
9253 * m/ibmrs6000.h (NO_ARG_ARRAY):
9254 * m/ia64.h (NO_ARG_ARRAY):
9255 * m/hp800.h (NO_ARG_ARRAY):
9256 * m/arm.h (NO_ARG_ARRAY):
9257 * m/amdx86-64.h (NO_ARG_ARRAY):
9258 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9260 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9262 * xdisp.c (display_line): Don't assume 2nd call to
9263 get_next_display_element cannot return zero. (Bug#6030)
9264 (iterate_out_of_display_property): New function, body from pop_it.
9267 2010-04-24 Glenn Morris <rgm@gnu.org>
9269 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9270 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9271 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9272 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9274 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9276 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9277 use `get_next_display_element' and `set_iterator_to_next' to
9278 advance to the next character, when looking for the character that
9279 begins the next row.
9281 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9282 definition of "struct Lisp_Symbol".
9284 2010-04-24 Glenn Morris <rgm@gnu.org>
9286 * Makefile.in (CRT_DIR): New variable, set by configure.
9287 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9288 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9290 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9292 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9294 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9296 Remove redundant flags.
9297 * s/freebsd.h (C_SWITCH_SYSTEM):
9298 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9299 * s/netbsd.h (C_SWITCH_SYSTEM):
9300 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9303 Simplify m/intel386.h.
9304 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9306 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9307 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9308 the only user: s/unixware.h.
9309 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9311 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9312 Definitions moved here from m/intel386.h.
9314 * m/mips.h: Remove #if 0 code.
9316 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9318 Fix display of composed characters from L2R scripts in bidi buffers.
9319 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9320 After advancing IT past the composition, resync the bidi iterator
9321 with IT's position. (Bug#5977)
9323 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9325 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9326 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9328 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9330 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9332 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9334 Support `display' text properties and overlay strings in bidi buffers.
9335 * xdisp.c (pop_it): When the stack is popped after displaying
9336 from a string, bidi-iterate to exit from the text portion covered
9337 by the `display' property or overlay. (Bug#5988, bug#5920)
9339 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9341 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9342 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9344 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9345 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9347 Simplify STARTFILES definition.
9348 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9349 relying on Makefile.in to define it.
9350 * s/cygwin.h (START_FILES): Likewise.
9351 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9353 Clean up Solaris code.
9354 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9355 (LIB_MOTIF): Remove, configure takes care of this.
9356 (NOT_USING_MOTIF): Remove, unused.
9357 * xrdb.c: Remove #if 0-ed #include.
9358 (SYSV): Remove conditional for old SysV.
9359 * sysdep.c (closedir): Remove conditional code for Solaris,
9360 Solaris has closedir.
9362 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9364 * xsettings.c (read_and_apply_settings): Check if current_font is
9365 NULL before strcmp (Bug#6001).
9367 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9369 Clean up HP-UX files.
9370 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9371 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9372 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9373 * s/hpux10-20.h: ... to the only user, here.
9375 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9377 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9378 use buffer-local values of paragraph-start and paragraph-separate.
9379 <paragraph_start_re, paragraph_separate_re>: Rename from
9380 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9383 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9385 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9386 current_tool_bar_style are new.
9387 (store_config_changed_event): Rename from store_font_changed_event.
9388 (XSETTINGS_TOOL_BAR_STYLE): New define.
9389 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9390 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9392 (something_changedCB): store_font_changed_event is now
9393 store_config_changed_event.
9394 (parse_settings): Rename from parse_xft_settings.
9395 Read non-xft xsettings outside #ifdef HAVE_XFT.
9396 (read_settings): Rename from read_xft_settings.
9397 (apply_xft_settings): Take current settings as parameter. Do not
9398 call read_(xft)_settings.
9399 (read_and_apply_settings): New function.
9400 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9401 Call read_and_apply_settings if there are settings to be read.
9402 (init_xsettings): Rename from init_xfd_settings.
9403 Call read_and_apply_settings unconditionally.
9404 (xsettings_initialize): Call init_xsettings.
9405 (Ftool_bar_get_system_style): New function.
9406 (syms_of_xsettings): Define Qmonospace_font_name and
9407 Qtool_bar_style. Initialize current_tool_bar_style to nil.
9408 defsubr Stool_bar_get_system_style. Fprovide on
9410 Move misplaced HAVE_GCONF.
9412 * xsettings.h (Ftool_bar_get_system_style): Declare.
9414 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9415 Qtext, Qboth, Qboth_horiz are new.
9416 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9417 Vtool_bar_style, tool_bar_max_label_size.
9419 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9421 * keyboard.c: QClabel is new.
9422 (parse_tool_bar_item): Take out QClabel from tool bar items.
9423 Try to construct a label if ther is no QClabel.
9424 (syms_of_keyboard): Intern :label as QClabel.
9426 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9427 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9430 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9433 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9434 (xg_make_tool_item, xg_show_toolbar_item): New function.
9435 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9436 Call xg_make_tool_item to make a tool bar item.
9437 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9439 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9440 into account for toolbars.
9442 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9444 * data.c (make_blv): Declarations before code (Bug#5993).
9446 2010-04-21 Glenn Morris <rgm@gnu.org>
9448 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9449 Define using autoconf, not cpp.
9450 (LIBXSM): New variable, set by autoconf.
9451 (LIBXT): Use $LIBXSM.
9453 2010-04-21 Dan Nicolaescu <local_user@dannlt>
9455 Remove NOMULTIPLEJOBS, unused.
9456 * s/template.h (NOMULTIPLEJOBS):
9457 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9459 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9460 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9461 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9462 detects -znocombreloc and passes it to the linker
9463 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9465 2010-04-21 Glenn Morris <rgm@gnu.org>
9467 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9469 2010-04-21 Karel Klíč <kklic@redhat.com>
9471 * Makefile.in (LIBSELINUX_LIBS): New.
9472 (LIBES): Add $LIBSELINUX_LIBS.
9473 * eval.c, lisp.h (call7): New function.
9474 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9475 (Ffile_selinux_context, Fset_file_selinux_context):
9477 (Fcopy_file): New parameter preserve-selinux-context.
9478 (Frename_file): Preserve selinux context when renaming by copy-file.
9480 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
9481 Eli Zaretskii <eliz@gnu.org>
9483 Don't depend on cm.c or termcap.c on Windows, use stubs.
9484 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9485 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9486 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9487 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9488 (sys_tputs, sys_tgetstr): New stubs.
9489 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9490 (tputs, tgetstr): New; define to sys_*.
9492 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
9494 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9496 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9498 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9499 Just signal a warning rather than an error when inside a let.
9500 (Fmake_variable_frame_local): Add the same test.
9502 * font.c (syms_of_font): Make the style table vars read-only.
9504 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9505 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9507 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9509 2010-04-20 Eli Zaretskii <eliz@gnu.org>
9511 Fix R2L paragraph display on TTY.
9513 * xdisp.c (unproduce_glyphs): New function.
9514 (display_line): Use it when produced glyphs are discarded from R2L
9516 (append_composite_glyph): In R2L rows, prepend the glyph rather
9519 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9520 rather than append it. Set up the resolved_level and bidi_type
9521 attributes of the appended glyph.
9522 (produce_special_glyphs): Mirror the backslash continuation
9523 character in R2L lines.
9525 Implement display of R2L paragraphs in GUI sessions.
9527 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9528 append_stretch_glyph.
9529 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9530 Fix off-by-one error in computing x at end of text in the row.
9531 (append_stretch_glyph): In reversed row, prepend the glyph rather
9532 than append it. Set resolved_level and bidi_type of the glyph.
9533 (extend_face_to_end_of_line): If the row is reversed, prepend a
9534 stretch glyph whose width is such that the rightmost glyph will be
9535 drawn at the right margin of the window. Fix off-by-one error on
9536 TTY frames in testing whether a line needs face extension.
9537 Fix face extension at ZV. If this is the last glyph row, use
9538 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9540 (set_cursor_from_row, display_line):
9541 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
9542 row->continuation_lines_width.
9543 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9544 are at ZV. Fixes a crash when reseated to ZV by
9545 try_window_reusing_current_matrix.
9546 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9547 which happens with R2L glyph rows. Fixes a crash when inserting a
9548 character at end of an R2L line.
9549 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9550 treat them as having zero-width characters. Improve comments.
9551 Don't reverse pos_before and pos_after for reversed glyph rows.
9552 Set cursor.x to negative value when the cursor might be on the
9554 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9555 left fringe, not the right one.
9556 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9557 (erase_phys_cursor): For reversed cursor_row, support cursor on
9560 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9561 of continuation indicators on the fringes.
9562 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9565 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9566 draw cursor on the left fringe.
9568 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9569 cursor on the left fringe.
9571 * dispnew.c (update_text_area): Handle reversed desired rows when
9572 the cursor is on the left fringe.
9573 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9574 below, not by 0, for when the cursor is on the left fringe.
9576 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9578 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9579 widget is a scrollbar.
9581 2010-04-20 Kenichi Handa <handa@m17n.org>
9583 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9584 only when the arg CHARSET_LIST is nil.
9586 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9588 Make variable forwarding explicit rather the using special values.
9589 Basically, this makes the structure of buffer-local values and object
9590 forwarding explicit in the type of Lisp_Symbols rather than use
9591 special Lisp_Objects for that. This tends to lead to slightly more
9592 verbose code, but is more C-like, simpler, and makes it easier to make
9593 sure we handled all cases, among other things by letting the compiler
9595 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9596 Removing forwarding objects.
9597 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9598 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9599 explicit rather than hiding them inside Lisp_Object "values".
9600 (XFWDTYPE): New macro.
9601 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9602 (XBUFFER_LOCAL_VALUE): Remove.
9603 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9604 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9605 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9606 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9607 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9608 Remove the Lisp_Misc_* header.
9609 (struct Lisp_Buffer_Local_Value): Redefine.
9610 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9611 (struct Lisp_Misc_Any): Add filler to get the right size.
9612 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9614 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9615 (DEFVAR_KBOARD): Allocate a forwarding object.
9616 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9617 (let_shadows_global_binding_p): New function.
9618 (union Lisp_Val_Fwd): New type.
9619 (make_blv): New function.
9620 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9621 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9622 (swap_in_symval_forwarding, find_symbol_value, Fset)
9623 (let_shadows_buffer_binding_p, set_internal, default_value)
9624 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9625 (Fkill_local_variable, Fmake_variable_frame_local)
9626 (Flocal_variable_p, Flocal_variable_if_set_p)
9627 (Fvariable_binding_locus):
9628 * xdisp.c (select_frame_for_redisplay):
9629 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9630 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9631 * frame.c (store_frame_param):
9632 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9633 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9635 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9636 (clone_per_buffer_values): Only adjust markers into the current buffer.
9637 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9638 (Fbuffer_local_value, set_buffer_internal_1)
9639 (swap_out_buffer_local_variables):
9640 Adapt to the new symbol value structure.
9641 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9642 (defvar_per_buffer): Take a new arg for the fwd object.
9643 (buffer_lisp_local_variables): Return a proper alist (different fix
9645 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9646 (Fgarbage_collect): Don't handle buffer_defaults specially.
9647 (mark_object): Handle new symbol value structure rather than the old
9648 special Lisp_Misc_* objects.
9649 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9650 * term.c (set_tty_color_mode):
9651 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9652 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9653 a buffer_local_flags.
9654 * print.c (print_object): Get rid of impossible forwarding objects.
9656 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9658 * bidi.c (bidi_get_type, bidi_get_category)
9659 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
9660 (bidi_type_of_next_char, bidi_level_of_next_char):
9661 Declare static. Use `INLINE' rather than `inline'.
9663 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
9665 * dired.c (Ffile_attributes): Fix typo in docstring.
9667 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9669 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9670 NSInteger (Bug#5811).
9672 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9674 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9675 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9677 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9679 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9681 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
9683 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9684 terminal frames (Bug#5837).
9686 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9688 * .gdbinit (xsubchartable): New command.
9690 2010-04-19 Eli Zaretskii <eliz@gnu.org>
9692 * xdisp.c (display_line): Don't write beyond the last glyph row in
9693 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
9694 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9696 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9698 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9700 * alloc.c (Fpurecopy): Hash-cons if requested.
9701 (syms_of_alloc): Update purify-flag docstring.
9703 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9705 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9706 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9708 2010-04-17 Eli Zaretskii <eliz@gnu.org>
9710 Fix a crash when an NSM character is inserted at BEGV.
9712 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9713 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9714 NEUTRAL_B or UNKNOWN_BT.
9716 2010-04-16 Eli Zaretskii <eliz@gnu.org>
9718 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9719 other rows with cursor unless they are different from this row and
9720 this row is part of a continued line. (Bug#5943)
9722 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9724 * s/freebsd.h: Restore osreldate.h include.
9725 Suggested by Naohiro Aota.
9727 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9729 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9731 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9733 * s/cygwin.h: Avoid linking against static libgcc.
9735 2010-04-15 Juri Linkov <juri@jurta.org>
9737 * window.c: Add Qscroll_command.
9738 Remove Vscroll_preserve_screen_position_commands.
9739 (window_scroll_pixel_based, window_scroll_line_based): Check the
9740 `scroll-command' property on the last command instead of searching
9741 the last command in Vscroll_preserve_screen_position_commands.
9742 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9743 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9744 (scroll-preserve-screen-position): Doc fix.
9745 (Vscroll_preserve_screen_position_commands): Remove variable.
9747 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9749 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9751 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9753 Reduce cpp use in Makefile.in.
9754 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9755 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9756 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9757 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9758 (CRT0_COMPILE): Remove, inline it in the only user.
9760 2010-04-14 Juri Linkov <juri@jurta.org>
9762 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9763 `scroll-up-command' and `M-v' from `scroll-down' to
9764 `scroll-down-command'.
9766 2010-04-14 Juri Linkov <juri@jurta.org>
9768 * window.c (Vscroll_preserve_screen_position_commands): New variable
9769 with the default value as the list of Qscroll_down and Qscroll_up.
9770 (window_scroll_pixel_based, window_scroll_line_based): Search the
9771 last command in the list Vscroll_preserve_screen_position_commands
9772 instead of comparing with Qscroll_up and Qscroll_down.
9774 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9776 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9777 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9780 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9783 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9785 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9787 Try to solve the problem of spurious EOF chars in long lines of text
9788 sent to interactive subprocesses.
9789 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9790 (system_process_attributes): Remove unused var `ttotal'.
9791 * process.c (send_process): Don't bother breaking long line with EOF
9792 chars when talking to ttys any more.
9793 (wait_reading_process_output): Output a warning when called in such
9794 a way that it could block without being interruptible.
9796 Try to detect file modification within the same second.
9797 * buffer.h (struct buffer): New field modtime_size.
9798 * buffer.c (reset_buffer): Initialize it.
9799 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9800 (Fverify_visited_file_modtime): Check it.
9801 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9802 (Fset_visited_file_modtime): Set (or clear) it.
9804 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9806 * process.c (status_notify): Remove unused var `ro'.
9808 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9810 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9811 more than one visual (Bug#5938).
9813 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9815 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9818 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9820 Remove C_SWITCH_SYSTEM_TEMACS.
9821 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9822 (malloc, realloc, free): Use emacs, not temacs for conditional
9825 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9826 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9828 Use autoconf, not cpp for some variables.
9829 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9830 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9831 (ALL_CFLAGS): Use them as make variables.
9832 (really-lwlib, really-oldXMenu): Do not pass them.
9834 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9836 * xmenu.c (apply_systemfont_to_dialog): New.
9837 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9839 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9841 * process.c (exec_sentinel): Preserve current-buffer.
9843 * process.c (read_process_output): Move the save-current-buffer to
9844 apply to both the filter and the non-filter branches.
9846 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9848 * s/msdos.h (UNEXEC): New definition.
9850 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9852 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9853 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9855 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9856 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9857 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9858 TRY_WINDOW_CHECK_MARGINS.
9860 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
9861 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9862 width only when it is for padding.
9864 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9866 * xfns.c (Fx_show_tip): Call try_window in a loop until
9867 fonts_changed_p is zero (Bug#2423).
9869 2010-04-08 Eli Zaretskii <eliz@gnu.org>
9871 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9872 the end of TEXT_AREA. (Bug#5856)
9874 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9876 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9879 2010-04-08 Eli Zaretskii <eliz@gnu.org>
9881 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9882 prev.orig_type, for resolving type of NSM. (Bug#5858)
9884 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9886 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9887 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9889 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
9890 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9892 (syms_of_xsettings): Initialize current_font.
9893 defsubr Sfont_get_system_normal_font.
9895 * xsettings.h (Ffont_get_system_normal_font)
9896 (xsettings_get_system_normal_font): Declare.
9898 * xfns.c (extern xlwmenu_default_font): Remove.
9899 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9902 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9903 menu items in UTF-8.
9905 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
9906 (apply_systemfont_to_menu): New function.
9907 (set_frame_menubar, create_and_show_popup_menu):
9908 Call apply_systemfont_to_menu.
9910 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9912 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9913 FRAME_LINE_TO_PIXEL_Y.
9915 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9918 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9920 Simplify code for HP machines.
9921 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9922 for GNU_LINUX, not needed.
9923 (UNEXEC, NEED_BSDTTY): Move definitions...
9924 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9926 * m/iris4d.h (UNEXEC): Move definition ...
9927 * s/irix6-5.h (UNEXEC): ... here.
9929 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9931 * xfns.c (set_machine_and_pid_properties): New function.
9932 (Fx_create_frame): Call set_machine_and_pid_properties.
9934 2010-04-03 Eli Zaretskii <eliz@gnu.org>
9936 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9937 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
9938 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9940 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9941 in this function. (Bug#5703)
9943 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
9945 * nsterm.h: Fix last change.
9947 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9949 * m/intel386.h (NO_REMAP): Move definition ...
9950 * s/msdos.h (NO_REMAP): ... here.
9952 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9954 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9955 used on those platforms.
9957 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9959 Remove extern errno declarations.
9976 * buffer.c: Remove errno extern declarations.
9977 * s/netbsd.h (NEED_ERRNO): Remove.
9979 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9981 Remove all uses of LIBX11_SYSTEM.
9982 * Makefile.in (LIBX11_SYSTEM): Remove.
9983 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9986 2010-04-01 Eli Zaretskii <eliz@gnu.org>
9988 Remove support for DJGPP v1.x (bug#5813).
9990 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
9992 * unexec.c (make_hdr, copy_text_and_data):
9993 * sysdep.c (wait_for_termination, sys_subshell):
9994 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
9995 (IT_set_terminal_modes, __write, _rename, gethostname)
9996 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9997 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9998 the value of __DJGPP__.
9999 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10000 compatibility code.
10002 * gmalloc.c (memalign):
10003 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10005 * dosfns.c (init_dosfns):
10006 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10008 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10010 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10011 string with `cursor' property comes from an `after-string'
10012 overlay. (Bug#5816)
10014 2010-04-01 Glenn Morris <rgm@gnu.org>
10016 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10017 Define as Makefile variables.
10018 (LIBX): Use above variables rather than directly using autoconf.
10020 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10022 Clean up BSD_SYSTEM use.
10025 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10026 for including <sys/ioctl.h>.
10027 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10028 code is only used for MSDOS.
10030 2010-03-31 Juri Linkov <juri@jurta.org>
10032 * image.c: Add `Qextension_data'.
10033 (syms_of_image): Initialize and staticpro `Qextension_data'.
10034 (Fimage_metadata): Rename from `Fimage_extension_data'.
10035 (gif_load): Put GIF extension data to the property
10038 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10040 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10041 * nsterm.h: Fix prototype.
10043 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10045 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10046 trailing whitespace in right-to-left rows.
10048 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10050 Get rid of the direct_output optimizations.
10051 * keyboard.c (nonundocount): Remove extern declaration.
10052 (command_loop_1): Remove brittle optimisation for cheap and
10054 * xdisp.c (redisplay_internal): Don't bother checking
10055 redisplay_performed_directly_p any more.
10056 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10058 * dispnew.c (redisplay_performed_directly_p)
10059 (direct_output_for_insert, direct_output_forward_char):
10060 * dispextern.h (redisplay_performed_directly_p)
10061 (direct_output_for_insert, direct_output_forward_char): Remove.
10062 * cmds.c (nonundocount): Make it static.
10064 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10066 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10068 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10070 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10071 invisible (Bug#5766).
10073 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10075 * xdisp.c (x_consider_frame_title, update_window_cursor):
10076 Remove HAVE_NS conditionals.
10077 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10079 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10080 filename for the title.
10081 (ns_set_doc_edited): Do nothing if the selected window is a
10084 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10087 * nsterm.m: Remove unneeded prototype.
10089 2010-03-31 Glenn Morris <rgm@gnu.org>
10091 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10092 in the DOC file. (Bug#5336)
10094 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10096 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10098 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10100 * window.c (keys_of_window): Remove redundant/overridden bindings.
10102 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10104 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10105 Restore original behavior when the iterator is not bidi_p.
10107 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10109 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10111 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10113 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10114 are outside the range of cached character positions.
10116 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10118 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10120 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10122 Initial support for bidirectional editing.
10124 * Makefile.in (obj): Include bidi.o.
10125 (bidi.o): New target.
10127 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10128 ($(BLD)/bidi.$(O)): New target.
10130 * bidi.c: New file.
10132 * buffer.h (struct buffer): New members bidi_display_reordering
10133 and bidi_paragraph_direction.
10135 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10136 and bidi_paragraph_direction.
10137 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10138 and bidi-paragraph-direction.
10139 (Fbuffer_swap_text): Swap the values of
10140 bidi_display_reordering and bidi_paragraph_direction.
10142 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10143 (bidi_type_t, bidi_dir_t): New types.
10144 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10145 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10146 prev_stop, base_level_stop, and eol_pos.
10147 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10148 (IT_STACK_SIZE): Enlarge to 5.
10149 (struct glyph_row): New member reversed_p.
10150 <string_buffer_position>: Update prototype.
10151 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10152 glyph_row if bidi_it.paragraph_dir == R2L.
10153 (struct glyph): New members resolved_level and bidi_type.
10155 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10156 processing or buffer's direction is right-to-left.
10157 (prepare_desired_row): Preserve the reversed_p flag.
10158 (row_equal_p): Compare the reversed_p attributes as well.
10160 * xdisp.c (init_iterator): Initialize it->bidi_p.
10161 Call bidi_init_it and set it->paragraph_embedding from the current
10162 buffer's value of bidi_paragraph_direction.
10163 (reseat_1): Initialize bidi_it.first_elt.
10164 (set_iterator_to_next, next_element_from_buffer): Use the value of
10165 paragraph_embedding to determine the paragraph direction.
10166 (set_iterator_to_next): Under bidi reordering, call
10167 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10168 new_paragraph flag is set in the bidi iterator.
10169 (next_element_from_buffer): If bidi_it.first_elt is set,
10170 initialize paragraph direction and find the first character to
10171 display in the visual order. If reseated to a middle of a line,
10172 prime the bidi iterator starting at the line's beginning.
10173 Handle the situation where we overstepped stop_charpos due to
10174 non-linearity of the bidi iteration. Likewise for when we back up
10175 beyond the previous stop_charpos. When moving across stop_charpos,
10176 record it in prev_stop.
10177 (display_line): Set row->end and it->start for the next row to the
10178 next character in logical order. Always extend reversed_p rows to
10179 the end of line, even if they end at ZV. Copy the reversed_p flag
10180 to the next glyph row. Keep calling set_cursor_from_row for
10181 bidi-reordered rows even if we already have a possible candidate
10182 for cursor position. Set row_end after all the row's glyphs have
10183 been produced, by looping over the glyphs. Record the position
10184 after EOL in it->eol_pos, and use it to set end_pos of the last
10185 row produced for a continued line.
10186 <Qright_to_left, Qleft_to_right>: New variables.
10187 (syms_of_xdisp): Initialize and staticpro them.
10188 (string_buffer_position_lim): New function.
10189 (string_buffer_position): Most of code moved to
10190 string_buffer_position_lim. Last argument and return value are
10191 now EMACS_INT; all callers changed.
10192 (set_cursor_from_row): Rewritten to support bidirectional text and
10193 reversed glyph rows.
10194 (text_outside_line_unchanged_p, try_window_id):
10195 Disable optimizations if we are reordering bidirectional text and the
10196 paragraph direction can be affected by the change.
10197 (append_glyph, append_composite_glyph)
10198 (produce_image_glyph, append_stretch_glyph): Set the
10199 resolved_level and bidi_type members of each glyph.
10200 (append_glyph): If the glyph row is reversed, prepend the glyph
10201 rather than appending it.
10202 (handle_stop_backwards): New function.
10203 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10204 (reseat): Call handle_stop_backwards to recompute prev_stop and
10205 base_level_stop for the new position.
10206 (handle_invisible_prop): Under bidi iteration, skip invisible text
10207 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10208 paragraph direction. Update IT->prev_stop after skipping
10210 (move_it_in_display_line_to): New variables prev_method
10211 and prev_pos. Compare for strict equality in
10212 BUFFER_POS_REACHED_P.
10213 (try_cursor_movement): Examine all the candidate rows that occlude
10214 point, to return the best match. If rows are bidi-reordered
10215 and point moved backwards, back up to the row that is not a
10216 continuation line, and start looking for a suitable row from
10219 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10220 rather than appending, if the glyph_row's reversed_p flag is set.
10221 Set the resolved_level and bidi_type members of each glyph.
10223 * .gdbinit (pbiditype): New command.
10224 (pgx): Use it to display bidi level and type of the glyph.
10225 (pitx): Display some bidi information about the iterator.
10226 (prowlims, pmtxrows): New commands.
10228 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10230 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10231 * s/usg5-4.h (LIBS_DEBUG):
10232 * s/irix6-5.h (C_DEBUG_SWITCH):
10233 * s/gnu-linux.h (LIBS_DEBUG):
10234 * s/darwin.h (LIBS_DEBUG):
10235 * s/bsd-common.h (LIBS_DEBUG):
10236 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10237 * m/iris4d.h (LIBS_DEBUG):
10238 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10240 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10241 (LIBS_DEBUG): Remove definition.
10243 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10245 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10248 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10250 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10251 `connect' (Bug#5723).
10253 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10255 * process.c (Fmake_network_process): Call `select' for interrupted
10256 `connect' rather than creating new socket (Bug#5173).
10258 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10260 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10262 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10264 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10266 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10268 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10271 2010-03-24 Kenichi Handa <handa@m17n.org>
10273 * coding.c (decode_coding_ccl): Fix previous change for the
10275 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10276 case that the output buffer is fullfilled.
10277 (encode_coding): Setup ccl program here.
10279 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10281 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10283 Simplify LIBS_MACHINE definitions.
10284 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10285 * m/iris4d.h (LIBS_MACHINE): Likewise.
10286 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10287 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10288 * s/netbsd.h: Remove commented out code.
10290 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10292 Remove dead code dealing with POSIX_SIGNALS.
10293 * atimer.c (set_alarm): Remove dead code, all USG systems define
10295 * data.c (arith_error): Likewise.
10296 * keyboard.c (input_available_signal, handle_user_signal)
10297 (interrupt_signal): Likewise.
10298 * process.c (sigchld_handler): Likewise.
10299 (create_process): Remove if 0 code. Remove HPUX conditional when
10300 !defined (POSIX_SIGNALS), it cannot be true.
10301 * syssignal.h: Remove USG5_4 and USG conditionals when
10302 !POSIX_SIGNALS, they cannot be true.
10304 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10305 NO_SOCK_SIGIO, not used anymore.
10307 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10309 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10310 support vax on BSDs.
10312 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10313 * s/aix4-2.h (ORDINARY_LINK): ... here.
10315 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10317 * Makefile.in (abs_builddir): Define.
10318 (bootstrap_exe): Use it.
10319 (VPATH): Use $(srcdir) instead of @srcdir@.
10321 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10323 * Makefile.in (bootstrap_exe): Use an absolute name.
10325 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10327 Remove support for old GNU/Linux using libc version 5.
10328 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10329 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10331 Consolidate redundant definitions in s/bsd-common.h.
10332 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10333 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10334 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10335 doing it in all files that include this one.
10336 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10337 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10338 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10339 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10340 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10341 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10342 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10343 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10344 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10346 Consolidate redundant definitions.
10347 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10348 it's undefined in all files that include this one.
10349 (POSIX_SIGNALS): Define here instead of doing it in all files that
10351 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10352 (POSIX_SIGNALS): Do not define.
10353 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10354 (POSIX_SIGNALS): Do not define.
10355 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10356 (POSIX_SIGNALS): Do not define.
10358 Remove support for old UNIX System V systems.
10359 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10360 * s/usg-5-4-2.h: Remove.
10362 Remove support for Solaris on PPC and for old versions.
10363 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10364 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10365 that cancel each other.
10368 * s/sol2-5.h: Remove.
10369 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10370 (NO_REMAP): Remove, unused.
10371 (UNEXEC): Move definition ...
10372 * s/aix4-2.h (UNEXEC): ... here.
10374 * s/openbsd.h: Remove support for non-ELF and for systems that do
10375 not support shared libraries.
10377 * s/freebsd.h: Likewise.
10379 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10381 Remove non-working support for lynxos 3.0.
10382 * s/lynxos.h: Remove file.
10384 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10385 COFF_BSD_SYMBOLS, nothing defines it anymore.
10387 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10389 Remove obsolete uses of HAVE_SHM.
10390 * emacs.c (standard_args):
10392 (syms_of_emacs): Remove code depending on HAVE_SHM.
10394 * alloc.c: Remove HAVE_SHM dependent definition.
10396 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10398 2010-03-18 Glenn Morris <rgm@gnu.org>
10400 * emacs.c (USAGE4): Hard-code bug address.
10401 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10402 (bug_reporting_address): Remove.
10403 (main): Don't call bug_reporting_address.
10405 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10406 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10408 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
10410 * xfns.c (Fx_create_frame):
10411 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10414 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10416 * editfns.c (Fformat): Account for string precision when computing
10417 field width (Bug#5710).
10419 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
10421 * xfns.c (Fx_create_frame): Set default to Qright.
10423 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10424 all window systems.
10426 2010-03-12 Eli Zaretskii <eliz@gnu.org>
10428 These changes remove termcap.c from the build on Posix platforms.
10429 * Makefile.in (termcapobj): Move termcap.o from here...
10430 (MSDOS_OBJ): ...to here.
10431 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10432 now identical to when LIBS_TERMCAP is defined.
10434 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10436 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10438 * config.in: Regenerated. (See top-level ChangeLog.)
10440 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
10444 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10446 Cleanup setup of gl_state in various parts of the code.
10447 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10448 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10449 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10451 * regex.c (regex_compile): Use it.
10452 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10453 it's now set in regex_compile when/if we need it.
10455 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10457 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10458 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10459 (QUIT): Use it to consolidate code and remove redundancy.
10460 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10462 * regex.c (regex_compile): Setup gl_state as well.
10464 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10465 (in_classes): Use CONSP before XCAR/XCDR.
10467 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
10469 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10470 definitions, so that keyboard macros are correctly handled
10473 2010-03-02 Eli Zaretskii <eliz@gnu.org>
10475 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10476 text that could be relocated inside the call to emacs_mule_char.
10477 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10478 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10480 2010-03-02 Kenichi Handa <handa@m17n.org>
10482 * character.c (parse_str_as_multibyte): Fix handling of the
10483 multibyte form of raw-bytes.
10484 (str_as_multibyte): Likewise.
10486 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10489 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
10491 * charset.c (load_charset_map_from_file)
10492 (load_charset_map_from_vector): Zero out allocated
10493 charset_map_entries before using them.
10495 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10497 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10499 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
10501 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10502 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10504 2010-02-26 Kenichi Handa <handa@m17n.org>
10506 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10508 * xdisp.c (reseat_to_string): Fix previous change.
10510 2010-02-26 David Reitter <david.reitter@gmail.com>
10512 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10513 Lisp_Object (Bug#4736).
10515 2010-02-25 Kenichi Handa <handa@m17n.org>
10517 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10519 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10521 * xterm.c (XTflash): Move declarations before statements.
10523 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10524 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10525 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10526 (xg_create_tool_bar): Remove unused variables.
10527 (x_wm_set_size_hint): Move declarations before statements.
10528 (xg_create_frame_widgets): Remove variable grav.
10530 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
10532 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10534 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10536 * term.c (fatal): Add a final \n if needed (bug#5596).
10538 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
10540 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10542 2010-02-18 Glenn Morris <rgm@gnu.org>
10544 * callint.c (Finteractive): Doc fix.
10546 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10548 * coding.c (record_conversion_result):
10549 Handle CODING_RESULT_INSUFFICIENT_DST.
10550 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10551 memory allocation error.
10553 2010-02-17 Kenichi Handa <handa@m17n.org>
10555 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10556 Fix for the case that the output buffer is fullfilled.
10557 (decode_coding): Setup ccl program here. Keep looping when the
10558 decoder stopped because the output buffer is
10559 fullfilled (bug#5534).
10561 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10563 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10565 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
10567 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
10570 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10572 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10573 doing_interact here.
10574 (ice_connection_closed): New function.
10575 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10576 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10577 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10579 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10582 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
10584 * nsfont.m (nsfont_open): The system's value for the font descent
10585 is negative, so round it down to avoid clipping.
10587 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
10589 * charset.c (load_charset_map_from_file)
10590 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
10591 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
10593 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
10595 * charset.c (load_charset_map_from_file): Allocate large
10596 charset_map_entries structure on the heap rather than the stack.
10599 2010-01-31 Kenichi Handa <handa@m17n.org>
10601 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
10602 size in NAME is invalid, return -1 (Bug#5396).
10604 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
10606 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10607 <deactivated@gmail.com> (Bug#3605).
10609 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
10611 * fileio.c (Frename_file): Correctly rename symlinks to
10612 directories (Bug#5496).
10614 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10616 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10618 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10620 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10622 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
10624 * frame.c (DEFAULT_ROWS): Change default to 35.
10626 * xfns.c (x_default_font_parameter): Change default XFT font to
10627 monospace-10 (Bug#3643).
10629 2010-01-29 Eli Zaretskii <eliz@gnu.org>
10631 * w32inevt.c (key_event): Remove unnecessary comparison of
10632 event->uChar.AsciiChar with 128.
10634 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
10636 * fileio.c (Frename_file): Fix last change (Bug#5487).
10638 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10640 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10642 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10644 * xfns.c (Fx_create_frame): Remove window size matching code from
10646 (x_get_current_desktop, x_get_desktop_workarea): Remove.
10648 2010-01-27 Jason Rumney <jasonr@gnu.org>
10650 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
10651 (key_event): Use unicode for characters 128 and higher (Bug#4567).
10653 2010-01-27 Kenichi Handa <handa@m17n.org>
10655 * regex.c (analyse_first): Fix setting of fastmap for unibyte
10656 pattern string (Bug#4209).
10658 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
10660 * fileio.c (Frename_file): Call copy-directory and
10661 delete-directory for directories, in order to handle cross-device
10662 renaming (Bug#3353).
10664 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10666 * xfns.c (Fx_create_frame): If frame height is too big, try
10667 sizes 24 and 10. Bug #3643.
10669 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10671 Try and fix bug#788, hopefully for real this time.
10672 * keymap.c (shadow_lookup): Add `remap' arg.
10673 (describe_map, describe_vector): Update calls to shadow_lookup.
10674 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10675 `remapped' so this flag is applicable to `sequence'. Be careful to
10676 perform remapping during shadow_lookup check of remapped_sequences.
10678 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10680 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10681 png_check_sig, which has been removed in libpng 1.4.
10683 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10685 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10686 lacks this header file).
10688 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10690 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10693 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10695 * lisp.h (make_pure_string): String pointer arg now points to const.
10697 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10698 args now point to const.
10700 2010-01-22 Eli Zaretskii <eliz@gnu.org>
10702 * lread.c (Fload): Don't treat files without .elc extension as
10703 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10706 2010-01-20 Kenichi Handa <handa@m17n.org>
10708 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10709 treat the source as actual byte sequence.
10711 2010-01-19 Alan Mackenzie <acm@muc.de>
10713 Fix spurious before-change-functions invocation from (insert ?\n).
10714 * textprop.c (set_text_properties): Rename parameter
10715 `signal_after_change_p' to `coherent_change_p', and make the
10716 invocation of `modify_region' conditional on it.
10718 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10720 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10722 (syms_of_xsettings): Declare xft-settings.
10724 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
10726 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10728 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10730 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10732 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
10734 * emacs.c (standard_args): Adjust arg priorities to reflect how
10735 they are processed in startup.el.
10737 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10739 * Makefile.in (lisp, shortlisp): Update.
10741 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10743 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10744 code, link the new kboard into all_kboard before running Lisp code,
10745 and protect the new terminal with GCPRO (Bug#5365).
10746 (x_term_init): Remove unused var `atom'.
10747 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10749 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10751 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10752 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10753 to find out usable size of the desktop. Don't make frames larger than
10756 2010-01-15 Kenichi Handa <handa@m17n.org>
10758 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10760 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
10762 * nsterm.m (Qnone): Define.
10764 * nsfns.m (Qnone): Move definition to nsterm.m.
10766 2010-01-14 Kenichi Handa <handa@m17n.org>
10768 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10771 2010-01-14 Kenichi Handa <handa@m17n.org>
10773 Make auto-composition work on all buffers even if they are
10776 * composite.c (Vauto_composition_mode): New variable.
10777 (composition_compute_stop_pos): Check Vauto_composition_mode
10778 instead of Vauto_composition_function.
10779 (composition_adjust_point, Ffind_composition_internal): Likewise.
10780 (syms_of_composite): Declare Lisp variable
10781 "auto-composition-mode" here.
10783 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
10785 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10786 during call to vendor-specific-keysyms (Bug#5365).
10788 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10790 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10791 Call SIGNAL_THREAD_CHECK (Bug#5333).
10793 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10794 Call SIGNAL_THREAD_CHECK.
10796 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10798 Try to fix bug#5314. This is probably not the final word, tho.
10799 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10800 recent-auto-save-p as a side-effect.
10801 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10802 * buffer.c (Fkill_buffer, reset_buffer):
10803 * editfns.c (Fsubst_char_in_region):
10804 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10805 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10807 2010-01-13 Kenichi Handa <handa@m17n.org>
10809 Display buffer name, etc. in mode line by composing correctly.
10811 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10813 (display_mode_element): Adjust for the change of
10814 decode_mode_spec and display_line.
10815 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10816 (display_string): Handle the case that STRING is non-null and
10817 LISP_STRING is not nil.
10819 * xterm.c (x_draw_composite_glyph_string_foreground):
10820 Pay attention to s->face->overstrike.
10822 * composite.c (composition_reseat_it): Don't check PT if STRING is
10825 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10827 * keyboard.c (read_char): Don't apply previous change when current
10828 buffer is unchanged by command execution.
10830 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10832 * keyboard.c (read_char): Return after executing from special map.
10834 2010-01-12 Glenn Morris <rgm@gnu.org>
10836 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10837 bug-gnu-emacs rather than emacs-pretest-bug.
10839 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
10841 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10842 initializing the Lisp variables that depend on them.
10844 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10846 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10847 Clear areas that will not be updated after change of menu bar lines.
10848 Clear the menu bar window's current matrix when the window gets empty.
10850 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
10852 * intervals.h, textprop.c (extend_property_ranges): Return value
10853 and args changed. Discard properties that begin at or after the
10854 new end (Bug#5306).
10856 * editfns.c (Fformat): Caller changed.
10858 * nsterm.m (ns_set_default_prefs): Delete function.
10859 (syms_of_nsterm): Initialize ns_command_modifier,
10860 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10861 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10863 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10864 position (Bug#4040).
10866 2010-01-09 Eli Zaretskii <eliz@gnu.org>
10868 * editfns.c (Ffloat_time): Doc fix.
10870 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10872 * xfns.c (Fx_create_frame): Don't create frame larger than display
10873 by default bug#3643.
10875 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10877 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10878 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10879 windows above internal border.
10881 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10882 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10883 windows above internal border.
10885 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10886 tool bar windows specially.
10888 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10890 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10892 (XTflash): Take account of menu bar height.
10894 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10897 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10899 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
10900 also be true before we can return early (bug #5339).
10902 2010-01-06 David Reitter <david.reitter@gmail.com>
10904 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10905 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10908 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10910 * font.c (font_open_entity): Enable chache and call cached_font_ok
10911 for the driver if defined.
10912 (QCuser_spec): New symbol.
10913 (font_spec_from_name): Save name as user-spec.
10914 (font_load_for_lface): Keep user-spec instead of name.
10915 (font_open_by_name): Save name as user-spec.
10916 (syms_of_font): Initialize QCuser_spec.
10917 (font_clear_prop): Clear name if it exists in font (bug#5157).
10919 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10920 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10921 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10923 * font.h (struct font_driver): Add cached_font_ok.
10925 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10927 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10929 * xterm.c (x_new_font): Move code for setting rows/cols before
10931 (x_set_window_size): ... to here. Bug #2568.
10933 * gtkutil.c (xg_clear_under_internal_border): New function.
10934 (xg_frame_resized, xg_frame_set_char_size):
10935 Call xg_clear_under_internal_border.
10936 (xg_update_scrollbar_pos): Clear under old scroll bar position.
10938 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
10940 * keyboard.c (read_key_sequence): Catch keyboard switch after
10941 making a new tty frame (Bug#5095).
10943 2010-01-05 Kenichi Handa <handa@m17n.org>
10945 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10947 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10949 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10950 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10951 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10953 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
10955 * dbusbind.c (xd_add_watch): Improve debug message.
10956 (xd_remove_watch): Improve debug message. If DATA is the session
10957 bus, unset D-Bus session environment.
10958 (Fdbus_init_bus): Pass the bus as argument to
10959 dbus_connection_set_watch_functions. (Bug#5283)
10961 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
10963 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10965 * lread.c (syms_of_lread): Make it clearer that these are the
10966 names of loaded files (Bug#5068).
10968 * eval.c (run_hook_with_args): Handle the case where the global
10969 value has the obsolete single-function form (Bug#5026).
10971 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
10973 * minibuf.c (Fall_completions): Minor optimization.
10975 2009-12-26 Eli Zaretskii <eliz@gnu.org>
10977 * .gdbinit (pgx): Fix display of composite glyphs.
10978 Display cmp.from and cmp.to as well.
10979 (pitx): Fix last change.
10981 2009-12-25 Kenichi Handa <handa@m17n.org>
10983 * composite.h (composition_adjust_point): Update prototype.
10985 * composite.c (composition_reseat_it): Don't make a composition
10986 spanning over point.
10987 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10988 composable characters.
10989 (composition_adjust_point): New arg NEW_PT. Callers changed.
10991 * keyboard.c (command_loop_1): Force redisplay if the last point
10992 was within a composition.
10993 (adjust_point_for_property): Don't adjust point for automatic
10994 composition when called after buffer modification.
10996 2009-12-19 Eli Zaretskii <eliz@gnu.org>
10998 * .gdbinit (pitx): Don't use enum names, use their values.
10999 Remove reference to non-existing value GET_FROM_COMPOSITION.
11000 (pgx): Don't use enum names, use their values.
11001 (pitmethod): New helper command.
11002 (pitx): Use it to display iteration method.
11003 (pgrowit): New command.
11005 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11007 Update dependencies in Makefile.in.
11009 * Makefile.in (alloc.o): Depend on termhooks.h.
11010 (atimer.o): Depend on blockinput.h.
11011 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11013 (callint.o): Depend on systime.h, coding.h, and composite.h.
11014 (callproc.o): Depend on buffer.h.
11015 (casefiddle.o): Don't depend on charset.h.
11016 (casetab.o): Depend on character.h.
11017 (ccl.o): Depend on composite.h.
11018 (chartab.o): Depend on ccl.h.
11019 (cm.o): Depend on dispextern.h.
11020 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11021 (coding.o): Don't depend on $(INTERVALS_H).
11022 (composite.o): Don't depend on dispextern.h explicitly (it's in
11023 $(INTERVALS_H)). Depend on ccl.h.
11024 (data.o): Depend on systime.h, coding.h, composite.h,
11025 dispextern.h, font.h, and ccl.h.
11026 (dired.o): Depend on composite.h.
11027 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11028 composite.h (it's in $(INTERVALS_H)).
11029 (doc.o): Depend on systime.h, coding.h, and composite.h.
11030 (editfns.o): Don't depend explicitly on dispextern.h.
11031 (emacs.o): Depend on frame.h and coding.h.
11032 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11033 (fileio.o): Depend on frame.h and commands.h. Don't depend
11034 explicitly on dispextern.h.
11035 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11037 (fns.o): Don't depend on termhooks.h.
11038 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11039 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11040 coding.h, $(INTERVALS_H), window.h, xterm.h.
11041 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11042 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11043 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11044 fontset.h, ccl.h, and ftfont.h.
11045 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11046 (gtkutil.o): Depend on dispextern.h and composite.h.
11047 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11048 termhooks.h, and ccl.h.
11049 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11050 (intervals.o): Depend on systime.h and coding.h.
11051 (keyboard.o): Depend on composite.h and coding.h.
11052 (keymap.o): Depend on coding.h and frame.h.
11053 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11054 (macros.o): Depend on systime.h, coding.h, and composite.h.
11055 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11057 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11058 dispextern.h explicitly.
11059 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11060 Don't depend explicitly on dispextern.h and composite.h.
11061 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11062 (regex.o): Don't depend on charset.h.
11063 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11064 (search.o): Don't depend explicitly on composite.h.
11065 (sound.o): Depend on atimer.h and systime.h.
11066 (syntax.o): Don't depend explicitly on composite.h.
11067 (sysdep.o): Depend on coding.h and composite.h.
11068 (term.o): Depend on xterm.h and buffer.h.
11069 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11070 (textprop.o): Don't depend on dispextern.h explicitly.
11071 (undo.o): Depend on dispextern.h.
11072 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11073 dispextern.h and composite.h explicitly.
11074 (xdisp.o): Depend on ccl.h.
11075 (xfaces.o): Depend on coding.h and ccl.h.
11076 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11077 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11078 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11080 (xgselect.o): New dependency.
11081 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11082 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11083 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11084 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11085 (xsmfns.o): Depend on frame.h and dispextern.h.
11086 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11089 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11091 * font.c (Fclear_font_cache): Pass correct cache argument to
11094 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11096 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11099 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11101 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11102 calling file-remote-p. Reported by Jim Meyering.
11104 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11106 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11107 avoid compiler warnings. (Bug #5217)
11109 2009-12-14 Kenichi Handa <handa@m17n.org>
11111 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11114 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11116 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11119 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11121 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11122 Xatom_net_window_type.
11124 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11125 Xatom_net_window_type.
11127 * xterm.c (my_log_handler): New function.
11128 (x_term_init): Set my_log_handler as log handler during gtk_init
11129 so we can filter out buggy messages. (Bug #5120).
11131 * xterm.c (xg_scroll_callback): Parameter list changed,
11132 use parameter GtkScrollType to determine scroll/line/page.
11133 Only allow dragging if a button < 4 is grabbed (bug #5177).
11134 (xg_end_scroll_callback): New function.
11135 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11136 xg_create_scroll_bar.
11138 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11139 (scroll_end_callback): Remove.
11140 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11141 button-release-event. Replace value-changed event with change-value,
11143 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11146 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11147 (xg_create_scroll_bar): Add GCallback end_callback.
11149 * xftfont.c (QClcdfilter): New variable.
11150 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11151 (syms_of_xftfont): Initialize QClcdfilter.
11153 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11155 * xsettings.c (struct xsettings): Add member seen.
11156 (parse_xft_settings): Update member seen with what we have read.
11157 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11158 (apply_xft_settings): Only update Xft settings with what member seen
11161 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11163 * dispextern.h (struct text_pos): Use EMACS_INT.
11164 (struct glyph): Use EMACS_INT for charpos.
11165 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11166 region_beg_charpos, region_end_charpos,
11167 redisplay_end_trigger_charpos, and also for
11168 iterator_stack_entry.end_charpos and
11169 iterator_stack_entry.stop_charpos.
11171 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11173 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11174 (xg_create_scroll_bar): Call scroll_end_callback on button release
11176 (xg_event_is_for_scrollbar): != replaced with ==.
11178 2009-12-12 Kenichi Handa <handa@m17n.org>
11180 * ftfont.c (struct ftfont_info): New member matrix.
11181 (ftfont_open): Setup xftfont_info->matrix.
11182 (MFLTFontFT): New member matrix.
11183 (FLOOR, CEIL, ROUND): New macros.
11184 (ftfont_get_metrics): Handle matrix transformation.
11185 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11187 * xftfont.c (struct xftfont_info): New member matrix.
11188 (xftfont_open): Setup xftfont_info->matrix.
11190 2009-12-10 Kenichi Handa <handa@m17n.org>
11192 * xdisp.c (append_space_for_newline): Consider face-remapping.
11194 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11196 * xsettings.c: Include "keyboard.h".
11198 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11200 Fix implicit function declarations.
11201 * cmds.c: Include "frame.h".
11202 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11203 * frame.h: Move declaration of delete_frame outside of
11204 HAVE_WINDOW_SYSTEM.
11206 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11208 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11210 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11213 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11215 * unexelf.c (unexec): Don't search for .data twice.
11217 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11219 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11221 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11222 of push_display_prop (Bug#5000).
11224 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11225 value of font_list_entities (Bug#5085).
11227 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11229 Fix `string-to-number' to deal consistently with integers and floats.
11230 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11231 trailing characters, not just whitespace.
11232 (read1): Pass new arg 0 to keep old behavior.
11233 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11234 trailing chars, as it is already done for integers. Doc fixes.
11235 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11237 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11239 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11240 Delete unused enumeration value.
11242 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11244 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11246 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11248 * process.c (Fmake_network_process): Fix up the tests for
11249 "connectionless socket", so they DTRT for seqpacket sockets as well.
11251 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11253 * process.c (Qseqpacket): New symbol.
11254 (HAVE_SEQPACKET): New macro.
11255 (Fmake_network_process): Accept new :type `seqpacket'.
11256 (init_process): Add `seqpacket' feature when applicable.
11257 (syms_of_process): Initialize Qseqpacket.
11259 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11261 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11264 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11266 * print.c (print_preprocess): Preprocess the key_and_value table of
11267 hashtables, even tho they're "hidden" (bug#5082).
11269 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11271 * frame.c (frame_make_pointer_invisible)
11272 (frame_make_pointer_visible): Declare f before statements.
11274 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11276 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11277 omitted dependencies on lisp.h.
11279 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11281 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11284 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11286 * frame.c (frame_make_pointer_invisible)
11287 (frame_make_pointer_visible): Just return if there isn't any selected
11290 * search.c (simple_search): Remove warning by making *p const.
11292 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11294 * xdisp.c (power_letter): Remove duplicate const.
11296 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11298 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11300 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11301 defaults (bug #5025).
11303 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11305 * insdel.c (adjust_markers_for_delete): Move it in the
11306 right direction! (bug#4803)
11308 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11310 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11312 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11314 2009-11-24 Glenn Morris <rgm@gnu.org>
11316 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11318 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11320 * Makefile.in: Must create deps for ecrt0.o in its rule.
11322 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11323 because that is what Gtk+ font dialog understands.
11325 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11327 (font_open_by_name): Put name given into QCname for font-object returned.
11329 * frame.c (x_set_font): Save original font name as frame parameter
11332 * xsettings.c (set_default_xft_settings): New function.
11333 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11336 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11338 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11339 searching backwards through multibyte buffer.
11341 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11343 * xterm.c: #include xgselect.h.
11344 (x_initialize): Call xgselect_initialize.
11346 * xsettings.c (something_changedCB): C++ comments => C comments.
11347 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11350 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11351 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11352 (scroll_bar_button_cb): Remove.
11353 (create_menus): C++ comments => C comments. Don't bind grab-notify
11355 (xg_create_scroll_bar): Don't bind button-press-event and
11356 button-release-event.
11358 * process.c: Include xgselect.h if defined (USE_GTK) ||
11359 defined (HAVE_GCONF).
11360 (wait_reading_process_output): Call xg_select for the same condition.
11362 * xgselect.c (xg_select): New function to better integrate with
11363 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11365 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11367 * Makefile.in (XOBJ): Add xgselect.o.
11369 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11371 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11372 Remove ignored second argument. All callers changed.
11373 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11374 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11375 * xdisp.c (string_char_and_length): Likewise.
11377 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11379 * xterm.c (x_new_font):
11380 * print.c (print_object):
11381 * cmds.c (Fself_insert_command): Move declarations before statements.
11383 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11385 * s/cygwin.h: Remove unneeded linker flags.
11387 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11389 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11391 * xsettings.h: Declare xsettings_get_system_font.
11393 * xsettings.c (xsettings_get_system_font): New function.
11394 (init_gconf): No use initiating gconf unless we have Xft also.
11395 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11398 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11399 add a blank entry so it doesn't collapse into nothing.
11401 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11403 * lread.c (Funintern): Comment out last change.
11405 2009-11-19 Richard Stallman <rms@gnu.org>
11407 * lread.c (Funintern): Error if symbol is t or nil.
11409 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11411 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11412 representation of Lisp integers.
11413 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11415 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11417 * lisp.h: Remove declaration of Ffont_get_system_font.
11418 * xfns.c: Move include of "xsettings.h".
11419 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11421 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11423 * xsettings.c (something_changedCB, Ffont_get_system_font):
11424 Check use_system_font.
11425 (syms_of_xsettings): DEFVAR font-use-system-font.
11427 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11429 * xfns.c (x_default_font_parameter): Remove dead assignment.
11431 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11433 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11435 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11436 not have FC_LCD_*. #define them if not there.
11438 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11440 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11442 * xterm.c (handle_one_xevent): Call xft_settings_event for
11443 ClientMessage, PropertyNotify and DestroyNotify.
11444 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11445 Call xsettings_initialize.
11447 * xftfont.c (xftfont_fix_match): New function.
11448 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11449 Call xftfont_fix_match after XftFontMatch.
11451 * xfont.c (xfont_driver): Initialize all members.
11453 * xfns.c (x_default_font_parameter):
11454 Try font from Ffont_get_system_font.
11455 Do not get font from x_default_parameter if we got one from
11456 Ffont_get_system_font.
11457 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11459 * w32font.c (w32font_driver): Initialize all members.
11461 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11463 * lisp.h: Declare syms_of_xsettings.
11465 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11466 Handle CONFIG_CHANGED_EVENT.
11468 * ftfont.c (ftfont_filter_properties): New function.
11470 * frame.c (x_set_font): Remove unused variable lval.
11472 * font.h (struct font_driver): Add filter_properties.
11474 * font.c (font_put_extra): Don't return if val is nil, it means
11475 boolean option is off.
11476 (font_parse_fcname): Collect all extra properties in extra_props
11477 and call filter_properties for all drivers with extra_props and
11479 (font_open_entity): Do not use cache, it does not pick up new
11480 fontconfig settings like hinting.
11481 (font_load_for_lface): If spec had a name in it, store it in entity.
11483 * emacs.c (main): Call syms_of_xsettings.
11485 * config.in: HAVE_GCONF is new.
11487 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11488 xsettings.o is new.
11490 2009-11-17 Kenichi Handa <handa@m17n.org>
11492 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11493 back to the default font in case that no suitable font is found.
11495 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11497 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11498 Suggested by Chad Brown <yandros@mit.edu>.
11499 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11501 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11503 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11505 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11507 * Makefile.in: Ignore errors from mkdir when creating deps directory.
11509 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11511 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11514 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11515 dependency files in deps/. Include those files into Makefile.
11517 * config.in: Generated (AUTO_DEPEND).
11519 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
11521 * dbusbind.c (Vdbus_registered_objects_table): Rename from
11522 Vdbus_registered_functions_table, because it contains also
11523 properties. Fix docstring.
11524 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
11526 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11528 * alloc.c (mark_object): Don't reprocess marked strings.
11529 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11530 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11532 2009-11-13 Kenichi Handa <handa@m17n.org>
11534 * category.c (word_boundary_p): Adjust for the change of the
11535 semantics of Vword_combining_categories.
11536 (Vword_combining_categories): Describe the slight change of the
11539 2009-11-13 Eli Zaretskii <eliz@gnu.org>
11541 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11543 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11545 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11547 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11549 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
11551 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11553 2009-11-11 David Reitter <david.reitter@gmail.com>
11555 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11556 variables to fix 2009-11-09 change.
11558 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11560 * process.c (ifflag_def): Make flag_sym constant.
11561 (Fnetwork_interface_info): Use a constant pointer.
11563 * xfns.c (cursor_bits):
11564 * xdisp.c (power_letter):
11565 * termcap.c (speeds, esctab):
11566 * sysdep.c (baud_convert):
11567 * keyboard.c (lispy_accent_codes, modifier_names):
11568 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11569 (jpeg_format, tiff_format, gif_format, svg_format)
11570 (interlace_start, interlace_increment, gs_format):
11571 * gtkutil.c (separator_names):
11572 * fringe.c (swap_nibble):
11573 * fns.c (base64_value_to_char, base64_char_to_value):
11574 * fileio.c (make_temp_name_tbl):
11575 * coding.c (suffixes): Make constant.
11577 * frame.c (make_initial_frame):
11578 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11580 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11583 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11585 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11586 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11588 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11589 * xterm.c (syms_of_xterm):
11590 * xfaces.c (syms_of_xfaces):
11591 * xdisp.c (syms_of_xdisp):
11592 * lread.c (syms_of_lread):
11593 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11596 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11598 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11600 * fns.c (Fplist_get): Merge the active and the commented out code.
11602 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11604 * keyboard.h: Declare timer_check.
11606 * keyboard.c (timer_check_2): New function that does what the old
11608 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11609 returned, i.e. don't return -1 with timers pending.
11611 * process.c: Remove extern declaration of timer_check.
11613 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11614 even if timer_check returned -1.
11616 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11618 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11620 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11621 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11622 Destroy the dialog after xg_dialog_run.
11624 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11626 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11628 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11630 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11632 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
11634 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11636 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11638 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11639 w32menu.c, and nsmenu.m.
11640 Simplify the obsolete case where position is nil.
11641 (cleanup_popup_menu): New function, moved from nsmenu.m.
11642 (struct skp): Remove slot `notreal'.
11643 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11645 (single_menu_item): Adjust call to parse_menu_item.
11646 (syms_of_menu): Defsubr x-popup-menu.
11647 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11648 (keymap_panes): Don't export any more.
11649 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11650 (xmenu_show): Declare.
11651 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11652 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11653 * keyboard.h (parse_menu_item): Update declaration.
11654 * xmenu.c (Fx_popup_menu): Remove.
11655 (syms_of_xmenu): Don't defsubr x-popup-menu.
11656 * w32menu.c (Fx_popup_menu): Remove.
11657 (syms_of_w32menu): Don't defsubr x-popup-menu.
11658 * nsmenu.m (cleanup_popup_menu): Remove.
11659 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11660 moved to menu.c's Fx_popup_menu.
11661 (Fx_popup_menu): Remove.
11662 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11663 menu_items (it's done in menu.c already).
11665 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11667 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11668 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11670 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
11672 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
11673 xmenu_show. Hide any tooltip before opening a menu.
11674 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11675 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11677 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11679 Let integers use up 2 tags to give them one extra bit and thus double
11681 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11682 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11684 (enum Lisp_Type): Use them. Give explicit values.
11685 (Lisp_Type_Limit): Remove.
11686 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11687 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11688 Pay attention to USE_2_TAGS_FOR_INTS.
11689 (INTEGERP): Use LISP_INT_TAG_P.
11690 * fns.c (internal_equal): Simplify the default case.
11691 (sxhash): Use case_Lisp_Int.
11692 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11694 (Ftype_of): Use case_Lisp_Int.
11695 (store_symval_forwarding): Take into account the fact that Ints can
11696 now have more than one tag.
11697 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
11698 (buffer_slot_type_mismatch):
11699 * xfaces.c (face_attr_equal_p):
11700 * print.c (print_object):
11701 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11704 2009-11-06 Eli Zaretskii <eliz@gnu.org>
11706 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11708 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11711 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11713 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11715 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11717 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11718 ButtonPressRelease and MotionNotify (bug#4870).
11720 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11722 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11724 * xterm.c (syms_of_xterm):
11725 * xselect.c (syms_of_xselect):
11726 * xmenu.c (syms_of_xmenu):
11727 * xfns.c (syms_of_xfns):
11728 * xfaces.c (syms_of_xfaces):
11729 * xdisp.c (syms_of_xdisp):
11730 * window.c (syms_of_window):
11731 * w32fns.c (syms_of_w32fns):
11732 * undo.c (syms_of_undo):
11733 * textprop.c (syms_of_textprop):
11734 * terminal.c (syms_of_terminal):
11735 * syntax.c (syms_of_syntax):
11736 * sound.c (syms_of_sound):
11737 * search.c (syms_of_search):
11738 * print.c (syms_of_print):
11739 * minibuf.c (syms_of_minibuf):
11740 * macros.c (syms_of_macros):
11741 * keymap.c (syms_of_keymap, initial_define_key)
11742 (initial_define_lispy_key):
11743 * keyboard.c (syms_of_keyboard):
11744 * insdel.c (syms_of_insdel):
11745 * image.c (syms_of_image):
11746 * fringe.c (syms_of_fringe):
11747 * frame.c (syms_of_frame):
11748 * fontset.c (syms_of_fontset):
11749 * fns.c (syms_of_fns):
11750 * fns.c (syms_of_fns):
11751 * fileio.c (syms_of_fileio):
11752 * fileio.c (syms_of_fileio):
11753 * eval.c (syms_of_eval):
11754 * doc.c (syms_of_doc):
11755 * dispnew.c (syms_of_display):
11756 * dired.c (syms_of_dired):
11757 * dbusbind.c (syms_of_dbusbind):
11758 * data.c (syms_of_data):
11759 * composite.c (syms_of_composite):
11760 * coding.c (syms_of_coding):
11761 * cmds.c (syms_of_cmds):
11762 * charset.c (define_charset_internal, syms_of_character):
11763 * ccl.c (syms_of_ccl):
11764 * category.c (syms_of_category, init_category_once):
11765 * casetab.c (syms_of_casetab):
11766 * casefiddle.c (syms_of_casefiddle):
11767 * callint.c (syms_of_callint):
11768 * bytecode.c (syms_of_bytecode):
11769 * buffer.c (keys_of_buffer, syms_of_buffer):
11770 * alloc.c (syms_of_alloc):
11771 * process.c (syms_of_process, init_process):
11772 * lread.c (syms_of_lread, init_obarray):
11773 * font.c (build_style_table):
11774 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11775 intern_c_string, calls to make_pure_string with
11776 make_pure_c_string. Use pure_cons instead of Fcons.
11778 * process.c (socket_options): Make it const.
11779 (set_socket_option, init_process): Use a const pointer.
11781 * lread.c (intern_c_string): New function.
11782 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11783 (defvar_int): Uset it. Make the name const char*.
11785 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11786 (defvar_int): Update prototypes.
11787 (DEFUN, EXFUN): Support for prototypes is now required.
11788 (intern_c_string): New prototype.
11789 (struct Lisp_Subr): Make symbol_name constant.
11791 * font.c (struct table_entry): Remove unused member. Make NAMES
11793 (weight_table, slant_table, width_table): Make constant.
11795 * emacs.c (struct standard_args): Make name and longname constant.
11797 * character.h (DEFSYM): Use intern_c_string.
11799 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11801 * alloc.c (make_pure_c_string): New function.
11803 * eval.c (Fautoload): Purecopy all arguments.
11805 2009-11-05 Kenichi Handa <handa@m17n.org>
11807 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11808 the buffer in case of replace.
11810 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11812 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11814 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11816 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11817 when applicable (bug#4851).
11819 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11820 (P_): Support for prototypes is now required.
11822 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
11824 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11827 2009-10-30 Eli Zaretskii <eliz@gnu.org>
11829 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
11831 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11833 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11835 * lread.c (Fload): Purecopy the file name when building
11836 Vpreloaded_file_list.
11838 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11840 * w32fns.c (syms_of_w32fns): Change default value of
11841 w32-scroll-lock-modifier to nil. (Bug#2827)
11843 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
11845 * minibuf.c (Fall_completions): Fix typos in docstring.
11847 2009-10-26 Andreas Schwab <schwab@redhat.com>
11849 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11851 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
11853 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11854 For delta < 0, skip check that only makes sense when the mini-window
11855 is going to be enlarged. (Bug#4534)
11857 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
11859 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11860 string in menu maps (Bug#4471).
11862 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
11864 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11865 FRAME_NS_VIEW on terminal frames (Bug#4765).
11867 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11869 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11870 DBUS_TYPE_UINTnn separately to get proper sign extension.
11872 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11873 can properly handle unsigned types.
11874 (make_uid, make_gid): Remove.
11876 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11879 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
11880 (system_process_attributes): Likewise.
11882 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11884 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11886 * eval.c (Fautoload): Purecopy the filename. Simplify.
11888 * category.c (Fdefine_category): Purecopy docstring.
11890 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11892 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11894 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11896 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
11898 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11899 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11902 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11904 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11905 (init_fileio_once):
11906 * lisp.h (init_fileio_once): Remove.
11907 * emacs.c (main): Don't call init_fileio_once.
11909 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11911 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11913 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11915 * doprnt.c (doprnt): Fix overflow check.
11917 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11919 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11921 * xterm.h (x_wait_for_event): Declare it.
11923 * xterm.c (pending_event_wait): New variable.
11924 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11925 see pending_event_wait.eventtype.
11926 (handle_one_xevent): Don't change gravity when parent changes.
11927 (x_new_font): Call change_frame_size with new rows/columns before we
11928 try to resize the frame.
11929 (x_wait_for_event): New function.
11930 (x_set_window_size_1): Don't change gravity unless change_gravity
11932 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11933 don't change frame size, instead wait for the ConfigureNotify.
11934 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11935 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11936 (x_initialize): Initialize pending_event_wait.
11938 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11941 * widget.c (EmacsFrameSetValues): Add comment.
11942 (EmacsFrameSetCharSize): Just call x_set_window_size.
11944 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11946 (flush_and_sync): Remove again.
11947 (xg_get_font_name): Suggest monospace if no previous font is known.
11949 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11951 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
11952 8th bit, since that only made sense in the ASCII world (bug#4751).
11954 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11956 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11957 processing pending events when event is filtered for input method.
11960 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
11962 * fns.c: Add #endif accidentally removed in previous change.
11964 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11966 * fns.c: Remove code for unsupported system: MAC_OS.
11967 * image.c: Likewise. Include setjmp.h.
11969 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11971 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11972 pixel -1 (bug #4742).
11974 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11976 * process.c (create_pty): Remove conditionals for no longer
11977 supported systems: UNIPLUS and RTU.
11980 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11982 * alloc.c: Do not define struct catchtag.
11983 * eval.c: Move struct catchtag definition ...
11984 * lisp.h: ... here.
11986 * image.c: Move png.h #include earlier to avoid warnings.
12087 * atimer.c: Include setjmp.h. (Bug#4643)
12089 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12091 Remove leftover table unibyte_to_multibyte_table.
12092 * character.c (unibyte_to_multibyte_table): Remove.
12093 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12094 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12095 * character.h (UNIBYTE_TO_CHAR): New macro.
12096 (MAKE_CHAR_MULTIBYTE): Use it.
12097 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12098 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12099 (message_dolog, set_message_1):
12100 * search.c (Freplace_match):
12101 * editfns.c (Fcompare_buffer_substrings):
12102 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12104 * insdel.c (copy_text, count_size_as_multibyte):
12105 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12106 * term.c (produce_glyphs):
12107 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12108 * regex.c (RE_CHAR_TO_MULTIBYTE):
12109 * cmds.c (internal_self_insert):
12110 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12112 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12114 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12116 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12118 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12120 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12122 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12124 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12125 still needed under Tiger.
12127 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12129 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12132 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12134 2009-10-15 Kenichi Handa <handa@m17n.org>
12136 * print.c (print_object): Escape a symbol like "2E10" too.
12138 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12140 Cleanups and changes for 64-bit compile under Snow Leopard.
12141 Based on suggestions by Erik Charlebois.
12143 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12145 * nsfont.m (ns_char_width): Replace deprecated call.
12146 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12148 (nsfont_open): Use ns_char_width() everywhere.
12149 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12151 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12153 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12156 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12158 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12159 Use stringWithUTF8String.
12160 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12162 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12163 Add formal protocol mention to inheritance.
12164 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12166 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12168 (ns_query_color): Use CGFloat where appropriate.
12169 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12170 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12173 * config.in (NS_HAVE_NSINTEGER): Drop.
12175 * dbusbind.c (dbus-method-return-internal)
12176 (dbus-method-error-internal): Use long format in printf, and cast
12179 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12180 in printf, and cast argument.
12182 * process.c (list_processes_1): Use long format in printf, and
12185 2009-10-11 Glenn Morris <rgm@gnu.org>
12187 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12189 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12191 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12192 menu bar with a small width so it doesn't enlarge the frame.
12194 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12196 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12198 2009-10-06 Glenn Morris <rgm@gnu.org>
12200 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12201 SOME_MACHINE_LISP (this enters indirectly via DOC).
12203 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12205 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12207 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12209 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12212 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12214 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12216 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12218 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12219 used anymore outside fileio.c.
12221 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12223 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12225 * lisp.h (Qdelete_directory_internal):
12226 Declare, instead of Qdelete_directory.
12228 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12230 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12232 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12234 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12236 * fileio.c (Fdelete_directory_internal): Rename from
12237 Fdelete_directory. It is not a command anymore. It has no file
12240 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12242 * xdisp.c (get_next_display_element): Use an enum in last change.
12244 2009-09-28 Kenichi Handa <handa@m17n.org>
12246 * xdisp.c (get_next_display_element): Pay attention to
12247 unibyte_display_via_language_environment in handling
12248 Vnobreak_char_display.
12250 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12252 * nsterm.h (ns_app_name): New extern variable.
12254 * nsterm.m (ns_app_name): New variable.
12255 (ns_term_init): Set and use it.
12256 (ns_term_shutdown): Use it.
12258 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12259 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12261 * nsfns.m (ns_set_name_iconic, ns_set_name)
12262 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12263 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12265 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12266 Remove double-casting in client_data comparison.
12268 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12270 * keyboard.c (make_lispy_event): Remember last wheel direction.
12271 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12273 2009-09-26 Glenn Morris <rgm@gnu.org>
12275 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12276 internal.elc. Add term/pc-win.elc.
12277 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12279 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12282 (lisp): Add NS_SUPPORT.
12283 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12285 2009-09-25 David Reitter <david.reitter@gmail.com>
12287 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12288 on Mac OS X 10.6+ (bug#4513).
12290 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12292 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12293 some parts of Emacs code (like font selection) don't grok them.
12294 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12296 2009-09-24 Andreas Schwab <schwab@redhat.com>
12298 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12300 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12302 * dired.c (Fdirectory_files): Fix typo in docstring.
12304 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12306 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12307 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12308 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12310 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12312 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12315 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12317 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12318 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12320 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12321 deleted (bug #4492).
12323 * nsfont.m (Vns_reg_to_script): New lisp variable.
12324 (syms_of_nsfont): Declare it.
12325 (ns_registry_to_script): New function.
12326 (ns_get_req_script): Call it.
12327 (ns_findfonts): Don't give up on non-unicode registry.
12329 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12331 2009-09-20 Tom Tromey <tromey@redhat.com>
12333 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12334 batch mode (bug#4228).
12336 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12338 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12339 carefully. (Bug #4339)
12341 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12343 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12345 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12347 * emacs.c (inhibit_x_resources): Update doc string for NS.
12348 (main) [HAVE_NS]: Don't process --no-init-file option.
12349 Remove legacy code for -NXHost. Fix error printf in daemon case.
12351 * nsterm.h (ns_no_defaults): Remove.
12353 * nsterm.m (ns_no_defaults): Remove.
12354 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12355 (ns_use_qd_smoothing): Remove legacy variable.
12356 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12357 don't update the NSWindow itself.
12358 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12359 Improve state detection and store user rect ourselves. (Bug #3581)
12361 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12362 ns_use_qd_smoothing.
12364 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12365 platform versions. Drop support for emacs-20-style face specs.
12366 (x-close-connection): Drop PSFlush() under OS X.
12367 (x-focus-frame): Activate the app first. (Bug #4180)
12369 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12371 * emacs.c (inhibit_x_resources): New variable.
12372 (main) [HAVE_NS]: Don't process --quick command line option.
12373 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12375 * lisp.h (inhibit_x_resources): Declare it extern.
12377 * w32reg.c (x_get_string_resource):
12378 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12380 2009-09-17 Eli Zaretskii <eliz@gnu.org>
12382 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12383 Add lisp/term/internal.elc.
12385 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12387 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12390 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12392 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12394 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12395 (OBJECTS_MACHINE): Remove, unused.
12397 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12399 * frame.c (x_get_resource_string): Remove unused.
12401 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12403 * xterm.c (x_new_font): Call change_frame_size before calling
12404 x_set_window_size, in case frame size won't change.
12406 * frame.c (x_set_font): Remove dead code.
12408 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12410 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12412 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12414 * lread.c (Fload): Don't output a message after loading an obsolete
12415 package any more (done in Lisp now).
12417 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
12419 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12421 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12423 * keymap.c (Fwhere_is_internal): Use nconc2.
12425 2009-09-11 Alan Mackenzie <acm@muc.de>
12427 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12430 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12432 * xdisp.c (display_mode_element): Detect cycles.
12434 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12436 * keymap.c (where_is_internal): Don't erroneously return nil right after
12438 (where_is_internal_1): Fix up typo.
12440 2009-09-11 Glenn Morris <rgm@gnu.org>
12442 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12443 share a common doc-string.
12445 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12447 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12448 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12450 * keymap.c (QCadvertised_binding): New constant.
12451 (syms_of_keymap): Initialize it.
12452 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12455 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12457 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12458 (parse_menu_item): Streamline since bindings are recomputed all the
12459 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12460 more and don't support lmenu's menu-alias any more either.
12462 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12463 (where_is_internal): Strip it down to only traverse the keymaps.
12464 Move the cache handling from Fwhere_is_internal to here.
12465 (Fwhere_is_internal): Move the handling of remapping and the choice of
12466 the best binding from where_is_internal to here.
12467 Unify the cached/noncached paths, so remapping is also handled
12468 correctly when the cache is used, and so the cache can be used to
12469 speed up remap-handling when applicable.
12470 Give preference to non-remapped bindings.
12471 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12472 non-remapped bindings.
12473 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12476 * xdisp.c (display_mode_element): Move list length limit from 50 to
12477 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12479 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
12481 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12483 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12485 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12488 * keymap.c (where_is_internal): Filter out shadowed remappings.
12489 Assume that where_is_internal returns unshadowed bindings to simplify
12490 the code and get rid of the gotos. Use ASIZE.
12492 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12494 * xterm.c (x_focus_changed): If we get a focusout and pointer
12495 is invisible, make it visible.
12497 * xterm.h: Remove condition for declaration of
12498 x_*_window_to_frame.
12500 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12502 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12503 initial terminal as well.
12505 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12507 * xterm.h: Rename x_non_menubar_window_to_frame to
12508 x_menubar_window_to_frame.
12510 * xterm.c: Remove declarations also in xterm.h.
12511 (XTmouse_position): Do not return valid positions
12512 for clicks in the menubar and the toolbar for Gtk+.
12514 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12515 if the widget for the event has the same top level as a frame,
12517 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12518 internal windows, bug #4122.
12519 (x_non_menubar_window_to_frame): Remove.
12521 2009-09-02 Glenn Morris <rgm@gnu.org>
12523 * buffer.c (default-major-mode): Move most of the doc from here...
12524 (major-mode): ... to here.
12526 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
12528 * process.c (wait_reading_process_output): Keep the descriptor
12529 when pty is used by a non-child process, e.g., in I/O buffer of
12530 GDB this allows inferior to be restarted.
12532 2009-08-29 Eli Zaretskii <eliz@gnu.org>
12534 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12535 both branches into one.
12537 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12539 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12540 (main): Use enable-multibyte-characters rather than
12541 default-enable-multibyte-characters. Output a warning message when
12542 running a unibyte session.
12544 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12546 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12547 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12548 (copy_data_segment): Also copy __program_vars section.
12549 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12550 (dump_it) [LC_DYLD_INFO]: Use it.
12552 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12554 2009-08-28 Eli Zaretskii <eliz@gnu.org>
12556 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12558 (buildobj.h): Rename from $(SRC)/buildobj.h.
12559 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12561 (clean): Add buildobj.h.
12563 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12565 * print.c (print_object): Set escapeflag to 1 when printing
12566 hashtable keys and values.
12568 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12570 * lread.c (read_integer): Use doubles (and potentially return a float
12571 number) as we do in string-to-number.
12572 (read1): Use strtol to read integers, signal errors on strtol's
12573 overflow and use floats if strtol's output is too large for
12576 2009-08-27 Eli Zaretskii <eliz@gnu.org>
12578 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12579 (make-buildobj-SH): Fix last change.
12580 (SRC): Move to before where it's first used.
12582 2009-08-27 Kenichi Handa <handa@m17n.org>
12584 * process.c (send_process): Use encode_coding_object instead of
12585 encode_coding_string to perform eol-conversion even if the string
12588 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12591 * cmds.c (Fself_insert_command): Avoid unnecessay
12592 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
12594 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12596 * callproc.c (Fcall_process): Remove always true #if.
12598 * lisp.h: Replace #if 0 code for checking with text pointing to
12599 the --enable-checking configure flag.
12601 * emacs.c (main): Mention the --enable-profiling configure flag
12602 instead of using CFLAGS.
12604 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
12606 * Makefile.in (buildobj.h): New target.
12607 (doc.o): Depend on it.
12608 (temacs${EXEEXT}): Don't generate buildobj.lst.
12609 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12610 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12611 ($(BLD)/doc.$(O)): Depend on it.
12612 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12613 provided by Eli Zaretskii.)
12614 ($(TEMACS)): Don't generate buildobj.lst.
12615 * doc.c: Include buildobj.h.
12616 (buildobj): New static variable.
12617 (Fsnarf_documentation): Use it, instead of opening and reading
12620 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
12622 * dbusbind.c (Fdbus_call_method)
12623 (Fdbus_call_method_asynchronously): Use English numeric format for
12624 timeout values in doc string.
12626 2009-08-25 Kenichi Handa <handa@m17n.org>
12628 * alloc.c (mark_char_table): New function.
12629 (mark_object): Use mark_char_table for a char-table.
12631 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12632 (CHAR_TABLE_REF): Use it.
12634 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
12636 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12637 before invoking the newly build emacs to check for load-path
12640 2009-08-22 Glenn Morris <rgm@gnu.org>
12642 * Makefile.in (bootstrap_exe): New variable.
12643 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12644 Use ${bootstrap_exe}.
12646 2009-08-22 Eli Zaretskii <eliz@gnu.org>
12648 * coding.h (encode_coding_string): Don't encode unibyte strings.
12651 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
12653 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12655 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12656 intended as hotfix only.
12657 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12659 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12661 * nsterm.m (ns_get_color): Update documentation properly for last
12662 change, and clean up loose ends in the code left by it.
12663 Fix longstanding bug with 16-bit hex parsing, and add support for
12664 yet another X11 format (rgb:r/g/b) for compatibility.
12665 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12666 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12668 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12670 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12672 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
12674 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12675 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12676 (xd_initialize, xd_pending_messages): Check, whether
12677 $DBUS_SESSION_BUS_ADDRESS is set.
12679 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12681 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12683 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12685 2009-08-20 Glenn Morris <rgm@gnu.org>
12687 * emacs.c (system-type): Doc fix.
12689 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12691 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12692 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12694 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
12696 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12698 (xd_initialize): Revert change from 2009-08-16.
12700 2009-08-18 Kenichi Handa <handa@m17n.org>
12702 * fontset.c (Ffontset_font): If a nil element is found in a
12703 font-group vector, return nil.
12705 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
12707 * process.c (status_notify): Don't perform redisplay.
12708 (Fdelete_process, list_processes_1, process_send_signal):
12709 Expliticly perform redisplay.
12710 (wait_reading_process_output): Always check process status, but
12711 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12713 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
12715 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
12716 (XFLOAT_INIT): New macro for storing a float value.
12717 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12718 * fns.c (sxhash): Copy out the value of a float in order to
12720 * dbusbind.c (xd_append_arg): Likewise.
12722 * emacs.c (main): Don't call syms_of_data twice.
12724 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
12726 * dbusbind.c (xd_initialize): Add connection file descriptor to
12727 input_wait_mask, in order to let select() detect, whether a new
12728 message has been arrived.
12729 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
12731 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
12733 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12736 * lisp.h (xd_pending_messages): Declare.
12738 * keyboard.c (readable_events): Call xd_pending_messages.
12740 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
12742 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
12744 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12746 * buffer.c (set_buffer_internal_1)
12747 (swap_out_buffer_local_variables): Check for unbound local
12748 variables (Bug#4138).
12750 2009-08-14 Eli Zaretskii <eliz@gnu.org>
12752 * process.c (create_pty): Fix last change.
12754 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
12756 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12757 (xbm_load_image): Caller changed.
12758 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
12760 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
12762 * process.c (create_pty): New function.
12763 (Fstart_process): Use it to allow Emacs to just associate a pty
12764 with the buffer. See associated change in gdb-mi.el.
12765 (list_processes_1): Deal with no program name.
12766 (start_process_unwind): Use pid == -2 to mean no process.
12768 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12770 * cmds.c (nonundocount): New global variable.
12771 (keys_of_cmds): Initialize it.
12772 (Fself_insert_command): Use it to combine upto 20 sequential chars
12773 into a single undo entry, just like the Qself_insert_command code in
12775 Call frame_make_pointer_invisible, also like the Qself_insert_command
12776 code in keyboard.c does.
12777 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12778 than its own local replacement for it.
12780 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
12782 * fns.c (concat): Don't re-set string length to its current value.
12784 * coding.h (decode_coding_string, encode_coding_string):
12787 * doprnt.c (doprnt_lisp): Delete unused function.
12788 (doprnt): Merge with doprnt1, discarding lispstrings code.
12789 * lisp.h (doprnt_lisp): Don't declare.
12791 2009-08-07 Juri Linkov <juri@jurta.org>
12793 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12795 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12797 * print.c (syms_of_print): Undo previous change.
12799 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12801 * lread.c (read1, syms_of_lread): Read hashtables back from the
12804 * print.c (print_preprocess, print_object): Print hashtables fully
12806 (syms_of_print): Provide 'hashtable-print-readable.
12808 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12810 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12812 (nsfont_open): Handle case when entity has no family.
12814 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12816 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12817 element, not a list, for match case.
12819 2009-07-28 Kenichi Handa <handa@m17n.org>
12821 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12824 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12825 font_parse_xlfd. Check font properties more rigidly.
12827 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12829 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12832 2009-07-27 Kenichi Handa <handa@m17n.org>
12834 * xfaces.c (face_with_height): Call font_clear_prop.
12836 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
12838 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12840 * xterm.c (x_term_init): Use Qx.
12842 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12844 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
12845 (ns_get_color): Revert 2009-07-16 change.
12847 2009-07-25 Eli Zaretskii <eliz@gnu.org>
12849 * lread.c (syms_of_lread) <force_load_messages>: New variable.
12850 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
12852 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
12854 * coding.h (decode_coding_string, encode_coding_string):
12857 * lread.c: Rewrite 2009-07-21 changes.
12858 (load_depth): Delete.
12859 (Qload_in_progress): New variable.
12860 (load_unwind): Don't reference load_depth or load_in_progress.
12861 (Fload): Likewise; specbind Qload_in_progress instead.
12862 (init_lread): Don't initialize load_depth.
12863 (syms_of_lread): Initialize and protect Qload_in_progress.
12865 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12867 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12869 2009-07-23 Yavor Doganov <yavor@gnu.org>
12871 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12873 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12875 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
12876 Bugs 3792, 3720, 2402.
12877 (ns_lookup_indexed_color): Check for bad index.
12878 (ns_index_color): Init unused slot to 0.
12879 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12880 Bug 3714, possibly 3082.
12882 2009-07-22 Jason Rumney <jasonr@gnu.org>
12884 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12885 Position IME window at cursor (Bug#2570).
12886 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12887 (globals_of_w32fns): Dynamically load functions required above.
12889 * w32term.c (w32_draw_window_cursor): Send message to reposition
12892 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
12894 * fileio.c: Revert 2009-07-16 changes.
12895 (Vauto_save_include_big_deletions): New variable.
12896 (Fdo_auto_save): Disable auto-save only if
12897 auto-save-include-big-deletions is nil.
12899 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
12901 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12902 the overflowed pixels into account (Bug#3879).
12904 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
12906 * lread.c (load_depth): New variable.
12907 (Fload, load_unwind, init_lread): Set it to the load recursion
12908 depth; set load_in_progress as a simple boolean based on the
12909 current load_depth. (Bug#3892)
12911 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12913 * nsfont.m (ns_has_attribute): Remove.
12914 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12916 2009-07-18 Juri Linkov <juri@jurta.org>
12918 * process.c (Fset_process_query_on_exit_flag): Mention killing
12919 a buffer in docstring.
12921 2009-07-17 Kenichi Handa <handa@m17n.org>
12923 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12925 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12927 * nsfns.m (Fns_set_alpha): Remove function.
12928 (syms_of_nsfns): Don't defsubr it.
12930 * nsterm.m (ns_get_color): Remove incompatible color formats.
12931 (ns_color_to_lisp): Generate #rrggbb color format string.
12933 2009-07-16 Richard Stallman <rms@gnu.org>
12935 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12936 (Fset_buffer_auto_saved): Handle save_length = -2.
12938 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
12940 * xterm.c (Qx_gtk_map_stock): New var.
12942 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12943 of calling intern each time.
12945 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12947 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12950 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12952 2009-07-14 Kenichi Handa <handa@m17n.org>
12954 * font.c (font_vconcat_entity_vectors): New function.
12955 (struct font_sort_data): New member font_driver_preference.
12956 (font_compare): Check font_driver_preference.
12957 (font_sort_entities): The format of the first argument changed.
12958 (font_delete_unmatched): Likewise.
12959 (font_list_entities): The return type changed.
12960 (font_select_entity): The format of the second argument changed.
12961 (font_find_for_lface): Adjuste for the above changes.
12962 Don't suppress the checking of C even if the repertory supports it.
12963 (Flist_fonts): Adjust for the above changes.
12965 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12966 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
12967 Reject a font who has adstyle property that is different from a
12968 langname derived from registry property.
12969 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
12971 2009-07-13 Eli Zaretskii <eliz@gnu.org>
12973 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12974 local copy of dirfilename.
12976 2009-07-13 Kenichi Handa <handa@m17n.org>
12978 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12981 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12982 calling XSYMBOL (sym).
12984 2009-07-11 Eli Zaretskii <eliz@gnu.org>
12986 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12988 (directory_files_internal) [WINDOWSNT]:
12989 Bind w32-get-true-file-attributes to either t or nil, depending whether
12990 the filesystem of the directory is fast or slow.
12992 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12994 (is_slow_fs): New function.
12995 (stat): Use it to determine whether to issue more system calls to
12996 get accurate file attributes, when w32-get-true-file-attributes is
12999 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13001 * xfns.c (Fx_select_font): Remember last font selected in
13002 x_last_font_name and use that the next time. Also try the frame
13003 parameter font-parameter as default to the font dialog.
13005 2009-07-10 Kenichi Handa <handa@m17n.org>
13007 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13009 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13011 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13013 * w32.c (stat): Treat UNC file names as residing on remote
13016 2009-07-09 Kenichi Handa <handa@m17n.org>
13018 * fontset.c (fontset_find_font): Fix previous change.
13020 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13022 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13023 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13026 2009-07-08 Kenichi Handa <handa@m17n.org>
13028 * fontset.c (fontset_find_font): Fix the logic of handling
13030 (font_for_char): Delete unused var.
13031 (generate_ascii_font_name): Delete it.
13033 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13035 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13036 (encode_coding_sjis): Fix the code range check.
13038 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13040 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13041 (Fexpand_file_name): Copy string data properly (Bug#3772).
13043 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13045 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13048 2009-07-07 Kenichi Handa <handa@m17n.org>
13050 * character.h (unibyte_has_multibyte_table): Delete extern.
13051 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13053 * charset.c (Fset_charset_priority): Update charset_unibyte.
13054 (syms_of_charset): Initialize charset_unibyte.
13056 * character.c (unibyte_has_multibyte_table): Delete it.
13057 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13059 (multibyte_char_to_unibyte_safe): Likewise.
13060 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13062 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13063 (x_produce_glyphs): Likewise.
13065 * .gdbinit (xcharset): Fix the treating $arg0.
13067 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13069 Emulation of `getloadavg' on MS-Windows.
13070 * w32.c: Include float.h.
13071 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13072 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13073 (get_native_system_info, get_system_times): New functions.
13074 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13075 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13076 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13077 g_b_init_get_system_times, and num_of_processors.
13079 2009-07-03 Jason Rumney <jasonr@gnu.org>
13081 * w32term.c (w32_initialize): Use standard types.
13083 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13085 * dired.c (Ffile_attributes): Decode user and group names by the
13086 locale's encoding. (Bug#3443)
13088 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13090 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13091 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13093 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13095 * term.c (init_tty): Remove spurious #ifdef.
13097 * m/mips.h: Mention this file is also used for netbsd.
13098 * m/pmax.h: Remove file.
13100 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13102 * xterm.h (struct x_display_info): Add invisible_cursor.
13103 (struct x_output): Add current_cursor.
13105 * xterm.c (XTtoggle_invisible_pointer): New function.
13106 (x_define_frame_cursor): Don't define cursor if invisible or the
13107 same as before. Set current_cursor.
13108 (x_create_terminal): Set toggle_invisible_pointer_hook.
13110 * xfns.c (make_invisible_cursor): New function.
13111 (x_set_mouse_color): Call make_invisible_cursor.
13112 Set current_cursor.
13113 (x_window): Set current_cursor.
13115 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13117 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13118 inserting a character.
13119 (read_avail_input): Call frame_make_pointer_visible.
13121 * frame.c (Vmake_pointer_invisible): New variable.
13122 (frame_make_pointer_invisible, frame_make_pointer_visible):
13124 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13126 * frame.h: Declare frame_make_pointer_invisible and
13127 frame_make_pointer_visible.
13128 (struct frame): Add pointer_invisible.
13130 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13132 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13133 frame isn't visible.
13134 (xg_frame_resized): If width/height is -1, get size of window
13137 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13140 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13141 here or call change_frame_size. Just call flush_and_sync.
13142 (flush_and_sync): Reintroduce.
13144 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13146 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13148 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13149 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13151 * frame.h: Declare Qsticky.
13153 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13155 * nsfns.m (ns_frame_parm_handlers): Ditto.
13157 * frame.c: Declare Qsticky.
13158 (frame_parms): Add sticky.
13160 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13162 * xterm.h: Declare x_set_sticky.
13164 * xterm.c (x_set_sticky): New function.
13166 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13167 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13168 xg_tool_bar_proxy_help_callback.
13170 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13172 * frame.c: Qmaximized is new.
13173 (x_set_frame_parameters): Do not handle fullscreen specially.
13174 Only set width and height if explicitly set.
13175 (x_set_fullscreen): Handle Qmaximized.
13176 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13177 (syms_of_frame): Initialize Qmaximized.
13179 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13180 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13182 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13183 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13184 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13185 set gravity to NorthWestGravity when USE_GTK.
13186 (set_wm_state): New function.
13187 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13188 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13189 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13190 or the case when no window manager is running. That means remove calls
13191 to x_real_positions and x_fullscreen_adjust.
13193 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13194 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13196 (xg_height_changed): New function.
13197 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13198 and gtk_window_set_policy. Set frame gravity after parsing the
13200 (xg_update_frame_menubar, free_frame_menubar)
13201 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13202 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13203 Remove calls to xg_frame_set_char_size.
13205 2009-07-01 Kenichi Handa <handa@m17n.org>
13207 * keyboard.c (decode_keyboard_code): New function.
13208 (tty_read_avail_input): Decode the input bytes if necessary.
13210 * coding.c (setup_coding_system):
13211 Initialize coding->carryover_bytes to 0.
13212 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13213 use Qno_conversion.
13215 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13217 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13219 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13221 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13223 2009-06-30 Jason Rumney <jasonr@gnu.org>
13225 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13227 Set user model ID if supported (bug#1849).
13229 2009-06-29 Jim Meyering <meyering@redhat.com>
13231 Remove useless if-before-xfree test.
13232 * nsfont.m (nsfont_close): Remove useless test.
13233 * term.c (delete_tty): Likewise.
13234 * w32.c (system_process_attributes): Likewise.
13235 * w32font.c (w32font_close): Likewise.
13236 * xfaces.c (x_free_gc): Likewise.
13237 * xselect.c (buffer): Likewise.
13239 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13241 * process.c (send_process): Keep decoded string in a local
13242 variable and protect it from GC. (Bug#3521)
13244 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13246 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13247 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13249 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13251 * xdisp.c (start_display, handle_face_prop)
13252 (move_it_vertically_backward, cursor_row_fully_visible_p)
13253 (redisplay_window, try_window_id, produce_image_glyph):
13254 Delete some #ifdef-ed out code chunks that are now obsolete.
13256 * xterm.c (x_update_window_begin, x_new_focus_frame)
13257 (x_scroll_bar_handle_click, handle_one_xevent)
13258 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13259 (x_make_frame_visible, x_make_frame_invisible)
13260 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13261 code chunks that are now obsolete.
13263 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13265 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13266 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13267 for hours, when optimzation is enabled.
13268 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13269 (xd_read_message): Make them static.
13271 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13273 * term.c (turn_on_face): Allow simultaneously bold and dim
13274 terminal faces (Bug#3530).
13276 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13278 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13280 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13281 truncation glyphs (Bug#3686).
13283 2009-06-27 Glenn Morris <rgm@gnu.org>
13285 * m/pmax.h: Restore file, with only netbsd portions.
13287 2009-06-26 David Reitter <david.reitter@gmail.com>
13289 * nsterm.m (keydown): Avoid infinite loop.
13291 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13293 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13294 the arg FORCE_SYMBOL.
13296 2009-06-25 Kenichi Handa <handa@m17n.org>
13298 * fontset.c (fontset_find_font): When a usable rfont_def is found
13299 in a fallback font-group, make it the first element of the group.
13301 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13303 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13305 2009-06-24 Kenichi Handa <handa@m17n.org>
13307 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13309 (fontset_font): Record the availability of a font for C both in
13310 the realized fontsets of the current one and the default one.
13312 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13314 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13315 conditional, it is always defined on AIX.
13317 2009-06-23 Miles Bader <miles@gnu.org>
13319 * window.c (Vrecenter_redisplay): New variable.
13320 (syms_of_window): Initialize it.
13321 (Qtty): New extern declaration.
13322 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13324 2009-06-23 Jim Meyering <meyering@redhat.com>
13326 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13327 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13328 pointer dereferences are guaranteed to be valid.
13330 2009-06-23 Kenichi Handa <handa@m17n.org>
13332 * emacs.c (main): Call init_font ().
13334 * font.h (Vfont_log): Extern it.
13335 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13337 * font.c (font_sort_entities, font_list_entities)
13338 (font_matching_entity, font_open_entity)
13339 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13340 (Vfont_log): Delete static.
13341 (font_log_env_checked): Delete this variable.
13342 (font_add_log): Don't check font_log_env_checked.
13343 (font_deferred_log): Check Vfont_log.
13344 (init_font): New function.
13346 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13348 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13350 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13352 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13354 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13355 (face_for_char): Don't call font_deferred_log here.
13356 (font_for_char): Likewise.
13358 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13360 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13361 rather than its background_width for drawing the overline and
13362 underline (Bug#489).
13364 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13365 rather than its background_width for drawing the overline and
13366 underline (Bug#489).
13367 (xg_default_icon_file): New variable.
13368 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13369 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13371 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13372 (load_overlay_strings): Remove externs.
13373 (fast_find_position): Function deleted.
13374 (mouse_face_from_buffer_pos): New function, based on
13375 fast_find_position. Correctly handle before-strings,
13376 display-strings, and after-strings (Bug#1220).
13377 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13379 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13381 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13382 (move_it_in_display_line_to, move_it_in_display_line_to)
13383 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13385 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13389 2009-06-21 Jason Rumney <jasonr@gnu.org>
13391 * w32term.c (keyboard_codepage): New static variable.
13392 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13393 (w32_read_socket) [WM_CHAR]: Use it to decode character
13395 (w32_initialize): Initialize it.
13396 (codepage_for_locale): New function.
13398 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
13400 * process.c (status_message): Pass Faset index argument as a lisp
13401 object, so as to work with USE_LISP_UNION_TYPE.
13403 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13405 * coding.c (Ffind_coding_systems_region_internal):
13406 Cache checked characters.
13408 2009-06-18 Kenichi Handa <handa@m17n.org>
13410 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13412 2009-06-18 Andreas Schwab <aschwab@redhat.com>
13414 * xdisp.c (redisplay_internal): Check that the frame is still
13415 live after redisplay of its windows.
13416 (redisplay_windows): Check that the window is still live.
13418 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13420 * coding.c (detect_coding_utf_16): Fix previous change.
13422 2009-06-16 Kenichi Handa <handa@m17n.org>
13424 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13425 UTF-16 by checking the dispersion of Eth and Oth bytes.
13427 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13429 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13431 2009-06-15 Kenichi Handa <handa@m17n.org>
13433 * process.c (status_message): Fix previous change. Be sure to
13434 decode a localized string.
13436 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13438 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13439 add comment explaining why.
13441 2009-06-14 Sidney Markowitz <sidney@sidney.com>
13443 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13445 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13447 * nsfont.m (ns_attribute_value): Remove.
13448 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13449 (ns_has_attribute): Shrink the normal range.
13450 (ns_findfonts): Don't worry about requested spec in determining
13451 need for synthItal.
13452 (ns_get_covering_families): Retain scriptToFamilies.
13454 2009-06-14 Seiji Zenitani <zenitani@mac.com>
13456 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13458 2009-06-11 Kenichi Handa <handa@m17n.org>
13460 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13461 overhang for the static composition case.
13463 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13465 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13466 overhang for the automatic composition case.
13468 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13471 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
13473 * xdisp.c (get_next_display_element): When handling wrap-prefix
13474 and line-prefix, treat \n as a control character (bug#3502).
13476 2009-06-10 Kenichi Handa <handa@m17n.org>
13478 * font.c (font_parse_family_registry): Fix for one-char foundry.
13479 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13481 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13483 * process.c (status_message): Fix handling of multibyte signal
13486 2009-06-09 Jim Meyering <meyering@redhat.com>
13488 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13489 color name is missing.
13491 2009-06-09 Kenichi Handa <handa@m17n.org>
13493 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13494 FROM-CODE and TO-CODE are codepoints of CHARSET.
13496 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13498 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13500 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13502 Changes to support :script/:lang/:otf in NS font driver.
13503 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13504 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13505 indicate not part of font driver interface, and change callers.
13506 (ns_get_family): Remove pointless null check.
13507 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13508 ns_spec_to_descriptor, ns_descriptor_to_entity.
13509 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13510 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13511 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13512 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13513 (ns_get_req_script, ns_accumulate_script_ranges)
13514 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13516 (nsfont_list, nsfont_match): Use ns_findfonts.
13517 (nsfont_open): Use font descriptor instead of traits.
13518 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13519 (dump_glyphstring): Rename to ns_dump_glyphstring.
13521 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13523 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13525 * fontset.c (fontset_from_font): Remove NS-specific code.
13527 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
13529 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13532 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
13534 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
13536 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13538 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13540 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
13542 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13543 account for the overflowing of newlines into the last glyph on the
13544 display line (Bug#3482).
13546 2009-06-05 David Reitter <david.reitter@gmail.com>
13548 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13549 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
13550 Fns_selection_exists_p, Fns_selection_owner_p.
13552 2009-06-03 Jason Rumney <jasonr@gnu.org>
13554 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13555 available. (Bug#3379)
13557 2009-05-29 Kenichi Handa <handa@m17n.org>
13559 * coding.c (get_translation_table):
13560 Check Venable_character_translation.
13562 2009-05-26 David Reitter <david.reitter@gmail.com>
13564 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13565 (x_make_frame_visible): Move frame to front rather than calling
13567 (keyDown:): Do not swallow events that aren't re-sent if frame
13569 (drawRect:): Do not set visibility/iconified flags because
13570 drawRect may be called by NSView even if the frame is hidden.
13572 * nsfns.m (Fx_create_frame): Follow other ports in
13573 determining visibility; default to t. Ensure async_visible is set.
13575 2009-05-23 Eli Zaretskii <eliz@gnu.org>
13577 * dired.c (Ffile_attributes): Doc fix.
13579 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
13581 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13583 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13585 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13586 and xfont_scratch_props.
13587 (syms_of_xfont): Do it here instead.
13588 (xfont_find_ccl_program): Delete, unused.
13589 (xfont_open): Delete unused var `i'.
13591 2009-05-21 Kenichi Handa <handa@m17n.org>
13593 * fontset.c (Qlatin): Don't make it static.
13595 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13597 (xfont_scripts_cache, xfont_scratch_props): New variables.
13598 (Qlatin, Vscalable_fonts_allowed): Extern it.
13599 (xfont_list_pattern): Argument changed. Callers changed.
13600 Check Vscalable_fonts_allowed. Check the support of a script.
13601 (xfont_list): Don't reject a font spec with :script property.
13602 (xfont_has_char): Fix setting of encoding.
13603 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13604 xfont_scratch_props.
13606 2009-05-19 Kenichi Handa <handa@m17n.org>
13608 * font.c (font_sort_entities): Rename from font_sort_entites.
13611 2009-05-18 Kenichi Handa <handa@m17n.org>
13613 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13615 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13617 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13618 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13620 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13622 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13623 (x_delete_terminal): Dissociate resource database from display and
13624 then call XrmDestroyDatabase before closing display.
13626 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13628 * nsterm.m (ns_read_socket): Remove unused variable.
13629 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13630 whether selected frame is viable before raising it (based on patch
13631 by David Reitter), and improve commentary.
13632 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
13634 2009-05-15 Kenichi Handa <handa@m17n.org>
13636 * font.c (Ffont_spec): Check arguments.
13638 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
13640 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13641 weight when testing attributes (Bug#3282).
13643 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13645 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13646 what we expect to get in the next ConfigureNotify event.
13648 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13649 before Xft one (Bug#1696).
13651 2009-05-07 David Reitter <david.reitter@gmail.com>
13653 * nsfns.m (Fx_display_planes): Compute bitplanes using
13654 NSBitsPerPixelFromDepth (Bug#3207).
13656 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
13658 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13660 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
13662 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13664 2009-05-07 David Reitter <david.reitter@gmail.com>
13666 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13667 Respect mouse face background.
13669 2009-05-07 David Reitter <david.reitter@gmail.com>
13671 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13672 Mouse movement/highlight: bracket drawing operations
13673 in ns_update_begin and ns_update_end.
13675 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13677 * nsfns.m (ns_get_screen): Rewrite.
13678 Don't presume selected-frame is of type `ns'.
13680 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13683 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13685 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13687 * keyboard.h (add_user_signal): Fix typo in extern.
13689 * lisp.h (add_user_signal): Remove extern.
13691 * unexelf.c (unexec): Consider a section to precede the .bss section
13692 if its addresses overlap that of .bss.
13693 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13694 instead of dumping process.
13696 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13698 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13700 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13702 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13704 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13706 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13709 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13711 * process.c (read_process_output): Make sure the current buffer is
13714 * coding.c (record_conversion_result): Don't modify
13715 Vlast_code_conversion_error for successful result.
13716 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13718 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13720 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
13721 (load_charset_map): Remove unnecessary code.
13723 2009-04-30 David Reitter <david.reitter@gmail.com>
13725 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
13728 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
13730 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13732 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13733 face_at_buffer_position.
13734 (face_before_or_after_it_pos, get_next_display_element)
13735 (note_mouse_highlight): Update face_at_buffer_position call.
13737 * term.c (term_mouse_highlight):
13738 * msdos.c (IT_note_mouse_highlight):
13739 * fontset.c (Finternal_char_font):
13740 * font.c (font_at, font_range): Update face_at_buffer_position call.
13742 * dispextern.h (face_at_buffer_position): Update prototype.
13744 2009-04-30 Kenichi Handa <handa@m17n.org>
13746 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
13748 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13750 * callproc.c (Fcall_process): Fix GC protection. Make sure
13751 current buffer is always restored.
13753 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13755 * atimer.c (init_atimer): Also clear stopped_atimers.
13757 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13759 * process.c (create_process): Clean up merger residues of
13762 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
13764 * lread.c (Vread_circle): New variable.
13765 (read1): Disable recursive read if Vread_circle is nil.
13767 2009-04-29 Kenichi Handa <handa@m17n.org>
13769 * fontset.h (set_default_ascii_font): Delete extern.
13771 * fontset.c (set_default_ascii_font): Delete this unused function.
13773 * frame.c (x_set_font): When ARG is a font-object, check if the
13774 font-object matches with the ASCII font-spec of the frame's
13775 fontset. If not, create a new fontset for the frame. (Bug #3075)
13777 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13779 * fns.c (Flocale_info): Protect vector from GC during decoding.
13781 * process.c (Fstart_process): Protect argv strings from GC during
13784 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13786 * sysdep.c: Include <ctype.h>.
13788 2009-04-27 David Reitter <david.reitter@gmail.com>
13790 * nsfont.m (nsfont_open): Remove unused variable shrink.
13791 Remove commented-out code.
13793 2009-04-26 Johan Bockgård <bojohan@gnu.org>
13795 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13797 2009-04-25 Jason Rumney <jasonr@gnu.org>
13799 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13801 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13803 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13804 Swap bytes in short integer if fringe bitmap width > 8.
13806 2009-04-23 Kenichi Handa <handa@m17n.org>
13808 * xfaces.c (Fx_list_fonts): If a font size is specified in
13809 PATTERN, set it in returned scalable fonts.
13811 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
13813 * keyboard.c (Fset_input_meta_mode): Doc fix.
13815 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13817 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
13819 * coding.c (Fterminal_coding_system): Doc fix.
13821 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13822 (Fx_display_pixel_height, Fx_display_planes)
13823 (Fx_display_color_cells, Fx_server_max_request_size)
13824 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13825 (Fx_display_mm_height, Fx_display_mm_width)
13826 (Fx_display_backing_store, Fx_display_visual_class)
13827 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13828 Doc fixes, replacing "terminal id" with "terminal object".
13829 (check_x_display_info): Handle terminal objects instead of
13832 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13833 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
13834 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13835 Doc fixes, replacing "terminal id" with "terminal object".
13837 2009-04-21 Kenichi Handa <handa@m17n.org>
13839 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
13840 (font_score): Check AVGWIDTH too.
13842 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13844 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13845 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
13847 2009-04-19 Jason Rumney <jasonr@gnu.org>
13849 The following changes fix Bug#3005 for wide glyphs on each platform,
13850 without reintroducing Bug#1258 for stretch glyphs.
13852 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13853 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13854 get_phys_cursor_geometry.
13856 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
13857 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13858 using get_phys_cursor_geometry.
13860 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13861 correctly calculated.
13863 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13865 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13866 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
13867 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13870 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13872 * font.c (font_put_frame_data): Use xfree instead of free.
13874 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
13876 * w32font.c (Qja, Qko): Remove declarations.
13877 (syms_of_w32font): Don't DEFSYM them.
13879 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
13881 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13883 * font.h (Qja, Qko): Extern them.
13885 * ftfont.c (Qja, Qko): Remove declarations.
13887 * xfont.c (Qja, Qko): Remove declarations.
13889 2009-04-17 Kenichi Handa <handa@m17n.org>
13891 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13892 string from a vector to handle Latin-1 characters correctly.
13894 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13895 entity even if the cache hits.
13897 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13899 * search.c (boyer_moore): Use zero as marker value for a possible
13900 match instead of depending on overflow behavior. (Bug#2844)
13902 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13903 * lisp.h: Adjust prototypes.
13905 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
13907 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13910 2009-04-16 Kenichi Handa <handa@m17n.org>
13912 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
13914 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13917 * ftfont.c (Qja, Qko): Don't make them static.
13918 (enum ftfont_cache_for): New enum.
13919 (fc_charset_table): Undo the previous change.
13920 (ftfont_get_latin1_charset): Delete it.
13921 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13922 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
13923 non-scarable font, try to get AVERAGE_WIDTH.
13924 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13925 Change ft_face_cache from a list of a hash-table. Don't check
13926 `ja' and `ko' adstyle here.
13927 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13928 FTFONT_CACHE_FOR_CHARET.
13929 (ftfont_get_charset): Undo the previous change.
13930 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
13931 (ftfont_close): Likewise.
13932 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13934 * font.c (font_sort_entites): Change the meaning of the arg
13935 BEST-ONLY. Don't optimize for VEC of lenght 1.
13936 (font_select_entity): Just return the value of font_sort_entites.
13938 * xfaces.c (merge_face_vectors): Reflect font properties in
13939 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13940 font_clear_prop if a face attribute doesn't change.
13942 * charset.h (charset_ksc5601): Extern it.
13944 * charset.c (charset_ksc5601): New variable.
13945 (Fdefine_charset_internal): Set charset_ksc5601.
13946 (init_charset_once): Initialize charset_ksc5601 to -1.
13948 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13950 * fileio.c (history_delete_duplicates): Remove unused declaration.
13952 * callint.c (history_delete_duplicates): New declaration.
13953 (Fcall_interactively): Remove command history duplicates when
13954 history_delete_duplicates is true.
13956 2009-04-14 Eli Zaretskii <eliz@gnu.org>
13958 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13960 2009-04-14 Kenichi Handa <handa@m17n.org>
13962 * font.c (Ffont_info): Fix docstring. Fix the second element of
13963 the returned value (bug#2949).
13965 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
13967 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13969 2009-04-14 Kenichi Handa <handa@m17n.org>
13971 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13972 encoding charset is ascii_compatible.
13974 * charset.c (Fdefine_charset_internal): Make charset
13975 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13976 code_offset is 0, and covers all ASCII characters.
13978 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13980 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13981 (ns_string_to_pasteboard_internal):
13982 * nsmenu.m (process_dialog):
13983 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13984 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13985 * lisp.h (Fx_load_color_file): Declare.
13987 2009-04-13 Kenichi Handa <handa@m17n.org>
13989 * font.c (font_delete_unmatched): Preserve the order of list elements.
13990 (font_select_entity): Suppress the code to optimize for the same
13992 (font_load_for_lface): Get a font that supports at least ASCII
13995 * ftfont.c (Qja, Qko): New variables.
13996 (fc_charset_table): Delete uniquifier data for iso8859-1.
13997 (ftfont_get_latin1_charset): New function.
13998 (get_adstyle_property): New function.
13999 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14001 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14002 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14004 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14005 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14006 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14008 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14009 (syms_of_ftfont): DEFSYM Qja and Qko.
14011 2009-04-09 Kenichi Handa <handa@m17n.org>
14013 * charset.c (map_charset_chars): For a charset of `superset'
14014 method, fix calculation of code range.
14016 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14017 from the list of extra properties.
14018 (font_clear_prop): Be sure to delete `:name' font property.
14020 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14022 * dispnew.c (redraw_overlapping_rows): Fix detection of
14023 overlapping for topmost and bottommost rows.
14025 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14027 2009-04-06 Jason Rumney <jasonr@gnu.org>
14029 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14031 2009-04-06 Kenichi Handa <handa@m17n.org>
14033 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14035 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14037 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14039 * ftfont.c (ftfont_open): Fix checking of the return value of
14040 FT_Load_Char. Fix setting font->underline_thickness.
14042 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14044 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14045 (Fterminal_parameters, Fterminal_parameter)
14046 (Fset_terminal_parameter): In doc string, refer to terminal
14047 objects rather than terminal ids.
14049 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14051 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14052 ret_lim_data. (Bug#2867)
14054 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14056 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14057 so they don't get wider than the window, matching 2006-01-23
14058 change to the partner function in xdisp.c (Bug#2800).
14060 2009-04-03 Kenichi Handa <handa@m17n.org>
14062 * print.c (print_object): Make each lowest sub_char_table start a
14063 new line (Bug#2866).
14065 2009-04-02 Kenichi Handa <handa@m17n.org>
14067 * fontset.c (fontset_font): Record no-font when a fontset
14068 explicitly tells not to try another font-specs.
14070 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14072 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14074 2009-03-30 Kenichi Handa <handa@m17n.org>
14076 * fontset.c (fontset_from_font): Specify only registry in a
14077 font-spec for all characters supported by that registry.
14079 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14080 even if HAVE_M17N_FLT is not defined.
14082 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14084 * ftfont.c: Conditionalize prototyping and use of
14085 ftfont_variation_glyphs.
14087 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14089 * frame.c (delete_frame): Work around compiler bug.
14091 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14092 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14093 Some more EMACS_INT.
14094 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14096 * xdisp.c (dump_glyph): Fix typo.
14098 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14099 (adjust_markers_gap_motion, adjust_markers_for_delete)
14100 (adjust_markers_for_insert, adjust_point)
14101 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14102 (make_gap, copy_text, count_size_as_multibyte, insert)
14103 (insert_and_inherit, insert_before_markers)
14104 (insert_before_markers_and_inherit, insert_1)
14105 (count_combining_before, count_combining_after, insert_1_both)
14106 (insert_from_string, insert_from_string_before_markers)
14107 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14108 (insert_from_buffer_1, adjust_after_replace)
14109 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14110 (replace_range_2, del_range, del_range_1, del_range_byte)
14111 (del_range_both, del_range_2, modify_region)
14112 (prepare_to_modify_buffer, signal_before_change)
14113 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14114 for buffer positions and sizes.
14115 * lisp.h: Adjust prototypes accordingly.
14117 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14118 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14119 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14121 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14123 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14125 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14126 lines and columns so we keep the same pixel height and width.
14128 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14129 the property _NET_WM_STATE has changed.
14130 (x_handle_net_wm_state): New function to update frame parameter
14132 (x_term_init): Initialize atoms for _NET_WM_STATE.
14134 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14136 2009-03-27 Kevin Ryde <user42@zip.com.au>
14138 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14139 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14140 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14141 (Fgpm_mouse_stop): Pass that new parameter.
14142 * termhooks.h (close_gpm): Adjust prototype.
14144 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14146 * lisp.h (Fx_focus_frame): Declare.
14148 * callint.c (Fcall_interactively): For '^' just delegate the work to
14149 handle-shift-selection.
14150 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14152 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14154 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14156 * data.c (Qinteractive_form): New variable.
14157 (Finteractive_form): Use it.
14159 * eval.c (Fcommandp): Use Qinteractive_form.
14161 2009-03-24 Jason Rumney <jasonr@gnu.org>
14163 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14164 Calculate total size precisely. Decode environment variables
14165 before substituting. (Bug#38)
14167 2009-03-24 Kenichi Handa <handa@m17n.org>
14169 * font.c (find_font_encoding): Return Qnil for unsupported
14170 encoding (Bug#2722).
14172 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14174 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14177 2009-03-22 Alan Mackenzie <acm@muc.de>
14179 * callint.c (Finteractive): Clarify the doc string - even
14180 promptless elements need \n separators.
14182 2009-03-22 Jason Rumney <jasonr@gnu.org>
14184 * w32term.c (syms_of_w32term): Doc fix for
14185 x-use-underline-position-properties.
14187 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14189 * w32.c (getpwuid): Change argument type to unsigned.
14190 (struct w32_id): Change type of `rid' member to unsigned.
14191 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14192 argument ID to unsigned. All callers changed.
14193 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14195 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14197 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14198 negative, produce a float value.
14200 * dired.c (make_uid, make_gid): New functions.
14201 (Ffile_attributes): Use them to avoid negative UID and GID.
14203 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14205 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14206 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14207 Fix typos in docstrings.
14209 2009-03-19 Kenichi Handa <handa@m17n.org>
14211 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14212 changed, use font_load_for_lface to get a new font object.
14213 Call free_realized_fontset after handling ASCII font change.
14215 * frame.c (x_set_font): Handle the case that ARG is a cons.
14217 2009-03-19 Glenn Morris <rgm@gnu.org>
14219 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14221 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14223 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14225 2009-03-19 Kenichi Handa <handa@m17n.org>
14227 * charset.c (load_charset_map_from_file): When a mapfile can't be
14228 loaded, signal an error.
14230 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14232 * dired.c (Ffile_attributes): Make sure UID and GID are always
14233 positive, even if the value is too large for a positive EMACS_INT.
14236 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14238 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14240 * xmenu.c (xdialog_show): Move Fredisplay call ...
14241 (Fx_popup_dialog): ... here.
14243 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14245 * dired.c (file_name_completion): Disable the first optimization just
14246 installed, since it is not implemented correctly.
14248 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14250 * dired.c (file_name_completion): Check completion-ignored-extensions
14251 only if the entry can affect bestmatch.
14252 Stop the search early, as Ftry_completion already does.
14254 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14256 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14258 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14260 * keyboard.c (parse_menu_item): Don't display remappings as menu
14261 equivalent bindings (Bug#788).
14263 2009-03-15 Jason Rumney <jasonr@gnu.org>
14265 * w32term.h (WM_EMACS_PAINT): New message.
14266 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14267 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14268 before passing to lisp thread. (Bug#950)
14270 2009-03-14 David Reitter <david.reitter@gmail.com>
14272 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14273 variable as it was never reset.
14274 (ns_term_init): Remove initialization of Lisp-settable defaults
14275 and ns_expand_space.
14276 (-setPanelFromDefaultValues): Remove ns_expand_space.
14277 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14278 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14279 i.e. no additional spacing, similar to Carbon port.
14281 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14282 * nsfns.m (ns-popup-prefs-panel): Remove.
14284 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14286 * sound.c (alsa_configure): Remove call to deprecated
14287 snd_pcm_sw_params_set_xfer_align.
14289 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14291 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14292 after clicking in a detached tool bar.
14293 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14295 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14297 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14298 int/Lisp_Object mixup).
14300 2009-03-13 Kenichi Handa <handa@m17n.org>
14302 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14303 Handle NAME nil and t correctly. Callers changed.
14304 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14305 (set_fontset_font): Change ARG to a vector. Handle range_list in
14307 (Fset_fontset_font): Fix the case that TARGET is both a script
14308 name and charset name. Adjust the arg to set_fontset_font for
14310 (fontset_from_font): Fix previous change.
14311 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14312 entry. If FONTSET is the default fontset, don't set the extra
14313 slot of the returning char-table.
14315 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14317 * nsfns.m (Fx_close_connection): Doc fix.
14318 (Fns_do_applescript): Reflow docstring.
14319 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14320 (Fx_display_pixel_width, Fx_display_pixel_height)
14321 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14322 Fix typos in docstrings.
14323 (Fns_set_alpha): Fix typos in error messages.
14325 2009-03-12 David Reitter <david.reitter@gmail.com>
14327 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14328 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14329 were used for such events.
14331 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14332 (toggleToolbar, performDragOperation, runHelp): Use it.
14334 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14335 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14337 2009-03-11 Kenichi Handa <handa@m17n.org>
14339 * font.h (font_open_by_spec): Extern it.
14341 * font.c (font_open_by_spec): New function.
14342 (font_open_by_name): Use font_open_by_spec.
14344 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14345 fontset of the frame.
14347 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14348 modify the default font of frames that use this fontset.
14349 (num_auto_fontsets): New variable.
14350 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14351 name. Be sure to set FONTSET_ASCII to the correct font name.
14352 (update_auto_fontset_alist): New function.
14354 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14356 * makefile.w32-in: Update dependencies.
14358 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14360 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14362 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14364 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14366 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14368 * lread.c (Feval_buffer): Doc fix.
14370 2009-03-09 Kenichi Handa <handa@m17n.org>
14372 * charset.c (Qfile_name_handler_alist): Extern it.
14373 (load_charset_map_from_file): Temporarily bind
14374 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14376 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
14378 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14379 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
14381 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14383 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14384 (x_set_window_size): Change back to calculated method of setting
14385 toolbar height under Cocoa. (Bug#2546)
14386 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14387 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14389 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14391 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14392 accelerator in parens under GNUstep.
14394 2009-03-06 Kenichi Handa <handa@m17n.org>
14396 These changes are to detect incorrect composition sequence without
14397 looking ahead the source. (Bug#2370)
14399 * coding.h: Include "composite.h".
14400 (enum compisition_state): New enum.
14401 (struct compisition_status): New struct.
14402 (struct iso_2022_spec): New member cmp_status.
14403 (struct emacs_mule_spec): New struct.
14404 (struct coding_system): New members ctext_extended_segment_len and
14405 embedded_utf_8. Change the union member
14406 spec.emacs_mule_full_support to spec.emacs_mule.
14408 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14409 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14410 (MAX_ANNOTATION_LENGTH): Define to 5.
14411 (ADD_COMPOSITION_DATA): New arg nbytes.
14412 (emacs_mule_char): New arg cmp_status.
14413 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14414 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14415 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14416 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14417 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14418 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14419 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14420 (EMACS_MULE_COMPOSITION_END): New macro.
14421 (emacs_mule_finish_composition): New function.
14422 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14423 (decode_coding_emacs_mule): Avoid long looking ahead while
14424 handling composition.
14425 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14426 (ENCODE_COMPOSITION_RULE): New macro.
14427 (finish_composition): New function.
14428 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14429 (DECODE_COMPOSITION_START): New implementation.
14430 (DECODE_COMPOSITION_END): Likewise.
14431 (STORE_COMPOSITION_RULE): New macro.
14432 (decode_coding_iso_2022): Avoid long looking ahead while handling
14433 composition, CTEXT extended segment, and embedded UTF-8.
14434 (setup_coding_system): For a coding of type iso-2022, reset
14435 CODING_ISO_EXTSEGMENT_LEN (coding) and
14436 CODING_ISO_EMBEDDED_UTF_8 (coding).
14437 (get_translation): Delete arguments last_block, from_nchars,
14438 to_nchars. Callers changed.
14439 (produce_chars): Don't modify charbuf. Adjusted for the change of
14441 (produce_composition): Adjust for the new annotation sequence.
14442 (handle_composition_annotation): Likewise.
14443 (consume_chars): Adjust for the change of get_translation.
14445 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14447 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
14449 2009-03-05 Kenichi Handa <handa@m17n.org>
14451 * font.c (font_select_entity): New function.
14452 (font_find_for_lface): Use font_select_entity to select a font.
14454 * fontset.c (fontset_find_font): If a font found without
14455 restricting to the characters C doesn't support C, try to find a
14456 font with C restriction.
14458 2009-03-04 Nikolaj Schumacher <me@nschum.de>
14460 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14462 2009-03-04 Jason Rumney <jasonr@gnu.org>
14464 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14465 characters that have already been read. (Bug#2569)
14467 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14468 Log an error message if check_image_size failed.
14469 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14470 (gs_load): Mention max-image-size in size error message. (Bug#2560)
14472 2009-03-02 Eli Zaretskii <eliz@gnu.org>
14474 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14475 when decoding process output.
14477 2009-03-01 Richard M Stallman <rms@gnu.org>
14479 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14481 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14483 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14485 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14486 (decode_coding_emacs_mule, decode_coding_iso_2022)
14487 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14488 (decode_coding_raw_text, decode_coding_charset)
14489 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14490 Honor inhibit-eol-conversion. (Bug #2186)
14492 2009-02-28 Jason Rumney <jasonr@gnu.org>
14494 * coding.c (detect_coding_charset): If not checking latin extra,
14495 fail on characters between 0x80 and 0xA0. (Bug#2354)
14497 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14499 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14500 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
14502 2009-02-27 Glenn Morris <rgm@gnu.org>
14504 * callint.c (Finteractive): Doc fix.
14506 2009-02-27 Kenichi Handa <handa@m17n.org>
14508 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14510 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
14512 * font.c (font_style_to_value): Set value for unknown symbols to
14513 100 instead of 255.
14514 (weight_table, slant_table, width_table): Treat "unspecified" as
14517 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
14519 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14521 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
14523 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14524 error as soon as a recursive load is detected.
14526 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14528 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14531 2009-02-24 Kenichi Handa <handa@m17n.org>
14533 * fontset.c (fontset_find_font): Fix the condition for checking
14536 2009-02-24 Glenn Morris <rgm@gnu.org>
14538 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14539 whitespace that confuses documentation.
14541 2009-02-23 Miles Bader <miles@gnu.org>
14543 * process.c (Flist_system_processes, Fprocess_attributes)
14544 (syms_of_process): Rename `system-process-attributes' to
14545 `process-attributes'.
14547 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14549 * coding.h (struct coding_system): Make safe_charsets a pointer to
14551 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14553 (SAFE_CHARSET_P): Likewise.
14554 (setup_iso_safe_charsets): Properly setup safe_charsets.
14555 (Fdefine_coding_system_internal): Likewise.
14556 (setup_coding_system): Likewise. Remove unneeded casts.
14557 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
14558 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14559 Remove unneeded casts.
14561 * insdel.c (del_range_2): Don't modify gap contents when called
14562 from decode_coding_object. (Bug#1809)
14564 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
14566 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14568 (Ftype_of): Recognize font objects.
14570 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14572 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14573 Definitions moved to data.c.
14575 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14577 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14578 async_iconified. Based on a patch by Christian Lynbech
14579 <christian.lynbech@tieto.com>.
14580 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14582 2009-02-20 Glenn Morris <rgm@gnu.org>
14584 * syntax.c (Fskip_chars_forward): Fix doc typo.
14586 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
14588 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14590 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
14592 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14594 2009-02-19 Kenichi Handa <handa@m17n.org>
14596 * coding.c (detect_coding): Preserve coding->mode.
14597 Don't overflow coding->carryover. (Bug#2370)
14599 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14601 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14603 2009-02-18 Kenichi Handa <handa@m17n.org>
14605 * font.c (font_check_otf_features): Fix handling of `nil' element.
14606 (Ffont_spec): Describe :lang and :otf in the docstring.
14608 2009-02-16 Andreas Schwab <schwab@suse.de>
14610 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14613 2009-02-16 Kenichi Handa <handa@m17n.org>
14615 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
14618 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
14620 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
14622 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14623 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14625 2009-02-14 Eli Zaretskii <eliz@gnu.org>
14627 * msdos.c (MAX_SCREEN_BUF): New macro.
14628 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14629 Encode the entire run of glyphs sharing the same face, instead of
14630 doing that one glyph at a time (fixes a bug with displaying
14631 double-size characters).
14633 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14635 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14637 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14638 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
14639 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
14641 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
14642 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
14644 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14646 * keyboard.c (adjust_point_for_property): Allow stopping between two
14649 2009-02-12 Jason Rumney <jasonr@gnu.org>
14651 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14652 (add_font_entity_to_list): Call check_face_name even when family
14655 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14656 Release DC when finished. Use NULL window to refer to desktop.
14657 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
14659 * w32font.c (add_font_entity_to_list): Fix check for substituted
14660 raster fonts. (Bug#2219)
14662 2009-02-12 Kenichi Handa <handa@m17n.org>
14664 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14665 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14666 (autocmp_chars): Use fast_looking_at. Don't compose more
14667 characters than MAX_COMPOSITION_COMPONENTS.
14668 (find_automatic_composition): While looking forward and backward,
14669 check static composition. Fix where to stop looking forward.
14670 (composition_adjust_point): Fix checking of static composition.
14671 (Fcomposition_get_gstring): Pay attention to
14672 MAX_COMPOSITION_COMPONENTS.
14674 * lisp.h (fast_looking_at): Extern it.
14676 * search.c (fast_looking_at): New function.
14678 * term.c (encode_terminal_code): Adjust for the change of
14679 <struct glyph>.u.cmp.to.
14680 (append_composite_glyph): Likewise.
14682 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
14683 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14685 (append_composite_glyph): Adjust for the change of
14686 <strcut glyph>.u.cmp.to.
14688 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
14690 * casetab.c (init_casetab_once):
14691 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14692 * font.c (font_update_lface):
14693 * fontset.c (Fnew_fontset):
14694 * ftfont.c (ftfont_drive_otf):
14695 * xfont.c (xfont_open):
14696 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14698 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14700 * fileio.c (Fwrite_region): !NILP -> CONSP.
14702 2009-02-10 Andreas Schwab <schwab@suse.de>
14704 * process.c (send_process): Properly relocate pointer into data
14705 when using encoded data. (Bug#2272)
14707 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14709 * coding.c (detect_coding_charset): Fix previous change.
14711 2009-02-08 Jason Rumney <jasonr@gnu.org>
14713 * w32fns.c (w32_hide_hourglass): Handle case where frame
14714 disappeared while hourglass was displayed. (Bug #2193)
14716 2009-02-07 Andreas Schwab <schwab@suse.de>
14718 * unexelf.c (unexec): Fix error message.
14720 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14722 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
14723 when modal window is active. (Bug #2152)
14724 (applicationShouldTerminate:): Remove now-unneeded while loop
14725 around NSRunAlertPanel.
14727 * nsmenu.m (popupSession): New file-global variable.
14728 (pop_down_menu): End the popupSession before closing dialog.
14729 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14730 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14731 don't query NSApp for events (just sleep instead).
14733 2009-02-07 Eli Zaretskii <eliz@gnu.org>
14735 * coding.c (syms_of_coding) <translation-table-for-input>:
14736 Modify doc string to discourage use for character code unification.
14738 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14740 * atimer.c (run_timers): Update pending_atimers.
14742 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
14744 * image.c (svg_load_image): Fix last change.
14746 * xfns.c (Fx_create_frame): Signal an error if no font is
14749 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
14751 * character.c (syms_of_character) <script-representative-chars>:
14752 Fix typo in docstring.
14754 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14756 * nsmenu.m (pop_down_menu): New function.
14757 (ns_popup_dialog): Call it on unwind.
14758 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14759 call timer_check() (Bug#2154).
14760 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14761 handling_signal is set.
14762 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14764 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
14766 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14768 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14770 * keyboard.c (poll_for_input_1, handle_async_input):
14771 Set handling_signal under HAVE_NS.
14773 2009-02-04 Glenn Morris <rgm@gnu.org>
14775 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14777 2009-02-04 Kenichi Handa <handa@m17n.org>
14779 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14781 * charset.c (Fchar_charset): New optional arg restriction.
14783 * coding.h (coding_system_charset_list): Extern it.
14785 * coding.c (coding_system_charset_list): New function.
14787 * composite.c: Include coding.h and termhooks.h.
14788 (composition_gstring_p): Fix for the terminal case.
14789 (composition_gstring_width): Likewise.
14790 (fill_gstring_body): Likewise.
14791 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14793 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14794 is within a composition.
14795 (Fcomposition_get_gstring): Fix the terminal case.
14797 * term.c (encode_terminal_code): Fix handling of composition.
14798 (produce_composite_glyph): For static composition, get pixel_width
14799 from struct composition.
14801 2009-02-02 Andreas Schwab <schwab@suse.de>
14803 * unexelf.c (unexec): Handle unaligned bss offset.
14805 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14807 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14808 XT,w32read_socket changes to ns_read_socket.
14810 * keyboard.c (handle_interrupt): Don't call
14811 quit_throw_to_read_char() under NS.
14813 * blockinput.h: Remove NS-specific code.
14815 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14817 * dispnew.c (window_change_signal): Don't try to get the size of a
14818 suspended tty frame.
14819 * term.c (Fresume_tty): Resize if the size has changed while the
14822 * alloc.c (mark_stack): Properly conditionalize previous change.
14824 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
14826 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14827 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14828 Remove; this code is not used on Windows.
14830 2009-01-30 Eli Zaretskii <eliz@gnu.org>
14832 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14833 EOLs that also has stray ^M characters.
14835 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
14837 * atimer.c (run_timers, alarm_signal_handler):
14838 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14839 * w32inevt.c (w32_console_read_socket):
14840 * w32term.c (w32_read_socket):
14841 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14843 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
14845 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14846 Initialize it as a relative filename pattern.
14847 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14848 (Fcall_process_region): Simplify temp file creation using
14849 temporary-file-directory.
14851 2009-01-29 Eli Zaretskii <eliz@gnu.org>
14853 * msdos.c: Rename pending_signals to msdos_pending_signals.
14854 (sig_suspender, sigprocmask): Adjust.
14856 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
14858 * keyboard.c (pending_signals): New var.
14859 (poll_for_input, input_available_signal, init_keyboard): Set it.
14860 (process_pending_signals): New function.
14862 * lisp.h (QUIT): Check pending_signals instead of
14863 interrupt_input_pending. Use process_pending_signals.
14865 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
14867 * process.c (wait_reading_process_output): Use process_pending_signals.
14869 * sysdep.c (emacs_write): Use process_pending_signals.
14871 * xterm.c (XTread_socket): Update pending_signals.
14873 * w32term.c (w32_read_socket): Update pending_signals.
14875 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14877 2009-01-29 Kenichi Handa <handa@m17n.org>
14879 * xftfont.c (xftfont_has_char): New function.
14880 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14882 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14884 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14886 (ns_query_color): New declaration.
14888 * nsterm.m (ns_confirm_quit): New variable.
14889 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14890 (EmacsApp-applicationShouldTerminate:): Use it.
14891 (EmacsPrefsController): Let user set it.
14892 (ns_query_color): New function.
14893 (ns_defined_color): Use it.
14894 (ns_initialize): Drop.
14895 (ns_term_init): Add two lines from ns_initialize(), and set
14896 input_interrupt_mode to nil.
14898 * image.c (svg_load_image): Don't right-shift background RGB when
14899 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
14901 2009-01-28 Kenichi Handa <handa@m17n.org>
14903 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
14904 (fontset_get_font_group): Remember that no font-group is specified
14907 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
14909 * fns.c (concat): Check for string overflow (bug#1787).
14911 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14912 Quadruple undo limits (bug#1501).
14914 2009-01-27 Kenichi Handa <handa@m17n.org>
14916 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14917 directly use GT_Get_Char_index.
14919 * xftfont.c (struct xftfont_info): New member `index'.
14921 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
14922 (Ffontset_font): Adjust for the change of fontset entry.
14924 2009-01-26 Kenichi Handa <handa@m17n.org>
14926 * fontset.c (fontset_find_font): Fix handling of non-cons return
14927 value of fontset_get_font_group.
14928 (fontset_font): Revert last change.
14930 2009-01-26 Jason Rumney <jasonr@gnu.org>
14932 * w32font.c (w32font_list_internal): Return quickly if registry is
14933 unknown. Simplify final return.
14934 (add_font_entity_to_list): Break complex logic down into more
14935 manageable chunks. Move unknown registry check to
14936 w32font_list_internal.
14938 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14940 Changes to remove Feval calls from GUI under NS.
14942 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14943 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
14944 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14946 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14947 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14948 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14949 instead of NON_ASCII_KEYSTROKE_EVENT.
14950 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14951 (EmacsApp-applicationShouldTerminate:): Query user.
14952 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14955 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14957 * keyboard.c (kbd_buffer_get_event): Check for it.
14958 (keys_of_keyboard): Define lispy keys for
14959 ns-put/unput-working-text.
14961 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14963 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14965 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
14967 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
14968 setting current_buffer directly. (Bug#2044)
14970 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
14972 * fontset.c (fontset_font): If we know there is no font, don't do
14973 any work. (Bug#1952, bug#1990).
14975 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
14977 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14979 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
14980 (ns_no_defaults): New declaration.
14983 * nsterm.h (ns_no_defaults): New declaration.
14985 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
14987 * nsterm.m (ns_no_defaults): New variable.
14988 (ns_initialize): Don't read defaults when ns_no_defaults.
14989 (EmacsView-readSelectionFromPasteboard:)
14990 (writeSelectionToPasteboard:types:): New stubbed-out methods for
14991 NSServicesRequests protocol. (Bug#1435)
14992 (ns_dumpglyphs_stretch): New function.
14993 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
14994 of 2008-11-15 to other terms. (Bug#615)
14996 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14998 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15000 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15003 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15010 * nsterm.m: Remove '23' comments that indicated code added during
15011 update from emacs-20 -> emacs-23.
15013 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15015 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15016 ns_alternate_modifier. (Bug#1217)
15018 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15019 Display all shortcuts, including those w/o super modifier.
15021 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15023 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15025 * fileio.c (Vwrite_region_post_annotation_function)
15026 (Vwrite_region_annotation_buffers): New vars.
15027 (build_annotations_unwind): Just reset
15028 Vwrite_region_annotation_buffers.
15029 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15030 Call write-region-post-annotation-function.
15031 (build_annotations): Add to Vwrite_region_annotation_buffers if
15034 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15036 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15038 * nsfns.m (ns_do_applescript):
15039 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15041 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15043 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15045 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15047 * nsmenu.m (NSMENUPROFILE): Change #if style.
15049 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15051 * nsterm.m (x_set_frame_alpha): Add prototype.
15052 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15053 handle Ctrl-tab. (Bug#1841)
15054 (ns_get_color): Use unsigned long long for scanned hex string value.
15055 (ns_term_shutdown): Abort on non SIGTERM signals.
15056 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15057 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15058 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15059 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15060 (ns_defined_color): Fix settings of the XColor variable fields:
15061 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15063 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15065 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15066 values in onTiger section.
15068 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15070 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15071 Check return value of font_spec_from_name.
15072 (Fx_list_fonts): Doc fix. (Bug#1951)
15074 * font.c (font_spec_from_name): Return Qnil if font name could not
15076 (font_parse_name): Treat a `?' character as part of an XLFD.
15078 * fns.c (Fsubstring): Doc fix.
15080 2009-01-19 Kenichi Handa <handa@m17n.org>
15082 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15083 (ftfont_list): Likewise.
15085 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15087 * dbusbind.c (Fdbus_register_signal):
15088 * process.c (conv_sockaddr_to_lisp):
15089 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15091 * callproc.c (Fgetenv_internal): Doc fix.
15093 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15095 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15096 it is not even used.
15098 2009-01-16 Glenn Morris <rgm@gnu.org>
15100 * font.c (Ffont_variation_glyphs): Silence compiler.
15102 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15104 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15105 Reported by David Robinow <drobinow@gmail.com>.
15107 2009-01-15 Kenichi Handa <handa@m17n.org>
15109 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15111 2009-01-14 Jason Rumney <jasonr@gnu.org>
15113 * frame.c (x_set_font): Always store a font to the font parameter,
15114 never a fontset. (Bug#1562)
15116 2009-01-14 Kenichi Handa <handa@m17n.org>
15118 * coding.c (TWO_MORE_BYTES): New macro.
15119 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15121 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15123 * font.c (font_clear_prop): If clearing the family, clear the font
15126 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15128 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15130 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15131 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15132 functions, use sizeof.
15134 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15136 * keyboard.c (read_char): Fix case where last_nonmenu_event
15137 returned a bad value with submenus. (Bug#447)
15139 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15141 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15142 family, clear the font width index too.
15144 2009-01-11 Jason Rumney <jasonr@gnu.org>
15146 * keyboard.c (cmd_error_internal): Exit when errors occur before
15147 frame creation and not in daemon mode. (Bug#1836)
15149 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15151 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15152 of a display vector, backtrack.
15153 (try_window_reusing_current_matrix): Check glyph type before
15154 referencing charpos member.
15156 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15160 * coding.c (inhibit_null_byte_detection): New variable.
15161 (detect_coding, detect_coding_system): Don't pay attention to null
15162 bytes if inhibit_null_byte_detection is non-zero.
15163 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15164 <inhibit-iso-escape-detection>: Doc fix.
15166 2009-01-09 Jason Rumney <jasonr@gnu.org>
15168 * w32font.c (add_font_entity_to_list): Don't report unknown
15169 Windows charset as any unrecognized registry. (Bug#1548)
15170 Only report Unicode Plane 2 fonts as unicode-sip.
15172 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15174 * xfaces.c (Fx_font_family_list): Delete function.
15175 Move compatibility version to faces.el.
15177 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15179 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15181 * frame.c (x_set_frame_parameters): Remember requested value for
15182 fullscreen before it's reset by the parameter handler.
15184 2009-01-09 Glenn Morris <rgm@gnu.org>
15186 * keyboard.c (last_command_char): For clarity, rename to...
15187 (last_command_event): ... and update all users.
15188 (last_input_char): For clarity, rename to...
15189 (last_input_event): ... and update all users.
15190 (last-command-char, last-input-char): Move to subr.el as aliases.
15191 * cmds.c, commands.h: Update for last_command_char rename.
15193 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15195 * font.c (font_open_for_lface): Handle unspecified height attribute.
15197 2009-01-08 Jason Rumney <jasonr@gnu.org>
15199 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15200 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15201 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15203 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15204 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15206 2009-01-07 Kenichi Handa <handa@m17n.org>
15208 * fileio.c (Finsert_file_contents): In the case of replace,
15209 remember the coding system used for decoding in
15210 coding_system (Bug#1039).
15212 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15213 breaking the loop. (Bug#870)
15214 (decode_coding_utf_16, decode_coding_emacs_mule)
15215 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15216 (decode_coding_charset): Likewise.
15218 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15220 * frame.c (x_set_frame_parameters): Make sure height (width) get
15221 applied when fullwidth (fullheight) is set. (Bug#1522)
15223 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15225 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15226 (utc_base): Declare as ULONGLONG, not long double.
15227 (convert_time_raw): Delete.
15228 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15229 (initialize_utc_base): New function.
15230 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15231 (convert_from_time_t): Use initialize_utc_base; compute result with
15233 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15235 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15237 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15238 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15239 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15240 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15241 [!subprocesses]: Define.
15242 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15243 (Flist_system_processes, Fsystem_process_attributes)
15244 [!subprocesses]: Call list_system_processes and
15245 system_process_attributes instead of returning Qnil.
15247 * dosfns.c (system_process_attributes, list_system_processes):
15250 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15252 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15253 Don't use the default (no-op) implementation.
15255 2009-01-03 Jason Rumney <jasonr@gnu.org>
15257 * keyboard.c (parse_modifiers_uncached): Wheel events are
15260 * w32term.c (x_query_colors, x_query_color): New functions.
15262 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15263 (svg_load_image): Cast returned pointers from dynamically loaded
15264 functions. Eliminate W32 specific code.
15266 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15268 * nsfns.m (x_set_foreground_color, x_set_background_color)
15269 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15270 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15271 x_ prefix instead of ns_. Update references.
15272 (syms_of_nsfns): Add a FIXME comment.
15274 * nsterm.m (x_set_cursor_type): New prototype.
15275 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15277 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15278 for Solaris instead of incorrectly providing Qutime and Qcutime.
15280 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15282 * w32.c (process_times): Compute sum of utime and stime.
15283 (system_process_attributes): Add Qtime to the alist.
15285 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15286 and add them to the alist.
15288 * process.c (top level) <Qtime, Qctime>: New variables.
15289 (syms_of_process): staticpro them.
15290 (Fsystem_process_attributes): Add their documentation to the doc
15293 * process.h: Declare Qtime and Qctime.
15295 2009-01-02 Jason Rumney <jasonr@gnu.org>
15297 * image.c (Qgobject): New symbol.
15298 (syms_of_image): Initialize it.
15299 (init_svg_functions): Load some functions from gobject library.
15301 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15303 * frame.c (make_terminal_frame): Remove redundant code and useless
15306 2009-01-01 Andreas Schwab <schwab@suse.de>
15308 * process.c (conv_sockaddr_to_lisp): Add workaround for
15309 getsockname bug on BSD.
15311 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15313 * xfns.c (x_create_tip_frame): Set border width of the X window.
15315 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15317 2009-01-01 Jason Rumney <jasonr@gnu.org>
15319 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15320 Don't block input, as per earlier xterm.c changes.
15322 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15324 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15325 (ns_appkit_version_int): New function.
15326 (x-server-version): Use ns_appkit_version_int and follow 21+
15327 convention of returning 3 integers.
15329 2008-12-30 Kenichi Handa <handa@m17n.org>
15331 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15332 (CHAR_SURROGATE_PAIR_P): New macro.
15334 * font.h (struct font_driver): New member get_variation_glyphs.
15336 * font.c (font_range): Don't require a font for a variation selector.
15337 (Ffont_variation_glyphs): New function.
15338 (syms_of_font): Defsubr it.
15340 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15341 ftfont_variation_glyphs.
15342 (setup_otf_gstring): New function.
15343 (ftfont_drive_otf): Use it.
15344 (ftfont_shape_by_flt): Handle variation selector.
15345 (ftfont_variation_glyphs): New function.
15347 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15349 * frame.c (Vemacs_iconified): Remove.
15351 2008-12-30 Jason Rumney <jasonr@gnu.org>
15353 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15354 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15356 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15358 * indent.c (Fvertical_motion): Don't advance iterator if we have
15359 reseated to the desired position.
15361 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15362 checking for pos match.
15364 2008-12-30 Kenichi Handa <handa@m17n.org>
15366 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15367 just get the low 8-bit of the code.
15369 * font.c (font_intern_prop): Validate str as multibyte.
15371 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15373 * dispextern.h (struct face): Move lface and hash from the middle
15376 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15378 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15380 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15381 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15382 instead of intervals.h.
15384 2008-12-26 Andreas Schwab <schwab@suse.de>
15386 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15389 2008-12-26 Martin Rudalics <rudalics@gmx.at>
15391 * textprop.c (Qminibuffer_prompt): New variable.
15392 (syms_of_textprop): Initialize it.
15393 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15394 in minibuffer-prompt face. (Bug#1662)
15396 2008-12-25 Jason Rumney <jasonr@gnu.org>
15398 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15400 2008-12-24 Jason Rumney <jasonr@gnu.org>
15402 * ralloc.c (r_alloc_reset_variable): New function.
15404 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15405 record of what points where. (Bug#716)
15407 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15409 * minibuf.c (read_minibuf): Follow the non-interactive case when
15410 running as a daemon, before detaching.
15412 2008-12-22 Andreas Schwab <schwab@suse.de>
15414 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15415 * gtkutil.c (free_widget_value): Use xfree instead of free.
15417 2008-12-22 Martin Rudalics <rudalics@gmx.at>
15419 * frame.c (delete_frame): New function derived from
15420 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15421 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15422 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15423 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15424 * frame.h: Extern delete_frame.
15425 * window.c (window_loop):
15426 * terminal.c (delete_terminal):
15427 * xterm.c (x_connection_closed):
15428 * xfns.c (Fx_hide_tip):
15429 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15431 2008-12-21 Jason Rumney <jasonr@gnu.org>
15433 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15434 when character maps to .notdef character.
15436 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15438 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15440 2008-12-20 Jason Rumney <jasonr@gnu.org>
15442 * frame.c (Fmake_terminal_frame): Raise an error when called from
15443 a graphical frame on Windows. (Bug#1325)
15445 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15447 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15449 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
15451 * minibuf.c (Fread_buffer): Doc fix.
15453 2008-12-20 Jason Rumney <jasonr@gnu.org>
15455 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15456 server name in UNC paths. (Bug#719)
15458 * coding.c (decode_coding): Clear chars_at_source flag when using
15459 charbuf. (Bug#1035)
15461 2008-12-19 Daniel Engeler <engeler@gmail.com>
15463 * sysdep.c (serial_configure): Fix typo.
15465 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15467 * sysdep.c: Include alloca.h.
15468 (system_process_attributes): Add implementation for Solaris.
15470 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15472 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15474 Reorganize implementation of Flist_system_processes and
15475 Fsystem_process_attributes. No functional changes.
15476 * process.c: Don't #include pwd.h, grp.h and limits.h.
15477 (Flist_system_processes): Just call list_system_processes.
15478 (Fsystem_process_attributes): Just call system_process_attributes.
15479 (procfs_list_system_processes, time_from_jiffies)
15480 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15481 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15483 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15484 (list_system_processes): Rename from
15485 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15486 Provide a do nothing implementation.
15487 (system_process_attributes): Rename from
15488 procfs_list_system_processes.
15489 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15490 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15492 * w32.c (list_system_processes): Rename from
15493 w32_list_system_processes.
15494 (system_process_attributes): Rename from
15495 w32_system_process_attributes.
15497 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15499 * process.h (w32_list_system_processes)
15500 (w32_system_process_attributes): Remove.
15501 (list_system_processes, system_process_attributes):
15504 2008-12-19 Kenichi Handa <handa@m17n.org>
15506 * xfont.c (xfont_decode_coding_xlfd): New function.
15507 (xfont_encode_coding_xlfd): New function.
15508 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15509 (xfont_list): Decode and encode XLFD by iso-8859-1.
15510 (xfont_match): Likewise.
15511 (xfont_list_family): Likewise.
15512 (xfont_open): Likewise.
15514 * ftfont.c (ftfont_open): Generate a multibyte string if given
15517 * xftfont.c (xftfont_open): Generate a multibyte string if given
15520 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15522 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15524 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15525 clicked on a detached tool bar button.
15527 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15529 * emacs.c (main): Print and error and exit when no data is read
15532 2008-12-17 Jason Rumney <jasonr@gnu.org>
15534 * w32font.c (w32font_has_char): Always return -1.
15536 2008-12-16 Kenichi Handa <handa@m17n.org>
15538 * font.c (font_open_entity): Fix previous change.
15540 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15542 * process.c: Include <limits.h>.
15544 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
15546 * font.c (font_update_drivers): Fix mistake in reconstructing the
15549 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
15551 * font.c (font_clear_cache): Fix format of font cache data.
15553 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
15555 * xftfont.c (xftfont_open): Free Xft font pattern if
15556 XftFontOpenPattern fails.
15558 * xterm.c (x_free_frame_resources): Remove extraneous call to
15561 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15563 * xterm.c (x_delete_display): Move xim_close_dpy call to
15565 (x_delete_terminal): Call xim_close_dpy.
15567 2008-12-13 Jason Rumney <jasonr@gnu.org>
15569 * w32font.c (intern_font_name): New function.
15570 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15571 (w32font_open_internal, Fx_select_font): Decode font name.
15572 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15574 * w32font.h (intern_font_name): Declare new function.
15576 * w32uniscribe.c (add_opentype_font_name_to_list):
15577 Use intern_font_name.
15579 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15581 * frame.c (Fdelete_frame): Call free_font_driver_list.
15583 * font.c (free_font_driver_list): Implement missing function.
15585 * w32term.c (w32_term_init): Don't initialize the image cache
15586 here; it will be done in init_frame_faces.
15588 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
15589 (struct x_display_info): Remove unused member null_pixel.
15590 New member xim_callback_data.
15592 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15593 (xim_initialize): Save pointer to callback function data.
15594 (xim_close_dpy): Free callback function data. Call XCloseIM,
15595 reverting 2008-11-04 change by David Smith.
15596 (x_term_init): Don't initialize the image cache here; it will be
15597 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15598 (x_delete_display): Free x_dnd_atoms member.
15600 2008-12-13 Kenichi Handa <handa@m17n.org>
15602 * font.c (font_rescale_ratio): Move from xfaces.c.
15603 Argument type changed. Handle a font-spec too.
15604 (font_score): Check Vface_font_rescale_alist.
15605 (font_open_entity): Likewise. (Bug#1547)
15607 * xfaces.c (font_rescale_ratio): Move to font.c.
15609 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
15611 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15613 2008-12-12 Jason Rumney <jasonr@gnu.org>
15615 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15616 Set Vwindow_system_version to the real w32 major version.
15618 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15620 * term.c (init_tty): Move setting the terminal name before the
15621 potential user: maybe_fatal.
15623 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
15625 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
15626 all callers changed. Call free_frame_faces to free the face cache.
15628 2008-12-11 Jason Rumney <jasonr@gnu.org>
15630 * w32font.c (fill_in_logfont): Don't assume symbol script means
15631 SYMBOL_CHARSET. (Bug#547)
15633 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
15634 size for surrogates. (Bug#1096, bug#872)
15636 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15638 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15640 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15642 * process.c (Fsystem_process_attributes, syms_of_process):
15643 Fix typo in name of Ssystem_process_attributes.
15644 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15646 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
15648 * syntax.c (Fmodify_syntax_entry): Doc fix.
15650 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15652 * font.c (Ffont_spec): Move usage to end of docstring.
15654 2008-12-10 Jason Rumney <jasonr@gnu.org>
15656 * w32font.c (Qcham): New symbol.
15657 (font_supported_scripts): Add cham, and comments for other new
15658 scripts in bitfield from OpenType spec.
15659 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15660 contain characters beyond the bmp.
15662 2008-12-10 Kenichi Handa <handa@m17n.org>
15664 * ftfont.c (fc_charset_table): Add "unicode-sip".
15665 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
15668 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
15670 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15671 (Fcoding_system_put): Use QCdefault_char.
15672 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15674 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
15676 * xftfont.c (syms_of_xftfont): Fix typo.
15678 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
15680 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15682 * emacs.c (main): Close daemon_pipe on exec.
15684 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
15686 * termchar.h (struct tty): New members termcap_term_buffer and
15687 termcap_strings_buffer.
15689 * term.c (encode_terminal_code): Free any previous memory blocks
15690 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
15691 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15692 All callers changed.
15693 (init_tty): Store termcap data and string buffers in new struct
15694 tty members termcap_term_buffer and termcap_strings_buffer.
15695 (delete_tty): Free them.
15696 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
15698 2008-12-07 Seiji Zenitani <zenitani@mac.com>
15700 * nsfns.m (ns_set_background_color): Remove code duplication.
15701 It was a substitute for face-transparency on OS X 10.3.
15703 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
15705 * coding.c (make_conversion_work_buffer): Disable buffer
15706 modification hooks in the work buffer.
15708 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15710 * process.c (procfs_system_process_attributes): If `nread' has a
15711 negative value, assign zero to it.
15713 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
15715 * eval.c (Vdebug_on_error): Doc fix.
15717 2008-12-05 Kenichi Handa <handa@m17n.org>
15719 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15720 second character is a combining character.
15722 2008-12-05 Eli Zaretskii <eliz@gnu.org>
15724 * process.c (procfs_system_process_attributes): Don't use cmd,
15725 cmdsize, and q without initializing them first.
15727 2008-12-04 Jason Rumney <jasonr@gnu.org>
15729 * w32font.c (w32font_draw): Initialize orig_clip before getting
15730 it, and delete it when finished.
15732 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15734 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15735 case when running as a daemon before detaching.
15737 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
15739 * w32.c (init_environment): Don't unload library shell32.dll.
15741 2008-12-03 Kenichi Handa <handa@m17n.org>
15743 * font.c (font_at): Set `multibyte' at first.
15745 * coding.c (decode_coding_charset): Check type of an element of
15747 (encode_coding_emacs_mule): Be sure to set `code'.
15749 * fontset.c (face_for_char): Handle invalid charset property correctly.
15750 (font_for_char): Likewise.
15752 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
15754 * font.c (Fopen_font): Compute pixel size correctly.
15755 (font_update_lface): Handle fonts with corrupted size specs,
15756 i.e. non-int and non-float.
15758 * ftfont.c (ftfont_match): Initialize entity variable.
15759 (ftfont_resolve_generic_family): Avoid using uninitialized var.
15760 (ftfont_list_family): Initialize list var earlier.
15762 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15764 * xterm.c (x_draw_glyph_string): Fall back on
15765 underline_minimum_offset for underline position.
15767 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15769 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15771 * character.c (c_string_width): Specify the type for LEN.
15773 2008-12-03 Kenichi Handa <handa@m17n.org>
15775 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
15776 (decode_coding_utf_8): Likewise.
15777 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
15778 (produce_chars): Initialize consumed_chars to 0.
15780 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
15782 * keyboard.c (make_lispy_position): Only use PT if the selected
15785 2008-12-02 Andreas Schwab <schwab@suse.de>
15787 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15789 * doprnt.c (doprnt1): Fix size of charbuf.
15791 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
15793 * keyboard.c (timer_check): Revert last change.
15795 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
15797 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15799 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
15801 * makefile.w32-in: Update dependencies.
15802 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15804 2008-12-01 Andreas Schwab <schwab@suse.de>
15806 * font.c (register_font_driver): Use xmalloc.
15807 (font_put_frame_data): Likewise.
15809 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
15811 * xfaces.c (realize_x_face): Make abort condition clearer.
15813 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15815 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
15817 * keyboard.c (timer_check): After a timer runs, ensure that the
15818 selected window's buffer is current.
15820 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
15822 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15823 It was accidentally restored by the Unicode merge.
15825 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15827 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
15829 * w32proc.c: Include "coding.h".
15830 (Fw32_short_file_name): Encode filename passed to Windows API.
15831 (Fw32_long_file_name): Encode filename passed to Windows API and
15832 decode back the result. (Bug#1433)
15834 2008-11-29 Kenichi Handa <handa@m17n.org>
15836 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15837 not before accessing it.
15839 * charset.c (Fdefine_charset_internal): After calculating
15840 min_char, max_char, and fastmap, copy the charset structure again.
15841 (encode_char): Fix the previous change.
15843 2008-11-28 Seiji Zenitani <zenitani@mac.com>
15845 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15847 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15849 * nsterm.m (x_set_frame_alpha): New function.
15851 2008-11-27 Eli Zaretskii <eliz@gnu.org>
15853 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15855 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
15857 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15858 pointer to check_face_name.
15860 2008-11-27 Kenichi Handa <handa@m17n.org>
15862 * category.h (SET_CATEGORY_SET): Call set_category_set.
15863 (set_category_set): Extern it.
15865 * category.c (hash_get_category_set): New function.
15866 (Fmodify_category_entry): Adjust for the change of
15867 char_table_ref_and_range. Call hash_get_category_set to get a
15868 category set to store in the table.
15870 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15873 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
15874 (DECODE_CHAR): Check if the decoder vector is ready.
15875 (ENCODE_CHAR): Check if the encoder char-table is ready.
15876 (maybe_unify_char): Extern it.
15878 * charset.c (Vchar_unified_charset_table): Delete it.
15879 (inhibit_load_charset_map): New variable.
15880 (temp_charset_work): New variable.
15881 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15882 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15884 (load_charset_map): Meaning of control_flag changed.
15885 If inhibit_load_charset_map is nonzero, setup a table in
15887 (load_charset): New argument control_flag.
15888 (map_charset_for_dump): New function.
15889 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15890 map_charset_for_dump.
15891 (Fdefine_charset_internal): If the charset method is MAP, load
15892 mapping tables by calling load_charset.
15893 (Funify_charset): Don't load a mapping table but directly set
15895 (maybe_unify_char): New function.
15896 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15897 Handle the case of inhibit_load_charset_map being nonzero.
15898 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15899 Handle the case of inhibit_load_charset_map being nonzero.
15900 (Fclear_charset_maps): Just free temp_charset_work.
15901 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15904 * chartab.c (sub_char_table_ref_and_range): Adjust for the
15905 change of char_table_ref_and_range.
15906 (char_table_ref_and_range): Change the meaning of argument FROM
15907 and TO. Now the caller must provide initial values for *FROM
15910 * fontset.c (fontset_add): Adjust for the change of
15911 char_table_ref_and_range.
15912 (fontset_get_font_group): Likewise.
15913 (Ffontset_info): Likewise.
15915 * keymap.c (describe_vector): Adjust for the change of
15916 char_table_ref_and_range. For char-table, put boundary between
15917 non-ASCII and 8-bit characters.
15919 * print.c (print_object): For bool-vector, delete unnecessary
15920 check of ASCII_BYTE_P.
15922 2008-11-26 Jason Rumney <jasonr@gnu.org>
15924 * w32font.c (w32font_open_internal): Don't include external
15925 leading in font height. (Bug#879)
15927 2008-11-26 Glenn Morris <rgm@gnu.org>
15929 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15930 redefinition with ifdef. (Bug#1383)
15932 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15934 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15936 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15938 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15939 New EmacsView methods.
15940 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15941 Fixes bug #1048,1357,1414.
15943 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15946 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15947 is not an indexed color.
15948 * nsterm.m (free_indexed_color): Add argument checking.
15949 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15951 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
15953 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15954 Document confirm-after-completion value for
15955 minibuffer-completion-confirm.
15957 2008-11-24 Jason Rumney <jasonr@gnu.org>
15959 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15962 2008-11-23 Jason Rumney <jasonr@gnu.org>
15964 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15965 restored before returning.
15967 * w32font.c (check_face_name): New function.
15968 (add_font_entity_to_list): Use it to filter out common substituted
15971 2008-11-22 Martin Rudalics <rudalics@gmx.at>
15973 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15974 confirm-nonexistent-file-or-buffer in doc-string.
15976 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15978 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15979 Fix copy/paste typo. Add checks.
15981 2008-11-21 Kenichi Handa <handa@m17n.org>
15983 * coding.c (detect_coding_iso_2022): Reject invalid composition
15985 (DECODE_COMPOSITION_START): If the current source is the last
15986 block, and the current composition doesn't end, regard this
15987 sequence as invalid.
15988 (decode_coding_iso_2022): Handle invalid composition sequence.
15990 2008-11-20 Martin Rudalics <rudalics@gmx.at>
15992 * window.c (coordinates_in_window): Don't return
15993 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15994 line when the window is not the rightmost one. (Bug#1372)
15996 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15998 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16000 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16002 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16003 and bright_bg if noninteractive is non-zero.
16005 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16007 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16008 x_draw_glyph_string_background.
16010 * w32term.c (x_draw_glyph_string): Likewise.
16012 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16014 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16015 the next glyph string once past the overhang width.
16017 * nsterm.m (ns_draw_glyph_string): Likewise.
16019 * w32term.c (x_draw_glyph_string): Likewise.
16021 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16023 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16026 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16028 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16029 dedicated status of window before attempting to display another
16032 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16034 * msdos.c (Fmsdos_long_file_names):
16035 (syms_of_msdos) <dos-unsupported-char-glyph>:
16036 * dosfns.c (Fint86): Fix typos in docstrings.
16038 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16040 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16042 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16044 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16046 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16048 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16050 * frame.h: Negative alpha means "don't touch".
16052 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16054 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16056 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16060 * acldef.h: Remove files used only for systems no longer supported.
16062 * Makefile.in: Fix .o alphabetical ordering.
16063 (hftctl.o): Remove dependency, file removed.
16064 (keymap.o, print.o): Depend on charset.h.
16066 2008-11-10 Kenichi Handa <handa@m17n.org>
16068 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16070 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16072 * dired.c (file_name_completion): If completion_ignore_case is
16073 enabled, ignore case when checking completion-regexp-list.
16075 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16077 * vm-limit.c (get_lim_data): Fix last change.
16079 2008-11-08 Kenichi Handa <handa@m17n.org>
16081 * character.c (Fget_byte): New function.
16082 (syms_of_character): Defsubr Fget_byte.
16084 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16086 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16087 cursor position is valid after scrolling.
16089 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16091 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16093 2008-11-06 Glenn Morris <rgm@gnu.org>
16095 * xterm.c (handle_one_xevent): Don't let popup menus cause
16096 mouse-autoselect-window related window switching. (Bug#1261)
16098 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16100 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16102 2008-11-04 Andreas Schwab <schwab@suse.de>
16104 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16106 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16108 * xfns.c (Fx_wm_set_size_hint): New function.
16110 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16112 * textprop.c (Fprevious_single_char_property_change): Return 0
16113 when there's no change in a string. (Bug#1301)
16115 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16117 * frame.c (do_switch_frame): New argument NORECORD passed to
16119 (Fselect_frame): New argument NORECORD passed to
16121 (Fset_frame_selected_window): New argument NORECORD passed to
16123 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16124 in call of do_switch_frame.
16125 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16126 Handle NORECORD argument in call of Fselect_frame.
16127 * lisp.h (do_switch_frame, Fselect_frame)
16128 (Fset_frame_selected_window): Adjust declarations.
16129 * window.c (select_frame_norecord): New function.
16130 (run_window_configuration_change_hook): Use it and call
16131 Fselect_frame with NORECORD set.
16132 (Fselect_window): Pass NORECORD to Fselect_frame.
16133 (Fset_window_configuration): Handle NORECORD argument in call of
16135 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16136 Fset_frame_selected_window.
16137 * keyboard.c (command_loop_1): Handle NORECORD in call of
16138 Fselect_frame (currently ifdefd).
16140 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16142 * emacs.c (USAGE2): Untabify.
16144 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16146 * composite.c (fill_gstring_header): Fix copy/paste typo.
16148 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16150 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16151 (Fother_window): Rename argument and rewrite doc-string.
16152 (select_window_norecord): Fix return value. (Bug#1276)
16154 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16156 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16157 new frames overriding foreground for tooltips. Based on similar patch
16158 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16160 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16162 * emacs.c (Fdaemon_initialized): Initialize nfd.
16164 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16166 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16167 (Fwindow_text_height): Clarify doc-strings.
16168 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16169 doc-string of window-scroll-functions.
16171 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16173 * category.c (syms_of_category): Fix typo in docstring.
16175 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16177 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16178 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16179 Fix typos in docstrings.
16181 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16183 * emacs.c (daemon_pipe): Make non-static.
16184 (IS_DAEMON): Move definition ...
16185 * lisp.h (IS_DAEMON): ... here.
16186 (daemon_pipe): Declare.
16187 (is_daemon): Remove.
16188 * dispnew.c (init_display): Use IS_DAEMON.
16190 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16192 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16193 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16195 * emacs.c (is_daemon): Remove.
16196 (main): Don't set is_daemon.
16197 (IS_DAEMON): New macro.
16198 (Fdaemonp, Fdaemon_initialized): Use it.
16199 (Fdaemon_initialized): Write a char into the pipe to make sure the
16201 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16203 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16205 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16206 over-sized glyph, draw it with the default glyph width.
16208 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16209 glyph, draw it with the default glyph width.
16211 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16212 glyph, draw it with the default glyph width.
16214 * xdisp.c (try_scrolling): When computing the distance from the
16215 scroll margin to PT, try moving some distance past the window
16216 bottom before giving up.
16218 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16220 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16221 (Fset_window_buffer): Explain in doc-string that a window can be
16222 "strongly" dedicated to its buffer.
16224 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16226 * emacs.c (daemon_name): New variable.
16227 (main): Deal with --daemon=SERVER_NAME.
16228 (Fdaemonp): Return a name if one was passed to --daemon.
16230 2008-10-26 Romain Francoise <romain@orebokech.com>
16232 * emacs.c (daemon_pipe): New variable.
16233 (main): Create a pipe before forking, make the parent exit only after
16234 the child has closed its end of the pipe. Move closing the
16236 (Fdaemon_initialized): ... here. New function.
16238 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16240 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16241 the previous unoptimized table.
16243 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16244 the distinction between non-nil and non-t value of `dedicated'.
16246 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16248 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16249 read_char_minibuf_menu_text is large enough to hold the menu string.
16251 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16253 * window.c (Fget_buffer_window, Fdelete_windows_on)
16254 (Freplace_buffer_in_windows): Make buffer argument optional and
16255 rename to buffer_or_name.
16257 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16259 * xdisp.c (handle_single_display_spec, handle_display_prop):
16260 Undo 2005-05-16 change.
16261 (handle_stop): Pop iterator if it's loaded with an empty string.
16262 (get_overlay_strings_1): Don't save iterator if it's loaded with
16263 an empty string (bug#1201).
16265 2008-10-24 Kenichi Handa <handa@m17n.org>
16267 * ftfont.c (ftfont_otf_features): Fix previous change.
16268 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16269 calling ftfont_otf_features.
16271 2008-10-24 Kenichi Handa <handa@m17n.org>
16273 * font.c (font_match_p): Fix for the case that a vector of
16274 characters is in script-representative-chars.
16276 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16278 * dbusbind.c (xd_in_read_queued_messages): New variable.
16279 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16280 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16281 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16284 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16286 * s/sol2-10.h: New file.
16288 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16290 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16291 poor beast has survived 9+ years and the jump from xterm.c!).
16293 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16295 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16297 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16299 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16301 * character.c (syms_of_character) <script-representative-chars>:
16302 <unicode-category-table>: Doc fixes.
16304 2008-10-23 Noah Friedman <friedman@splode.com>
16306 * coding.c (make_conversion_work_buffer): Check that
16307 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16308 Fget_buffer_create.
16310 2008-10-23 Kenichi Handa <handa@m17n.org>
16312 * font.c (font_add_log): Check the values of extra properties.
16314 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16316 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16318 (Fset_window_parameter): Use NILP.
16319 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16320 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16322 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16324 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16326 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16328 * nsfns.m (ns_appkit_version): New function.
16329 (x-server-version): Use it.
16330 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16331 (x-server-vendor): Don't check_ns().
16333 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16335 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16337 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16338 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16340 2008-10-22 Kenichi Handa <handa@m17n.org>
16342 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16345 * category.c (word_boundary_p): Check scripts instead of charset.
16346 Handle nil value in word-separating-categories and
16347 word-combining-categories.
16348 (syms_of_category): Fix docstrings of word-separating-categories
16349 and word-combining-categories.
16351 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16353 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16354 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16356 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16358 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16359 Rename arg "buffer" to "buffer_or_name".
16360 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16362 (no_switch_window): Remove since the return value is not used.
16363 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16364 Consider window as dedicated when Fwindow_dedicated_p returns a
16366 * lisp.h: Remove prototype for no_switch_window.
16368 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16370 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16371 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16373 2008-10-21 Kenichi Handa <handa@m17n.org>
16375 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16376 check Vlatin_extra_code_table.
16378 2008-10-20 Eli Zaretskii <eliz@gnu.org>
16380 * fileio.c (Fset_file_modes): Doc fix.
16382 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
16384 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16387 2008-10-19 Martin Rudalics <rudalics@gmx.at>
16389 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16390 Mention kill-buffer in doc-string.
16391 (Fset_window_buffer): Reinsert tem check removed in last commit.
16392 (Fenlarge_window, Fshrink_window): Have argument names and
16393 doc-string follow Elisp manual more closely.
16395 2008-10-18 Eli Zaretskii <eliz@gnu.org>
16397 * fileio.c (Fset_file_modes): Doc fix.
16399 2008-10-18 Martin Rudalics <rudalics@gmx.at>
16401 * window.c (Fwindow_width, Fset_window_start)
16402 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16403 (Fdelete_windows_on, Freplace_buffer_in_windows):
16404 Make doc-strings follow code and Elisp manual more closely.
16405 (Fwindow_dedicated_p): Make window argument optional.
16406 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16407 (Fset_window_buffer): Respect any non-nil dedicated value for
16408 window. Rename "buffer" argument to "buffer_or_name".
16410 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
16412 * m/sh3.h: New file, machine description for SuperH.
16414 2008-10-17 Martin Rudalics <rudalics@gmx.at>
16416 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16418 2008-10-17 Kenichi Handa <handa@m17n.org>
16420 * ftfont.c (ftfont_otf_features): Fix indexing
16421 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16423 2008-10-16 Magnus Henoch <mange@freemail.hu>
16425 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16426 (Fdbus_call_method_asynchronously): Ditto.
16427 This change makes C-h f display the argument list.
16429 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
16431 * fileio.c (Fexpand_file_name): Doc fix.
16433 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16434 of :foreground and :background equivalent to unspecified (20.x
16437 2008-10-15 Eli Zaretskii <eliz@gnu.org>
16439 * buffer.c (syms_of_buffer): Doc fix.
16441 2008-10-14 Kenichi Handa <handa@m17n.org>
16443 * font.c (font_clear_prop): When clearing font width, clear the
16444 average width field too.
16446 2008-10-12 Andreas Schwab <schwab@suse.de>
16448 * ftfont.c (ftfont_shape_by_flt): Make static.
16449 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16451 * font.c: Don't include <m17n-flt.h>.
16453 2008-10-10 Eli Zaretskii <eliz@gnu.org>
16455 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16457 2008-10-09 Eli Zaretskii <eliz@gnu.org>
16459 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16462 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
16464 * dispnew.c (update_text_area): Avoid looping due to large glyph
16465 overhangs (bug#1070).
16467 2008-10-09 Kenichi Handa <handa@m17n.org>
16469 * fontset.c (face_for_char): If face->fontset is negative, just
16472 * font.c (font_delete_unmatched): Fix previous change.
16473 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16475 2008-10-09 Martin Rudalics <rudalics@gmx.at>
16477 * frame.c (Fraise_frame): On text-only terminals select frame in
16478 order to make it visible. (Bug#1061)
16480 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
16482 * fontset.c (fontset_find_font): Check frame validity.
16484 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
16486 * gtkutil.c (xg_display_open): Reset default display if none exists.
16487 (xg_display_close): Allow Emacs to close all displays (bug#985).
16489 2008-10-06 Andreas Schwab <schwab@suse.de>
16491 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16493 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
16495 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16497 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16499 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16500 during initialization.
16502 2008-10-04 Eli Zaretskii <eliz@gnu.org>
16504 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16505 whole thing on MSDOS frames as well as on a TTY.
16507 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16509 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16512 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16513 as well as for TTY.
16515 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16517 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16518 MSDOS frames as well.
16520 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16522 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16524 * menu.c (find_and_return_menu_selection): Add cast.
16526 2008-10-03 Glenn Morris <rgm@gnu.org>
16528 * emacs.c (USAGE1): Add --daemon.
16530 2008-10-02 Eli Zaretskii <eliz@gnu.org>
16532 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16533 100, so it's in percents as advertised.
16535 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16537 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16538 (ns_output.current_cursor, ns_output.desired_cursor)
16539 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16540 (FRAME_NEW_CURSOR_COLOR): Remove.
16542 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
16543 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
16544 enumeration (HOLLOW_BOX_CURSOR, etc.).
16546 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16547 (draw_window_cursor): Simplify code.
16548 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16549 Don't change cursor type. In latter, call rehighlight instead of doing
16551 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16552 Use core Emacs cursor types.
16554 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
16556 2008-10-02 Martin Rudalics <rudalics@gmx.at>
16558 * process.c (Faccept_process_output): Fix doc-string.
16560 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16562 * gmalloc.c (__sbrk): Also define for uClibc.
16564 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16567 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16569 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16571 (nsfont_open): Reenable the cache.
16573 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16575 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16576 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16578 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16580 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16581 a suspended terminal.
16583 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
16585 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16587 2008-09-30 Eli Zaretskii <eliz@gnu.org>
16589 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16591 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
16593 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16594 in a continued line coincides with a line beginning.
16596 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16598 * nsfont.m (nsfont_trait_distance): Fix bug.
16599 (nsfont_list): Return a list rather than a vector (syncs with Handa
16600 changes of 2008-05-14).
16601 (nsfont_open): Improve logging.
16603 2008-09-29 Andreas Schwab <schwab@suse.de>
16605 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16607 2008-09-28 Martin Rudalics <rudalics@gmx.at>
16609 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16610 name as char-resolve-modifiers.
16611 Reported by: Markus Triska <markus.triska@gmx.at>
16613 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16615 * dispnew.c (init_display): Return earlier when running as a daemon.
16617 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16619 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16621 2008-09-27 Eli Zaretskii <eliz@gnu.org>
16623 * composite.c (Fcomposition_get_gstring)
16624 (Fcompose_region_internal, Fcompose_string_internal)
16625 (Ffind_composition_internal): Doc fix.
16626 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16627 (syms_of_composite) <auto-composition-function>: Doc fix.
16628 (syms_of_composite) <composition-function-table>: Doc fix.
16630 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
16632 * search.c (wordify): New argument for lax word-ends.
16633 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16635 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16637 * lisp.h (is_daemon): Declare.
16638 * dispnew.c (init_display): Do not try to initialize the terminal
16639 when running as a daemon.
16641 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
16643 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16644 x_display_pixel_height.
16646 2008-09-22 Martin Rudalics <rudalics@gmx.at>
16648 * undo.c (record_point): Don't call Fundo_boundary for first
16651 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
16653 * emacs.c (Fdaemonp): Doc fix.
16655 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16657 * emacs.c (main): Place #ifdef in the proper place.
16659 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16661 * emacs.c (standard_args): Add --daemon.
16662 (main): Disconnect from the terminal when --daemon is passed.
16663 (is_daemon): New variable.
16664 (Fdaemonp): New function.
16665 (syms_of_emacs): Defsubr it.
16667 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
16669 * xdisp.c (get_next_display_element): Handle string display
16670 correctly when checking for the end of a box run.
16672 2008-09-20 Glenn Morris <rgm@gnu.org>
16674 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16675 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16676 (Frename_file): Avoid copying to trash if a rename involves
16677 a delete. (Bug#964).
16679 2008-09-20 Eli Zaretskii <eliz@gnu.org>
16681 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16682 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16683 frames as well as termcap frames.
16684 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16687 2008-09-19 Eli Zaretskii <eliz@gnu.org>
16689 * process.c (procfs_system_process_attributes): Fix cmdline in
16690 case /proc/PID/cmdline is empty.
16692 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16693 x_display_pixel_height.
16695 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
16697 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16699 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16700 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16702 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16704 * dispextern.h (struct it): Move line_wrap away from the middle of
16705 bitfields. Move voffset in struct iterator_stack_entry after the
16706 bitfields. Move tab_width near after another short.
16708 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16710 * frame.h (struct frame): Move alpha from the middle of bitfields.
16712 * window.h (struct window): Move frozen_window_start_p after the
16713 rest of the bitfields to reduce padding.
16715 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
16717 * xterm.h (x_display_info): Remove `height' and `width' members.
16719 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16721 * w32term.h (w32_display_info): Remove `height', `width',
16722 `height_in', and `width_in' members.
16724 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16726 (x_calc_absolute_position): Use them.
16727 (x_term_init): Omit removed `height' and `width' members.
16729 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16731 (w32_read_socket, x_calc_absolute_position): Use them.
16732 (w32_initialize_display_info, w32_term_init): Omit removed members
16733 of w32_display_info.
16735 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16737 (ns_initialize_display_info): Omit removed members of ns_display_info.
16739 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16741 (x_calc_absolute_position): Use them.
16742 (x_term_init): Omit removed `height' and `width' members.
16744 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16746 * frame.c (x_fullscreen_adjust):
16747 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16748 x_display_pixel_width.
16750 2008-09-18 Kenichi Handa <handa@m17n.org>
16752 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16753 (composition_compute_stop_pos): Fix handling of static composition.
16754 (Fcomposition_get_gstring): Check FROM and TO at first.
16756 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16758 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
16761 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
16763 * indent.c (Fvertical_motion): Use position reported by iterator
16764 instead of PT for determining screen motion (bug#943).
16766 2008-09-17 Romain Francoise <romain@orebokech.com>
16768 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16770 2008-09-17 Kenichi Handa <handa@m17n.org>
16772 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16774 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16777 2008-09-16 Kenichi Handa <handa@m17n.org>
16779 * coding.c (make_conversion_work_buffer): Avoid calling
16780 Fget_buffer_create if it is not necessary.
16782 2008-09-15 Martin Rudalics <rudalics@gmx.at>
16784 * window.c (Fselect_window): Don't update window_select_count and
16785 use_time when norecord is not nil.
16787 2008-09-14 Kenichi Handa <handa@m17n.org>
16789 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16792 2008-09-12 Kenichi Handa <handa@m17n.org>
16794 * indent.c (scan_for_column): Don't handle automatic composition
16795 if the current buffer is not associated with a window.
16797 * composite.c (composition_reseat_it): If the current buffer is
16798 not associated with a window, ignore the automatic composition.
16799 (find_automatic_composition): Likewise.
16801 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16803 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16804 (Fgpm_mouse_stop): Use it.
16805 * termhooks.h (close_gpm): Declare.
16806 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16807 connection if Gpm_GetEvent fails.
16809 * window.c (set_window_buffer): Always preserve current-buffer.
16811 2008-09-12 Glenn Morris <rgm@gnu.org>
16813 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16815 2008-09-11 Glenn Morris <rgm@gnu.org>
16817 * charset.c (charset-map-path): Doc fix.
16819 2008-09-10 Kenichi Handa <handa@m17n.org>
16821 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16823 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16824 compose a grapheme cluster with the preceding base glyph.
16826 * composite.c (composition_compute_stop_pos): Fix previous change.
16827 Reset cmp_it->id to -1 at first.
16829 2008-09-10 Glenn Morris <rgm@gnu.org>
16831 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16833 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
16835 * keyboard.c (read_key_sequence): Reapply translation maps when
16836 switching keyboards.
16838 2008-09-09 Kenichi Handa <handa@m17n.org>
16840 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16843 * composite.c (FORWARD_CHAR): Fix calculation
16844 of (POSITION).pos_byte.
16845 (composition_compute_stop_pos): Limit the search of composition to
16846 at most 500 characters ahead. If we reach the limit or find a
16847 newline, set cmp_it->ch to -2 and return 0.
16848 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16850 2008-09-08 Kenichi Handa <handa@m17n.org>
16852 * indent.c (Fvertical_motion): Be sure to set
16853 it_overshoot_expected if it.cmp_it.id is non-negative.
16855 2008-09-07 Andreas Schwab <schwab@suse.de>
16857 * callproc.c (Fcall_process): Don't hold references to string data
16858 across garbage collection. Move initialisation of new_argv down
16859 to avoid compiler bug.
16861 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16863 * process.c (Fsystem_process_attributes): Doc fix.
16865 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
16867 * callproc.c (Fcall_process): Canonicalize current directory name.
16869 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16870 iterator advances to the next line if the current line ends in a
16873 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16875 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16876 member to point to cmp_from.
16878 * xdisp.c: Doc fix for references to gidx data member.
16880 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16882 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16884 2008-09-07 Kenichi Handa <handa@m17n.org>
16886 * composite.c (FORWARD_CHAR): Check STOP after
16887 incrementing (POSITION).pos.
16889 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16891 * process.c (Fsystem_process_attributes): Doc fix.
16893 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
16895 * keyboard.c (Ftop_level): Doc fix.
16897 2008-09-06 Eli Zaretskii <eliz@gnu.org>
16899 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16900 minibuffer, don't let lower part of menu invade the echo area.
16902 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16903 "char *q" to access menu text and advance through it. Revert the
16904 change that displayed ">" instead of ASCII character 0x10.
16906 2008-09-05 Eli Zaretskii <eliz@gnu.org>
16908 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16909 toggle boxes and radio buttons on MS-DOS as well.
16911 2008-09-05 Kenichi Handa <handa@m17n.org>
16913 * composite.c (autocmp_chars): Check lookback count.
16914 (composition_compute_stop_pos): Set cmp_it->lookback.
16915 (composition_reseat_it): Check lookback count.
16916 (struct position_record): New struct.
16917 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16918 (find_automatic_composition): New function.
16919 (composition_adjust_point): Use find_automatic_composition.
16921 * dispextern.h (struct composition_it): New member lookback.
16923 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
16925 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16926 if moving by a single line.
16928 2008-09-02 Andreas Schwab <schwab@suse.de>
16930 * xterm.c (x_delete_display): Fix merge error.
16932 * fileio.c (Fexpand_file_name): Remove unused variables.
16934 2008-09-02 Eli Zaretskii <eliz@gnu.org>
16936 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16937 storage on all platforms, not just on DOS_NT.
16939 2008-09-02 Jason Rumney <jasonr@gnu.org>
16941 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16942 Ensure mouse is not grabbed after menu is finished.
16944 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
16946 * xfaces.c (Finternal_set_alternative_font_family_alist)
16947 (Finternal_set_alternative_font_registry_alist): Properly copy
16948 entire alist structure.
16950 2008-09-01 Kenichi Handa <handa@m17n.org>
16952 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
16953 representative chars of the script is a vector.
16954 (ftfont_list): Handle the case where the representative chars of
16955 the script is a vector.
16957 * character.c (syms_of_character): Docstring of
16958 script-representative-chars fixed.
16960 2008-08-31 Eli Zaretskii <eliz@gnu.org>
16962 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16963 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16964 the menu. Allocate larger buffer for `text', to account for
16965 possible ^C characters.
16967 2008-08-31 Martin Rudalics <rudalics@gmx.at>
16969 * xdisp.c (prepare_menu_bars): Don't call
16970 Vwindow_size_change_functions with arg Qt.
16972 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16974 * font.h (font_range):
16975 * fileio.c (report_file_error):
16976 * composite.c (composition_update_it): Yet another int/Lisp_Object
16979 2008-08-30 Glenn Morris <rgm@gnu.org>
16981 * data.c (Fmake_variable_frame_local): Doc fix.
16983 * frame.c (Fmodify_frame_parameters): Doc fix.
16985 2008-08-30 Eli Zaretskii <eliz@gnu.org>
16987 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16988 needed by GetTokenInformation.
16989 (w32_system_process_attributes): Check return values of all system
16992 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16993 only when the state changes.
16994 (IT_update_begin, IT_update_end): Add termscript trace.
16996 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16997 clipboard is unavailable. Set dst to NULL if it doesn't point to
16999 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17000 passing random values to xfree.
17002 * dispnew.c (init_display): Set `tty's association in frame's
17003 parameters alist to the name of the terminal device, if that is known.
17005 2008-08-29 Jason Rumney <jasonr@gnu.org>
17007 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17009 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17011 * composite.c (fill_gstring_body): Avoid compiler warnings.
17013 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17014 LGLYPH_SET_CODE to avoid compiler warnings.
17016 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17018 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17020 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17023 2008-08-29 Kenichi Handa <handa@m17n.org>
17025 * fileio.c (report_file_error): Don't downcase the first character
17026 of errstring if it is still unibyte.
17028 2008-08-29 Kenichi Handa <handa@m17n.org>
17030 These changes are to re-implement the automatic composition so
17031 that it doesn't use text properties.
17033 * Makefile.in (ftfont.o): Depend on composite.h.
17034 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17036 * character.h (Vunicode_category_table): Extern it.
17038 * character.c (Vunicode_category_table): New variable.
17039 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17041 * chartab.c (optimize_sub_char_table): Perform more greedy
17044 * composite.h (enum composition_method):
17045 Delete COMPOSITION_WITH_GLYPH_STRING.
17046 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17047 (Vcomposition_function_table): Extern it.
17048 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17049 (composition_gstring_put_cache, composition_gstring_from_id)
17050 (composition_gstring_p, composition_gstring_width)
17051 (composition_compute_stop_pos, composition_reseat_it)
17052 (composition_update_it, composition_adjust_point): Extern them.
17053 (Fcomposition_get_gstring): EXFUN it.
17055 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17056 (Vcomposition_function_table)
17057 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17058 (gstring_hash_table, gstring_work, gstring_work_headers):
17060 (gstring_lookup_cache, composition_gstring_put_cache)
17061 (composition_gstring_from_id, composition_gstring_p)
17062 (composition_gstring_width, fill_gstring_header)
17063 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17064 (composition_reseat_it, composition_update_it)
17065 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17066 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17067 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17068 Defsubr composition_get_gstring.
17070 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17072 (struct glyph_string): Delete the member gidx. New members
17073 cmp_id, cmp_from, and cmp_to.
17074 (enum it_method): Delete GET_FROM_COMPOSITION.
17075 (struct composition_it): New struct.
17076 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17077 Delete c, len, cmp_id, cmp_len in u.comp.
17079 * font.h (enum lgstring_indices): Delete it.
17080 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17081 (enum lglyph_indices): Likewise.
17082 (font_range): Adjust extern.
17083 (font_fill_lglyph_metrics): Extern it.
17085 * font.c (QCf): New variable.
17086 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17087 (font_prepare_composition): Delete this function.
17088 (font_range): Type and arguments changed.
17089 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17090 (font_fill_lglyph_metrics): New function.
17091 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17092 (syms_of_font): DEFSYM QCf. Delete defsubr for
17093 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17094 Defsubr Sfont_shape_gstring.
17096 * fontset.h (font_for_char): Extern it.
17098 * fontset.c (font_for_char): New function.
17100 * ftfont.c: Include composite.h.
17101 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17102 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17104 * indent.c: Include composite.h and dispextern.h.
17105 (check_composition): Delete this function.
17106 (scan_for_column): Handle composition by
17107 composition_compute_stop_pos, composition_reseat_it, and
17108 composition_update_it.
17109 (compute_motion): Likewise.
17110 (Fvertical_motion): Fix checking of composition.
17112 * keyboard.c (adjust_point_for_property): Check composition by
17113 composition_adjust_point.
17115 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17116 struct glyph_string.
17118 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17119 (append_composite_glyph): Adjust for the change of struct it and
17121 (produce_composite_glyph): Likewise.
17123 * w32term.c (x_draw_composite_glyph_string_foreground):
17124 Adjust for the change of struct glyph_string.
17125 (x_draw_glyph_string): Likewise.
17127 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17128 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17130 * xdisp.c: Include font.h.
17131 (it_props): Delete the entry for Qauto_composed.
17132 (init_iterator): Initialize it->cmp_it.id to -1.
17133 (compute_stop_pos): Call composition_compute_stop_pos.
17134 (face_before_or_after_it_pos): Adjust for the change of struct it.
17135 (handle_auto_composed_prop): Delete it.
17136 (handle_composition_prop): Handle only static composition.
17137 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17138 from xassert. Initialize it->cmp_it.stop_pos.
17139 (push_it): Adjust for the change of struct it.
17140 (pop_it): Likewise.
17141 (get_next_element): Delete next_element_from_composition.
17142 (CHAR_COMPOSED_P): New macro.
17143 (get_next_display_element): For automatic composition, get a face
17144 from the font in the glyph-string.
17145 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17146 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17147 (next_element_from_string): Check if the character at the current
17148 position is composed by CHAR_COMPOSED_P.
17149 (next_element_from_buffer): Likewise.
17150 (next_element_from_composition): Adjust for the change of struct it.
17152 (dump_glyph): Adjust for the change of struct glyph.
17153 (fill_composite_glyph_string): Adjust for the change of struct
17154 it and struct glyph. Don't handle automatic composition here.
17155 (fill_gstring_glyph_string): New function.
17156 (x_get_glyph_overhangs): Handle automatic composition.
17157 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17158 (BUILD_GSTRING_GLYPH_STRING): New macro.
17159 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17160 automatic composition.
17161 (append_composite_glyph): Adjust for the change of struct it and
17163 (x_produce_glyphs): Adjust for the change of struct it.
17165 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17166 the change of struct glyph_string.
17167 (x_draw_glyph_string): Likewise.
17169 2008-08-29 Glenn Morris <rgm@gnu.org>
17171 * buffer.c (word-wrap): Doc fix.
17172 * xdisp.c (truncate-partial-width-windows): Doc fix.
17173 Increase default to 50.
17175 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17177 * xdisp.c (update_tool_bar_unwind): New function.
17178 (update_tool_bar): Temporarily set selected frame before building
17181 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17183 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17184 snprintf, respectively.
17185 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17187 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17189 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17190 LDFLAGS to GNUstep CC invocation.
17192 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17194 * indent.c (Fvertical_motion): Revert last change. Handle the
17195 general case where we are moving forward, and PT spans multiple
17198 * eval.c (find_handler_clause): Temporarily increase
17199 max-lisp-eval-depth while printing the backtrace buffer, to
17200 guarantee that help-mode code can run.
17202 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17204 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17206 (IT_set_frame_parameters): Don't swap foreground and background
17207 colors if `(reverse . t)' is present in the frame properties.
17208 (internal_terminal_init): Call init_frame_faces only for the
17211 2008-08-27 Andreas Schwab <schwab@suse.de>
17213 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17215 2008-08-27 Andreas Schwab <schwab@suse.de>
17217 * search.c (search_buffer): Set char_base to zero only at the end.
17219 2008-08-27 Kenichi Handa <handa@m17n.org>
17221 * fileio.c (report_file_error): Fix handling of multibyte error string.
17223 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17225 * xterm.c (x_term_init): Temporarily hide the partially
17226 initialized terminal while calling vendor-specific-keysyms.
17228 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17230 * msdos.c (internal_terminal_init): Most initializations done only
17231 once, especially initial_screen_colors[] and termscript open.
17233 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17235 * eval.c (Fcondition_case): Doc fix.
17237 * widgetprv.h (EmacsFramePart): Change font member to the new font
17240 * widget.c: Include character.h and font.h for XSETFONT.
17241 (setup_frame_gcs): Compute X font id from font struct, just once.
17243 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17245 * term.c (get_named_tty): Fix last change.
17247 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17249 * indent.c (Fvertical_motion): If moving forward starting from a
17250 multi-line string, move the iterator to the last line of that string.
17252 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17254 * frame.c (do_switch_frame): Mark previously displayed frame as
17255 obscured for FRAME_MSDOS_P frames as well.
17257 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17259 * frame.c (make_terminal_frame): Initialize f->terminal,
17260 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17261 Set the top frame to newly created frame.
17262 (Fmake_terminal_frame): Reuse the_only_display_info.
17264 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17265 estimating available memory.
17267 2008-08-23 David Reitter <david.reitter@gmail.com>
17269 * nsterm.m (ns_draw_window_cursor): Don't call
17270 NSDisableScreenUpdates and NSEnableScreenUpdates on
17271 non-NS_IMPL_COCOA systems.
17273 2008-08-23 Andreas Schwab <schwab@suse.de>
17275 * process.c (procfs_system_process_attributes): Fix use of
17276 uninitialized variables.
17278 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17280 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17282 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17283 calling tty-set-up-initial-frame-faces.
17285 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17286 Allow MSDOS frames along with X frames.
17288 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17289 addition to output_termcap.
17291 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17293 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17294 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17297 * process.c [!subprocesses]: Define QCname.
17298 (syms_of_process): Intern and staticpro it.
17300 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17301 Adjust for changes in encoding/decoding routines.
17302 Use encode_coding_object and decode_coding_object instead of
17303 encode_coding and decode_coding.
17305 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17307 * dosfns.c: Include frame.h before termhooks.h.
17308 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17309 variable termscript.
17311 * s/msdos.h (USER_FULL_NAME): Define.
17312 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17314 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17315 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17318 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17319 SELECTED_FRAME as additional (1st) argument.
17320 (tty_read_avail_input): Handle output_msdos_raw in
17321 addition to output_termcap.
17323 * msdos.c: Include frame.h before termhooks.h.
17324 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17325 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17326 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17327 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17328 (IT_set_terminal_modes, IT_reset_terminal_modes)
17329 (IT_set_frame_parameters): Use tty->termscript instead of a global
17330 variable termscript.
17331 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17332 global variable terminal_coding. Don't refer to
17333 Vnonascii_translation_table.
17334 (internal_terminal_init): Set Vwindow_system in current_kboard.
17335 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17336 Announce date and time of session start, if termscript is open.
17337 Don't zero out the_only_display_info (it is done in
17338 term.c:init_tty). Open termscript only of not already open.
17339 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17340 here instead of dos_ttraw. Don't initialize display if this is an
17341 initial tty. Don't set FRAME_FONT.
17342 (Vwindow_system_version): Bump to 23.
17343 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17344 is available, set up mouse_position_hook.
17345 (dos_ttraw, IT_set_terminal_modes): If called with initial
17346 terminal, do nothing.
17347 (IT_set_frame_parameters): Handle the Qtty_type frame
17348 parameter by calling internal_terminal_init.
17349 (dos_set_window_size, show_mouse_face)
17350 (clear_mouse_face, IT_note_mode_line_highlight)
17351 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17352 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17353 (initialize_msdos_display): New function.
17354 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17355 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17356 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17357 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17358 Accept additional argument: a pointer to a frame. Update all callers.
17359 (request_sigio, unrequest_sigio): Don't define, now defined on
17361 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17363 * term.c [MSDOS]: Include msdos.h.
17364 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17365 conditional to DOS_NT. Allow only one call to this function in a
17366 session. Don't allocate a new struct tty_display_info; instead,
17367 reuse the_only_display_info. Call get_tty_size to get screen
17368 dimensions. Call init_baud_rate to set bad_rate.
17369 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17370 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17371 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17372 (get_tty_terminal, get_named_tty, Ftty_type)
17373 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17375 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17376 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17377 only when subprocesses are supported.
17379 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17381 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17384 * msdos.h: Remove definition of struct x_display_info and struct
17386 (FRAME_FONT): Use output_data.tty.
17387 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17388 (struct x_display_info): Rename from display_info. Update all users in
17390 (struct x_output): Remove background_pixel and foreground_pixel.
17391 (the_only_display_info): Rename from the_only_x_display.
17392 (dos_ttraw): Update prototype.
17394 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17395 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17397 2008-08-23 Jason Rumney <jasonr@gnu.org>
17399 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17400 (fn_TIFFSetDirectory): New library function used.
17401 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17402 (tiff_load): Use :index to select among multiple images. Set count
17403 property when multiple images exist.
17404 (gif_format): Use :index, not :image.
17406 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
17408 * xdisp.c (try_scrolling): Check INT_MAX instead of
17409 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17412 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17414 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17416 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17418 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17419 GNUstep library location.
17421 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
17423 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17426 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17428 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17430 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17431 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17432 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17433 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17434 (EmacsApp-cursor_blink_handler): Remove declaration.
17435 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17436 match 01 Feb 2008 changes in xterm.c.
17437 (ns_read_socket): Add cast to avoid warning.
17438 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17441 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
17443 * xselect.c (x_get_foreign_selection): Return nil if desired
17444 selection could not be obtained, instead of signalling an error.
17446 2008-08-20 David Reitter <david.reitter@gmail.com>
17448 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17449 * nsterm.m: Remove ns-specific code for cursor blinking.
17450 (ns_draw_window_cursor): Clear cursor properly rather than
17451 redrawing the area. Respect width of bar cursors.
17452 These changes enable the use of generic blink-cursor-mode and
17453 generic cursor types in NS and support smooth cursor movements (do
17454 not blink off after command).
17455 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17458 2008-08-19 Kenichi Handa <handa@m17n.org>
17460 * font.c (Vfont_log_deferred): New variable.
17461 (font_add_log): Check Vfont_log_deferred.
17462 (font_deferred_log): New function.
17464 * font.h (font_deferred_log): Extern it.
17466 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17468 (face_for_char): Use deferred log.
17470 2008-08-18 Kenichi Handa <handa@m17n.org>
17472 * fontset.c (face_for_char): Add font log.
17474 * font.c (font_add_log): Add the font properties :script, :lang,
17475 and :otf in the log.
17477 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
17479 * xdisp.c: Remove dead code.
17480 (handle_invisible_prop, next_overlay_string): Defer call to
17481 setup_for_ellipsis.
17482 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17484 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
17486 * xfaces.c (lookup_derived_face): Properly handle possible zero
17487 return value of get_lface_attributes.
17488 (merge_faces): Don't tell lookup_derived_face to signal an error
17489 if face is not found.
17491 * dired.c (Fdirectory_files): Doc fix.
17493 * process.c (make_process): Initialize kill_without_query struct
17496 2008-08-15 Eli Zaretskii <eliz@gnu.org>
17498 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17499 Alternative calculation of totphys for Visual Studio 6.
17501 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17503 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17504 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17506 (stat): Only root directory passed to GetDriveType. Allow RAM
17507 disk as well as local fixed disk when w32-get-true-file-attributes
17509 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17510 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17511 (w32_cached_id, w32_add_to_cache): New functions.
17512 (get_name_and_id): Look account names in the cache before calling
17513 lookup_account_sid.
17514 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17515 New initialization flags.
17516 (globals_of_w32): Initialize them to zero.
17517 (w32_system_process_attributes): Use w32_cached_id and
17520 2008-08-14 Lawrence Mitchell <wence@gmx.li>
17522 * lread.c (Fread_char, Fread_char_exclusive): If no character
17523 event is read before timeout is reached, return nil, rather than
17524 converting to a number.
17526 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
17528 * fns.c (use_dialog_box): Doc fix.
17530 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17533 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
17535 * frame.c (Qns_parse_geometry): New var.
17536 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17538 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
17540 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17541 space character in calculating tabs.
17543 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17545 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17547 2008-08-10 Glenn Morris <rgm@gnu.org>
17549 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17550 silence gcc "limited range of data type" warnings in some
17551 make_fixnum_or_float calls.
17553 2008-08-09 Eli Zaretskii <eliz@gnu.org>
17555 * w32.c (w32_system_process_attributes): If the process does not
17558 * w32.c: Include thelp32.h, psapi.h and coding.h.
17559 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17561 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17562 (Process32Next_Proc): New typedefs.
17563 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17564 (g_b_init_process32_next, g_b_init_open_thread_token)
17565 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17566 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17567 (g_b_init_get_process_working_set_size)
17568 (g_b_init_global_memory_status_ex): New static variables.
17569 (globals_of_w32): Initialize them.
17570 (create_toolhelp32_snapshot, process32_first, process32_next)
17571 (open_thread_token, impersonate_self, revert_to_self)
17572 (get_process_memory_info, get_process_working_set_size)
17573 (global_memory_status, global_memory_status_ex): New wrapper
17575 (w32_list_system_processes, w32_system_process_attributes)
17576 (enable_privilege, restore_privilege, ltime, process_times):
17578 (convert_time_raw): New function.
17579 (convert_time): Remove conversion of FILETIME into time in 100
17580 nsec units, call convert_time_raw instead.
17582 * process.h (w32_list_system_processes, w32_system_process_attributes):
17584 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17585 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17586 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17587 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17589 * process.c (Fsystem_process_attributes): Doc fix.
17591 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
17593 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17594 a continued multi-char glyph; if so, advance to the actual glyph.
17596 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17598 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17600 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17602 * config.in: Regenerate.
17604 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
17606 * xdisp.c (redisplay_window): Revert last change.
17607 (try_window): Check bottom scroll margin too.
17609 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17611 * config.in: Regenerate.
17613 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17614 -list-load-path-shadows'.
17615 (nsgui.h): Reduce number of things depending on it.
17617 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
17619 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17620 instead of window-end which does the wrong thing at eob.
17621 (try_cursor_movement): Minor optimization.
17622 (redisplay_window): If scroll margin is defined, don't assume
17623 window doesn't need scrolling.
17625 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17627 * config.in: Regenerate.
17629 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17630 (mostlyclean): Don't delete *.d under NS.
17632 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17634 2008-08-06 Kenichi Handa <handa@m17n.org>
17636 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17638 2008-08-06 Andreas Schwab <schwab@suse.de>
17640 * config.in: Regenerate.
17642 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
17644 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17645 forcing a window start.
17647 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17648 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17650 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17652 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17655 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
17657 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17658 <scroll-down-aggressively, before-change-functions>:
17659 <after-change-functions>: Reflow docstrings.
17661 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17662 Ken Raeburn <raeburn@gnu.org>
17664 Dock menu customization, based on a patch by Ken Raeburn, plus some
17666 * nsmenu.m (dockMenu): New variable.
17667 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17669 * nsterm.h (dockMenu): Declare.
17671 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17672 (ns_term_init): Initialize dockMenu.
17673 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17674 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17677 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17679 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17681 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17683 * config.in: Regenerate.
17685 2008-08-04 Seiji Zenitani <zenitani@mac.com>
17687 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17689 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
17691 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17693 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17695 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17697 * keyboard.h: Comment an #endif.
17699 * lisp.h (have_menus_p): Adjust comment.
17701 * menu.c (find_and_return_menu_selection): Fix comparison with
17704 * nsmenu.m (popup_activated_flag): New variable.
17705 (popup_activated): New function.
17706 (menu-or-popup-active-p): New exported lisp definition.
17707 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17709 (ns_popup_dialog): Set popup_activated_flag.
17711 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17712 version for GNUstep (handled by conditional typedef in nsterm.m).
17713 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17716 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17718 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17720 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17722 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17723 shortcircuit if popup_activated like GTK and X toolkit.
17725 * m/inter386.h: Change DARWIN to DARWIN_OS.
17727 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17728 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
17729 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17730 Expand comment on NO_SOCK_SIGIO.
17732 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
17734 * nsterm.m (windowDidResize): Remove stopModal call.
17736 2008-08-03 Andreas Schwab <schwab@suse.de>
17738 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17739 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17741 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
17743 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17744 Don't use uninitialized pointer variable when using getrlimit.
17746 2008-08-02 Jason Rumney <jasonr@gnu.org>
17748 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17750 2008-08-02 Eli Zaretskii <eliz@gnu.org>
17752 * alloc.c (NSTATICS): Bump to 0x640.
17754 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17756 * lisp.h: Add prototype for directory_files_internal.
17758 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17760 (syms_of_process): Defsubr them. Add initializations for various
17761 Q* symbols used in procfs_system_process_attributes.
17762 (procfs_list_system_processes, procfs_system_process_attributes)
17763 [HAVE_PROCFS]: New functions.
17764 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17765 (procfs_get_total_memory): New functions.
17767 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
17769 * xfaces.c (Fx_load_color_file): Fix previous change;
17770 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17772 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
17774 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17776 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17778 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17780 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
17782 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17784 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17785 define NSApplicationDelegateReplySuccess.
17786 (EmacsView -converstationIdentifier): Use long instead of
17787 NSInteger for GNUstep, since it doesn't have NSInteger.
17789 * xmenu.c: Revert last change.
17791 * keyboard.h: Fix last change.
17793 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
17795 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17798 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17800 Warning clearing and clean-up in NS port.
17801 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17803 * nsgui.h (FACE_DEFAULT): Remove, unused.
17804 (XGCValues): Change colors to unsigned long.
17805 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17807 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17808 (ns_list_fonts): Remove, unused.
17809 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17810 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17811 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17812 (nsfont_draw): Compare face colors to 0, not nil.
17813 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17814 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17815 (-addSubmenuWithTitle:): Use NSMenuItem class.
17816 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17817 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17818 (ns_clip_to_row): Make gc arg a BOOL.
17819 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17820 ns_clip_to_row() call.
17821 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17822 used). Cast FRAME_FONT assignments.
17823 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17824 (ns_string_to_lispmod): Change arg to const char.
17825 (ns_term_init): Use NSMenuItem class.
17826 (EmacsApp -openFile:): Move to different section of file.
17827 (EmacsApp -application:openFiles:): Don't return a value, call
17828 -replyToOpenOrPrint:.
17829 (EmacsView -keyDown:): Fix up cast.
17830 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17831 (EmacsView -menuDown:): Cast tag in call to
17832 find_and_call_menu_selection().
17833 (ns_list_fonts): Remove, unused.
17834 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17835 (ns_fontname_to_xlfd): Make static.
17836 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17837 Remove prototypes (now in keyboard.h).
17838 (next_menubar_widget_id): Remove, unused.
17839 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17840 Remove prototypes (now in keyboard.h).
17841 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17843 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17845 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17846 (floatfns.o): Depend on syssignal.h.
17847 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17849 * systty.h: Fix previous change that removed BSD_TERMIOS.
17850 Add comments to #ifdefs.
17852 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17854 * w32fns.c (w32-load-color-file): Remove.
17855 (x-open-connection): Use renamed Fx_load_color_file.
17856 * xfaces.c (x-load-color-file): Add.
17857 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17859 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17861 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
17863 * dbusbind.c (Fdbus_call_method_asynchronously)
17864 (Fdbus_method_error_internal): New defuns.
17865 (xd_read_message): Handle also reply messages.
17866 (Vdbus_registered_functions_table): Extend docstring.
17868 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
17870 * keyboard.c (gobble_input): Fix previous change.
17872 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17903 * m/vax.h: Remove VMS support.
17909 * ioctl.h: Remove file.
17911 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17913 * s/ms-w32.h (MULTI_KBOARD): Remove.
17928 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17929 * config.in: Regenerate.
17931 2008-07-30 Jason Rumney <jasonr@gnu.org>
17933 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17935 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17936 (w32font_open_internal): Get unicode version of textmetrics.
17937 Don't enable or disable glyph indices here.
17938 (w32font_open): Disable use of glyph indices.
17940 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17942 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
17944 * minibuf.c (Vread_buffer_function): Doc fix.
17946 2008-07-30 John Paul Wallington <jpw@pobox.com>
17948 * minibuf.c (read_buffer_completion_ignore_case): New var.
17949 (Fread_buffer): Use it.
17951 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17953 * systty.h (sensemode): Remove empty #if. Remove reference to
17954 BSD_TERMIOS, unused.
17956 * sysdep.c: Remove reference to DGUX.
17957 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17959 * config.in: Regenerate.
17961 2008-07-30 Jason Rumney <jasonr@gnu.org>
17963 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17965 2008-07-29 Jason Rumney <jasonr@gnu.org>
17967 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17969 (uniscribe_encode_char): Always use uniscribe.
17970 Avoid using context if cache is populated.
17972 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17974 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17977 * gtkutil.c (menu_nav_ended): Remove.
17978 (create_menus): Remove signal connect for menu_nav_ended.
17980 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
17982 * xdisp.c (redisplay_window): Check return value of
17983 compute_window_start_on_continuation_line before forcing a window
17986 2008-07-28 Jason Rumney <jasonr@gnu.org>
17988 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17990 * w32term.c (w32_enable_unicode_output, cleartype_active):
17991 Remove obsolete display options.
17992 (x_draw_glyph_string_background): Don't use old cleartype_active
17994 (w32_initialize): Remove cleartype_active initialization.
17995 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17997 2008-07-28 Andreas Schwab <schwab@suse.de>
17999 * lisp.h (init_weak_hash_tables, syms_of_font)
18000 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18001 (remove_hash_entry): Don't declare.
18002 * eval.c (maybe_call_debugger): Make static and move before use.
18003 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18004 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18005 * xterm.h (x_set_frame_alpha): Declare.
18007 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18009 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18010 (create_menus): Connect selection-done to menu_nav_ended.
18012 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18014 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18015 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18016 parameter with read of 'alpha' one.
18017 (Qns_frame_parameter): Remove.
18018 * nsselect.m (selection-coding-system)
18019 (next-selection-coding-system, Vselection_coding_system)
18020 (Vnext_selection_coding_system): Drop.
18022 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18024 * nsfns.m (do-applescript, do_applescript): Rename to
18025 ns-do-applescript, ns_do_applescript, and move within file.
18027 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18029 Remove support for Mac Carbon.
18037 * mac.c: Remove file.
18068 * Makefile.in: Remove code for Carbon.
18070 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18072 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18074 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18076 * macterm.h (kCGBitmapByteOrder32Host): New define for
18077 non-universal SDKs.
18079 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18080 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18082 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18083 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18085 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18087 * w32inevt.c: Include dispextern.h.
18089 2008-07-26 Andreas Schwab <schwab@suse.de>
18091 * print.c (print_object): Fix off-by-one in last change.
18093 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18095 * term.c (syms_of_term): Don't initialize default_orig_pair,
18096 default_set_foreground and default_set_background on Windows.
18098 2008-07-25 Jason Rumney <jasonr@gnu.org>
18100 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18101 ScriptItemize. Clean up return value checking. Remove unused
18103 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18106 * w32font.c (w32font_has_char): Handle the case where we can't
18107 determine the script for a character.
18109 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18111 * term.c (syms_of_term): Initialize default_orig_pair,
18112 default_set_foreground, and default_set_background.
18114 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18116 (getloadavg): Callers changed.
18118 * image.c (svg_load_image): Fix last change.
18119 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18120 image size is valid. Use g_object_unref instead of deprecated
18121 rsvg_handle_free to free rsvg handle.
18122 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18124 2008-07-25 Jason Rumney <jasonr@gnu.org>
18126 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18127 surrogates before looking up glyph index.
18128 (w32font_text_extents): Encode as surrogates if falling back to
18129 functions that need UTF-16 wide chars.
18131 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18132 BMP as surrogates before looking up glyph index.
18134 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18136 * image.c (svg_load_image): Check for failure in return value of
18137 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18139 2008-07-25 Jason Rumney <jasonr@gnu.org>
18141 * w32font.c (Fx_select_font): Reverse sense of second arg.
18143 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18145 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18146 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18148 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18149 (PURESIZE): Use it.
18151 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18153 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18154 * m/alpha.h (TEXT_END):
18155 * m/ibmrs6000.h (TEXT_END):
18156 * m/macppc.h (TEXT_END):
18157 * s/darwin.h (TEXT_END):
18158 * s/msdos.h (TEXT_END): Remove, unused.
18159 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18160 * s/cygwin.h: Remove comment.
18162 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18163 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18164 * m/intel386.h (DOT_GLOBAL_START):
18165 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18166 (USG): Remove, file not used on USG platforms.
18168 * Makefile.in (HAVE_X11): Remove empty #else.
18170 2008-07-24 Andreas Schwab <schwab@suse.de>
18172 * fileio.c (Finsert_file_contents): Properly adjust undo list
18173 after format conversion.
18175 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18177 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18178 (menu_nav_ended): Remove.
18179 (create_menus): Remove signal connect for menu_nav_ended.
18180 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18182 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18184 2008-07-23 Jason Rumney <jasonr@gnu.org>
18186 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18188 (w32font_open): Set font type to gdi.
18190 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18192 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18194 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18195 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18197 * unexec.c (ADDR_CORRECT): Define unconditionally.
18199 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18201 * unexec.c: Remove code depending on !COFF and USG, the file is
18202 not used for such systems.
18204 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18205 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18206 (LD_SWITCH_SYSTEM_1): Remove, update users.
18208 * s/darwin.h (DATA_END):
18209 * m/intel386.h (DATA_END):
18210 * m/ibmrs6000.h (DATA_END):
18211 * m/alpha.h (DATA_END): Remove, unused.
18213 * config.in: Regenerate.
18214 * s/ms-w32.h (subprocesses): Define unconditionally.
18215 * s/template.h (subprocesses): Update comment.
18216 * s/vms.h (subprocesses):
18217 * s/usg5-4.h (subprocesses):
18218 * s/hpux10-20.h (subprocesses):
18219 * s/gnu-linux.h (subprocesses):
18220 * s/cygwin.h (subprocesses):
18221 * s/bsd-common.h (subprocesses):
18222 * s/aix4-2.h (subprocesses):
18223 * s/darwin.h (subprocesses): Do not define, defined by default now.
18225 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18226 Remove all references.
18227 (temacs): Add GNUstep specific ld flags.
18229 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18230 similarly to what X does.
18232 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18234 * nsfns.m (x-list-fonts): Remove.
18235 (syms_of_nsfns): Drop the x-list-fonts declaration.
18236 * nsterm.m: Get rid of remaining "//" comments.
18238 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18240 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18242 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18243 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18244 (Fns_own_selection_internal, Fx_disown_selection_internal)
18245 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18247 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18248 ... */' style of docstrings. Doc fixes.
18250 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18252 * terminfo.c (UP, BC, PC): Undo previous change.
18254 * nsfns.m: Rename ns prefixed functions/variables to the
18255 corresponding x versions. Update references.
18257 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18259 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18261 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18263 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18264 Remove forwarding functions.
18265 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18267 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18269 (ns_frame_parm_handlers): Use the new names.
18270 (syms_of_nsfns): Move to the end of file.
18272 * nsterm.m (syms_of_nsterm): Move to the end of file.
18274 * dispnew.c (init_display): Remove code for X10.
18276 2008-07-22 Jason Rumney <jasonr@gnu.org>
18278 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18281 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18283 * nsterm.m (syms_of_nsterm): Remove debugging println.
18285 2008-07-22 David Reitter <david.reitter@gmail.com>
18287 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18288 Carbon implementation of the same functionality: execute arbitrary
18291 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18293 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18294 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18295 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18296 (Fx_display_mm_height, Fx_display_mm_width)
18297 (Fx_display_backing_store, Fx_display_visual_class)
18298 (Fx_display_save_under, Fx_open_connection)
18299 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18300 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18301 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18302 (Fx_display_pixel_width, Fx_display_pixel_height)
18303 (Fx_display_usable_bounds, Fx_display_planes)
18304 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18305 ... */' style of docstrings.
18307 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18309 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18312 * m/iris4d.h (mips): Do not define.
18313 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18315 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18321 * nsterm.m: Rename ns prefixed functions/variables to the
18322 corresponding x versions. Update references.
18324 * m/ibms390x.h (NO_REMAP): Do not undefine.
18326 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18328 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18330 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18331 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18332 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18333 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18334 (Fns_display_mm_height, Fns_display_mm_width)
18335 (Fns_display_backing_store, Fns_display_visual_class)
18336 (Fns_display_save_under, Fns_open_connection)
18337 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18338 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18339 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18340 (Fns_display_pixel_width, Fns_display_pixel_height)
18341 (Fns_display_usable_bounds, Fx_display_planes)
18342 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18344 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18346 * print.c (print_object): Check print_depth before searching for
18349 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18351 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18354 2008-07-21 Kenichi Handa <handa@m17n.org>
18356 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18358 2008-07-20 Andreas Schwab <schwab@suse.de>
18360 * syntax.c (find_start_pos, find_start_value)
18361 (find_start_value_byte, find_start_begv, find_defun_start)
18362 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18364 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18366 * s/sol2-3.h: Insert contents of s/sol2.h.
18367 (LD_SWITCH_SYSTEM): Remove redundant definition.
18368 * s/sol2.h: Remove, unused.
18370 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18372 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18374 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18376 * Makefile.in (ns_appdir): Fix typo in find command.
18378 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18380 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18382 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18383 added not supported anymore.
18385 * s/usg5-4-2.h (LIBS_SYSTEM):
18386 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18388 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18389 * s/lynxos.h (GETPGRP_NO_ARG):
18390 * s/hpux10-20.h (NO_SIOCTL_H):
18391 * s/gnu.h (GETPGRP_NO_ARG):
18392 * s/gnu-linux.h (NO_SIOCTL_H):
18393 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18394 * s/cygwin.h (GETPGRP_NO_ARG):
18395 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18396 (C_DEBUG_SWITCH): Remove duplicate definition.
18398 * m/ibms390.h: Remove boilerplate comments.
18400 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18402 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18403 (wait_reading_process_output): Remove code for SunOS, platform not
18404 supported anymore. Use SOLARIS2 instead of sun.
18406 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18408 * font.c (font_open_by_name): Under NS, default lface height to zero.
18409 (font_open_for_lface): Under NS, set size based on frame fontsize.
18410 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18411 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18413 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18415 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18416 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18417 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18419 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18420 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18421 * Makefile.in (clean): Clear out build destination dir.
18423 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18425 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18427 * lisp.h: Remove declaration of hash_remove.
18428 * nsgui.h: Remove redefinitions of hash_remove.
18429 * fns.c (hash_remove): Rename to hash_remove_from_table.
18431 2008-07-19 Seiji Zenitani <zenitani@mac.com>
18433 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18434 strdup() the family UTF8String before modifying it.
18436 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18438 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18439 NS_FACE_BACKGROUND with 0 instead of nil.
18440 * nsfont.m (nsfont_draw): Same.
18442 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
18444 * nsfns.m (ns_set_background_color): Fix crash.
18446 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
18448 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18450 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18452 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18454 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18456 * gtkutil.c: Include <config.h> instead of "config.h".
18458 * lisp.h (Foverlay_buffer): Add EXFUN.
18460 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18461 child process to complete child_setup. Undo 2005-09-21 change.
18463 * s/darwin.h: Mention setsid after vfork.
18465 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18467 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18468 Depend on macgui.h.
18470 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18471 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18473 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18475 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18477 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18478 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18479 Remove enumerators.
18481 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18482 Check if FACE_FROM_ID returns NULL.
18484 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18486 * w32inevt.c (change_frame_size): Remove extern declaration.
18487 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18490 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18492 * getloadavg.c: Revert last change (2008-07-15).
18494 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18496 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18497 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18500 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18503 * s/sol2-4.h: Reorganize conditionals.
18505 * ecrt0.c: Remove code depending on m68000, not used anymore.
18507 * fns.c (hash_remove): Make static.
18508 * lisp.h (hash_remove): Don't prototype.
18512 * m/macppc.h: Remove boilerplate comments.
18514 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18515 Solaris, which does not need them.
18517 * m/vax.h: Remove comments about unsupported systems.
18519 * s/darwin.h: Reorganize ifdefs.
18521 2008-07-17 Andreas Schwab <schwab@suse.de>
18523 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18525 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18527 Use SDATA. Follow coding convention of placing operators at
18528 beginning of next line rather than end of previous line, and placing
18529 spaces around infix operators.
18531 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18532 in case it was defined already.
18533 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18534 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18536 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18538 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18539 (ns_defined_color, ns_color_to_lisp): Declare.
18540 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18541 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18542 it's accepted even with USE_LISP_UNION_TYPE.
18543 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18544 (update_frame_tool_bar): Remove apparently obsolete tests for
18545 non-integerness of f->tool_bar_lines.
18546 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18547 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18548 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18549 (nsfont_open): Don't confuse NULL for Qnil.
18550 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18551 * menu.h (find_and_call_menu_selection):
18552 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18553 (find_and_return_menu_selection): Always return something.
18554 * frame.h: Include dispextern.h for Display_Info.
18555 (display_x_get_resource): Declare.
18557 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18559 * syntax.c: Remove stdio.h include accidentally introduced in
18561 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18563 * keyboard.c (handle_async_input, input_available_signal): Remove
18564 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18566 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18568 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18569 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18570 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18573 * keymap.c: Remove all NS-specific code.
18574 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18575 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18576 where_is_preferred_modifier, return a different value depending on how
18577 preferred is the binding.
18578 (where_is_internal): Adjust accordingly.
18579 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18580 Adjust to new preferred_sequence_p.
18581 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18582 * keyboard.c (parse_solitary_modifier): Not static any more.
18583 * keyboard.h (parse_solitary_modifier): Declare.
18585 2008-07-16 Andreas Schwab <schwab@suse.de>
18587 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18590 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
18592 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18593 that we don't move off the line.
18595 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18597 * keyboard.c (Qsuper): Remove.
18598 (parse_menu_item): Don't call where_is_internal specially for NS.
18600 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18602 * s/gnu-linux.h: Remove boilerplate comments.
18604 * m/alpha.h (__ELF__): Consolidate conditions.
18606 * m/m68k.h (linux): Use GNU_LINUX instead.
18607 Remove boilerplate comments.
18609 * m/intel386.h: Undo refactoring from previous change.
18610 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18611 too, remove dead code.
18612 (linux): Use GNU_LINUX instead.
18614 2008-07-16 Jason Rumney <jasonr@gnu.org>
18616 * w32gui.h: Repeat 26 June changes lost by last change.
18618 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18620 * systty.h: Remove code for Aix on 386, unsupported platform.
18622 * s/ms-w32.h: Remove boilerplate comments.
18623 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18625 * s/gnu-linux.h (TERM): Remove support.
18626 (HAVE_SYSVIPC): Remove, unused.
18627 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18630 * process.c: Remove support for IRIS, unused.
18631 Remove support for TERM, not relevant anymore.
18633 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18634 used with the definition.
18636 * s/aix4-2.h (static): Do not undef.
18638 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18640 (HAVE_SYSVIPC): Remove, unused.
18642 * m/hp800.h (CANNOT_DUMP): Do not undef.
18644 * m/alpha.h: Fix comment.
18646 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18647 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18648 used by this configuration.
18649 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18650 * unexec.c: Remove code depending on HPUX and
18651 USG_SHARED_LIBRARIES, not used with this file. Remove code
18652 depending on IRIS, unused. Remove if 0-ed code.
18654 * s/template.h: Remove comments about static.
18656 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18657 Remove if 0-ed code.
18658 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18659 were the same as the default.
18660 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18661 Remove boilerplate comments.
18662 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18663 (HAVE_SYSVIPC): Remove, unused.
18664 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18666 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18667 Remove boilerplate comments.
18668 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18669 Remove boilerplate comments.
18670 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18671 Remove boilerplate comments.
18672 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18674 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18675 USG systems which do not use DATA_SEG_BITS.
18676 Refactor code. Remove boilerplate comments.
18685 * s/msdos.h: Remove boilerplate comments.
18687 * m/iris4d.h: Remove boilerplate comments and code for systems that
18688 do not use this file.
18689 (IRIS_4D): Remove, unused.
18691 * m/mips.h: Remove boilerplate comments and code for systems that
18692 do not use this file.
18693 (SIGN_EXTEND_CHAR):
18694 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18695 * unexmips.c: Remove file, unused.
18697 * editfns.c (Fuser_full_name): Replace the only use of
18698 USER_FULL_NAME with its value.
18699 * config.in: Regenerate.
18701 2008-07-16 David Reitter <david.reitter@gmail.com>
18703 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18704 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18706 2008-07-16 Glenn Morris <rgm@gnu.org>
18708 * emacs.c (system-type): Doc fix.
18710 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18712 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18713 If the cache doesn't work, let's fix it, rather than work around it.
18715 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18717 * Makefile.in: Correct additions for nsfont.o in last commit.
18718 * nsfont.m: New file (forgot last commit).
18720 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18722 * callproc.c (set_initial_environment):
18723 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
18724 batch-compiling for bootstrap).
18726 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18727 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18729 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18730 CANNOT_DUMP case -- fix crash due to different init order.
18732 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18734 Changes and additions for NeXTstep windowing system (Cocoa and
18738 * config.in: Support defines and build commands for NS port.
18739 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18740 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18741 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18743 (struct face): Add synth_ital field.
18744 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18745 (init_display): Initialize Vinitial_window_system to "ns" when so
18747 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18748 (display_arg): Use under NS.
18749 (main): Under NS, allocate autorelease pool and handle command line
18750 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18751 (standard_args): Add NS-specific args.
18752 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18753 * font.c (DEFAULT_ENCODING): New variable.
18754 (font_find_for_lface): Use it.
18755 (syms_of_font): Load syms_of_nsfont under NS.
18756 * font.h: Declare nsfont_driver when compiled under NS.
18757 * fontset.c: When compiling under NS, include nsterm.h.
18758 (fontset_from_font): Autoconstruct fontset under NS.
18759 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18760 symbol, document and use it.
18761 (do_switch_frame): When for_deletion under Cocoa, add
18762 Fraise_frame(Qnil).
18763 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18764 (x_get_arg): Allow "yes" and "no" as boolean values.
18765 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18766 Qright under Cocoa.
18767 (focus-follows-mouse): Default to 0 under NS.
18768 * frame.h (enum output_method): Add output_ns.
18769 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18770 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18771 (FRAME_WINDOW_P): NS-specific definition.
18772 * fringe.c (max_used_fringe_bitmap): Make public.
18773 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18774 (getloadavg): Use NeXT code under descendant OS's.
18775 * image.c (includes and header section, x_create_bitmap_from_data)
18776 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18777 (image_background_transparent, x_clear_image_1)
18778 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18779 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18780 (x_to_xcolors, x_from_xcolors, x_disable_image)
18781 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18782 other GUIs, including XPM support using code originally written for
18784 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18786 (image_ascent): Use font metrics macros instead of direct struct field
18788 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18789 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18790 Also, handle NS as GTK for menu bar purposes.
18791 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18792 toolkit where they differ.
18793 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18794 use cachelist, still needed under NS.
18795 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18796 (struct widget_value): Define it here for menu.c.
18797 * keymap.c (includes): Include modifier internals.
18798 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18800 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18801 support for preferring sequences using certain modifiers, specified by
18802 the FIRSTONLY argument.
18803 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18804 under NS GNUstep implementation.
18805 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18806 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18807 * menu.c: Include nsterm.h under NS.
18808 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18809 (free_menubar_widget_tree_value, update_submenu_strings)
18810 (find_and_call_menu_selection): Treat NS as X and NT.
18811 (find_and_return_menu_selection): New function, used for popup menus.
18818 * nsterm.m: New files.
18819 * process.c (wait_reading_process_output): Under NS, call ns_select()
18820 instead of plain select().
18821 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18822 beginning of buffer.
18823 * sysselect.h (init_process): Rename when compiling under Cocoa to
18824 avoid name conflict.
18825 * termhooks.h (display_info): Add ns_display_info to union.
18826 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18827 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18829 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18830 unexec() signature. (Note, this will dump, but the resulting file
18831 crashes; unexosx is used instead; keeping around for reference and
18832 possible aid in getting dump working under GNUstep.)
18833 * w32gui.h (button_type, widget_value): Remove definitions (now in
18835 * window.c: Include nsterm.h when compiling under NS.
18836 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18837 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18838 other GUI windowing systems.
18839 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18841 (x_consider_frame_title): Under NS, set icon type and frame
18842 modified-state indicator; use ns_set_name_as_filename() when using
18844 (update_window_cursor): Make public when compiling under NS.
18845 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18846 (hourglass_atimer, Vhourglass_delay
18847 * xfaces.c (header section, init_frame_faces, clear_font_table)
18848 (defined_color, unload_color, x_face_list_fonts)
18849 (prepare_face_for_display): Add NS support parallel to other GUIs.
18850 Emulate GCs like other non-X GUIs.
18851 (split_font_name): Don't lowercase font name under NS.
18852 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18854 * s/darwin.h: Add support for compilation under NS.
18856 2008-07-15 Jason Rumney <jasonr@gnu.org>
18858 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18859 (w32_show_hourglass): Rename from show_hourglass.
18860 (w32_hide_hourglass): Rename from hide_hourglass.
18861 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18862 (Vhourglass_delay): Declare extern.
18863 (hourglass_started): Remove.
18865 * xdisp.c (Vhourglass_delay): Remove static.
18866 (hourglass_started, start_hourglass, cancel_hourglass):
18867 Don't include these versions on WINDOWSNT.
18869 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18871 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18872 variables (formerly in xfns.c).
18873 (show_hourglass, hide_hourglass): New prototypes (same).
18874 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18875 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18877 (syms_of_xdisp): Declare/initialize display-hourglass,
18878 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18879 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18880 formerly in xfns.c.
18881 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18882 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18883 (start_hourglass, cancel_hourglass): Remove.
18884 (show_hourglass, hide_hourglass): Remove prototypes and static
18886 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18887 hourglass_atimer, hourglass_shown_p declaration/initialization.
18888 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18889 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18890 (start_hourglass, cancel_hourglass): Remove.
18891 (show_hourglass, hide_hourglass): Remove prototypes and static
18893 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18894 hourglass_atimer, hourglass_shown_p declaration/initialization.
18895 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18896 (DEFAULT_HOURGLASS_DELAY): Remove.
18897 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18898 hourglass_shown_p declaration/initialization.
18900 2008-07-14 Jason Rumney <jasonr@gnu.org>
18902 * w32fns.c (w32_get_arg): Remove wrapper function.
18903 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18905 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18907 2008-07-14 Kenichi Handa <handa@m17n.org>
18909 * xfont.c (xfont_open): Add workaround for X's bug.
18911 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18913 * fontset.c: Include <stdio.h> unconditionally.
18915 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
18917 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18920 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18922 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18925 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18927 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
18928 (SPECIAL_EMACS_INT):
18929 * m/ia64.h (SPECIAL_EMACS_INT):
18930 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18931 * s/gnu.h (NLIST_STRUCT):
18932 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18933 * s/gnu-linux.h (LINUX):
18934 * s/msdos.h (HAVE_FACES):
18935 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18938 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18941 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18943 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18944 always defined as int.
18946 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18947 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18948 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18949 * s/freebsd.h (HAVE_WAIT_HEADER):
18950 * s/bsd-common.h (HAVE_UNION_WAIT):
18951 * s/aix4-2.h (HAVE_WAIT_HEADER):
18952 * m/mips.h (HAVE_UNION_WAIT):
18953 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18954 (COFF, static): Do not define, they are undefined later in the file.
18956 * process.c (update_status): Don't use a union.
18958 (sigchld_handler): Use int instead of WAITTYPE.
18960 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
18962 * indent.c (Fvertical_motion): Restore hscroll before moving to
18965 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18967 * lisp.h: Remove left over code.
18969 2008-07-11 Andreas Schwab <schwab@suse.de>
18971 * lisp.h: Fix logic in last change.
18973 * menu.h: New file.
18974 * menu.c: Include it.
18975 * xmenu.c: Likewise.
18976 * Makefile.in: Update dependencies.
18978 2008-07-11 Kenichi Handa <handa@m17n.org>
18980 * fontset.c (fontset_from_font): Cancel the previous change.
18982 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18987 * alloc.c: Replace all references of NO_UNION_TYPE with
18988 USE_LISP_UNION_TYPE.
18990 * m/xtensa.h (NO_UNION_TYPE):
18991 * m/vax.h (NO_UNION_TYPE):
18992 * m/template.h (NO_UNION_TYPE):
18993 * m/sparc.h (NO_UNION_TYPE):
18994 * m/mips.h (NO_UNION_TYPE):
18995 * m/macppc.h (NO_UNION_TYPE):
18996 * m/m68k.h (NO_UNION_TYPE):
18997 * m/iris4d.h (NO_UNION_TYPE):
18998 * m/intel386.h (NO_UNION_TYPE):
18999 * m/ibms390x.h (NO_UNION_TYPE):
19000 * m/ibms390.h (NO_UNION_TYPE):
19001 * m/ibmrs6000.h (NO_UNION_TYPE):
19002 * m/ia64.h (NO_UNION_TYPE):
19003 * m/hp800.h (NO_UNION_TYPE):
19004 * m/arm.h (NO_UNION_TYPE):
19005 * m/amdx86-64.h (NO_UNION_TYPE):
19006 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19007 defining it the same.
19009 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19011 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19013 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19030 * s/vms.h: Remove references to unused variables.
19032 2008-07-10 Andreas Schwab <schwab@suse.de>
19034 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19035 pattern before matching the generic family.
19037 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19044 * s/darwin.h: Remove dead code.
19057 * m/amdx86-64.h: Remove dead code and references to unused
19058 and compiler defined symbols.
19061 * unexelf.c: Remove references to desupported systems.
19063 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19065 * m/powermac.h: Remove boilerplate comments.
19066 (NO_REMAP): Remove unused definition.
19068 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19071 2008-07-10 Kenichi Handa <handa@m17n.org>
19073 * xfont.c (xfont_open): Log the reason of failure.
19075 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19077 * fontset.c (fontset_get_font_group):
19078 * font.c (font_check_otf): Specify argument types.
19080 2008-07-09 Kenichi Handa <handa@m17n.org>
19082 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19083 non-ASCII char is found.
19085 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19086 (reorder_font_vector): Change the arg preferred_family to font.
19087 Prefer the spec matching with font.
19088 (fontset_get_font_group): New function.
19089 (fontset_find_font): Change the format of an element of a realized
19090 fontset. Use fontset_get_font_group.
19091 (fontset_font): Try the current fontset, the default fontset, the
19092 fallbacks of the current fontset, and the fallbacks of the default
19093 fontset in this order.
19094 (face_for_char): Delete the shortcut to use the current font.
19095 (fontset_from_font): Don't set fonts for Latin in the fontset.
19097 * font.h (font_make_object, font_match_p): Adjust prototypes.
19099 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19101 * font.c (font_make_object): New arg entity and pixelsize.
19102 (font_check_otf_features, font_check_otf): New functions.
19103 (font_match_p): Check :lang, :script, and :otf properties.
19105 * xfont.c (xfont_open): Adjust it for the change of
19107 (xfont_text_extents): Fix initial setting of metrics.
19109 * ftfont.c (struct ftfont_info): New member index, delete member
19110 fc_charset_idx. Make the member order compatible with struct
19112 (fc_charset_table): Change charset names to registry names.
19113 (ftfont_pattern_entity): Delete the args registry and
19114 fc_charset_idx. Change the value of :font-entity property
19115 to (FONTNAME . INDEX). Always set :registry property to
19117 (struct ftfont_cache_data): New struct.
19118 (ftfont_lookup_cache): New arg for_face.
19119 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19120 (ftfont_driver): Set the member otf_capability.
19121 (ftfont_get_charset): Adjust it for the change of
19123 (OTF_TAG_SYM): New macro.
19124 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19125 for the change of fc_charset_table.
19126 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19127 ftfont_pattern_entity. Add FC_INDEX to objset.
19128 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19129 and ftfont_pattern_entity.
19130 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19131 font_make_object, struct ftfont_info.
19132 (ftfont_has_char): Use ftfont_get_fc_charset.
19133 (ftfont_otf_features, ftfont_otf_capability): New functions.
19134 (ftfont_shape): Use ftfont_get_otf.
19135 (ftfont_text_extents): Fix initial setting of metrics.
19137 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19138 member order compatible with struct ftfont_info.
19139 (xftfont_open): Add FC_CHARSET to the pattern.
19140 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19141 properties if appropriate.
19142 (xftfont_close): Unlock the face.
19143 (xftfont_anchor_point, xftfont_shape): Deleted.
19144 (syms_of_xftfont): Don't set members anchor_point and shape of
19147 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19150 * w32font.c (w32font_open): Adjust it for the change of
19152 (w32font_open_internal): Don't set properties of font_object here.
19154 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19156 * macfns.c (x_create_tip_frame):
19157 * w32fns.c (x_create_tip_frame):
19158 * xfns.c (x_create_tip_frame): Pass parameter argument to
19159 face-set-after-frame-default.
19161 * xfaces.c (Finternal_merge_in_global_face): Save merged
19162 attributes for the default face back into the face vector.
19164 2008-07-08 Andreas Schwab <schwab@suse.de>
19166 * fontset.h: Declare fontset_from_font. Don't declare
19167 new_fontset_from_font and fontset_from_font_name.
19168 * xterm.c: Include "fontset.h".
19169 * Makefile.in (xterm.o): Update dependencies.
19171 2008-07-08 Glenn Morris <rgm@gnu.org>
19173 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19174 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19176 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19178 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19179 (x_set_frame_parameters): Don't bind it.
19181 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19183 * w32fns.c (map_w32_filename): Declare extern.
19185 2008-07-07 Jason Rumney <jasonr@gnu.org>
19187 * w32term.c (WS_EX_LAYERED): Define if not already.
19189 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19191 * xfaces.c (set_font_frame_param): Don't try to set the font
19192 parameter if it is still unspecified in the lface.
19194 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19196 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19197 face if it didn't already exist.
19199 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19201 2008-07-05 Andreas Schwab <schwab@suse.de>
19203 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19205 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19207 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19209 (IT_DISPLAYING_WHITESPACE): New macro.
19210 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19211 when word-wrapping. Simplify word-wrapping logic. Use correct
19212 pixel positions when saving copies of the iterator.
19213 (display_line): Use proper wrap point if the last character on a
19214 line was preceded by whitespace.
19216 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19218 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19220 2008-07-04 Kenichi Handa <handa@m17n.org>
19222 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19224 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19226 2008-07-02 Jason Rumney <jasonr@gnu.org>
19228 * xfns.c (syms_of_xfns): Only define x-select-font when both
19229 HAVE_FREETYPE and USE_GTK.
19231 * xdisp.c (next_element_from_display_vector): Move assignment out
19234 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19236 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19238 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19239 (syms_of_fileio): Initialize and export them.
19240 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19242 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19243 (Fsystem_move_file_to_trash): New function.
19244 (syms_of_w32fns): Export it to lisp.
19246 2008-07-01 Jason Rumney <jasonr@gnu.org>
19248 * w32font.c (w32font_text_extents): Don't count overhang as part
19251 2008-06-30 Miles Bader <miles@gnu.org>
19253 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19254 Add `avoid_cursor_p' field.
19256 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19257 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19258 (append_glyph, append_composite_glyph, produce_image_glyph)
19259 (append_stretch_glyph): Initialize avoid_cursor_p.
19260 (get_it_property): Rename from `get_line_height_property'.
19261 (x_produce_glyphs): Use get_it_property.
19262 (handle_line_prefix, push_display_prop): New functions.
19263 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19264 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19266 (syms_of_xdisp): Initialize them.
19268 2008-06-30 Kenichi Handa <handa@m17n.org>
19270 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19271 XftDefaultSubstitute (they are called in XftFontMatch).
19272 (xftfont_open): Fix args to ftfont_font_format.
19274 * ftfont.c (fc_charset_table): New member lang.
19275 (ftfont_resolve_generic_family): New arg pattern.
19276 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19277 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19278 (ftfont_open): Fix args to ftfont_font_format.
19279 (ftfont_font_format): New arg filename.
19281 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19283 * xfaces.c (Finternal_merge_in_global_face): If default face was
19284 modified, realize it again. Update the font face attribute.
19286 2008-06-29 Jason Rumney <jasonr@gnu.org>
19288 * w32term.c (x_set_frame_alpha): Fix logic.
19290 2008-06-29 Kenichi Handa <handa@m17n.org>
19292 * fontset.c (Finternal_char_font): Return font-object instead of
19295 * composite.c (get_composition_id): Fix the width calculation for TAB.
19297 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19299 * indent.c (Fvertical_motion): Properly handle float column arg.
19301 2008-06-28 Jason Rumney <jasonr@gnu.org>
19303 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19304 (pfnSetLayeredWindowAttributes): New function pointer.
19305 (w32_initialize): Initialize it when supported.
19306 (x_set_frame_alpha): New function.
19308 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19309 (w32_frame_parm_handlers): Set alpha handler.
19311 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19313 2008-06-27 Jason Rumney <jasonr@gnu.org>
19315 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19316 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19317 (w32_to_x_charset, x_to_w32_charset)
19318 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19319 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19320 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19321 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19322 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19323 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19324 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19325 (Qw32_charset_unicode): Remove.
19326 (syms_of_w32fns): Update for above changes.
19328 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19329 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19330 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19331 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19332 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19333 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19334 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19335 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19336 (syms_of_w32font): Update for above changes.
19338 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19340 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19342 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19344 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19345 Eli Zaretskii <eliz@gnu.org>
19347 * makefile.w32-in (LOCAL_FLAGS):
19348 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19350 * sysdep.c (_spawnlp, _getpid):
19351 Declare with explicit _cdecl instead of _CRTAPI1.
19353 * editfns.c (Fget_internal_run_time):
19354 Check for WINDOWSNT with #ifdef, not #if.
19356 2008-06-26 Jason Rumney <jasonr@gnu.org>
19358 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19360 * w32term.c (x_draw_glyph_string_foreground)
19361 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19362 Use FONT_HANDLE macro.
19363 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19365 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19366 (uniscribe_encode_char): Use FONT_HANDLE macro.
19368 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19369 (w32font_text_extents): Use precast w32_font.
19370 (w32font_close): Free cached metrics.
19371 (w32font_open_internal): Allocate space for name on stack.
19373 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19375 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19377 2008-06-26 Jason Rumney <jasonr@gnu.org>
19379 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19380 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19382 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19384 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19386 2008-06-26 Jason Rumney <jasonr@gnu.org>
19388 * w32bdf.c, w32bdf.h: Remove obsolete files.
19390 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19392 * w32gui.h: Don't include w32bdf.h.
19393 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19394 Remove obsolete font support.
19396 * w32font.h (struct w32font_info): Remove compat_w32_font.
19398 (FONT_COMPAT): Remove obsolete macro.
19400 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19401 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19402 (w32font_open_internal): Remove compat code. Set new hfont member.
19403 (Fx_select_font): Use new hfont member.
19405 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19406 (uniscribe_encode_char): Use new hfont member.
19408 * w32term.c (x_draw_glyph_string_foreground)
19409 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19410 (x_draw_glyph_string): Use metrics in w32font_info.
19412 2008-06-26 Kenichi Handa <handa@m17n.org>
19414 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19416 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19422 * m/mips-siemens.h:
19444 * s/uxpv.h: Remove support for obsolete systems.
19445 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19446 Remove, insert contents in s/hpux10-20.h.
19447 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19448 Remove, insert contents in s/aix4-2.h.
19449 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19450 * s/bsd4-3.h: Rename to ...
19451 * s/bsd-common.h: ... this.
19480 * s/template.h: Remove references to obsolete variables.
19482 * Makefile.in: Add dependencies for all unexec files.
19483 (admindir): Remove unused variable.
19484 (UNEXEC_SRC): Remove references.
19486 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
19488 * xfns.c (x_default_font_parameter): If Xft is available, first
19489 try Monospace-12 for the default font.
19491 2008-06-25 Jason Rumney <jasonr@gnu.org>
19493 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19495 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19497 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19499 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19501 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
19503 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19504 <scroll-conservatively>: Fix typo in docstring.
19506 * xselect.c (Fx_send_client_event): Doc fix.
19508 2008-06-25 Kenichi Handa <handa@m17n.org>
19510 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19512 * font.c (font_parse_fcname): Remove unused variables.
19513 (font_sort_entites): Delete the arg SPEC. Caller changed.
19514 Fix for the case of ! best_only.
19515 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19517 * lisp.h (Fstring_to_unibyte): EXFUN it.
19519 * character.h (str_to_unibyte): Extern it.
19521 * character.c (str_to_unibyte): New function.
19523 * fns.c (Fstring_to_unibyte): New function.
19524 (syms_of_fns): Defsubr it.
19526 2008-06-24 Kenichi Handa <handa@m17n.org>
19528 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19530 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19532 2008-06-24 Andreas Schwab <schwab@suse.de>
19534 * Makefile.in (${lispsource}loaddefs.el): Rename from
19535 ../lisp/loaddefs.el.
19536 (bootstrap-clean): Do what distclean does but don't remove
19538 (distclean): Depend on bootstrap-clean and remove Makefile.
19540 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
19542 * buffer.h (struct buffer): New member word_wrap.
19544 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19546 (init_buffer_once): Initialize them.
19548 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19549 line_wrap enum possessing three possible values.
19551 * termopts.h: Replace truncate_partial_width_windows with
19552 Vtruncate_partial_width_windows.
19554 * dispnew.c (direct_output_for_insert): Avoid direct output when
19555 inserting a space with word wrap on.
19557 * indent.c (compute_motion): Obey integer values of
19558 truncate-partial-width-windows.
19560 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19561 replacing truncate_partial_width_windows.
19562 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19563 truncate only if the window width is below that integer.
19564 (start_display, resize_mini_window, produce_stretch_glyph)
19565 (display_string, move_it_in_display_line_to): Use line_wrap.
19566 (back_to_previous_visible_line_start, reseat_1):
19567 Reset string_from_display_prop_p.
19568 (display_line): Extend default face to end of line when wrapping.
19570 2008-06-24 Kim F. Storm <storm@cua.dk>
19572 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19573 to wrap continued lines at word boundaries.
19575 2008-06-24 Jason Rumney <jasonr@gnu.org>
19577 * font.c (Ffont_face_attributes): Multiply pixel size before point
19578 conversion to avoid multiplying rounding error.
19580 2008-06-23 Jason Rumney <jasonr@gnu.org>
19582 * w32term.c (x_draw_glyph_string_background)
19583 (x_draw_glyph_string): Remove old bdf font code.
19585 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19587 2008-06-22 Kenichi Handa <handa@m17n.org>
19589 * font.c (font_find_for_lface): Try the adstyle specified in
19590 the property of LFACE_FONT of LFACE (if any).
19592 2008-06-21 Seiji Zenitani <zenitani@mac.com>
19593 Ryo Yoshitake <ryo@shiftmode.net>
19595 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19597 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19599 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19600 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19601 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19602 (witness-emacs): Remove.
19603 (lisp, shortlisp): Move loaddefs.el earlier.
19604 (mostlyclean): Forget about witness-emacs.
19606 2008-06-22 Glenn Morris <rgm@gnu.org>
19608 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19609 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19611 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19613 * Makefile.in (PRECOMP): Remove.
19614 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19615 (witness-emacs): Run `compile-first'.
19616 (.el.elc): Use the new compile-onefile target.
19618 2008-06-21 Kenichi Handa <handa@m17n.org>
19620 * xftfont.c (xftfont_open): Handle QCembolden only when
19621 FC_EMBOLDEN is defined.
19623 2008-06-21 Andreas Schwab <schwab@suse.de>
19625 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19626 (.el.elc): Likewise.
19628 2008-06-21 Miles Bader <miles@gnu.org>
19630 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19631 build dir, not the lisp source dir.
19633 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19635 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19636 (bootstrapclean): Remove.
19637 (.el.elc): New rule.
19638 (PRECOMP): New var.
19639 (../lisp/subdirs.el): Remove.
19640 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19641 (witness-emacs): New target.
19642 (mostlyclean): Remove witness-emacs as well.
19643 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19644 Add witness-emacs dependency.
19646 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
19648 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19649 defined by the font.
19651 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19653 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19654 (bootstrap-clean): New target that keeps TAGS around.
19655 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19656 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19658 2008-06-20 Jason Rumney <jasonr@gnu.org>
19660 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19661 Remove obsolete font code.
19663 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19664 to determine language support.
19666 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19668 * sysdep.c (cfsetspeed): New fun extracted from the code.
19669 (cfmakeraw): Move before first use.
19671 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19673 * sysdep.c (cfmakeraw): Provide fallback implementation.
19674 (serial_configure): Provide fallback implementation of cfsetspeed.
19676 2008-06-20 Kenichi Handa <handa@m17n.org>
19678 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19681 * fontset.c (fontset_from_font): Copy font_spec before changing
19684 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19686 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19688 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19689 for explicit `font' parameters.
19691 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19693 2008-06-19 Kenichi Handa <handa@m17n.org>
19695 * frame.c: Include <ctype.h>.
19696 (x_set_font_backend): Allow spacing characters in the X resource
19699 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19701 * w32fns.c, xfns.c (Qfont_param): New var.
19702 (syms_of_w32fns): Initialize it.
19703 (x_default_font_parameter): Record explicit `font' into
19706 2008-06-18 Kenichi Handa <handa@m17n.org>
19708 * font.c (font_parse_xlfd): Fix previous change.
19709 (font_parse_fcname): Don't use :fc-unknown-spec.
19710 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19711 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19712 (font_add_log): Prepend the driver name to the resulting fonts.
19714 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19715 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19716 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19718 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19719 (QCembolden): New variables.
19720 (syms_of_xftfont): DEFSYM them.
19721 (xftfont_open): Call XftFontMatch. Don't trust the result of
19722 XftTextExtents8 if the pixel_size is less than 5.
19724 2008-06-18 Andreas Schwab <schwab@suse.de>
19726 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19727 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19729 2008-06-18 Jason Rumney <jasonr@gnu.org>
19731 * w32font.c (w32font_list, w32font_match): Add logging.
19733 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19735 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
19737 * font.c (font_parse_fcname): Store divider characters for
19738 unknown-spec list. For known key symbols, intern using correct
19741 2008-06-17 Kenichi Handa <handa@m17n.org>
19743 * xfaces.c (realize_default_face): If the frame is not on window
19744 system, set the fontset of face to nil.
19746 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19748 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19750 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
19752 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19753 (build_font_name_from_vector): Delete externs.
19755 * xfaces.c (struct font_name): Don't declare.
19757 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19759 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19761 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
19763 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19765 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
19767 * font.c (Ffont_spec): Fix usage in docstring.
19768 (Ffont_face_attributes): Doc fix.
19770 2008-06-16 Andreas Schwab <schwab@suse.de>
19772 * font.c (Ffont_face_attributes): Fix definition.
19774 2008-06-16 Jason Rumney <jasonr@gnu.org>
19776 * font.h (font_style_symbolic_from_value): Remove.
19778 * font.c (font_style_symbolic_from_value): Remove.
19779 (font_style_symbolic): Revert to pre 2008-06-13 version.
19781 * w32font.c (w32_to_fc_weight): New function.
19782 (w32font_full_name, logfont_to_fcname): Use it.
19784 2008-06-16 Kenichi Handa <handa@m17n.org>
19786 * font.c (font_check_object): Delete it.
19787 (font_clear_cache): Check if a font-object is alive.
19788 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19789 font-object to nil.
19790 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19791 (font_at): Don't call font_check_object.
19792 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19794 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19796 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19798 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
19800 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19802 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
19804 * font.c (font_parse_fcname): Only one decimal point.
19805 (font_unparse_fcname): Handle data in family and foundry indices
19806 as symbols, not strings.
19807 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19809 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19811 * font.h (font_unparse_gtkname): Add prototype.
19813 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19815 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19817 2008-06-15 Andreas Schwab <schwab@suse.de>
19819 * font.c (font_update_drivers): Fix crash when no drivers match.
19821 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19823 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19824 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19826 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19828 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19830 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19832 * process.c (Fserial_process_configure, Fprocess_send_eof):
19833 Use EQ to compare Lisp_Objects.
19835 2008-06-13 Jason Rumney <jasonr@gnu.org>
19837 * w32fns.c (Fw32_select_font): Remove old font API function.
19839 * w32font.c (logfont_to_fcname): New function.
19840 (Fx_select_font): New font dialog function compatible with
19841 GTK/fontconfig version.
19843 * font.c (font_style_symbolic_from_value): New function.
19844 (font_style_symbolic): Use it.
19846 * font.h (font_style_symbolic_from_value): Declare new function.
19848 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
19850 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19851 <font-width-table>: Fix typos in docstrings.
19853 2008-06-13 Daniel Engeler <engeler@gmail.com>
19855 These changes add serial port access.
19856 * process.c: Add HAVE_SERIAL.
19857 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19858 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19859 (list_processes_1, select_wrapper, Fstop_process)
19860 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19861 (status_notify): Modify to handle serial processes.
19862 [HAVE_SERIAL] (Fserial_process_configure)
19863 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19865 * process.h (struct Lisp_Process): Add `type'.
19866 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19868 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19870 (serial_open, serial_configure): New functions.
19871 * w32.h: Add FILE_SERIAL.
19872 (struct _child_process): Add ovl_read, ovl_write.
19874 2008-06-13 Kenichi Handa <handa@m17n.org>
19876 * dispextern.h (enum lface_attribute_index): New member
19877 LFACE_FOUNDRY_INDEX.
19879 * font.c (font_score): Delete arg alternate_families. Check only
19880 weight, slant, width, and size. Ignore the difference of alias
19882 (font_sort_entites): Adjust for the above change. Reflect the
19883 order of font-driver to scores.
19884 (font_list_entities): Don't check alternate_familes here.
19885 (font_clear_prop): Handle foundry.
19886 (font_update_lface): Don't parse "foundry-family" form here.
19887 Handle FONT_FOUNDRY_INDEX.
19888 (font_find_for_lface): Likewise. Handle alternate families here.
19889 If registry is nil, try iso8859-1 and ascii-0.
19890 (font_open_for_lface): Pay attention to size in ENTITY.
19891 (font_open_by_name): Simplify by calling font_load_for_lface.
19892 (free_font_driver_list): Delete it.
19893 (font_update_drivers): Preserve the order of backends.
19894 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19895 of font_score and font_sort_entites.
19896 (font_update_sort_order): Likewise.
19898 * xfaces.c (LFACE_FOUNDRY): New macro.
19899 (check_lface_attrs): Check foundry.
19900 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19901 (merge_face_vectors): Check foundry.
19902 (merge_face_ref): Likewise.
19903 (Finternal_set_lisp_face_attribute): Likewise.
19904 (x_update_menu_appearance): Likewise.
19905 (Finternal_get_lisp_face_attribute): Likewise.
19906 (lface_hash): Likewise.
19907 (lface_same_font_attributes_p): Likewise.
19908 (x_supports_face_attributes_p): Likewise.
19909 (tty_supports_face_attributes_p): Likewise.
19910 (Finternal_set_alternative_font_family_alist): Intern strings.
19911 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19912 (realize_default_face): Set LFACE_FOUNDRY (lface).
19914 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19915 font-driver at first.
19917 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19919 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19921 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19923 2008-06-12 Jim Meyering <meyering@redhat.com>
19925 Make unexec_free handle NULL the same way free does.
19926 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19928 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19930 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19931 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19932 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19933 (WEAK_ALIAS): Simplify.
19934 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19935 when searching a unibyte buffer.
19937 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
19939 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19941 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
19943 * w32font.c: Include ctype.h.
19945 2008-06-11 Jason Rumney <jasonr@gnu.org>
19947 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19948 misreported as space.
19949 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19950 as aliases for registry iso10646-1.
19952 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19954 * buffer.c (clone_per_buffer_values): Skip `name'.
19956 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
19958 * font.c (font_parse_fcname): Fix last change; accept decimal
19959 points in font size.
19961 2008-06-10 Jason Rumney <jasonr@gnu.org>
19963 * w32uniscribe.c (add_opentype_font_name_to_list):
19964 Skip non unicode fonts.
19966 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
19968 * xfns.c (Fx_font_dialog): New function.
19970 * gtkutil.c (xg_dialog_response_cb): Rename from
19971 xg_file_response_callback.
19972 (pop_down_dialog): Rename from pop_down_file_dialog.
19973 (xg_get_file_name): Callers changed.
19974 (xg_get_font_name): New function.
19976 * gtkutil.h (xg_get_font_name): Insert prototype.
19978 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19980 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19981 x_underline_minimum_display_offset.
19982 (syms_of_xdisp): Declare it here rather than in xterm.c.
19983 * dispextern.h (underline_minimum_offset): Declare it.
19984 * w32term.c (x_draw_glyph_string): Use it.
19985 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19986 (syms_of_xterm): Don't declare it any more.
19987 (x_draw_glyph_string): Adjust to the new name.
19989 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
19991 * xterm.c (x_underline_minimum_display_offset): New var.
19992 (x_draw_glyph_string): Use it.
19993 (syms_of_xterm): Declare it.
19995 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
19997 * font.c (font_parse_fcname): Accept GTK-style font names too.
19999 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20001 * dired.c (file_name_completion): Don't return t if the match is exact
20002 but with different capitalization.
20003 * minibuf.c (Ftry_completion): Simplify.
20005 * window.c (Vwindow_point_insertion_type): New var.
20006 (set_window_buffer): Use it.
20007 (syms_of_window): Init and export it to Lisp.
20009 2008-06-10 Kenichi Handa <handa@m17n.org>
20011 * font.h (font_intern_prop): Prototype adjusted.
20013 * font.c (font_intern_prop): New arg force_symbol.
20014 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20015 Adjust for the change of font_intern_prop.
20017 * ftfont.c (ftfont_pattern_entity):
20018 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20020 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20021 the change of font_intern_prop.
20023 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20025 * w32menu.c (digest_single_submenu): Declare extern.
20027 2008-06-09 Jason Rumney <jasonr@gnu.org>
20029 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20031 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20032 (parse_single_submenu): Remove.
20033 (digest_single_submenu): Remove.
20034 (syms_of_w32menu): Don't initialise variables that have moved
20036 (set_frame_menubar): Sync with version in xmenu.c.
20037 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20039 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20042 2008-06-09 Jason Rumney <jasonr@gnu.org>
20044 Changes to w32 files related to the move of common menu code
20045 to menu.c on 2008-06-08 by Chong Yidong.
20047 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20049 (single_keymap_panes, push_menu_item, push_menu_pane):
20050 Make globally visible.
20052 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20053 (local_free, malloc_widget_value, free_widget_value)
20054 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20055 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20056 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20057 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20058 (menu_items, menu_items_allocated, menu_items_used)
20059 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20060 (init_menu_items, finish_menu_items, discard_menu_items)
20061 (grow_menu_items, push_submenu_start, push_submenu_end)
20062 (push_left_right_boundary, push_menu_pane, push_menu_item)
20063 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20064 (free_menubar_widget_tree_value, parse_single_submenu)
20065 (update_submenu_strings): Remove functions.
20066 (xmalloc_widget_value): Remove and declare extern.
20068 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20071 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20072 (local_heap, local_alloc, local_free, malloc_widget_value)
20073 (free_widget_value): Define here.
20075 2008-06-09 Kenichi Handa <handa@m17n.org>
20077 * font.h (Qascii_0): Extern it.
20079 * font.c (Qascii_0): New variable.
20080 (syms_of_font): DEFSYM it.
20081 (font_open_by_name): If the registry "iso8859-1" fails, try also
20084 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20086 2008-06-08 Kenichi Handa <handa@m17n.org>
20088 * .gdbinit (xfont): New command.
20090 2008-06-08 Andreas Schwab <schwab@suse.de>
20092 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20093 * Makefile.in (menu.o): Update dependencies.
20095 * Makefile.in (obj): Always add menu.o.
20096 * emacs.c (main): Always call syms_of_menu.
20097 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20099 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20101 * Makefile.in: Compile menu.c.
20103 * lisp.h: Declare syms_of_menu.
20105 * emacs.c (main): Call syms_of_menu.
20107 * keyboard.h: Relocate platform-independent menu definitions from
20110 * menu.c: New file. Relocate platform-independent menu
20111 definitions from xmenu.c. Suggested by Adrian Robert.
20113 * xmenu.c: Remove platform-independent menu definitions.
20114 (menu_items, menu_items_inuse, menu_items_allocated)
20115 (menu_items_used, menu_items_n_panes)
20116 (menu_items_submenu_depth): Move to keyboard.h.
20117 (init_menu_items, finish_menu_items, unuse_menu_items)
20118 (discard_menu_items, restore_menu_items, save_menu_items)
20119 (grow_menu_items, push_submenu_start, push_submenu_end)
20120 (push_left_right_boundary, push_menu_pane, push_menu_item)
20121 (keymap_panes, single_keymap_panes, single_menu_item)
20122 (list_of_panes, list_of_items, find_and_call_menu_selection)
20123 (xmalloc_widget_value, free_menubar_widget_value_tree)
20124 (parse_single_submenu, digest_single_submenu)
20125 (update_submenu_strings): Move to menu.c.
20127 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20129 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20131 2008-06-06 Miles Bader <miles@gnu.org>
20133 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20134 face, not frame default.
20136 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20138 * window.c (pop_up_windows, pop_up_frames)
20139 (display_buffer_reuse_frames, Vpop_up_frame_function)
20140 (Vdisplay_buffer_function, Veven_window_heights)
20141 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20142 (Vspecial_display_function, Vsame_window_buffer_names)
20143 (Vsame_window_regexps, split_height_threshold)
20144 (Vsplit_window_preferred_function): Move those vars to window.el.
20145 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20146 (Fdisplay_buffer): Move those functions to window.el.
20147 (syms_of_window): Remove corresponding declarations.
20148 (display_buffer): New function.
20149 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20150 * dispnew.c (Flast_nonminibuf_frame): New function.
20151 * buffer.c (Fpop_to_buffer): Move to window.el.
20153 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20155 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20157 2008-06-05 Kenichi Handa <handa@m17n.org>
20159 * coding.c (detect_coding): Fix previous change.
20160 (detect_coding_system): Likewise.
20162 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20164 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20166 * keymap.c (Vminibuffer_local_filename_must_match_map):
20167 Rename from Vminibuffer_local_must_match_filename_map.
20169 * minibuf.c (Fcompleting_read): Adjust accordingly.
20170 * commands.h: Rename declaration as well.
20172 2008-06-05 Kenichi Handa <handa@m17n.org>
20174 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20176 (Ffont_put): Likewise.
20178 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20181 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20184 * xfaces.c (realize_x_face): If the font-related face attributes
20185 are the same as those of default face, realize a new fontset from
20187 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20189 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20191 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20192 (move_it_in_display_line): New wrapper.
20194 * window.c (window_scroll_pixel_based_preserve_x)
20195 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20196 (window_scroll_pixel_based, window_scroll_line_based):
20197 Use them to preserve column positions.
20198 (syms_of_window): Initialize them.
20200 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20201 (HPOS . VPOS) pair.
20203 * dispextern.h (move_it_in_display_line): Declare.
20205 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20207 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20208 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20209 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20211 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20213 * window.c (Fset_window_parameter): Doc fix.
20214 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20216 2008-06-04 Joakim Verona <joakim@verona.se>
20218 * window.h (struct window): Add new member window_parameters.
20220 * window.c (Fwindow_parameters, Fwindow_parameter)
20221 (Fset_window_parameter): New defuns.
20222 (syms_of_window): Defsubr the new defuns.
20223 (make_window): Initialize window_parameters to nil.
20225 2008-06-04 John Paul Wallington <jpw@pobox.com>
20227 * eval.c (Fdefmacro): Doc fix.
20229 2008-06-04 Kenichi Handa <handa@m17n.org>
20231 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20232 Be sure to call setup_coding_system when we find a proper coding system.
20233 (detect_coding_system): Fix handling of coding->head_ascii.
20235 2008-06-03 Andreas Schwab <schwab@suse.de>
20237 * font.c (font_prop_validate_spacing): Fix last change.
20239 2008-06-03 Kenichi Handa <handa@m17n.org>
20241 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20242 (font_parse_fcname): Fix handling of unknown key.
20244 * xfont.c (xfont_list): Try an alias.
20246 * charset.c (char_charset): Return NULL if the arg charset_list is
20247 specified and C doesn't belong to any of them.
20249 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20251 * font.c (font_pixel_size): Don't take cdr of an integer.
20253 2008-06-02 Jim Meyering <meyering@redhat.com>
20255 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20256 * alloc.c (xfree): Return right away for a NULL arg.
20257 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20258 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20259 * mac.c (create_apple_event_from_event_ref): Likewise.
20260 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20262 * doprnt.c (doprnt1): Likewise.
20263 * frame.c (frame): Likewise.
20264 * keyboard.c (wipe_kboard): Likewise.
20265 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20266 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20267 * term.c (tty_default_color_capabilities, maybe_fatal)
20268 (delete_tty): Likewise.
20269 * w16select.c (string): Likewise.
20270 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20271 * w32bdf.c (w32_free_bdf_font): Likewise.
20272 * w32fns.c (w32_unload_font): Likewise.
20273 * w32font.c (w32font_close): Likewise.
20274 * window.c (size_window): Likewise.
20275 * xselect.c (receive_incremental_selection): Likewise.
20276 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20277 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20278 * w32.c (stat): Likewise.
20280 Remove useless if-before-free tests.
20281 * editfns.c (Fset_time_zone_rule): Likewise.
20282 * lread.c (nosuffix): Likewise.
20283 * ralloc.c (get_bloc): Likewise.
20284 * regex.c (reg_free): Likewise.
20285 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20286 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20287 * xsmfns.c (smc_save_yourself_CB): Likewise.
20289 2008-06-02 Kenichi Handa <handa@m17n.org>
20291 * font.c (font_find_for_lface): Handle float font size.
20292 (font_open_for_lface): Likewise.
20294 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20295 comparing the properties.
20297 2008-06-01 Jason Rumney <jasonr@gnu.org>
20299 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20300 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20301 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20302 Don't add empty script list.
20303 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20305 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20307 * Makefile.in (dot, dotdot): Remove, update users.
20308 ".." has been used elsewhere in the file for a long time.
20309 (LIBXT_STATIC): Remove conditional based on unused variable.
20311 2008-06-01 Miles Bader <miles@gnu.org>
20313 * xfaces.c (Vface_remapping_alist): New variable.
20314 (syms_of_xfaces): Initialize it.
20315 (enum named_merge_point_kind): New type.
20316 (struct named_merge_point): Add `named_merge_point_kind' field.
20317 (push_named_merge_point): Make cycle detection respect different
20318 named-merge-point kinds.
20319 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20320 Remove face-name alias resolution.
20321 (lface_from_face_name): New definition using
20322 `lface_from_face_name_no_resolve'.
20323 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20324 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20325 (get_lface_attributes): New definition that layers face-remapping on
20326 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20327 (lookup_basic_face): New function.
20328 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20329 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20330 `get_lface_attributes'.
20331 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20332 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20333 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20335 * xdisp.c (init_iterator): Pass base_face_id through
20336 `lookup_basic_face' when we actually use it as a face-id.
20337 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20340 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20341 lookup the initial face-id.
20343 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20345 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20347 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20348 (Fremove_text_properties): Fix typos in docstrings.
20350 2008-05-31 Kenichi Handa <handa@m17n.org>
20352 * font.c (font_list_entities): Fix the car part of data to be
20353 stored in the cache.
20355 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20357 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20359 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20360 Add a `test' argument so another predicate than `equal' can be used.
20361 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20362 (map_char_table): Remove unused vars `c' and `i'.
20363 * lisp.h (Foptimize_char_table): Adjust declaration.
20364 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20366 2008-05-30 Kenichi Handa <handa@m17n.org>
20368 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20369 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20372 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20374 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20375 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20376 frame-local settings for the same variable.
20378 2008-05-30 Kenichi Handa <handa@m17n.org>
20380 * fontset.c (Ffont_info): Move to font.c.
20381 (syms_of_fontset): Delete defsubr of Sfont_info.
20383 * font.c (font_style_to_value, font_score): Delete casting of the
20384 args to xstcasecmp.
20385 (register_font_driver): Increment num_font_drivers only when
20386 registering the driver globally.
20387 (Ffont_info): Move from fontset.c. Handle a font object too.
20388 (syms_of_font): Defsubr Sfont_info.
20390 2008-05-29 Kenichi Handa <handa@m17n.org>
20392 * coding.h (enum define_coding_utf8_arg_index): New enum.
20393 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20394 coding_attr_utf_bom.
20395 (enum utf_bom_type): Rename from utf_16_bom_type.
20396 (struct utf_16_spec): Adjust for the above change.
20397 (struct coding_system): Add utf_8_bom in `spec' union.
20399 * coding.c (CODING_UTF_8_BOM): New macro.
20400 (enum coding_category): Delete coding_category_utf_8, add
20401 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20402 coding_category_utf_8_sig.
20403 (CATEGORY_MASK_UTF_8): Delete it.
20404 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20405 (CATEGORY_MASK_UTF_8_SIG): New macros.
20406 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20407 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20408 CATEGORY_MASK_UTF_8_SIG.
20409 (CATEGORY_MASK_UTF_8): New macro.
20410 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20411 (detect_coding_utf_8): Check BOM.
20412 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20413 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20414 (encode_coding_utf_16): Likewise.
20415 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20416 (detect_coding, detect_coding_system): Handle utf-8-auto.
20417 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20418 (syms_of_coding): Fix setting up of Vcoding_category_table.
20420 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20422 * process.c (Faccept_process_output): If `millisec' is non-nil,
20423 `seconds' default to 0.
20424 (wait_reading_process_output): Also return non-nil if we read output
20425 from a non-running process.
20427 2008-05-29 Jason Rumney <jasonr@gnu.org>
20429 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20430 `raster' specified.
20431 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20432 in the uniscribe backend, but disallow any font that has no
20433 unicode subrange support.
20435 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
20437 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20438 Fix typos in docstrings.
20440 2008-05-29 Kenichi Handa <handa@m17n.org>
20442 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20443 (Fx_family_fonts): Set frame correctly.
20445 2008-05-28 Jason Rumney <jasonr@gnu.org>
20447 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20449 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20451 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20452 calling build_annotations.
20454 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
20456 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20457 (Fencode_coding_string):
20458 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20459 <latin-extra-code-table>: Fix typos in docstrings.
20460 (syms_of_coding) <coding-system-alist>: Doc fix.
20461 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20463 2008-05-28 Kenichi Handa <handa@m17n.org>
20465 * fontset.c (Ffont_info): Don't call font_close_object.
20467 * font.c (font_parse_family_registry): Use Ffont_put to validate
20468 foundry and family.
20469 (font_delete_unmatched): Don't check spacing.
20470 (font_list_entities): Add spacing to the spec to list fonts.
20472 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20473 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20475 * coding.c (encode_coding_raw_text): Fix previous change.
20476 (encode_coding_object): When the dst_object is a buffer and is
20477 different from src_object, move gap to PT.
20479 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20481 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20483 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20485 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20486 all branches. Compute it differently.
20488 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20490 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
20492 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20493 into "else if () ... else ...".
20495 2008-05-27 Jason Rumney <jasonr@gnu.org>
20497 * w32font.c (w32font_open_internal): Determine if glyph indices
20498 are likely to work here.
20500 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20502 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20503 draw overlap glyphs with appropriate highlighting.
20505 2008-05-27 Kenichi Handa <handa@m17n.org>
20507 * xfont.c (xfont_open): Fix calculation of font->average_width.
20509 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20511 * casefiddle.c (casify_object): Try to guess better whether the
20512 argument is a byte or a char.
20514 2008-05-26 Andreas Schwab <schwab@suse.de>
20516 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20517 Always send multiples of format size.
20519 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20521 2008-05-26 Jason Rumney <jasonr@gnu.org>
20523 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20524 (compute_metrics): Don't set failure if we just cleared the cache.
20525 (w32_weight_table): Remove unused variable.
20526 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20527 backwards compatibility.
20529 2008-05-25 Kenichi Handa <handa@m17n.org>
20531 * w32term.c (x_draw_glyph_string):
20532 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20534 * xfaces.c: Delete unused function prototypes.
20535 (xstrlwr, font_frame): Delete them.
20536 (clear_face_cache): Delete unused variable.
20538 * xftfont.c (xftfont_open): Delete unused variable.
20539 If underline_thickness is not 1, adjust underline_position.
20541 * ftxfont.c (ftxfont_open): Delete unused variable.
20543 * fontset.c (face_for_char): Optimize for the case of no charset
20546 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20547 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20548 (otf_open, font_otf_capability, generate_otf_features)
20549 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20550 Comment out by surrounding "#if 0" and "#endif" for the moment.
20551 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20552 (syms_of_font): Codes for accessing above commented out.
20554 2008-05-24 Eli Zaretskii <eliz@gnu.org>
20556 * w32proc.c: Include dispextern.h.
20558 * w32.c: Include dispextern.h.
20560 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
20562 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20563 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20564 Fix typos in docstrings.
20566 2008-05-23 Jason Rumney <jasonr@gnu.org>
20568 * xsmfns.c: Remove includes that are already included by config.h.
20570 2008-05-23 Kenichi Handa <handa@m17n.org>
20572 * charset.c (Qemacs, charset_emacs): New variables.
20573 (char_charset): Fix for non-Unicode characters.
20574 (syms_of_charset): Define charset_emacs.
20576 * w32term.c (x_draw_glyph_string): Be sure to update
20577 s->underline_thickness and s->underline_position. Be sure to draw
20578 underline within the current line area.
20580 * xterm.c (x_draw_glyph_string): Be sure to update
20581 s->underline_thickness and s->underline_position. Be sure to draw
20582 underline within the current line area.
20584 * fontset.c: Delete unused variables and add casting for char *
20585 throughout the file.
20586 (fontset_font): Try the fallback fonts of the current fontset
20587 before consulting the default fontset.
20589 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20591 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20593 2008-05-22 Jason Rumney <jasonr@gnu.org>
20595 * font.c: Don't include strings.h.
20597 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20599 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20600 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20601 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20602 to call xstrcasecmp.
20604 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20606 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20608 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20610 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20612 2008-05-22 Kenichi Handa <handa@m17n.org>
20614 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20616 * font.c (font_prop_validate_style): Adjust for the format
20617 change of font_style_table.
20619 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20622 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20625 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20627 * minibuf.c (keys_of_minibuf): Delete.
20628 * lisp.h (keys_of_minibuf): Delete.
20629 * emacs.c (main): Don't call keys_of_minibuf.
20631 2008-05-22 Kenichi Handa <handa@m17n.org>
20633 * ftfont.c (ftfont_resolve_generic_family): Rename from
20634 ftfont_list_generic_family. Return a single family for each
20636 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20637 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20639 (ftfont_match): Call font_add_log.
20641 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20642 (FONT_DEBUG): Define it.
20643 (font_add_log): Extern it.
20644 (font_assert): Rename from xassert.
20646 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20647 (xfont_list_family): Call font_add_log.
20648 (xfont_match): Likewise.
20649 (memq_no_quit): Delete.
20651 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20652 call of Ffont_xlfd_name.
20654 * xfaces.c (struct table_entry, slant_table, weight_table)
20655 (swidth_table): Move to font.c.
20657 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20658 xassert are changed to font_assert. Delete many unused variables.
20659 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20661 (struct table_entry): Move from xfaces.c and modified.
20662 (weight_table, slant_table, width_table): Move from xfaces.c and
20663 contents adjusted for the change of struct table_entry.
20664 (font_style_to_value, font_style_symbolic): Adjust for the
20665 format change of font_style_table.
20666 (font_parse_family_registry): Don't overwrite existing foundry and
20667 family of font_spec.
20668 (font_score): Fix calculation of diff for sizes.
20669 (font_sort_entites): Call font_add_log.
20670 (font_delete_unmatched): Return a newly created list.
20671 (font_list_entities): Fix previous change. Call font_add_log.
20672 (font_matching_entity, font_open_entity, font_close_entity):
20674 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20675 (Finternal_set_font_style_table): Delete.
20676 (BUILD_STYLE_TABLE): New macro.
20677 (build_style_table): New function.
20678 (Vfont_log, font_log_env_checked): New variables.
20679 (font_add_log): New function.
20680 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20681 Declare Lisp variables "font-weight-table", "font-slant-table",
20682 "font-width-table", and "font-log". Initialize font_style_table.
20684 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20686 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20688 2008-05-21 Seiji Zenitani <zenitani@mac.com>
20689 Ryo Yoshitake <ryo@shiftmode.net>
20691 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20692 (Vframe_alpha_lower_limit): New variable.
20693 (x_set_alpha): New function.
20695 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20697 * xfns.c (x-create-frame, Qalpha):
20698 Initialize the frame parameter `alpha'.
20699 * xterm.c (OPAQUE, OPACITY): New.
20700 (x_set_frame_alpha): New function.
20701 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20703 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20704 * w32fns.c (w32_frame_parm_handlers): Likewise.
20706 2008-05-20 Jason Rumney <jasonr@gnu.org>
20708 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20709 truetype fonts to opentype list.
20711 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
20713 * fontset.c (Ffontset_info): Doc fix.
20714 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20715 <ignore-relative-composition>: Fix typos in docstrings.
20717 * font.c (syms-of-font) <font-encoding-alist>:
20718 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20719 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20720 (Ffont_otf_alternates): Doc fixes.
20722 2008-05-20 Kenichi Handa <handa@m17n.org>
20724 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20725 font.h through out the file.
20726 (FONT_DRIVERS): Rename from FONTOBJ.
20727 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20728 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20730 * emacs.c (main): Call syms_of_font unconditionally.
20732 * font.h (find_font_encoding): Extern it.
20734 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20736 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
20737 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20738 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20739 only when HAVE_WINDOW_SYSTEM is defined.
20740 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20741 when HAVE_WINDOW_SYSTEM is defined.
20743 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20744 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20746 * xfaces.c: Include font.h unconditionally.
20747 (merge_face_ref, merge_face_vectors)
20748 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20750 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20752 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20754 * eval.c (lisp_indirect_variable): New fun.
20755 (Fuser_variable_p): Use it.
20757 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20759 * lisp.h (indirect_variable):
20760 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20761 Use Lisp_Symbol pointers rather than Lisp_Object.
20763 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20764 To this end, change calling-convention.
20766 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20767 if some non-hidden buffers are selected by string&pred.
20769 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
20771 * process.c (wait_reading_process_output): Always check status
20772 when in batch mode.
20774 2008-05-19 Kenichi Handa <handa@m17n.org>
20776 * font.c (font_list_entities): Fix handling of cache.
20777 (font_matching_entity): Likewise.
20779 * ftfont.c (cs_iso8859_1): Delete.
20780 (ft_face_cache): New variable.
20781 (struct ftfont_info): New member fc_charset_idx.
20782 (ftfont_build_basic_charsets): Delete.
20783 (fc_charset_table): New variable.
20784 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20785 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20787 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20788 (ftfont_spec_pattern): New argument fc_charset_idx.
20789 Check registry more rigidly. Change callers.
20790 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20791 change of :font-entity property of the font.
20793 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20794 property of the font.
20796 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
20798 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20799 (Funencodable_char_position, Fcheck_coding_systems_region)
20800 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20801 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20802 (Ffind_operation_coding_system, Fset_coding_system_priority)
20803 (Fcoding_system_eol_type): Doc fixes.
20805 2008-05-17 Glenn Morris <rgm@gnu.org>
20807 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20809 2008-05-16 Eli Zaretskii <eliz@gnu.org>
20811 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20814 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20815 HAVE_WINDOW_SYSTEM is not defined.
20817 * xfaces.c (merge_face_ref, merge_face_vectors)
20818 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20819 HAVE_WINDOW_SYSTEM is defined.
20820 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20822 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20824 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20826 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20828 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20830 2008-05-15 Kenichi Handa <handa@m17n.org>
20832 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20835 2008-05-15 Glenn Morris <rgm@gnu.org>
20837 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20839 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
20841 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20842 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20844 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20846 2008-05-15 Kenichi Handa <handa@m17n.org>
20848 * ftfont.c (ftfont_list): Downcase family name to check generic
20851 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20852 font-spec for QCfont value.
20854 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20855 buffer. Check the return value of it.
20857 2008-05-14 Jason Rumney <jasonr@gnu.org>
20859 * w32term.c (w32_get_glyph_overhangs): Remove.
20860 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20862 2008-05-14 Kenichi Handa <handa@m17n.org>
20864 * font.c (font_prop_validate): Make nil a valid value.
20865 (font_clear_cache): Check if the cached vector of entities is nil
20868 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20870 * emacs.c (main_thread): Conditionalize on
20871 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20872 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20874 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20875 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20876 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20878 2008-05-14 Kenichi Handa <handa@m17n.org>
20880 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20881 has no corresponding coding system.
20883 2008-05-14 Jason Rumney <jasonr@gnu.org>
20885 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20887 * w32font.h (w32font_open_internal): Update declaration.
20889 * w32font.c (w32font_open_internal): Change last argument from
20890 w32font_info struct to font object. Fill in font object from
20891 font_entity. Get Outline metrics if possible. Use them to
20892 calculate underline position and thickness. Use xlfd name as name
20893 property. Don't set codepage.
20894 (w32font_open): Pass font_object to w32font_open_internal. Don't
20895 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20896 (w32font_draw): Use s->font.
20897 (clear_cached_metrics): Don't clear non-existent blocks.
20899 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20900 font was not found.
20901 (x_draw_glyph_string): Use underline position and thickness from font.
20903 * w32uniscribe.c (uniscribe_open): Pass font_object to
20904 w32font_open_internal.
20906 2008-05-14 Kenichi Handa <handa@m17n.org>
20908 These changes are to delete all legacy font-handling codes, and
20909 make Emacs use only font-backends.
20911 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20912 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20914 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20916 * charset.h (Vcharset_non_preferred_head)
20917 (Vcurrent_iso639_language): Extern them.
20919 * charset.c (Vcharset_non_preferred_head): New variable.
20920 (Vcurrent_iso639_language): New variable.
20921 (syms_of_charset): Declare it as a Lisp variable.
20922 (char_charset): Don't check non preferred charsets. As a last
20923 resort, return charset_unicode.
20924 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20926 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20927 conditionals. Don't check enable_font_backend. Delete all codes
20928 used only when USE_FONT_BACKEND is not defined.
20930 * dispextern.h (struct glyph_string): Change type of `font' to
20932 (struct glyph_string): New member underline_position and
20933 underline_thickness.
20934 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
20935 (struct face): Change type of `font' to `struct font *'.
20936 Remove members `font_name', `font_info_id'.
20937 (per_char_metric, encode_char): Delete externs.
20938 (calc_pixel_width_or_height): Adjust the prototype.
20940 * emacs.c (enable_font_backend): Delete extern.
20941 (main): Don't set enable_font_backend. Don't check the command
20942 line argument "-disable-font-backend".
20944 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20945 (enum font_property_index): New members FONT_DPI_INDEX,
20946 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20947 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20948 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20949 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20950 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20951 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20952 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20953 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20954 (struct font_spec, struct font_entity): New structs.
20955 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
20956 (struct font): Many members from old "struct font_info" moved to
20957 here. Members font and entity deleted.
20958 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20959 the new font-related objects.
20960 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20961 (CHECK_FONT_GET_OBJECT): Likewise.
20962 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
20963 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
20964 (struct font_driver): New members case_sensitive anc check.
20965 Type of the member list and open changed.
20966 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20967 (font_symbolic_width, font_find_object, font_get_spec)
20968 (font_set_lface_from_name): Delete extern.
20969 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20971 * font.c: Include <strings.h>.
20972 (enable_font_backend): Delete it.
20973 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20974 (CHECK_VALIDATE_FONT_SPEC): Delete it.
20975 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
20976 (null_string): Delete it.
20977 (null_vector): Make it static.
20978 (font_family_alist): Delete it.
20979 (Qnormal): Extern it.
20980 (QCextra, QClanguage): Delete it.
20981 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20982 (font_make_spec, font_make_entity, font_make_object)
20983 (font_intern_prop): Rename from intern_downcase. Don't downcase
20984 the string. Callers changed.
20985 (font_pixel_size): Adjust for the format change of font-related
20987 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20988 (font_style_to_value, font_style_symbolic): New function.
20989 (build_font_family_alist): Delete it.
20990 (font_registry_charsets): Use Fassoc_string instead of
20992 (font_prop_validate_symbol): Don't return null_string.
20993 (font_prop_validate_style): Adjust for the change of
20994 style-related values in a font vector.
20995 (font_property_table): Delete entries for QClanguage and
20996 QCantialias, add entries for QCavgwidth.
20997 (get_font_prop_index): Delete the 2nd argument FROM.
20998 (font_prop_validate): Arguments changed.
20999 (font_put_extra): Adjust for the change of font-related objects.
21000 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21001 (font_parse_fcname, font_unparse_fcname)
21002 (font_prepare_composition): Likewise.
21003 (font_parse_family_registry): Rename from font_merge_old_spec.
21004 (otf_open): Delete the 1st arg entity.
21005 (font_otf_capability): Adjust for the above change.
21006 (font_score): New arg alternate_families. Adjusted for the change
21007 of font-related objects.
21008 (font_sort_entites): New arg best_only.
21009 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21011 (font_match_p): Check alternate families.
21012 (font_find_object): Delete it.
21013 (font_check_object): New function.
21014 (font_clear_cache): Adjust for the change of font-related objects.
21015 (font_delete_unmatched): New arg.
21016 (font_list_entities): Call font_driver->list with a spec that
21017 doesn't specify style-related properties.
21018 (font_matching_entity): Arguments changed. Caller changed.
21019 (font_open_entity): Adjust for the change of font-related objects.
21020 (font_close_object, font_has_char, font_encode_char)
21021 (font_get_name, font_get_spec): Likewise.
21022 (font_spec_from_name, font_clear_prop, font_update_lface):
21024 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21025 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21026 (font_at): Adjust for the change of font-related objects.
21027 (font_range): New function.
21028 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21029 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21030 (Fcopy_font_spec, Fmerge_font_spec): New function.
21031 (Ffont_family_list): Rename from list-families.
21032 (Finternal_set_font_style_table): Arguments changed.
21033 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21034 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21035 change of font-related objects.
21036 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21038 * fontset.h (struct font_info): Delete it. Most members go to
21040 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21041 (enum FONT_SPEC_INDEX): Delete it.
21042 (font_info, list_fonts_func, load_font_func, query_font_func)
21043 (set_frame_fontset_func, find_ccl_program_func)
21044 (get_font_repertory_func, new_fontset_from_font_name):
21046 (fontset_from_font_name): Extern it.
21047 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21048 (FONT_INFO_FROM_FACE): Deleted.
21049 (face_for_font): Adjust prototype.
21051 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21052 conditionals. Don't check enable_font_backend. Delete all codes
21053 used only when USE_FONT_BACKEND is not defined.
21054 (get_font_info_func, list_font_func, load_font_func)
21055 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21056 (get_font_repertory_func): Delete them.
21057 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21058 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21059 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21060 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21061 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21062 (fontset_compare_rfontdef): New function.
21063 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21064 rfont-defs by qsort. Adjusted for the change of font-group vector.
21065 (load_font_get_repertory): Deleted.
21066 (fontset_find_font): Use new macros to ref/set elements of
21067 font-def and rfont-def.
21068 (fontset_font): Fix the timing of remembering that no font for C.
21069 (free_face_fontset): Do nothing if the face has no fontset.
21070 (face_suitable_for_char_p): Use new macros to ref/set elements of
21072 (face_for_char): Likewise. Call face_for_char with font_object.
21073 (fs_load_font): Delete. Delete #pragma surrounding it.
21074 (fs_query_fontset): Use strcasecmp instead of strcmp.
21075 (generate_ascii_font_name): Adjust for the format change of
21077 (Fset_fontset_font): Likewise. Use new macros to set elements of
21079 (Fnew_fontset): Use font_unparse_xlfd to generate
21080 FONTSET_ASCII (fontset).
21081 (new_fontset_from_font_name): Deleted.
21082 (fontset_from_font): Rename from new_fontset_from_font. Check if
21083 a fontset is already created for the font. FIx updating of
21084 Vfontset_alias_alist.
21085 (fontset_ascii_font): Deleted.
21086 (Ffont_info): Adjust for the format change of font-spec.
21087 (Finternal_char_font): Likewise.
21088 (Ffontset_info): Likewise.
21089 (syms_of_fontset): Don't check load_font_func.
21091 * fns.c (internal_equal): Handle PREV_FONT.
21093 * frame.h: Delete USE_FONT_BACKEND conditional.
21095 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21096 conditionals. Don't check enable_font_backend. Delete all codes
21097 used only when USE_FONT_BACKEND is not defined.
21098 (x_set_font): Call x_new_font, not x_new_fontset2.
21099 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21100 already set for the frame.
21102 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21103 Make a font-entity by font_make_entity. Use font_intern_prop instead
21104 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21105 font property. If a font is scalable, set avgwidth property to 0.
21106 Set font-entity property by font_put_extra.
21107 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21108 (ffont_driver): Adjust for the change of struct font_driver.
21109 (ftfont_spec_pattern): New function.
21110 (ftfont_list): Return a list, not vector.
21111 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21112 (ftfont_list_family): Don't downcase names.
21113 (ftfont_free_entity): Deleted.
21114 (ftfont_open): Return a font-object. Adjusted for the change of
21115 struct font. Get underline_thickness and underline_position from
21116 font property. Don't update dpyinfo->smallest_font_height and
21117 dpyinfo->smallest_char_width.
21118 (ftfont_close): Don't free `struct font'.
21119 (ftfont_has_char): Adjust for the format change of font-entity.
21120 (ftfont_encode_char, ftfont_text_extents): Likewise.
21122 * ftxfont.c (ftxfont_list): Return a list, not vector.
21123 (ftxfont_open): Return a font-object. Adjusted for the change of
21124 struct font. Get underline_thickness and underline_position from
21125 font property. Don't update dpyinfo->smallest_font_height and
21126 dpyinfo->smallest_char_width.
21127 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21128 (ftxfont_draw): Adjust for the change of struct font.
21130 * image.c (image_ascent): Don't include "charset.h".
21131 Include "character.h" and "font.h".
21133 * lisp.h (enum pvec_type): New member PREV_FONT.
21134 (Fassoc_string): EXFUN it.
21136 * print.c: Include font.h.
21137 (print_object): Handle font-related objects.
21139 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21140 conditionals. Don't check enable_font_backend. Delete all codes
21141 used only when USE_FONT_BACKEND is not defined.
21142 (handle_auto_composed_prop): Do nothing if it->f is not on a
21143 window system. Check how many following characters can be
21144 displayed by the same font.
21145 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21147 (get_char_face_and_encoding): Assign the whole encoding task to
21148 the `encode-char' method of a font driver.
21149 (fill_composite_glyph_string): Adjust for the change of `struct
21150 face' and `struct glyph_string'.
21151 (fill_glyph_string): Likewise.
21152 (get_per_char_metric): Arguments changed.
21153 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21154 and `struct glyph_string'.
21155 (produce_stretch_glyph, calc_line_height_property)
21156 (x_produce_glyphs): Likewise.
21158 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21159 conditionals. Don't check enable_font_backend. Delete all codes
21160 used only when USE_FONT_BACKEND is not defined.
21161 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21162 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21164 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21166 (struct font_name): Deleted.
21167 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21168 (compare_fonts_by_sort_order): New function.
21169 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21170 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21172 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21173 compare_fonts_by_sort_order.
21174 (Fx_font_family_list): Call Ffont_family_list.
21175 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21176 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21177 (face_symbolic_slant, face_symbolic_swidth)
21178 (split_font_name_into_vector, build_font_name_from_vector)
21179 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21180 (font_rescale_ratio, split_font_name, build_font_name)
21181 (free_font_names, sort_fonts, x_face_list_fonts)
21182 (face_font_available_p, sorted_font_list, cmp_font_names)
21183 (font_list_1, concat_font_list, font_list, remove_duplicates):
21185 (Fx_list_fonts): Use Ffont_list.
21186 (LFACE_AVGWIDTH): Deleted.
21187 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21189 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21190 (set_lface_from_font_name): Delete it.
21191 (set_lface_from_font): Rename from
21192 set_lface_from_font_and_fontset. Caller changed. Don't set
21193 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21195 (merge_face_vectors): Copy font-spec if necessary.
21196 Clear properties of the font-spec if necessary.
21197 (merge_face_ref): Clear properties of the font-spec if necessary.
21198 (Finternal_set_lisp_face_attribute): Likewise.
21199 (set_font_frame_param): Use font_load_for_lface to load a
21200 font-object, and call Fmodify_frame_parameters with it.
21201 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21202 font name by Ffont_xlfd_name.
21203 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21204 QCslant, and QCwidth.
21205 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21206 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21207 Compare fonts by EQ.
21208 (lookup_non_ascii_face): Deleted.
21209 (face_for_font): The 2nd argument changed.
21210 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21211 Check atomic font properties by case insensitive.
21212 (realize_non_ascii_face): Set face->overstrike correctly.
21213 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21214 (dump_realized_face): Get font name from
21215 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21217 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21218 conditionals. Don't check enable_font_backend. Delete all codes
21219 used only when USE_FONT_BACKEND is not defined.
21220 (xic_create_xfontset): Original code deleted and renamed from
21221 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21222 (x_make_gc): Don't set GCFont in GCs.
21223 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21225 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21226 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21227 get_font_repertory_func.
21229 * xfont.c: Include <stdlib.h> and "ccl.h".
21230 (struct xfont_info): New structure.
21231 (xfont_query_font): Deleted.
21232 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21233 moved from xterm.c.
21234 (xfont_driver): Adjust for the change of struct font_driver.
21235 (compare_font_names): New function.
21236 (xfont_list_pattern): Sort font names case insensitively.
21237 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21238 (xfont_list): Return a list, not vector.
21239 (xfont_match): If the font doesn't have QCname property, generate
21240 a name from the other font properties.
21241 (xfont_open): Return a font-object. Adjusted for the change of
21242 struct font. Get underline_thickness and underline_position from
21243 font property. Don't update dpyinfo->smallest_font_height and
21244 dpyinfo->smallest_char_width.
21245 (xfont_close): Don't free struct font.
21246 (xfont_prepare_face): Adjust for the change of struct font.
21247 (xfont_done_face): Deleted.
21248 (xfont_has_char): Adjust for the change of struct font.
21249 (xfont_encode_char, xfont_draw): Likewise.
21250 (xfont_check): New function.
21252 * xftfont.c (xftfont_list): Adjust for the change of `list'
21254 (xftfont_match): Adjust for the format change of font-entity.
21255 (xftfont_open): Adjust for the format change of font-entity and
21256 font-object. Adjusted for the change of struct font. Return a
21257 font-object. Don't update dpyinfo->smallest_font_height and
21258 dpyinfo->smallest_char_width.
21259 (xftfont_close): Block input while calling XftFontClose.
21260 (xftfont_prepare_face): Don't block input while calling
21261 xftfont_get_colors. Adjusted for the change of struct font.
21262 (xftfont_shape): Return value of error case fixed.
21264 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21266 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21268 (FONT_WIDTH): Return (f)->max_width.
21269 (struct x_display_info): Delete member `font'.
21270 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21271 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21272 (struct x_output): Change type of `font' to `struct font *'.
21274 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21275 conditionals. Don't check enable_font_backend. Delete all codes
21276 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21277 (x_per_char_metric, x_encode_char): Deleted.
21278 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21279 (x_compute_glyph_string_overhangs): Adjust for the change of
21281 (x_draw_glyph_string_foreground)
21282 (x_draw_composite_glyph_string_foreground): Likewise.
21283 (x_draw_glyph_string): Likewise. Use font->underline_position and
21284 font->underline_thickness.
21285 (x_new_font): Rename from x_new_fontset2.
21286 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21287 (x_check_font): Call `check' method of a font driver.
21288 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21289 (x_query_font, x_get_font_repertory): Deleted.
21290 (x_find_ccl_program): Rename and moved to xfont.c.
21291 (x_redisplay_interface): Adjust for the change of `struct
21292 redisplay_interface'.
21294 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21295 conditionals. Don't check enable_font_backend. Delete all codes
21296 used only when USE_FONT_BACKEND is not defined. Surround non-used
21297 code by "#ifdef OLD_FONT" and "endif".
21298 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21300 * w32font.h (struct w32font_info): New member.
21301 (FONT_COMPAT): New macro.
21302 (w32font_open_internal): Prototype adjusted.
21304 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21305 OLD_FONT" and "endif".
21307 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21308 conditionals. Don't check enable_font_backend. Delete all codes
21309 used only when USE_FONT_BACKEND is not defined.
21310 (w32font_open): Return a font-object. Make a font-object by
21311 font_make_object. Adjusted for the change of struct w32font_info.
21312 (w32font_close): Don't free struct font. Adjusted for the change
21313 of struct w32font_info.
21314 (w32font_encode_char, w32font_text_extents, w32font_draw):
21315 Adjust for the change of struct w32font_info.
21316 (w32font_draw): Likewise.
21317 (w32font_list_internal): Return a list, not vector.
21318 (w32font_open_internal): Change the 4th arg to font-object.
21319 Adjusted for the change of struct w32font_info and font-object format.
21320 (add_font_name_to_list): Don't downcase names.
21321 (w32_enumfont_pattern_entity): Make a font-entity by
21322 font_make_entity. Adjusted for the format change of font-entity.
21323 Use FONT_SET_STYLE to set a style-related font property. If a
21324 font is scalable, set avgwidth property to 0. Set font-entity
21325 property by font_put_extra.
21326 (font_matches_spec): Adjust for the format change of font-entity.
21327 (w32_weight_table, w32_decode_weight): New variables.
21328 (w32_encode_weight): New function.
21329 (fill_in_logfont): Adjust for the format change of font-spec.
21330 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21332 (w32font_driver): Adjust for the change of struct font_driver.
21334 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21335 conditionals. Don't check enable_font_backend. Surround non-used
21336 code by "#ifdef OLD_FONT" and "endif".
21337 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21338 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21340 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21341 conditionals. Don't check enable_font_backend. Delete all codes
21342 used only when USE_FONT_BACKEND is not defined. Surround non-used
21343 code by "#ifdef OLD_FONT" and "endif".
21345 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21346 (uniscribe_open): Return value changed to font-object.
21347 Adjusted for the format change of font-object.
21348 (uniscribe_otf_capability): Adjust for the change of struct font.
21349 (add_opentype_font_name_to_list): Don't downcase names.
21350 (uniscribe_font_driver): Adjust for the change of struct
21353 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21355 * dispnew.c (update_frame_1): Check if tty output is still valid
21356 before flushing it.
21358 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21360 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21363 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21365 * dired.c (file_name_completion): Tweak the code so as to always do it
21366 in a single pass. Tighten the scope of some variables.
21368 * dired.c (Qdefault_directory): New var.
21369 (file_name_completion): Use it instead of Fexpand_file_name.
21370 (syms_of_dired): Initialize it.
21372 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21374 * fileio.c (double_dollars): Remove dead code.
21376 2008-05-10 Eli Zaretskii <eliz@gnu.org>
21378 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21379 Mention w32-get-true-file-attributes in doc string.
21381 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21383 2008-05-09 Glenn Morris <rgm@gnu.org>
21385 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21388 2008-05-09 Eli Zaretskii <eliz@gnu.org>
21390 Support for reporting owner and group of each file on MS-Windows:
21391 * dired.c (stat_uname, stat_gname): New functions, with special
21392 implementation for w32.
21393 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21395 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21396 (dflt_group_name): New static variable.
21397 (dflt_group): Rename from the_group.
21398 (init_user_info): Init dflt_group fields. Get user's group name
21399 from LookupAccountSid.
21400 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21401 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21402 New initialization states.
21403 (globals_of_w32): Initialize them to zero. Initialize the default
21404 group name to "None".
21405 (GetFileSecurity_Name): New global var, the name of the function
21406 to call for GetFileSecurity.
21407 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21408 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21409 (get_file_security, get_security_descriptor_owner)
21410 (get_security_descriptor_group, is_valid_sid)
21411 (get_file_security_desc, get_rid, get_name_and_id)
21412 (get_file_owner_and_group): New functions.
21413 (stat): Use get_file_security_desc and get_file_owner_and_group to
21414 report the owner and primary group of each file. Don't ignore the
21415 high 32 bits of file's size, now that st_size is 64-bit wide.
21416 Fix test when to get true file attributes.
21417 (init_user_info): Use get_rid instead of equivalent inline code.
21418 (fstat): Don't ignore the high 32 bits of file's size.
21420 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
21422 * image.c (png_load): Use correct bit-depth for setting background
21425 2008-05-08 Eli Zaretskii <eliz@gnu.org>
21427 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21430 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
21432 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21434 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21436 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21437 because the original parameters are in pure storage now.
21438 (mac_window): Remove unused params. Update callers.
21440 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21442 * lread.c (substitute_object_recurse): Use lower-level primitives.
21443 Don't signal errors when traversing sub-char-tables.
21444 Don't loop over all the possible characters when traversing char-tables.
21446 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21447 just like we do in print.c.
21449 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21451 * minibuf.c (Ftry_completion): Remove code left over from when we used
21452 scmp instead of Fcompare_strings.
21454 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
21456 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21458 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21460 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21461 Create bitmap context in native byte order.
21463 * macterm.c (XDrawLine)
21464 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21465 context in native byte order.
21467 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21469 * config.in: Regenerate.
21471 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21472 New definitions for Image I/O support.
21473 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21474 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21475 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21476 (mac_data_provider_release_data, image_load_image_io)
21477 [USE_MAC_IMAGE_IO]: New functions.
21478 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21479 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21480 (init_image_func_pointer) [MAC_OSX]: Remove function.
21481 (image_load_quartz2d) [MAC_OSX]: Check availability of
21482 CGImageCreateWithPNGDataProvider at compile time.
21483 Use lowercase `false' for boolean constant.
21484 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21485 Use image_load_image_io.
21486 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21487 Don't check MyCGImageCreateWithPNGDataProvider.
21488 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21489 Don't call init_image_func_pointer.
21491 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21493 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21494 Make variable non-static.
21495 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21496 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21498 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21499 (RED_FROM_ULONG): Mask off higher bits.
21500 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21502 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21503 Include AvailabilityMacros.h.
21504 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21505 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21507 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21509 * chartab.c (Fset_char_table_range): If range is t, really set all
21510 chars to that value.
21512 2008-05-03 Eli Zaretskii <eliz@gnu.org>
21514 * dired.c (Ffile_attributes): Don't allow the device number become
21517 2008-05-02 Daiki Ueno <ueno@unixuser.org>
21519 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21521 2008-05-02 Juri Linkov <juri@jurta.org>
21523 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21524 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21525 DEFAULT argument as a list of default values in docstrings.
21527 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
21529 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21531 2008-05-01 Martin Rudalics <rudalics@gmx.at>
21533 * dispnew.c (change_frame_size_1): Preserve small windows when
21534 shrinking frames by calling set_window_height|width with third
21537 * window.h (struct window): Replace field too_small_ok by field
21538 resize_proportionally.
21540 * window.c (make_window): Initialize resize_proportionally.
21541 (enlarge_window): Temporarily set resize_proportionally to make
21542 sure that shrink_windows does scale the window proportionally.
21543 (shrink_windows): When window has resize_proportionally set try
21544 to shrink it proportionally by stealing from other windows.
21545 (struct saved_window, Fset_window_configuration)
21546 (compare_window_configurations): Handle resize_proportionally.
21547 (WINDOW_TOTAL_SIZE): New macro.
21548 (window_min_size, shrink_windows, size_window): Use it.
21549 (check_min_window_sizes): Remove. Invalid values of
21550 window-min-height|width are handled by window_min_size_2 now.
21551 (size_window, Fsplit_window, enlarge_window)
21552 (adjust_window_trailing_edge, grow_mini_window): Don't call
21553 check_min_window_sizes.
21554 (window_min_size_2, window_min_size_1, window_min_size):
21555 New argument safe_p for retrieving "safe" minimum sizes.
21556 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21557 (adjust_window_trailing_edge, grow_mini_window):
21558 Adjust arguments of window_min_size... functions.
21559 (shrink_windows): Argument min_size removed. New argument
21560 safe_p allows shrinking windows to their safe minimum sizes.
21561 Calculate minimum size and decide whether a window shall be
21562 deleted for each window individually.
21563 (size_window): When nodelete_p equals 2, tell shrink_windows to
21564 delete windows only if their new minimum size is no more safe.
21565 (shrink_window_lowest_first): Call window_min_size_1 to make
21566 sure to preserve modeline of bottom-most window when resizing
21568 (Fset_window_configuration, Fcurrent_window_configuration)
21569 (compare_window_configurations): Do not handle
21570 window-min-height|width any more.
21571 (syms_of_window): Clarify window-min-height|width doc-strings.
21573 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21575 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21576 some more. Copy some of the code from Ftry_completions.
21577 Remove special case code that dates back to initial revision when the
21578 slash was only added when necessary and that can't trigger nowadays.
21580 2008-04-27 Kenichi Handa <handa@m17n.org>
21582 * font.c (font_prop_validate): Signal `error' instead of `font'.
21584 2008-04-29 Jason Rumney <jasonr@gnu.org>
21586 * w32fns.c (Fw32_battery_status): New defun.
21587 (syms_of_w32fns): Defsubr it.
21589 2008-04-28 Andreas Schwab <schwab@suse.de>
21591 * dired.c (file_name_completion): Fix another mixing of encoded
21594 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
21596 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21598 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
21600 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21602 2008-04-27 Andreas Schwab <schwab@suse.de>
21604 * dired.c (file_name_completion): Fix inappropriate mixing of
21605 encoded and decoded names.
21607 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21609 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21611 2008-04-26 Eli Zaretskii <eliz@gnu.org>
21613 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21614 2008-03-31, it's not needed anymore with `struct stat' definition
21615 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21616 for the same reasons.
21618 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21620 * m/sparc.h: Additional redefinitions for GNU/Linux.
21622 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21624 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21625 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21626 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21627 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21628 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21629 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21630 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21633 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21634 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21635 (mac_ax_number_of_characters): Add externs.
21636 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21637 [USE_MAC_TSM]: Likewise.
21638 (mac_handle_text_input_event) [MAC_OSX]:
21639 Handle kEventTextInputOffsetToPos for no active input area case.
21640 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21641 (mac_handle_document_access_event)
21642 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21643 (install_application_handler) [MAC_OSX]: Register handlers for
21644 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21645 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21646 Register mac_handle_document_access_event.
21648 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21649 Make functions non-static.
21651 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21653 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21654 (read_file_name_completion_ignore_case, insert_default_directory)
21655 (Qdefault_directory): Move to minibuffer.el.
21656 (Fread_file_name): Call the new `read-file-name' instead.
21658 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21660 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21661 Make function non-static.
21662 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21664 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21665 Move to mactoolbox.c.
21666 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21668 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21669 (mac_rect_make): New macro.
21671 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21673 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21674 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21675 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21676 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21678 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21679 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21680 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21681 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21682 instead of WindowRef in argument type.
21683 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21684 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21685 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21686 instead of DISPLAY. All uses changed.
21687 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21688 (x_calc_absolute_position): Simplify so as not to use
21689 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21691 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21692 instead of WindowRef in argument type.
21693 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21694 [TARGET_API_MAC_CARBON]: Remove externs.
21695 (create_apple_event, mac_event_parameters_to_lisp)
21696 [TARGET_API_MAC_CARBON]: Add externs.
21698 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21699 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21700 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21702 (x_activate_menubar): Remove extern for saved_menu_event_location.
21703 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21706 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21708 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21709 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21711 2008-04-23 Jason Rumney <jasonr@gnu.org>
21713 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21714 attributes only for local files.
21716 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21719 2008-04-22 Juri Linkov <juri@jurta.org>
21721 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21722 read-buffer-to-switch instead of using the letter "B".
21724 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21726 * fileio.c (Qdefault_directory): New variable.
21727 (Fread_file_name): Use it to pass `dir' to the completion functions.
21729 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
21731 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21733 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21735 * keyboard.c (Vpre_help_message): Remove.
21736 (show_help_echo): Remove default C code.
21738 * dired.c (directory_files_internal, file_name_completion):
21739 Only call ENCODE_FILE if the string is indeed decoded.
21741 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21743 * Makefile.in (TOOLKIT_DEFINES): Remove.
21744 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21746 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21748 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21749 (mactoolbox.o): New target.
21751 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21752 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21754 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21755 Use mac_set_frame_window_background instead of XSetWindowBackground.
21756 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21757 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21758 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21759 instead of SetWindowTitleWithCFString.
21760 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21761 Move function to mactoolbox.c.
21762 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21763 Use mac_set_window_modified instead of SetWindowModified.
21764 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21765 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21766 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21767 FrontNonFloatingWindow. Use mac_activate_window instead of
21768 ActivateWindow. Use mac_active_non_floating_window instead of
21769 ActiveNonFloatingWindow.
21770 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21771 Use mac_show_hourglass and mac_hide_hourglass.
21772 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21773 instead of GetGlobalMouse.
21774 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21775 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21776 Use mac_bring_window_to_front instead of BringToFront.
21777 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21779 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21780 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21781 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21784 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21785 (XtPointer): Move typedef from macmenu.c.
21786 (enum button_type): Move enum from macmenu.c.
21787 (widget_value): Move typedef from macmenu.c.
21788 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21789 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21790 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21791 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21792 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21793 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21794 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21795 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21796 (Selection): Move typedef from macselect.c.
21797 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21799 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21800 (mac_is_window_collapsed, mac_bring_window_to_front)
21801 (mac_send_window_behind, mac_hide_window, mac_show_window)
21802 (mac_collapse_window, mac_front_non_floating_window)
21803 (mac_active_non_floating_window, mac_activate_window)
21804 (mac_move_window_structure, mac_move_window, mac_size_window)
21805 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21807 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21808 (enum mac_menu_kind): Move enum to mactoolbox.c.
21809 (min_menu_id): Move variable to mactoolbox.c.
21810 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21811 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21812 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21813 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21814 [TARGET_API_MAC_CARBON]: Likewise.
21815 (XtPointer): Move typedef to macgui.h.
21816 (enum button_type): Move enum to macgui.h.
21817 (widget_value): Move typedef to macgui.h.
21818 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21819 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21820 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21821 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21822 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21823 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21824 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21825 (popup_activated_flag): Make variable non-static.
21826 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21827 (add_menu_item, fill_menu, dispose_menus):
21828 Move functions to mactoolbox.c.
21829 (restore_show_help_function, menu_target_item_handler)
21830 (install_menu_target_item_handler, mac_handle_dialog_event)
21831 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21832 [TARGET_API_MAC_CARBON]: Likewise.
21833 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21834 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21835 (find_and_call_menu_selection, name_is_separator): Make function
21837 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21839 (set_frame_menubar): Don't call install_menu_quit_handler.
21840 (menu_item_selection): New variable.
21841 (mac_menu_show): Use create_and_show_popup_menu.
21842 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21843 selection but set variable menu_item_selection. All uses changed.
21844 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21845 Call install_menu_quit_handler. Move to mactoolbox.c.
21847 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21848 (Selection): Move typedef to macgui.h.
21849 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21850 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21851 Make variables non-static.
21852 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21853 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21854 Make functions non-static.
21855 (Vmac_service_selection) [MAC_OSX]: Likewise.
21856 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21857 (mac_valid_selection_target_p, mac_clear_selection)
21858 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21859 (mac_put_selection_value, mac_selection_has_target_p)
21860 (mac_get_selection_value, mac_get_selection_target_list)
21861 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21862 Move functions to mactoolbox.c.
21863 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21865 (copy_scrap_flavor_data, mac_handle_service_event)
21866 (install_service_handler) [MAC_OSX]: Likewise.
21867 (syms_of_macselect) <Vmac_dnd_known_types>:
21868 Use mac_dnd_default_known_types.
21870 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21871 Move to mactoolbox.c.
21872 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21873 (Fx_selection_owner_p): Add EXFUN.
21874 (install_window_handler, remove_window_handler, XSetWindowBackground):
21876 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21877 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21878 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21879 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21880 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21881 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21882 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21883 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21884 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21885 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21886 (mac_valid_selection_target_p, mac_clear_selection)
21887 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21888 (mac_put_selection_value, mac_selection_has_target_p)
21889 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21890 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21891 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21892 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21893 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21894 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21895 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21896 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21897 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21899 * mactoolbox.c: New file.
21901 2008-04-18 Jason Rumney <jasonr@gnu.org>
21903 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21905 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21907 * character.c (Fmultibyte_char_to_unibyte):
21908 Return latin1 chars unchanged.
21910 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21911 relocated if it points to `name'.
21913 2008-04-17 Kenichi Handa <handa@m17n.org>
21915 * data.c (Faset): Allow setting a multibyte character in an
21916 ASCII-only unibyte string.
21918 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21920 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21922 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21925 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
21927 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21928 (Fchar_direction): Add usage in the docstring.
21930 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
21932 * keyboard.c (read_key_sequence): Remove always-true checks.
21934 2008-04-14 Jason Rumney <jasonr@gnu.org>
21936 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21937 compatibility struct, for better underline positioning.
21939 2008-04-13 David Hansen <david.hansen@gmx.net>
21941 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21944 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21946 * m/hp800.h (XUINT, XSET): Remove.
21948 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
21950 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21953 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21955 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21956 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21958 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21960 * keymap.h (map_keymap_canonical): Declare.
21961 * xmenu.c (single_keymap_panes): Use it.
21963 2008-04-11 Glenn Morris <rgm@gnu.org>
21965 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21966 set the target's value to that of the alias.
21968 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21970 * term.c (set_tty_color_mode): Left over typo.
21972 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
21974 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21975 only after check for file name handler functions. Signal, when
21976 native functionality is not supported.
21977 (syms_of_fileio): Declare it unconditionally.
21979 2008-04-10 Jason Rumney <jasonr@gnu.org>
21981 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21982 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21984 * w32.c (logon_network_drive): Also logon to remote drives that
21985 are mapped to drive letters.
21987 2008-04-10 Glenn Morris <rgm@gnu.org>
21989 * xdisp.c (truncate-partial-width-windows): Doc fix.
21991 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21993 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21994 Move functions to minibuffer.el.
21995 (syms_of_fileio): Don't declare them.
21997 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21999 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22000 (syms_of_minibuf): Remove its initialization.
22002 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22004 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22006 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22008 2008-04-09 Jason Rumney <jasonr@gnu.org>
22010 * makefile.w32-in (distclean): Delete makefile too.
22011 (maintainer-clean): New target.
22013 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22015 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22016 for new font backend and composite cases.
22018 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22020 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22021 Most of the code moved to run_timers.
22022 (do_pending_atimers): Call run_timers.
22023 (run_timers): New function.
22025 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22028 * process.c (wait_reading_process_output): The same as above.
22030 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22032 * minibuf.c (last_exact_completion): Remove variable.
22033 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22034 (complete_and_exit_1, complete_and_exit_2)
22035 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22036 (Fdisplay_completion_list, display_completion_list_1)
22037 (Fminibuffer_completion_help, Fself_insert_and_exit)
22038 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22040 (syms_of_minibuf): Remove corresponding initializations.
22042 * keyboard.c (Qdeactivate_mark): New var.
22043 (command_loop_1): Use it to call `deactivate-mark'.
22044 (syms_of_keyboard): Initialize it.
22046 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22048 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22049 Don't call set_tty_color_mode.
22050 (store_frame_param): Reset previous_frame rather than call
22051 set_tty_color_mode.
22052 * term.c (set_tty_color_mode): Rewrite.
22053 * dispextern.h (set_tty_color_mode): New type.
22054 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22056 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22058 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22059 for generic chars, which do not exist any more in emacs-unicode.
22061 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22063 * coding.c (detect_coding_emacs_mule)
22064 (Ffind_operation_coding_system): Fix typo.
22066 2008-04-08 Jason Rumney <jasonr@gnu.org>
22068 * w32uniscribe.c (SNAME): Extract only symbol name.
22070 * w32font.h (struct w32_metric_cache): New struct.
22071 (w32font_info): Use it.
22072 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22073 (CACHE_BLOCKSIZE): New constants.
22075 * w32font.c (Qja, Qko, Qzh): New symbols.
22076 (syms_of_w32font): Initialise them.
22077 (font_matches_spec): Use them to filter by language.
22078 (recompute_cached_metrics): Remove function.
22079 (compute_metrics, clear_cached_metrics): New functions.
22080 (w32font_encode_char): Use them to manage metric cache.
22081 (w32font_text_extents): Cache metrics for all glyphs on demand.
22082 Delay converting glyph indices to WORD until needed.
22083 (w32font_open_internal): Initialize metric cache to empty.
22084 (registry_to_w32_charset): Charset should always be a symbol.
22085 (fill_in_logfont, list_all_matching_fonts): Family should
22086 always be a symbol.
22088 2008-04-06 Jason Rumney <jasonr@gnu.org>
22090 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22091 Give up if glyph indices not supported. Use uniscribe obtained
22092 ABC widths for individual metrics. Map glyph clusters back to
22093 characters using fClusterStart flag. Return number of glyphs
22094 produced, not chars processed.
22095 (uniscribe_shape): Map char at FROM to current glyph.
22097 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22099 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22100 Use SetMenuItemHierarchicalMenu.
22102 2008-04-05 Jason Rumney <jasonr@gnu.org>
22104 * image.c (pbm_load): Allow color values up to 65535.
22105 Throw an error if max_color_idx is outside the supported range.
22106 Report an error when image size is invalid.
22107 Read two bytes at a time when raw images have max_color_idx above 255.
22109 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22111 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22112 append "CCL: Quitted" when the CCL program is quitted.
22113 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22115 * ccl.h (struct ccl_program): New member quit_silently.
22117 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22119 * search.c (compile_pattern_1): Treat non-nil and non-string of
22120 search-spaces-regexp as nil.
22122 * minibuf.c (Fassoc_string): Tweak docstring.
22124 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22126 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22127 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22128 2008-03-14 to force inode be positive.
22130 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22131 _S_* ones, since we now use our own sys/stat.h.
22132 (stat, fstat): Don't mangle the inode number.
22133 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22135 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22137 * frame.h (struct frame): Give one more bit to `visible' since we use
22138 values larger than 1 to indicate obscured frames on ttys.
22140 * keymap.c (Qkeymap_canonicalize): New var.
22141 (Fmap_keymap_internal): New fun.
22142 (describe_map): Use keymap-canonicalize.
22144 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22145 (Fundo_boundary): Set them.
22146 (syms_of_undo): Initialize them.
22147 (record_point): Use them instead of last_point_position*.
22148 (last_undo_buffer): Change type.
22150 2008-04-04 Jason Rumney <jasonr@gnu.org>
22152 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22153 (recompute_cached_metrics): Don't set ascent and descent per char.
22155 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22156 (uniscribe_check_otf): Add GC protection before consing.
22157 Rearrange loop for counting features.
22159 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22161 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22162 buffer with byte-size of source buffer.
22164 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22166 * callint.c (Fcall_interactively): Handle temporary region even
22167 when shift-select-mode is off.
22169 2008-04-03 Jason Rumney <jasonr@gnu.org>
22171 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22173 2008-04-03 Kenichi Handa <handa@m17n.org>
22175 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22176 (CATEGORY_MASK_UTF_16): Likewise.
22177 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22179 (detect_coding): Add null-byte detection for a binary file.
22180 (detect_coding_system): Likewise.
22182 2008-04-03 Jason Rumney <jasonr@gnu.org>
22184 * w32uniscribe.c: New file.
22186 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22188 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22190 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22191 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22192 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22193 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22194 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22195 (Qphonetic): New symbols.
22196 (syms_of_w32font): Initialize them.
22197 (font_supported_scripts): Use them.
22198 (w32font_list_family): List all charsets.
22199 (w32font_text_extents, recompute_cached_metrics): Fix metric
22201 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22202 Give opentype fonts their own format.
22203 (font_matches_spec): New arguments backend and logfont.
22204 Handle :otf spec for uniscribe backend.
22205 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22206 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22208 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22210 (globals_of_w32fns): Initialize uniscribe font backend.
22212 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22214 (w32uniscribe.$(O)): New file to build.
22215 (FONT_OBJ): Include w32uniscribe.$(O).
22216 (LIBS): Add uniscribe libraries.
22218 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22220 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22222 * callint.c (Vshift_select_mode): New var.
22223 (Finteractive): Document new ^ spec.
22224 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22227 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22228 (command_loop_1): Avoid running the direct display versions of
22229 forward-char and backward-char if shift-selection may occur.
22230 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22231 shift-translation takes place.
22233 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22234 avoid clobbering by define-minor-mode.
22236 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22237 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22239 * syntax.c (Fforward_word): Add ^ interactive spec.
22241 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22242 (Fscroll_right): Add ^ interactive spec.
22244 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22246 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22248 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22250 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22252 2008-03-31 Juri Linkov <juri@jurta.org>
22254 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22256 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22258 * gtkutil.c (xg_set_geometry): Fix indentation.
22259 (xg_resize_outer_widget): Remove.
22260 (x_wm_size_hint_off): Fix indentation.
22261 (xg_frame_set_char_size): Call flush_and_sync after
22263 (x_wm_set_size_hint): Pass NULL as geometry window to
22264 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22265 Add menu bar and tool bar height to base height.
22266 (xg_update_frame_menubar, free_frame_menubar)
22267 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22268 (update_frame_tool_bar, free_frame_tool_bar):
22269 Change xg_resize_outer_widget to xg_frame_set_char_size.
22271 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22273 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22274 (Fdbus_call_method): New parameter TIMEOUT.
22275 (dbus-send-signal): Optimize UNGCPRO call.
22277 2008-03-29 Juri Linkov <juri@jurta.org>
22279 * window.c (Fdisplay_buffer): Move call to
22280 Vsplit_window_preferred_function out of conditions that check
22281 if window is eligible for vertical splitting.
22282 When Vsplit_window_preferred_function is non-nil, call it and use
22283 its non-nil return value as window. Otherwise, continue doing
22284 vertical splitting using Fsplit_window with arg horflag=nil.
22285 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22286 default value from `split-window' to nil.
22288 2008-03-29 Juri Linkov <juri@jurta.org>
22290 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22291 for interactive code letters 'b' and 'B'.
22293 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22295 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22298 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22300 * keyboard.c (pending_funcalls): New var.
22301 (timer_check): Run it.
22302 (syms_of_keyboard): Initialize it.
22303 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22304 (Vdelete_terminal_functions): New vars.
22305 (syms_of_terminal): Initialize them.
22306 (Fdelete_terminal): Run delete-terminal-functions.
22307 * xdisp.c (safe_eval): Rewrite.
22308 (safe_call2): New fun.
22309 * frame.c (Qdelete_frame_functions): New var.
22310 (syms_of_frame): Initialize it.
22311 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22312 * lisp.h (safe_call2, pending_funcalls): Declare.
22314 2008-03-28 Andreas Schwab <schwab@suse.de>
22316 * indent.c (Fmove_to_column): Move declaration before statements.
22318 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22320 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22321 (struct frame): Use bit fields for boolean vars.
22323 * process.c (server_accept_connection): Simplify naming.
22324 (emacs_get_tty_pgrp): Use SDATA.
22326 * coding.c (decode_coding_object): Fix last change.
22328 2008-03-27 Jason Rumney <jasonr@gnu.org>
22330 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22332 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22334 * charset.c (Fdefine_charset_internal): Change the way of
22335 registering charsets in Vcharset_order_list.
22336 (syms_of_charset): Make the charset `eight-bit' supplementary.
22338 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22340 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22341 operations, to avoid having the difference between pointers
22344 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22346 * indent.c (check_display_width): New fun.
22347 (scan_for_column): Use it.
22349 * data.c (syms_of_data): Mark most-positive-fixnum and
22350 most-negative-fixnum as constants.
22352 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22354 * indent.c (scan_for_column): Extract from current_column_1.
22355 Merge with the same code from Fmove_to_column.
22356 (current_column_1, Fmove_to_column): Use it.
22358 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22360 * keymap.c (map_keymap_internal): New fun.
22361 (map_keymap): Use it.
22362 (Fmap_keymap_internal): New fun.
22363 (Fmap_keymap): Remove left-out test from before make_save_value.
22365 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22367 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22370 * process.h (struct Lisp_Process): Remove filter_multibyte.
22371 * process.c (QCfilter_multibyte): Remove.
22372 (setup_process_coding_systems): Don't use filter_multibyte.
22373 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22374 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22375 (Fset_process_filter_multibyte): Change the coding-system to
22376 approximate the previous behavior.
22377 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22380 * coding.c (decode_coding_object): When not decoding into a buffer,
22381 obey the coding system's preference of (uni|multi)byte.
22383 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22385 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22386 every char is changed and has a different byte-length.
22387 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22388 Fix int -> EMACS_INT.
22390 2008-03-23 David Hansen <david.hansen@gmx.net>
22392 * dbusbind.c (xd_read_message): Remove extra copying of message
22393 strings. Check for NULL `interface' or `member'.
22395 2008-03-22 Eli Zaretskii <eliz@gnu.org>
22397 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22398 cFileName a file name that includes `?' characters, use the 8+3
22399 alias in cAlternateFileName instead.
22401 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22403 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22405 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22407 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22408 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22409 work on current_buffer only instead (that was already the case
22410 for some of the code anyway).
22411 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22412 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22413 (SET_PT, SET_PT_BOTH): Adjust.
22414 * intervals.h (set_point, temp_set_point, set_point_both)
22415 (temp_set_point_both): Remove redundant declarations.
22417 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22419 * fileio.c (Finsert_file_contents):
22420 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22421 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22422 when buffer != current_buffer anyway.
22424 2008-03-20 Andreas Schwab <schwab@suse.de>
22426 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22429 2008-03-19 Jason Rumney <jasonr@gnu.org>
22431 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22432 (syms_of_w32fns): Initialize them.
22433 (HOURGLASS_ID): New constant.
22434 (x_window_to_frame): Don't check hourglass_window.
22435 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22436 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22437 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22438 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22439 Only change the cursor if hourglass is not active.
22440 (Fx_create_frame): Initialize frame's current_cursor.
22441 (hourglass_atimer): Remove.
22442 (hourglass_started): New function.
22443 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22444 (show_hourglass): Adapt to w32, changing argument to frame.
22446 * w32term.h (struct w32_output): Remove hourglass_window.
22447 Add current_cursor.
22449 * eval.c (call_debugger, Fsignal):
22450 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22451 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22452 (Fexecute_extended_command, cancel_hourglass_unwind):
22453 * minibuf.c (read_minibuf):
22454 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22456 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22458 * window.c (run_funs): New fun.
22459 (run_window_configuration_change_hook): Use it to run the buffer-local
22460 and the global part of the hook.
22462 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22463 (unwind_format_mode_line): Restore selected window.
22464 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22466 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22468 * editfns.c (Fchar_equal): Check they are valid characters.
22470 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22472 2008-03-17 Andreas Schwab <schwab@suse.de>
22474 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22477 * lisp.h (Fbuffer_list): Declare.
22479 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
22481 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22482 handlebox_widget is != 0.
22484 2008-03-16 Juri Linkov <juri@jurta.org>
22486 * callint.c (Fcall_interactively): For interactive code letters
22487 'b' and 'B' put the buffer list into the list of default "future"
22488 values of the minibuffer.
22490 2008-03-16 Andreas Schwab <schwab@suse.de>
22492 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22495 * regex.c (re_match_2_internal): Correct matching of a charset
22496 against latin-1 characters.
22498 2008-03-16 Kenichi Handa <handa@m17n.org>
22500 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22501 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22502 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22503 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22504 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22505 CHAR_STRING_ADVANCE.
22506 (produce_chars): Fix for the case that the source and the
22507 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22508 instead of CHAR_STRING_ADVANCE.
22509 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22510 STRING_CHAR_ADVANCE.
22512 2008-03-15 Andreas Schwab <schwab@suse.de>
22514 * regex.c (re_match_2_internal): Correct matching of eight bit
22515 characters in unibyte strings.
22517 2008-03-15 Martin Rudalics <rudalics@gmx.at>
22519 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22520 at end of range when it coincides with the end of the buffer.
22522 2008-03-14 Eli Zaretskii <eliz@gnu.org>
22524 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22526 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22528 2008-03-14 Jason Rumney <jasonr@gnu.org>
22530 * editfns.c (initial_tz): New variable.
22531 (syms_of_editfns): Initialize it.
22532 (Fset_time_zone_rule): Set it when first called.
22533 Use it when TZSTRING is nil.
22535 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22536 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22537 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22538 (globals_of_w32fns): Initialize them.
22539 (compute_tip_xy): Use them to position tooltips.
22541 2008-03-14 Glenn Morris <rgm@gnu.org>
22543 * emacs.c (main): Revert previous change.
22544 (standard_args): Revert -internal-script back to -scriptload,
22545 and remove the long-option form.
22547 2008-03-13 Glenn Morris <rgm@gnu.org>
22549 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22550 Remove option -enable-font-backend.
22552 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22554 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22556 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22558 * xterm.c (x_connection_closed): For GTK: If this is the last
22559 terminal just exit without closing the display.
22561 2008-03-11 Jason Rumney <jasonr@gnu.org>
22563 * w32font.c (w32font_full_name): Use floor to round.
22565 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22567 * sound.c (alsa_configure): Declare vol at beginning of block.
22569 * fontset.c (Ffontset_info): Remove extra semicolon.
22571 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22573 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22574 size of resulting string.
22576 2008-03-10 Jason Rumney <jasonr@gnu.org>
22578 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22580 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22582 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22583 Don't pretend as if characters with display property haven't been
22584 consumed for string-replacing-string case.
22586 2008-03-08 Kim F. Storm <storm@cua.dk>
22588 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22589 (get_next_display_element, next_element_from_string)
22590 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22592 2008-03-08 Andreas Schwab <schwab@suse.de>
22594 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22596 2008-03-06 Jason Rumney <jasonr@gnu.org>
22598 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22599 when charset not specified. Only translate ANSI to unicode when
22600 font_type is truetype.
22601 (w32font_coverage_ok): New function.
22602 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22604 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22606 * lread.c (Fread_char): Resolve modifiers.
22607 (Fread_char_exclusive): Likewise.
22609 * character.c (char_resolve_modifier_mask): New function.
22610 (char_string): Use char_resolve_modifier_mask.
22611 (Fchar_resolve_modifiers): New function.
22612 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22615 2008-03-04 Jason Rumney <jasonr@gnu.org>
22617 * makefile.w32-in: Always include w32font.c in the build.
22618 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22620 2008-03-04 Andreas Schwab <schwab@suse.de>
22622 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22623 (versionclean): Likewise.
22625 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
22627 * .cvsignore: Add oo.
22629 2008-03-03 Andreas Schwab <schwab@suse.de>
22631 * coding.c (decode_coding_object): Inhibit gap shrinking while
22634 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22636 * w32term.c: Remove unused include "gnu.h".
22637 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22639 * gnu.h: Rename to ...
22640 * emacs-icon.h: ... this.
22641 * xterm.c: Use emacs-icon.h instead of gnu.h.
22642 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22644 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
22646 * w32font.c: Include math.h.
22648 2008-03-03 Jason Rumney <jasonr@gnu.org>
22650 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22651 Compute options separately.
22652 (w32font_open_internal): Set glyph_idx before caching metrics.
22654 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22655 Define if system headers don't.
22656 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22657 (w32font_encode_char): Don't declare here.
22659 * w32font.c (Quniscribe, QCformat): New symbols.
22660 (syms_of_w32font): Define them.
22661 (w32font_has_char): Indicate uncertainty.
22662 (w32font_encode_char): Encode as glyph point. Make static.
22663 (recompute_cached_metrics): New function.
22664 (w32font_open_internal): Use it. Set font to use glyph points
22665 initially. Set format based on type of font.
22666 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22667 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22668 on it. Set format based on information available here.
22669 (add_font_entity_to_list): Identify backend based on opentype_only.
22671 2008-03-02 Andreas Schwab <schwab@suse.de>
22673 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22675 * coding.c (decode_coding_big5, produce_chars):
22676 Fix typos in last change.
22678 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22682 2008-03-02 Kenichi Handa <handa@m17n.org>
22684 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22685 `dos', don't decode '\r' if that is the last in the source.
22686 (decode_coding_utf_16, decode_coding_emacs_mule)
22687 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22688 (decode_coding_raw_text, decode_coding_charset): Likewise.
22689 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22691 2008-03-01 Jason Rumney <jasonr@gnu.org>
22693 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22695 2008-03-01 Kim F. Storm <storm@cua.dk>
22697 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22699 2008-03-01 Jason Rumney <jasonr@gnu.org>
22701 * w32font.c (w32font_full_name): New function.
22702 (w32font_open_internal): Use it.
22704 2008-03-01 Kim F. Storm <storm@cua.dk>
22706 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22708 2008-03-01 Jason Rumney <jasonr@gnu.org>
22710 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22712 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22714 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22715 xg_frame_resized when the event is for the edit widget.
22717 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
22719 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22721 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
22722 operations on widgets here. Just set frame size if needed.
22723 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22724 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22725 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22727 (xg_create_tool_bar): Move attachment of the tool bar to
22728 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22729 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22731 2008-03-01 Jason Rumney <jasonr@gnu.org>
22733 * w32fns.c (w32_msg_pump): Disable debug code.
22735 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22737 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22739 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22741 * xdisp.c (next_overlay_string): Don't set
22742 overlay_strings_at_end_processed_p if we're currently reading from
22745 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22747 * xdisp.c (get_overlay_strings_1): Fix typo.
22749 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
22751 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22753 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22755 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22757 * xdisp.c (display_mode_element): Cancel the previous change.
22758 (decode_mode_spec): Likewise.
22759 (handle_auto_composed_prop): Don't make composition if it->string
22762 2008-02-27 Kim F. Storm <storm@cua.dk>
22764 * lisp.h (GLYPH): Change type from int to struct with separate char
22765 and face_id members.
22766 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22767 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22768 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22769 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22770 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22771 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22772 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22773 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22774 handle new Lisp glyph code encoding, either an integer or a cons.
22776 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22777 (GLYPH_ALIAS): Delete.
22778 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22779 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22780 (GLYPH_FROM_CHAR): Replace macro by ...
22781 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22783 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22784 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22785 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22786 (GLYPH_INVALID_P): New macro.
22787 (spec_glyph_lookup_face): Update prototype.
22789 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22790 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22791 new glyph code encoding.
22792 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22793 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22795 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22796 Adapt to new glyph type and new glyph code encoding.
22798 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22800 * indent.c (current_column, current_column_1, Fmove_to_column)
22801 (compute_motion): Adapt to new glyph code encoding.
22803 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22805 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
22807 * process.c (wait_reading_process_output): Check for window
22808 changes caused by timers.
22809 Suggested by Johan Bockgård.
22811 2008-02-27 Glenn Morris <rgm@gnu.org>
22813 * emacs.c (USAGE1): Add `--disable-font-backend'.
22815 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22817 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22818 is made to the buffer.
22820 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22822 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22823 (face_at_string_position):
22824 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22825 (face_at_string_position):
22826 * xdisp.c (display_string, next_overlay_change):
22827 * buffer.h (overlays_at):
22828 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22831 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
22833 * editfns.c (Fformat): Doc fix.
22835 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
22837 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22838 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22839 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22841 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22843 * buffer.c (Fbuffer_swap_text): New function.
22844 (syms_of_buffer): Defsubr it.
22846 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
22848 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22850 2008-02-25 Jason Rumney <jasonr@gnu.org>
22852 * w32font.c (w32font_draw): Draw one character at a time when padding.
22854 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22856 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22857 Handle a nil arg. Use run_window_configuration_change_hook.
22858 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22859 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22860 Use run_window_configuration_change_hook.
22862 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22864 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22867 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22869 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22870 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22871 if the glyph in the font is zero pixel with.
22873 * dispextern.h (struct glyph_string): New member padding_p.
22875 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22877 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22879 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22881 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22883 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22885 2008-02-25 Jason Rumney <jasonr@gnu.org>
22887 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22889 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22891 Allow fine-grained image-cache flushing.
22892 * dispextern.h (struct image): Add `dependencies' field.
22893 (clear_image_caches): Change arg to Lisp_Object.
22894 * image.c (make_image): Initialize `dependencies' field.
22895 (clear_image_cache): Change arg to allow fine-grained flushing.
22896 Perform the flush even if image-cache-eviction-delay is nil.
22897 (clear_image_caches): Change arg to Lisp_Object.
22898 (Fclear_image_cache): Expand meaning of the argument.
22899 (mark_image): Mark `dependencies' field.
22900 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22901 (lface_hash): Use XHASH rather than XFASTINT.
22902 (face_at_buffer_position): Fix int -> EMACS_INT position.
22903 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22904 (select_frame_for_redisplay): Remove code duplication.
22905 (redisplay_internal): Adapt arg to call to clear_image_caches.
22907 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22912 * s/vms5-5.h: Remove, unused.
22918 * m/mips4.h: Remove files for obsolete systems.
22931 * s/usg5-3.h: Remove references to obsolete variables.
22933 * s/irix5-0.h: Remove, move all the contents ...
22934 * s/irix6-5.h: ... here. Simplify.
22935 * config.in: Regenerate.
22937 2008-02-24 Jason Rumney <jasonr@gnu.org>
22939 * w32term.c (x_draw_glyph_string_background): Clear the background
22940 manually when cleartype is in use.
22941 (x_draw_glyph_string_foreground): Draw text transparently when
22942 cleartype is in use.
22944 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22945 a font into it unless we have to.
22947 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22949 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22950 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
22952 2008-02-18 Jason Rumney <jasonr@gnu.org>
22954 * w32fns.c (Fw32_shell_execute): Encode parameters.
22956 2008-02-09 Eli Zaretskii <eliz@gnu.org>
22958 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22960 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
22962 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22964 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22966 * xterm.c (x_set_offset): Don't change the gravity if
22967 CHANGE_GRAVITY is -1.
22969 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
22971 * fileio.c (auto_save_error_occurred): New var.
22972 (auto_save_error): Set it.
22973 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22976 2008-02-23 Eli Zaretskii <eliz@gnu.org>
22978 * w32.c (globals_of_w32): Add initializations for
22979 g_b_init_get_sid_sub_authority and
22980 g_b_init_get_sid_sub_authority_count.
22982 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22984 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22985 (font_parse_xlfd): Use them for sanity check.
22986 (Finternal_set_font_style_table): Make sure the table is bijective.
22988 Consolidate the image_cache to the terminal struct.
22989 * termhooks.h (P_): Remove redundant def.
22990 (struct terminal): New field `image_cache'.
22991 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22992 of FRAME_X_IMAGE_CACHE.
22993 * xterm.h (struct x_display_info): Remove image_cache field.
22994 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22995 * w32term.h (struct w32_display_info): Remove image_cache field.
22996 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22997 * macterm.h (struct mac_display_info): Remove image_cache field.
22998 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22999 * xterm.c (x_term_init):
23000 * w32term.c (w32_term_init):
23001 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23002 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23003 Remove declarations.
23004 (clear_image_caches, mark_image_cache): New declarations.
23005 * xfaces.c (clear_face_cache):
23006 * xdisp.c (redisplay_internal): Use clear_image_caches.
23007 * image.c (clear_image_cache): Don't check that a frame is on
23008 a window-system before checking if it shares the same cache.
23009 (clear_image_caches): New function.
23010 (Fclear_image_cache): Use it.
23011 (mark_image): Move from allo.c.
23012 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23013 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23014 (mark_object): Don't call mark_image_cache for frames.
23015 (mark_terminals): Call mark_image_cache.
23017 * lisp.h (Fdelete_terminal): Declare.
23019 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23020 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23021 wrong_type_argument.
23023 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23025 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23026 malayalam.el, and tamil.el. Add sinhala.el.
23028 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23030 * xterm.c (x_connection_closed): Consolidate identical tests.
23031 (x_delete_terminal): Don't crash if called via x_connection_closed.
23033 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23035 * xdisp.c (decode_mode_spec): New arg string.
23036 (display_mode_element): Adjust for the above change.
23038 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23040 * callint.c (Fcall_interactively): Use AREF.
23042 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23044 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23046 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23048 * xfns.c (Fx_show_tip): Set string to " " if empty.
23050 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23052 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23055 2008-02-17 Kenichi Handa <handa@m17n.org>
23057 * ftfont.c (ftfont_shape): Return Lispy number.
23059 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23061 (Finternal_set_font_selection_order): Call font_update_sort_order
23062 only when enable_font_backend is set.
23063 (realize_x_face): Set face->font_info to that of default face only
23064 when enable_font_backend is set.
23066 * xdisp.c (handle_composition_prop): Set it->c to the fist
23067 character of the composed region.
23068 (fill_composite_glyph_string): Set base_face->font_info to
23069 s->font_info. Get a face for ascii from base_face->ascii_face.
23070 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23071 with a face already decided.
23072 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23074 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23075 call font_prepare_composition unconditionally.
23077 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23079 * xterm.h (struct x_display_info): New member font.
23081 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23082 (x_set_mouse_face_gc, x_new_font): Likewise.
23083 (x_term_init): Setup display_info->font.
23084 (x_delete_terminal): Free display_info->font.
23086 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23088 * ftxfont.c (ftxfont_default_fid): Delete it.
23089 (ftxfont_open): Set xfont->fid to 0.
23090 (ftxfont_end_for_frame): Clear data specific to the frame and the
23093 * xftfont.c (xftfont_default_fid): Delete it.
23094 (xftfont_open): Set xfont->fid to 0.
23096 * fontset.c (FONTSET_OBJLIST): New macro.
23097 (fontset_find_font): Update font-object list of the fontset.
23098 (free_realized_fontset): New function.
23099 (free_face_fontset): Call free_realized_fontset.
23100 (Ffont_info): Call font_close_object only when enable_font_backend
23103 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23104 [HAVE_NTGUI]: Include w32term.h.
23105 [MAC_OS]: Include macterm.ch.
23106 (font_otf_ValueRecord): Use make_number.
23107 (font_finish_cache): Fix handling of reference count.
23108 (font_clear_cache): Update num_fonts.
23109 (font_open_entity): Update smallest_char_width and
23110 smallest_font_height of the frame.
23111 (font_close_object): Update num_fonts.
23112 (Fclear_font_cache): Fix finding the target cache data.
23114 2008-02-16 Glenn Morris <rgm@gnu.org>
23116 * fontset.c (Finternal_char_font): Fix compilation warning.
23118 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23120 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23121 instead of char arrays. Enlarge the size of array passed to
23122 get_token_information.
23124 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23127 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23129 * .gdbinit: Don't set `args', it breaks gdb --args.
23131 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23133 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23134 within a narrowed buffer.
23136 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23138 * coding.c (decode_coding_object, encode_coding_object):
23139 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23141 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23143 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23145 (detect_coding_system):
23146 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23147 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23148 * insdel.c (insert_from_gap):
23149 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23150 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23151 (string_to_multibyte):
23152 * character.c (chars_in_text, multibyte_chars_in_text):
23153 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23155 * character.h (FETCH_STRING_CHAR_ADVANCE)
23156 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23157 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23158 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23160 * casefiddle.c (casify_region): Only call after-change and composition
23161 functions on the part of the region that was changed.
23163 * keyboard.c (read_avail_input):
23164 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23166 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23168 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23169 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23171 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23173 * w32menu.c (push_submenu_start, push_submenu_end)
23174 (push_left_right_boundary, push_menu_pane, push_menu_item):
23175 * keyboard.c (read_key_sequence): Don't pass args with side effects
23176 to AREF, it fails when compiling with -DENABLE_CHECKING.
23178 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23180 * Makefile.in (${lispsource}international/charprop.el):
23181 Delete this target.
23183 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23186 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23188 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23190 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23192 * frame.c (Qnoelisp): New symbol.
23193 (syms_of_frame): Initialize it.
23194 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23195 harmless Elisp code, from a strong `force' from x_connection_closed.
23196 * frame.h (Qnoelisp): Declare.
23197 * xterm.c (x_connection_closed): Pass `noelisp'.
23199 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23200 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23201 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23202 rather than `int' for the type of `type'.
23204 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23206 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23208 * Makefile.in (GNUC): Remove support for gcc-1.x.
23210 2008-02-10 Richard Stallman <rms@gnu.org>
23212 * lisp.h (ASET): Use AREF, not ASLOT.
23214 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23216 * lisp.h (ASET): Check bounds.
23218 2008-02-10 Glenn Morris <rgm@gnu.org>
23220 * buffer.c (mode-name): Doc fix.
23222 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23239 * xterm.c: Remove code that deals with obsolete variables.
23241 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23243 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23244 nothing else needs it anymore.
23246 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23248 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23249 instead of unibyte_char_to_multibyte.
23251 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23253 * s/gnu-linux.h: Remove commented out code.
23255 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23257 * Makefile.in: Update what RMS says about using autoconf.
23258 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23259 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23260 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23261 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23263 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23265 * keymap.c (Fkey_description): Move side effect outside of macro call.
23267 * xfaces.c (Finternal_make_lisp_face):
23268 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23270 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23271 (syms_of_fontset): Use ASET.
23273 * fns.c (concat): Move side effect outside of macro call.
23274 (hash_clear): Use ASET.
23276 2008-02-08 Richard Stallman <rms@gnu.org>
23278 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23279 If FORCE, and frame has a surrogate minibuffer for another frame,
23280 delete the other frame first.
23282 2008-02-07 Timo Savola <timo.savola@iki.fi>
23284 * xterm.c (x_detect_focus_change): Handle embed client message.
23285 (handle_one_xevent): Ditto.
23286 (handle_one_xevent): If embedded and we get a button press/release,
23288 (xembed_set_info, xembed_send_message): New functions.
23289 (x_make_frame_visible): Call xembed_set_info if embedded.
23290 (x_make_frame_invisible): Call xembed_set_info if embedded.
23291 (x_term_init): Initialize Xatom_XEMBED.
23292 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23293 (x_iconify_frame): Ditto.
23295 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23296 (enum xembed_info, enum xembed_message, enum xembed_focus)
23297 (enum xembed_modifier, enum xembed_accelerator): New.
23298 (xembed_set_info, xembed_send_message): Declare.
23299 (FRAME_X_EMBEDDED_P): New.
23301 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23304 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23305 window ID of a frame.
23306 (x_window): Reparent frame if embedded.
23307 (Fx_create_frame): Don't set border width if embedded.
23309 * emacs.c (USAGE3): Add --parent-id.
23310 (standard_args): Ditto.
23312 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23314 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23316 2008-02-07 Jim Meyering <meyering@redhat.com>
23318 Use "do...while (0)", not "if (1)...else" in macro definitions.
23319 The latter provokes a warning from gcc about the empty else, when
23320 followed by ";". Also, without that trailing semicolon, it would
23321 silently swallow up any following statement.
23322 * syntax.h (SETUP_SYNTAX_TABLE)
23323 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23324 * buffer.h (DECODE_POSITION): Likewise.
23325 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23326 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23327 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23328 (FETCH_CHAR_ADVANCE): Likewise.
23329 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23331 2008-02-07 Jim Meyering <meyering@redhat.com>
23333 * lread.c [lint]: Don't include <sys/inode.h>.
23335 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23337 * xselect.c (x_handle_dnd_message):
23338 * xmenu.c (digest_single_submenu, xmenu_show):
23339 * xdisp.c (with_echo_area_buffer_unwind_data)
23340 (format_mode_line_unwind_data, unwind_format_mode_line)
23341 (display_menu_bar):
23342 * eval.c (Ffetch_bytecode):
23343 * doc.c (store_function_docstring):
23344 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23345 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23346 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23348 2008-02-07 Kenichi Handa <handa@m17n.org>
23350 * ftxfont.c (ftxfont_open): Don't set
23351 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23353 * ftfont.c (ftfont_open): Fix previous change.
23355 2008-02-06 Jason Rumney <jasonr@gnu.org>
23357 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23358 Use cached metrics for ASCII characters.
23359 (w32font_open_internal): Don't set font's owning_frame.
23360 Cache metrics for ASCII characters.
23362 * w32font.h (struct w32font_info): Add ascii_metrics.
23363 Remove owning_frame.
23365 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23367 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23370 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23372 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23374 * charset.c (syms_of_charset): Set QCtest and Qeq.
23376 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23378 * process.c (Fstart_process):
23379 * callproc.c (Fcall_process): Handle the case where
23380 Funhandled_file_name_directory returns nil.
23382 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23383 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23384 * font.c (check_gstring): Use them and AREF to access the vector before
23385 we know it's really a gstring.
23386 (Ffont_shape_text): Fix typo.
23387 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23389 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23392 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23394 2008-02-05 Jason Rumney <jasonr@gnu.org>
23396 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23397 Set smallest_font_height and smallest_char_width in display info.
23399 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23401 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23403 2008-02-05 Miles Bader <miles@gnu.org>
23405 * xfaces.c (get_lface_attributes, merge_named_face)
23406 (lookup_named_face, lookup_derived_face, realize_named_face):
23407 Revert 2008-02-01 change by cyd@stupidchicken.com.
23409 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23411 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23413 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23415 2008-02-04 Jason Rumney <jasonr@gnu.org>
23417 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23419 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23421 2008-02-03 Jason Rumney <jasonr@gnu.org>
23423 * makefile.w32-in (OBJ1): Include font.o here.
23424 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23426 2008-02-02 Jason Rumney <jasonr@gnu.org>
23428 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23430 2008-02-01 Jason Rumney <jasonr@gnu.org>
23432 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23434 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23436 2008-02-01 Andreas Schwab <schwab@suse.de>
23438 * Makefile.in (shortlisp, lisp): Update for rename of
23439 ../lisp/language/myanmar.el.
23441 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
23443 * xfaces.c (get_lface_attributes): Delete function.
23444 (merge_named_face, lookup_named_face, lookup_derived_face)
23445 (realize_named_face): Call lface_from_face_name directly, and use
23446 the fact that merge_face_vectors does not alter its FROM argument.
23448 2008-02-01 Jason Rumney <jasonr@gnu.org>
23450 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23451 input in the default locale. Handle non-Unicode multibyte input.
23453 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23455 * fontset.c (reorder_font_vector): Exclude nil elements from the
23456 font group. Don't try multiple fonts.
23457 (fontset_font): Adjust for the above change.
23458 (Finternal_char_font): Return nil if the found font doesn't
23459 contain the character ch.
23461 * Makefile.in (lisp, shortlisp): Add cham.el.
23463 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23465 * font.h (FONTP): Make it return 1 also for a font-object.
23467 * .gdbinit (xfontset): New function.
23469 * font.c (font_find_for_lface): Check if the character C is
23470 supported or not only for the first font.
23472 * fontset.c (reorder_font_vector): Fix typo.
23473 (fontset_find_font): Don't add a font-spec specifying a script.
23474 Use 0 (not Qt) for the indication of empty font-group. Change the
23475 format of RFONT-DEF. Return Qt if no font in the font-group
23476 support the character.
23477 (fontset_font): Adjust for the above change. If no font was
23478 found the character, remember that.
23479 (face_for_char): Adjust for the change of RFONT-DEF.
23480 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23481 no font for the target.
23482 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23484 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23486 * font.c (font_load_for_face): Handle the case that the font in
23487 face->lface is a string.
23489 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23491 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23493 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23495 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23496 Fix previous change. If the frame is not on a window system,
23499 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23501 * coding.c (decode_coding_object, encode_coding_object):
23502 Adjust marker positions after conversion.
23504 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23506 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23508 * font.c (font_find_for_lface): Fix the handling of the return
23509 value of font_has_char.
23510 (Ffont_shape_text): Fix previous change.
23512 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23513 (fontset_ref_and_range): Delete it.
23514 (fontset_find_font): Call char_table_ref_and_range instead of
23515 FONTSET_REF_AND_RANGE.
23516 (make_fontset): Don't setup font groups of Latin here.
23517 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23518 (new_fontset_from_font): Make the specified font the default for
23519 all Latin characters.
23521 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23523 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23524 is on a window system before accessing the fontset of the frame.
23526 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23528 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23530 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23531 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23533 * font.c (Ffont_shape_text): If the font driver doesn't have a
23534 shaper function, make zero-width glyphs to have at least one-pixel
23535 width. Fix setting of `to' field of glyphs.
23537 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23539 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23542 * font.h (struct font_driver): Improve docstring of member `shape'.
23544 2008-02-01 Kenichi Handa <handa@m17n.org>
23546 * composite.c (syms_of_composite): Fix docstring of
23547 auto-composition-function.
23549 * font.h (LGLYPH_SIZE): New macro.
23551 * font.c (Ffont_fill_gstring): Stop filling when a character not
23552 supported by the font is found.
23553 (Ffont_shape_text): When a shape callback function returns nil,
23554 try at most two more times with larger gstring.
23555 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23557 * xdisp.c (handle_auto_composed_prop): Change the argument to
23558 auto-composition-function.
23560 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23561 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23562 Lispy glyph and store it in the lgstring.
23564 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23566 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23568 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23570 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23572 * fontset.c (Vfont_encoding_charset_alist): New variable.
23573 (syms_of_fontset): DEFVAR it.
23574 (reorder_font_vector, fontset_find_font): Optimize for the case of
23575 no need of reordering.
23576 (face_for_char): Map the charset property by
23577 Vfont_encoding_charset_alist.
23579 2008-02-01 Jason Rumney <jasonr@gnu.org>
23581 * w32font.c (logfonts_match): Don't check adstyle here.
23582 (font_matches_spec): Check here against physical font instead.
23583 (add_font_entity_to_list): Avoid some substitutions.
23585 * font.c (font_parse_fcname): Default weight and slant to normal.
23586 (font_score): Prefer normal fonts if weight or slant unspecified.
23587 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23588 match freetype scores.
23590 2008-02-01 Jason Rumney <jasonr@gnu.org>
23592 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23593 font, as it may have been deleted.
23594 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23595 most common hyphenless variation.
23596 (logfonts_match): Check generic family.
23597 (font_matches_spec): Don't check generic family here.
23598 (fill_in_logfont): Set generic family based on adstyle.
23600 * w32font.h (w32font_get_cache): Update declaration.
23602 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23604 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23606 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23607 If none of the new drivers are available, call font_update_drivers
23608 with the old drivers.
23610 * w32font.c (w32font_get_cache): Adjust the argument type.
23612 * xfont.c (xfont_get_cache): Adjust the argument type.
23614 * font.h (struct font_driver): Change argument type of get_cache.
23616 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23618 * font.c (Ffont_get): Fix arguments to Fassoc.
23619 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23620 (font_clear_cache): New function.
23621 (font_list_entities, font_matching_entity): Use font_get_cache.
23622 (font_update_drivers): Call font_clear_cache when finishing a driver.
23624 * fontset.c (fontset_find_font): Fix previous change.
23626 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23628 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23629 dpyinfo->font_table.
23630 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23631 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23633 * font.c (font_at): Handle the case that the arg C is negative.
23634 Handle the unibyte case.
23635 (Ffont_at): Call font_at with the arg C -1.
23637 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23638 the position here, and call font_at with the arg C -1.
23639 Don't check the range of the existing composition at the point.
23641 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23643 * fontset.c (fontset_add): New args charset_id and family.
23645 (load_font_get_repertory, fontset_find_font): Assume that
23646 font_spec is always a font-spec object.
23647 (Fset_fontset_font): Always store a font-spec object in a fontset.
23649 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23650 instead of get_property_and_range.
23652 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23654 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23655 (xftfont_open): Don't keep locking face.
23656 (xftfont_close): Don't unlock face.
23657 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23659 * fontset.c (fontset_find_font): Don't prefer a font of
23660 supplementary charset.
23662 2008-02-01 Kenichi Handa <handa@m17n.org>
23664 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23665 script, langsys_tag to langsys, new member script.
23666 (OTF_TAG_STR): Terminate by '\0'.
23667 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
23668 listing to the script specified in that property. Fix arg to
23669 OTF_check_features.
23671 2008-02-01 Jason Rumney <jasonr@gnu.org>
23673 * w32font.h: New file.
23675 * w32font.c: Include it.
23676 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23677 (w32font_open): Set owning_frame.
23678 (w32font_text_extents): Use owning_frame.
23679 (struct font_callback_data): Add opentype_only field.
23680 (add_font_entity_to_list): Use it to filter fonts.
23681 Don't check against full name.
23682 (w32font_list_internal): New function.
23683 (w32font_list): Use it.
23684 (w32font_match_internal): New function.
23685 (w32font_match): Use it.
23686 (w32font_open_internal): New function.
23687 (w32font_open): Use it.
23688 (w32font_get_cache, w32font_close, w32font_has_char)
23689 (w32font_encode_char, w32font_text_extents, w32font_draw):
23692 * makefile.w32-in (w32font.o): Depend on w32font.h.
23694 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23696 * charset.c (Fdefine_charset_internal): Record a supplementary
23697 charset at the tail of Vcharset_order_list.
23699 * font.c (Ffont_shape_text): Fix the return value.
23701 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23703 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23705 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23707 * ftfont.c (struct OpenTypeSpec): New struct.
23708 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23709 (ftfont_get_open_type_spec): New function.
23710 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23712 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23714 2008-02-01 Jason Rumney <jasonr@gnu.org>
23716 * w32font.c (add_font_entity_to_list): Compare only the beginning
23719 2008-02-01 Kenichi Handa <handa@m17n.org>
23721 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23722 Never return HANDLED_RECOMPUTE_PROPS.
23724 2008-02-01 Kenichi Handa <handa@m17n.org>
23726 * font.c (font_gstring_produce): Delete it.
23728 * composite.h (COMPOSITION_METHOD):
23729 Handle COMPOSITION_WITH_GLYPH_STRING.
23731 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23733 * xfont.c (Qx): Delete.
23734 (syms_of_xfont): Don't initialize Qx.
23736 * composite.h (enum composition_method):
23737 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23739 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23741 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23742 (choose_face_font): Accept new form of font-spec.
23744 * frame.h (font_driver_list): Declare it unconditionally.
23745 (struct frame): Define members font_driver_list and font_data_list
23748 * fontset.c: Include "font.h" unconditionally.
23749 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23750 (Fset_fontset_font): Accept a font-spec object.
23752 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23753 PIXEL_SIZE part a wild card.
23755 * dispextern.h (struct glyph_string): Define members clip and
23756 num_clips unconditionally.
23757 (struct face): Define members font_info and extra unconditionally.
23759 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23760 ftfont_info only when HAVE_LIBOTF is defined.
23762 2008-02-01 Andreas Schwab <schwab@suse.de>
23764 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23767 2008-02-01 Jason Rumney <jasonr@gnu.org>
23769 * w32font.c (w32font_driver): Add new fields.
23771 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23773 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23774 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23775 (LIBES): Add @M17N_FLT_CFLAGS@.
23777 * composite.c (compose_text): Don't treat the new style
23778 composition specially.
23780 * emacs.c (main): Call syms_of_font unconditionally.
23782 * font.h (FONT_ENTITY_NOT_LOADABLE)
23783 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23784 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23785 (struct font_driver): New member shape.
23786 (font_registry_charsets): Extern it.
23787 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23788 (font_otf_capability, font_drive_otf): Delete their externs.
23790 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23791 (font_charset_alist, font_registry_charsets): Move from xfont.c
23793 (font_prop_validate_otf): New function.
23794 (font_property_table): Register it for QCotf.
23795 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23796 (font_drive_otf): Delete.
23797 (font_prepare_composition): New arg F. Adjust for the change of
23799 (font_find_for_lface): New arg C.
23800 (font_load_for_face): Adjust for the change of font_find_for_lface.
23801 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23803 (Ffont_shape_text): New function.
23804 (Fopen_font): If the font size is not given, use 12-pixel.
23805 (Ffont_at): New arg STRING.
23806 (syms_of_font): Initialize font_charset_alist.
23807 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23810 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23811 fonts of the same font-spec. Change the format of RFONT-DEF.
23812 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23813 Adjust for the change of RFONT-DEF.
23814 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23816 * ftfont.h: New file.
23818 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23819 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23820 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23821 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23822 font_otf_capability and font_drive_otf, set ftfont_shape.
23823 (ftfont_list): Adjust for the change of :otf property value.
23824 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23825 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23826 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23827 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23828 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23829 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23831 * w32term.c (x_draw_composite_glyph_string_foreground):
23832 Adjust for the change of lispy gstring.
23834 * xdisp.c (handle_composition_prop): Adjust for the change of
23835 lispy gstring. Call a function for auto-composition with the
23836 third arg it->window.
23837 (fill_composite_glyph_string): Adjust for the change of lispy string.
23838 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23840 * xfaces.c (set_font_frame_param): Adjust for the change of
23841 font_find_for_lface.
23843 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23844 (xfont_registry_charsets): Likewise. Change caller.
23845 (syms_of_xfont): Don't handle x_font_charset_alist.
23847 * xftfont.c: Include "ftfont.h".
23848 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23849 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23850 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23851 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23852 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23853 Set xftfont_driver.shape to xftfont_shape.
23855 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23856 the change of lispy gstring.
23858 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23860 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23862 2008-02-01 Jason Rumney <jasonr@gnu.org>
23864 * w32font.c (w32font_draw): Fill background manually.
23866 2008-02-01 Jason Rumney <jasonr@gnu.org>
23868 * font.c (Qfontp): Remove unused symbol.
23869 (QCantialias): New symbol.
23870 (syms_of_font): Define it.
23871 (font_property_table): Set a validator for QCantialias.
23873 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23874 Define if not already.
23875 (QCfamily): Share with xfaces.c.
23876 (Qstandard, Qsubpixel, Qnatural): New symbols.
23877 (syms_of_w32font): Define them. Don't define QCfamily here.
23878 (w32_antialias_type, lispy_antialias_type): New functions.
23879 (w32_enumfont_pattern_entity): New arg requested_font.
23880 Set antialias parameter if non-default was requested.
23881 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23883 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23885 * lread.c (read1): Undo the previous change.
23887 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23889 * frame.c (Fdelete_frame): Call font_update_drivers only when
23890 USE_FONT_BACKEND is defined.
23892 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23894 * font.h (struct font_bitmap): New member bits_per_pixel.
23895 (struct font_driver): New members start_for_frame and end_for_frame.
23896 (struct font_data_list): New struct.
23897 (font_put_frame_data, font_get_frame_data): Extern them.
23899 * frame.h (struct frame): New member font_data_list.
23901 * font.c (font_update_drivers): Call driver->start_for_frame and
23902 driver->end_for_frame at proper timings.
23903 (font_put_frame_data, font_get_frame_data): New functions.
23904 (Ffont_spec): Add usage in the docstring.
23906 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23907 (Fdelete_frame): Call font_update_drivers.
23909 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23910 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23911 (xftfont_get_xft_draw): New function.
23912 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23913 (xftfont_end_for_frame): New function.
23914 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23916 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23917 Change argument. Cache GCs in the per-frame data.
23918 (struct ftxfont_frame_data): New struct.
23919 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23920 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23921 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23922 (ftxfont_end_for_frame): New function.
23923 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23925 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23927 2008-02-01 Kenichi Handa <handa@m17n.org>
23929 * xselect.c (Vselection_coding_system)
23930 (Vnext_selection_coding_system): Delete them.
23931 (syms_of_xselect): Don't declare selection-coding-system and
23932 next-selection-coding-system. They are declared in select.el.
23934 2008-02-01 Jason Rumney <jasonr@gnu.org>
23936 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23938 * w32fns.c: Include imm.h.
23939 (get_composition_string_fn, get_ime_context_fn): New optional
23941 (globals_of_w32fns): Load them from imm32.dll.
23942 (ignore_ime_char): New flag.
23943 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23944 WM_IME_ENDCOMPOSITION messages.
23946 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23947 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23949 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23951 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23952 (READCHAR_REPORT_MULTIBYTE): New macro.
23953 (readchar): New 2nd arg MULTIBYTE.
23954 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23955 Make symbol's name multibyte according to the multibyteness of the
23958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23960 * xfaces.c (face_for_overlay_string): Call lookup_face with
23961 correct arguments (fix of synching with the trunk).
23963 2008-02-01 Kenichi Handa <handa@m17n.org>
23965 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23966 (font_prop_validate_non_neg, font_prop_validate_spacing):
23967 Delete argument prop_index.
23968 (font_property_table): Change arguments to validater. Change Callers.
23969 (font_lispy_object): Delete.
23970 (font_at): Use font_find_object instead fo font_lispy_object.
23972 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23974 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23977 2008-02-01 Jason Rumney <jasonr@gnu.org>
23979 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23980 (font_matches_spec): Remove debug output.
23981 (add_font_entity_to_list): Avoid using substituted fonts.
23983 2008-02-01 Jason Rumney <jasonr@gnu.org>
23985 * doc.c (Fsnarf_documentation):
23986 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23988 2008-02-01 Miles Bader <miles@gnu.org>
23990 * dispextern.h (struct glyph_row): Only define "clip" field if
23991 HAVE_WINDOW_SYSTEM is defined.
23993 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23995 Fix up multi-tty merge.
23997 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24000 * xfaces.c (free_realized_face, clear_face_gcs):
24001 Include font_done_for_face in the input_blocked section, just in case.
24003 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24004 (get_char_face_and_encoding): Undo last change and remove the *other*
24005 duplicate definition (i.e. keep the one that's better scoped and that
24006 includes code for the font-backend).
24008 * terminal.c (create_terminal): Default keyboard_coding to
24009 `no-conversion' and terminal_coding to `undecided'.
24011 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24013 * fontset.c (free_realized_fontsets): Check that the table entry does
24014 contain a fontset before trying to compare it to `base'.
24016 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24017 syms_of_charset, and syms_of_coding earlier because init_window_once
24018 now needs Vcoding_system_hash_table to be setup.
24020 * coding.h (default_buffer_file_coding): Remove.
24022 * coding.c (default_buffer_file_coding): Remove.
24023 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24024 than ->symbol, and use the terminal-local coding system.
24025 (syms_of_coding): Don't setup the coding-systems that are not
24027 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24029 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24030 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24032 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24033 in chartab.c and were re-added here by mistake.
24034 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24036 * doc.c (Fsnarf_documentation):
24037 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24040 * ChangeLog.10: Add mistakenly removed entry.
24042 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24044 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24046 2008-02-01 Miles Bader <miles@gnu.org>
24048 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24049 Add extra args to FACE_FOR_CHAR.
24051 2008-02-01 Kenichi Handa <handa@m17n.org>
24053 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24056 * chartab.c (map_sub_char_table, map_char_table): If the range
24057 contains just one character, call the function with that character
24058 even if the depth is not 3.
24060 2008-02-01 Jason Rumney <jasonr@gnu.org>
24062 * w32font.c (w32font_text_extents): Calculate metrics for the
24065 2008-02-01 Jason Rumney <jasonr@gnu.org>
24067 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24069 2008-02-01 Jason Rumney <jasonr@gnu.org>
24071 * w32term.c (x_set_glyph_string_clipping):
24072 Use get_glyph_string_clip_rects.
24073 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24074 Adjust for the change of struct glyph_string.
24076 * w32font.c (w32font_draw): Do clipping here.
24078 2008-02-01 Kenichi Handa <handa@m17n.org>
24080 * xftfont.c (xftfont_draw): Adjust for the change of struct
24083 * xterm.c (x_set_glyph_string_clipping):
24084 Use get_glyph_string_clip_rects.
24085 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24086 Adjust for the change of struct glyph_string.
24088 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24089 the resulting clip(s}.
24090 (expose_overlaps): Add arg r. Change callers. Set it to
24091 row->clip temporarily.
24092 (expose_window): Redraw rows overlapping the exposed area.
24094 * dispextern.h (struct glyph_row): New member clip.
24095 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24096 clip_height, new member clip, and num_clips.
24098 2008-02-01 Kenichi Handa <handa@m17n.org>
24100 * data.c (Fchar_or_string_p): Fix docstring.
24102 2008-02-01 Kenichi Handa <handa@m17n.org>
24104 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24105 create a temporary XftDraw object.
24107 2008-02-01 Kenichi Handa <handa@m17n.org>
24109 * font.c (Ffontp): Fix docstring.
24111 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24112 strong evidence of ISO-2022.
24114 2008-02-01 Kenichi Handa <handa@m17n.org>
24116 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24117 SYNTAX_ENTRY_FOLLOW_PARENT.
24119 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24121 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24123 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24124 Update to the new type of weak_hash_tables and next_weak.
24126 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24127 a plain C pointer to Lisp_Hash_Table.
24129 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24130 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24131 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24132 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24133 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24134 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24135 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24136 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24137 (GC_EQ): Remove since they've been identical to their non-GC_
24138 alter-egos ever since the markbit was eradicated.
24157 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24159 2008-02-01 Kenichi Handa <handa@m17n.org>
24161 * chartab.c (map_sub_char_table): Make it work for the top-level
24162 char-table. Fix handling of parent char-table.
24163 (map_char_table): Adjust for the above change.
24165 2008-02-01 Jason Rumney <jasonr@gnu.org>
24167 * w32font.c (Qgdi): Rename from Qw32.
24169 2008-02-01 Jason Rumney <jasonr@gnu.org>
24171 * w32bdf.c (get_quoted_string): Make function static.
24173 2008-02-01 Kenichi Handa <handa@m17n.org>
24175 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24176 bigger ascent and descent than those of the font, use them as
24177 font's ascent and descent.
24179 2008-02-01 Kenichi Handa <handa@m17n.org>
24181 * Makefile.in (${lispsource}international/charprop.el): Move this
24182 target within "#ifdef HAVE_UNIDATA" and "#endif".
24184 2008-02-01 Kenichi Handa <handa@m17n.org>
24186 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24187 (shortlisp): Add ../lisp/language/tai-viet.el.
24189 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24191 * Makefile.in (${lispsource}international/charprop.el): Depend on
24194 2008-02-01 Jason Rumney <jasonr@gnu.org>
24196 * w32font.c (w32font_close): Delete the GDI font object.
24198 * w32menu.c: Include character.h.
24200 * w32proc.c: Likewise.
24202 * w32select.c: Likewise.
24204 * makefile.w32-in (w32proc.o): Depend on character.h.
24206 2008-02-01 Jason Rumney <jasonr@gnu.org>
24208 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24210 * w32menu.c (syms_of_w32menu): Likewise.
24212 * w32proc.c (syms_of_ntproc): Likewise.
24214 * w32select.c (syms_of_w32select): Likewise.
24216 * w32term.c (syms_of_w32term): Likewise.
24218 2008-02-01 Jason Rumney <jasonr@gnu.org>
24220 * w32font.c (w32font_draw): Delete brush after using it.
24222 2008-02-01 Jason Rumney <jasonr@gnu.org>
24224 * w32font.c (w32font_open): Don't set font_idx.
24225 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24227 (w32font_draw): Fill background explicitly.
24229 2008-02-01 Jason Rumney <jasonr@gnu.org>
24231 * w32term.c (w32_initialize): Don't call w32font_initialize.
24233 * w32font.c (w32font_info): Remove subranges.
24234 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24235 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24236 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24237 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24238 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24239 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24240 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24241 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24242 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24243 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24245 (font_callback_data): New struct.
24246 (w32font_list, w32font_match): Use it.
24247 (w32font_open): Don't populate subranges.
24248 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24249 (w32font_encode_char): Always return unicode code-point as-is.
24250 (w32font_text_extents): Supply a transformation matrix to
24251 GetGlyphOutline. Never look up by glyph index. Avoid looping
24252 twice. Use unicode version of GetTexExtentPoint32 instead of
24253 glyph index version.
24254 (set_fonts_frame): Remove.
24255 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24256 set frame parameter. Use backward compatible fake foundries.
24257 Save generic family in extra slot under QCfamily. Make width slot
24258 constant. Save QCspacing value. Save list of scripts instead of
24260 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24261 (add_font_entity_to_list): Use font_callback_data struct.
24262 Filter unwanted fonts.
24263 (add_one_font_entity_to_list): Use font_callback_data struct.
24264 (w32_registry): Default to iso10646_1.
24265 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24266 string font registries. Don't fill in font name if it is a generic
24267 family name, fill family instead. Use spacing, family and script
24268 extra info to fill pitch, family and charset fields.
24269 (list_all_matching_fonts): Use font_callback_data struct.
24270 (unicode_range_for_char): Remove.
24271 (font_supported_scripts): New function.
24272 (w32font_initialize): Remove.
24273 (syms_of_w32font): Update which symbols are defined.
24275 2008-02-01 Jason Rumney <jasonr@gnu.org>
24277 * font.c (font_pixel_size): Reverse assq_no_quit args.
24279 * w32term.h (FONT_WIDTH): Report max width, not average.
24280 (FONT_MAX_WIDTH): Remove.
24281 (FONT_AVG_WIDTH): New macro.
24283 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24284 redefinition of FONT_WIDTH.
24286 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24287 (w32_cache_char_metrics): Use FONT_WIDTH.
24289 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24291 2008-02-01 Jason Rumney <jasonr@gnu.org>
24293 * w32font.c (w32font_open): Make lfHeight negative.
24295 * w32fns.c (x_default_font_parameter): Use new style font name.
24296 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24298 2008-02-01 Jason Rumney <jasonr@gnu.org>
24300 * w32font.c (QCsubranges): New symbol.
24301 (w32font_open, w32font_has_char): Get subranges from subproperty
24303 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24304 (syms_of_w32font): Define :subranges symbol.
24306 * font.c (font_put_extra): Expose externally.
24308 * font.h (font_put_extra): Move declaration from font.c.
24310 * font.c (Ffont_get): Use font driver to determine otf capability.
24311 (adjust_anchor): Check if driver defines anchor_point before using.
24313 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24314 (w32font_draw): Use options.
24315 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24316 Fix detection of truetype fonts.
24317 (registry_to_w32_charset): Handle charsets other than iso8859-1
24318 expressed as lisp symbols.
24319 (w32_registry): Express charset as lisp symbol.
24320 (fill_in_logfont): Reverse pixel and point height logic.
24321 Don't set width here. Set quality to default.
24323 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24324 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24326 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24327 Remove redundant loop and allocation.
24329 * makefile.w32-in (font.o, w32font.o): New objects.
24330 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24331 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24333 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24334 STORE_XCHARB a valid l-value.
24336 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24337 calculations for non-Truetype fonts.
24338 (x_draw_glyph_string): Sync with xterm.c.
24339 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24340 Remove redundant code.
24341 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24343 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24344 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24346 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24347 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24349 * w32font.c: New file for w32 font backend.
24351 2008-02-01 Kenichi Handa <handa@m17n.org>
24353 * term.c: Don't include "buffer.h" twice.
24355 2008-02-01 Kenichi Handa <handa@m17n.org>
24357 * character.c (Funibyte_string): New function.
24358 (syms_of_character): Defsubr it.
24360 2008-02-01 Jason Rumney <jasonr@gnu.org>
24362 * w32term.c [USE_FONT_BACKEND]:
24363 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24364 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24365 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24366 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24367 (x_free_frame_resources): Sync with xterm.c.
24369 2008-02-01 Andreas Schwab <schwab@suse.de>
24371 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24374 2008-02-01 Kenichi Handa <handa@m17n.org>
24376 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24378 2008-02-01 Kenichi Handa <handa@m17n.org>
24380 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24381 font_otf_gpos, add font_drive_otf.
24383 * fontset.c (fontset_find_font): Pay attention to font size
24384 specified for a font.
24385 (reorder_font_vector): Check contents of font_def.
24387 * font.c (struct otf_list): Delete it.
24388 (otf_list): Make it a lisp variable.
24389 (otf_open): Use lispy otf_list.
24390 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24391 (check_otf_features): New function.
24392 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24394 (font_drive_otf): New function merging font_otf_gsub and
24396 (font_open_for_lface): New arg spec. Change argument order.
24397 (font_load_for_face): Adjust for the change of font_open_for_lface.
24398 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24400 (syms_of_font): Staticpro otf_list. Delete defsubr of
24401 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24403 * xfaces.c (set_font_frame_param): Adjust for the change of
24404 font_open_for_lface.
24406 * font.h (font_open_for_lface): Adjust prototype.
24407 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24409 (font_otf_gsub, font_otf_gpos): Delete externs.
24410 (font_drive_otf): Extern it.
24412 2008-02-01 Kenichi Handa <handa@m17n.org>
24414 * font.c (font_at): If the window W is not on a window system,
24417 * coding.c (produce_chars, encode_coding): Don't call
24418 insert_from_gap if no characters to produce.
24420 2008-02-01 Kenichi Handa <handa@m17n.org>
24422 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24425 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24427 2008-02-01 Miles Bader <miles@gnu.org>
24429 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24430 Parse "--disable-font-backend" option.
24431 (standard_args): Add "--disable-font-backend" option.
24433 2008-02-01 Kenichi Handa <handa@m17n.org>
24435 * fontset.c (fontset_find_font): New function.
24436 (fontset_font): Use fontset_find_font.
24437 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24438 Register the specified font for all Latin characters.
24439 (new_fontset_from_font): Register the specified font for all Latin
24441 (dump_fontset): For a realized fontset, include the base fontset
24442 name in the returned vector.
24444 2008-02-01 Kenichi Handa <handa@m17n.org>
24446 * character.h (CHAR_STRING): Cast C to unsigned on calling
24449 * character.c (char_string): Type of arg C changed to unsigned.
24450 Signal an error if C is an invalid character code.
24452 * editfns.c (general_insert_function, Fchar_to_string):
24453 Use CHARACTERP, not INTEGERP.
24455 2008-02-01 Kenichi Handa <handa@m17n.org>
24457 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24458 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24460 * regex.c (analyse_first): Fix for multibyte characters in "case
24461 charset:" and "case categoryspec:".
24463 2008-02-01 Andreas Schwab <schwab@suse.de>
24465 * Makefile.in (LIBES): Move standard libraries to the end.
24467 2008-02-01 Kenichi Handa <handa@m17n.org>
24469 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24470 nonzero, don't shrink the buffer nextb.
24472 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24474 * coding.c (coding_alloc_by_making_gap): New arg offset.
24475 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24477 (decode_coding_iso_2022): Update coding->safe_charsets.
24478 (decode_coding_gap): Temporarily set
24479 current_buffer->text->inhibit_shrinking to 1.
24481 2008-02-01 Kenichi Handa <handa@m17n.org>
24483 * xterm.c (x_draw_composite_glyph_string_foreground):
24484 Fix indexing into elements of s->cmp and s->char2b.
24486 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
24488 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24490 2008-02-01 Kenichi Handa <handa@m17n.org>
24492 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24493 target_multibyte instead of multibyte.
24494 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24495 (bcmp_translate): Change the argument name from multibyte to
24498 2008-02-01 Kenichi Handa <handa@m17n.org>
24500 These changes are to compile a regexp into a pattern that can be
24501 used both for multibyte and unibyte targets.
24503 * Makefile.in (search.o): Depend on charset.h.
24505 * character.c (multibyte_char_to_unibyte_safe): New function.
24507 * search.c: Include "charset.h".
24508 (compile_pattern_1): Delete argument multibyte. Don't set
24509 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24510 (compile_pattern): Don't compare cp->buf.target_multibyte.
24511 Compare cp->buf.charset_unibyte.
24512 (compile_pattern): Set cp->buf.target_multibyte.
24514 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24516 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24518 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24519 multibyte. Change callers.
24520 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24521 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24522 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24523 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24524 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24525 (regex_compile): Make the compiled pattern usable both for
24526 multibyte and unibyte targets.
24527 (analyse_first): Make the fastmap usable both for multibyte and
24529 (TRANSLATE_VIA_MULTIBYTE): Delete.
24530 (re_match_2_internal): Pay attention to the case that the
24531 multibyteness of bufp and target may be different.
24533 2008-02-01 Kenichi Handa <handa@m17n.org>
24535 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24536 empty box occupy at least one column width.
24538 2008-02-01 Miles Bader <miles@gnu.org>
24540 * Makefile.in: Remove redundant HAVE_XFT clause.
24542 2008-02-01 Kenichi Handa <handa@m17n.org>
24544 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24546 2008-02-01 Kenichi Handa <handa@m17n.org>
24548 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24551 2008-02-01 Kenichi Handa <handa@m17n.org>
24553 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24555 2008-02-01 Kenichi Handa <handa@m17n.org>
24557 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24559 2008-02-01 Kenichi Handa <handa@m17n.org>
24561 * search.c (simple_search): Fix previous change.
24563 2008-02-01 Kenichi Handa <handa@m17n.org>
24565 * xftfont.c (ftfont_font_format): Extern declaration.
24567 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24569 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24570 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24572 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24573 (ftfont_font_format): Fix previous change.
24575 * font.h (Ffont_xlfd_name): EXFUN it.
24577 * font.c (font_parse_xlfd): Fix the array size of `f'.
24578 (register_font_driver): Use EQ to compare driver->type.
24580 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24581 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24582 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24584 2008-02-01 Kenichi Handa <handa@m17n.org>
24586 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24587 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24589 2008-02-01 Kenichi Handa <handa@m17n.org>
24591 * xfont.c (xfont_open): Set font->format.
24593 * xftfont.c (xftfont_open): Set font->format.
24595 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24596 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24597 (ftfont_open): Set font->format.
24598 (ftfont_font_format): New function.
24600 * font.h (struct font): New member format.
24602 * font.c (Qopentype): New variable.
24603 (syms_of_font): Defsym it.
24604 (Fquery_font): Change the format of the last element of the return
24607 2008-02-01 Kenichi Handa <handa@m17n.org>
24609 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24612 2008-02-01 Kenichi Handa <handa@m17n.org>
24614 * coding.c (detect_coding_charset): Fix detection of multi-byte
24617 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24619 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24621 2008-02-01 Kenichi Handa <handa@m17n.org>
24623 * xdisp.c (get_next_display_element): Set it->face_id for the
24624 first component of a composition.
24625 (x_produce_glyphs): Check if the font is changed or not for composition.
24627 2008-02-01 Kenichi Handa <handa@m17n.org>
24629 * fontset.c (Qlatin): New variable.
24630 (syms_of_fontset): Define it as a lisp symbol.
24631 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24633 2008-02-01 Kenichi Handa <handa@m17n.org>
24635 * font.c (font_unparse_fcname): Pay attention to the case that
24636 some of font property is a null string.
24638 2008-02-01 Kenichi Handa <handa@m17n.org>
24640 * term.c: Include "composite.h".
24641 (encode_terminal_code): Output all components of composition.
24642 Check the size of encode_terminal_src.
24643 (produce_glyphs): For composition, call produce_composite_glyph.
24644 (append_composite_glyph, produce_composite_glyph): New functions.
24646 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24647 is not found, get font_info from the current ascii face.
24649 2008-02-01 Kenichi Handa <handa@m17n.org>
24651 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24652 buffer-file-name to Qnil before calling insert_from_buffer.
24654 * font.c (font_unparse_fcname): Pay attention to the case that
24655 foundry is a null string.
24657 2008-02-01 Kenichi Handa <handa@m17n.org>
24659 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24661 * font.c (Qunicode_sip): New variable.
24662 (syms_of_font): Declare it as a Lisp symbol.
24664 * font.h (Qunicode_sip): Extern it.
24666 2008-02-01 Kenichi Handa <handa@m17n.org>
24668 * composite.c (get_composition_id): Pay attention to TAB component.
24670 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24671 TAB. Adjust for the change of s->char2b which always points to
24672 the first element of allocated memory.
24674 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24676 * xdisp.c (handle_composition_prop): Set it->c to the first
24678 (fill_composite_glyph_string): Change argument.
24679 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24680 (x_produce_glyphs): Fix handling of left/right padding.
24682 2008-02-01 Kenichi Handa <handa@m17n.org>
24684 * coding.c (detect_coding_system): Fix for handling off
24685 inhibit_iso_escape_detection. Fix for the case that no coding
24686 system is defined for a specific coding category.
24688 2008-02-01 Kenichi Handa <handa@m17n.org>
24690 * font.c (font_matching_entity): Delete unused local var.
24692 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24695 * fileio.c (Finsert_file_contents): On recovering a file, assume
24697 (choose_write_coding_system): On auto-saving a file, force
24700 * coding.c (setup_coding_system): Fix setting of
24701 coding->common_flags based on eol_type.
24702 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24705 2008-02-01 Kenichi Handa <handa@m17n.org>
24707 * alloc.c (NSTATICS): Increas to 0x600.
24709 2008-02-01 Kenichi Handa <handa@m17n.org>
24711 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24712 (ftfont_list): Don't check :name property.
24713 (ftfont_match): New function.
24714 (ftfont_pattern_entity): If the pattern doesn't contain
24715 FC_SPACING, don't assume FC_MONO.
24717 * font.h (struct font_driver): New member `match'.
24718 (font_update_drivers): Adjust prototype.
24720 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24722 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24723 Define them unconditionally.
24724 (font_matching_entity): New function.
24725 (font_open_by_name): Try font_matching_entity if exact match is
24727 (font_update_drivers): Delete the arg FONT. Return a list of
24728 actually used backends. Don't free faces, font caches here.
24729 Don't store data in frame parameters. Don't call x_set_font.
24730 (Ffont_spec): Store :name property as is.
24731 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24732 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24733 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24734 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24735 Call font->driver->otf_gsub instead of font_otf_gsub.
24737 * frame.c (x_set_font_backend): Do more works that were done in
24738 font_update_drivers before.
24740 * xfont.c (xfont_match): New function.
24741 (xfont_driver): Set xfont_driver.match to xfont_match.
24742 (xfont_draw): Set font in GC if necessary.
24744 * ftxfont.c (ftxfont_match): New function.
24745 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24747 * xftfont.c (xftfont_match): New function.
24748 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24750 2008-02-01 Kenichi Handa <handa@m17n.org>
24752 * font.h (struct font): New member scalable.
24753 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24754 (font_otf_gsub): Adjust prototype.
24756 * font.c (font_otf_capability): Fix handling of the default langsys.
24757 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24758 Check the contents of SPEC.
24759 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24760 (check_gstring): New function.
24761 (REPLACEMENT_CHARACTER): New macro.
24762 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24763 glyph codes of GSTRING.
24764 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24765 (font_prepare_composition): Set cmp->glyph_len.
24766 (font_open_entity): Set font->scalable.
24767 (Ffont_get): Handle :otf property.
24768 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24770 (Fquery_font): Use font->font.full_name.
24771 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24772 Sfont_otf_alternates.
24774 * ftfont.c (ftfont_open): Set font->font.full_name and
24775 font->font.name properly. Fix calculation of font->font.height
24776 and font->min_width.
24778 * ftxfont.c (ftxfont_create_gcs): New function.
24779 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24780 (ftxfont_draw_backgrond): Fix filling region.
24781 (ftxfont_default_fid): New function.
24782 (ftxfont_open): Set xfont->fid to the return value of
24783 ftxfont_default_fid.
24784 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24785 (ftxfont_done_face): Free only GCs that are created by
24786 ftxfont_create_gcs.
24787 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24789 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24790 Clip to src->width, etc (not src->clip_XXX).
24792 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24793 FontBackend frame parameter.
24795 2008-02-01 Kenichi Handa <handa@m17n.org>
24797 * font.h (struct font_driver_list): New member `on'.
24798 (Fclear_font_cache): EXFUN it.
24799 (font_update_drivers): Extern it.
24801 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24802 (font_list_entities): Check driver_list->on.
24803 (register_font_driver): Initialize `on' member to 0.
24804 (font_update_drivers): New function.
24805 (Fclear_font_cache): Check driver_list->on.
24807 * frame.h (Qfont_backend): Extern it.
24808 (x_set_font_backend): Extern it.
24810 * frame.c (Qfont_backend): New variable.
24811 (frame_parms): New element for font-backend.
24812 (x_set_font_backend): New function.
24814 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24815 FontBackend frame parameter.
24816 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24817 x_set_font_backend.
24819 * xfont.c (xfont_list): Don't try listing by :name property if the
24820 name is not for XLFD.
24822 2008-02-01 Kenichi Handa <handa@m17n.org>
24824 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24825 (LGLYPH_SET_TO): New macros.
24826 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24827 element of G is vector or not.
24828 (font_at): Extern it.
24830 * font.c: Include window.h.
24831 (font_lispy_object): New function.
24832 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24833 end of valid glyph.
24834 (font_close_object): Fix getting (struct font *).
24835 (font_at): New function.
24836 (Ffont_get): If FONT is a font-object, get entity from it.
24837 (Ffont_make_gstring): Initialize elements of glyphs with nil.
24838 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24840 (Ffont_at): New function.
24841 (syms_of_font): Defsubr Sfont_at.
24843 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24844 before the entry for Qcomposition.
24845 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24846 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24847 the font in gstring.
24848 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24849 LGLYPH_FORM (g) to detect the end of valid glyph.
24850 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24851 we are composing with gstring.
24853 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24854 Check if adjustment is vector or not.
24856 * Makefile.in (font.o): Make it depends on window.h.
24858 2008-02-01 Kenichi Handa <handa@m17n.org>
24860 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24861 adjustment is vector or not.
24863 2008-02-01 Miles Bader <miles@gnu.org>
24865 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24867 2008-02-01 Kenichi Handa <handa@m17n.org>
24869 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
24870 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
24871 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24873 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24874 (DEVICE_DELTA): Fix typo.
24875 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24878 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24879 the change of LGLYPH format.
24881 2008-02-01 Kenichi Handa <handa@m17n.org>
24883 * ftfont.c (ftfont_list): Fix typo.
24884 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24886 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24888 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24890 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24891 xftface_info is non-NULL.
24893 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24895 * ftfont.c (ftfont_list): Move misplaced #endif.
24897 2008-02-01 Kenichi Handa <handa@m17n.org>
24899 * ftfont.c (ftfont_list): Pay attention to the case that
24900 FC_CAPABILITY is not defined.
24902 2008-02-01 Kenichi Handa <handa@m17n.org>
24904 * xftfont.c (xftfont_open): Set charset related members to -1.
24906 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24908 (ftfont_open): Set charset related members to -1.
24910 * fontset.c (Votf_script_alist): New variable.
24911 (syms_of_fontset): Initialize it.
24912 (fontset_font): Delete unused variable.
24914 * fontset.h (Votf_script_alist): Extern it.
24916 * font.c (font_find_for_lface): Optimize code.
24918 * font.h (font_close_object, font_merge_old_spec): Extern them.
24920 2008-02-01 Kenichi Handa <handa@m17n.org>
24922 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24923 (syms_of_font): Initialize them.
24924 (font_pixel_size): Allow float value in dpi.
24925 (font_prop_validate_type): Delete.
24926 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24928 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24929 (font_prop_validate_extra): Delete.
24930 (font_prop_validate_spacing): New function.
24931 (font_property_table): Add elements for all known properties.
24932 (get_font_prop_index): Rename from check_font_prop_name.
24933 New argument FROM. Change caller.
24934 (font_prop_validate): Validate all known properties.
24935 (font_put_extra): Delete argument force. Change caller.
24936 (font_expand_wildcards): Make it static. Fix the way of shrinking
24937 the possible range.
24938 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24939 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24941 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24942 (font_parse_fcname): Delete argument merge. Fix parsing of point
24943 size. Don't validate properties values here. Change caller.
24944 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24945 (font_open_by_name): Delete unused variable.
24946 (Ffont_spec): Likewise. Validate property values.
24947 (Ffont_match_p): New function.
24949 * font.h (QCscalable): Extern it.
24950 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24952 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24954 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24955 (xfont_list_pattern): New function.
24956 (xfont_list): Use xfont_list_pattern.
24958 2008-02-01 Kenichi Handa <handa@m17n.org>
24960 * font.h (Flist_fonts): EXFUN it.
24962 2008-02-01 Jason Rumney <jasonr@gnu.org>
24964 * w32term.c (w32_initialize): Add back smoothing_type and
24965 smoothing_enabled definitions.
24967 2008-02-01 Kenichi Handa <handa@m17n.org>
24969 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24970 s->face->font on determining underline position.
24972 2008-02-01 Kenichi Handa <handa@m17n.org>
24974 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24975 (font_has_char): Accept font-object too.
24976 (font_find_for_lface): Try at first with a size specified in face.
24978 2008-02-01 Kenichi Handa <handa@m17n.org>
24980 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24983 2008-02-01 Kenichi Handa <handa@m17n.org>
24985 * font.h (QCspacing, QCdpi): Extern them.
24986 (enum font_spacing): New enum.
24987 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24989 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24990 (QCspacing, QCdpi): New variables.
24991 (syms_of_font): Initialize them.
24992 (font_pixel_size): New function.
24993 (font_put_extra): New function.
24994 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24996 (font_parse_fcname): Handle enumerated values (e.g. bold).
24997 Fix handling font size. Add QCname property that contains only
24998 unknown properties.
24999 (font_score): Change argument. Change caller. Pay attention to
25000 FONT_PIXEL_SIZE_QUANTUM.
25001 (font_sort_entites, font_list_entities, font_find_for_lface)
25002 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25003 (Ffont_spec): Add QCname property that contains only unknown properties.
25005 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25006 Don't include weight in listing pattern, instead check weight of each
25007 listed font. Don't include scalable in pattern. Pay attention to
25008 FONT_PIXEL_SIZE_QUANTUM.
25010 2008-02-01 Kenichi Handa <handa@m17n.org>
25012 * font.c (font_parse_fcname): Fix parsing of point-size.
25013 (font_unparse_fcname): Produce symbolic names for style properties.
25014 (font_list_entities): Handle float size correctly.
25015 (font_open_by_name): Prefer `normal' property values if the name
25016 doesn't specify them.
25018 * fontset.c (Finternal_char_font): Use font_get_name, not
25021 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25022 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25023 pattern. Don't force scalable.
25025 * xftfont.c (xftfont_open): For generating a name, start from
25028 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25030 * frame.h (x_new_fontset2): Fix prototype.
25032 2008-02-01 Kenichi Handa <handa@m17n.org>
25034 * font.h (struct font_driver): Delete member parse_name.
25035 (font_match_p, font_get_spec, font_parse_fcname)
25036 (font_unparse_fcname): Extern them.
25037 (font_get_name): Adjust prototype.
25039 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25040 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25041 (font_expand_wildcards): Fix handling ENCODING field.
25042 Avoid unnecessary checks for weight, slant, and swidth.
25043 (font_parse_fcname): New function.
25044 (font_unparse_fcname): New function.
25045 (font_parse_name): New function.
25046 (font_match_p): New function.
25047 (font_get_name): Change return value to Lisp string.
25048 (font_get_spec): New function.
25049 (Qunspecified, Qignore_defface): Don't extern them.
25050 (font_find_for_lface): Assume that LFACE is fully specified.
25051 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25052 object, use it for FACE.
25053 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25054 driver->parse_name.
25055 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25057 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25060 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25061 argument F. Don't call Fnew_fontset. Instead, directly call
25064 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25066 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25069 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25070 (Qsans__serif): New variables.
25071 (ftfont_generic_family_list): New variable.
25072 (syms_of_ftfont): Initialize the above variables.
25073 (ftfont_pattern_entity): Delete argument NAME.
25074 (ftfont_list_generic_family): New function.
25075 (ftfont_parse_name): Delete this function.
25076 (ftfont_list): Try generic family only when FcFontList found no font.
25077 (ftfont_list_family): Fix args to FcObjectSetBuild.
25079 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25080 object in attrs[LFACE_FONT_INDEX].
25081 (set_lface_from_font_name): Cancel all changes for font-backend.
25082 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25084 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25085 font object in QCfont attribute.
25086 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25087 (realize_default_face) [USE_FONT_BACKEND]: Call
25088 set_lface_from_font_and_fontset.
25090 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25091 "fixed", and signal error here if no suitable font was found.
25093 * xfont.c (xfont_parse_name): Delete this function.
25095 * xftfont.c (xftfont_open): Change coding style of error
25096 handling. Generate fontconfig's fontname pattern.
25098 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25099 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25101 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25102 Both args FONTSET and FONT_OBJECT must be existing ones.
25104 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25106 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25108 2008-02-01 Kenichi Handa <handa@m17n.org>
25110 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25112 * font.h (struct font): Fix typo.
25114 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25116 (enum xlfd_field_mask): New enum.
25117 (intern_font_field): Change argument. Change caller. If digits
25118 are followed by non-digits, return a symbol.
25119 (font_expand_wildcards): New function.
25120 (font_parse_xlfd): Fix wildcard handling.
25121 (Ffont_spec): If :name is specified, reflect the info in the other
25124 * ftfont.c (ftfont_pattern_entity): Fix typo.
25125 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25128 2008-02-01 Kenichi Handa <handa@m17n.org>
25130 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25132 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25133 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25134 registry doesn't specify encoding part.
25135 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25136 (font_open_by_name): At first try parsing the name.
25137 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25140 * fontset.c (reorder_font_vector): Pay attention to the case that
25141 the 3rd element of font_def is nil.
25142 (fontset_font): For the default fontset, append one more fontset
25143 elements for a script-based font specification. Don't add script
25144 attribute on finding a font.
25145 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25147 (fontset_ascii_font): If a font can't be opened, return nil.
25149 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25150 (ftfont_pattern_entity): New function.
25151 (ftfont_get_cache): Assume that freetype_font_cache is already
25153 (ftfont_list): Handle the case that a file is specified in font
25154 name. Use ftfont_pattern_entity to generate entities.
25155 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25156 (syms_of_ftfont): Initialize freetype_font_cache.
25158 * xftfont.c (xftfont_open): Make the font name fontconfig's
25159 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25160 (xftfont_close): Free font->font.name if not NULL.
25162 * xfont.c (xfont_list): If script is specified for a font, return
25164 (xfont_list_family): Declare argument type.
25166 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25167 name, set LFACE_FONT (lface) to nil.
25169 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25172 2008-02-01 Kenichi Handa <handa@m17n.org>
25174 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25175 (standard_args): Add "-enable-font-backend".
25177 2008-02-01 Kenichi Handa <handa@m17n.org>
25179 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25180 (struct xftdraw_list, xftdraw_list): Delete them.
25181 (register_xftdraw, check_xftdraw): Delete them.
25182 (xftfont_prepare_face): Don't call register_xftdraw.
25183 (xftfont_done_face): Don't call check_xftdraw.
25184 (xftfont_draw): Get background color only when with_background is
25187 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25189 2008-02-01 Kenichi Handa <handa@m17n.org>
25191 These changes are for the new font handling codes.
25193 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25194 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25195 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25196 (FONTSRC, FONTOBJ): New variables.
25197 (obj): Add $(FONTOBJ).
25198 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25199 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25201 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25202 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25204 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25206 * character.h (Vscript_representative_chars): Extern it.
25208 * character.c (Vscript_representative_chars): New variable.
25209 (syms_of_character): Declare it as a Lisp variable.
25211 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25212 enable_font_backend is nonzero, accept the composition method
25213 COMPOSITION_WITH_GLYPH_STRING.
25215 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25216 enumeration COMPOSITION_WITH_GLYPH_STRING.
25218 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25219 members clip_x, clip_y, clip_width, and clip_height.
25220 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25222 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25223 --enable-font-backend. Call syms_of_font.
25225 * fns.c (assoc_no_quit): New function.
25227 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25228 (face_for_font, new_fontset_from_font)
25229 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25231 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25232 (fontset_font, fontset_ascii, face_for_char)
25233 (make_fontset_for_ascii_face, Ffont_info)
25234 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25235 is nonzero, use font-backend mechanism.
25236 (find_font_encoding): Make it non-static.
25237 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25240 * frame.h (struct frame): New members resx and resy.
25241 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25242 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25244 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25245 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25247 * lisp.h (assoc_no_quit): Extern it.
25249 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25250 Through out the file, use FONT_INFO_FROM_FACE instead of
25251 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25252 rif->per_char_metric.
25253 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25254 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25255 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25256 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25257 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25258 nonzero, use font-backend mechanism.
25259 (get_per_char_metric): New function.
25261 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25262 (set_lface_from_font_name)
25263 (set_font_frame_param, free_realized_face)
25264 (prepare_face_for_display, clear_face_gcs)
25265 (Finternal_set_font_selection_order, realize_x_face)
25266 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25267 font-backend mechanism.
25268 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25269 (load_face_font) [USE_FONT_BACKEND]: Abort.
25270 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25271 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25273 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25274 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25275 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25276 nonzero, register all available font drivers.
25277 Call x_default_font_parameter for deciding a font.
25278 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25280 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25281 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25282 (x_set_glyph_string_clipping_exactly)
25283 (x_compute_glyph_string_overhangs)
25284 (x_draw_glyph_string_foreground)
25285 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25286 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25287 enable_font_backend is nonzero, use font-backend mechanism.
25288 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25290 2008-02-01 Kenichi Handa <handa@m17n.org>
25292 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25294 (syms_of_coding): Initialize system_eol_type.
25296 * process.c (Fset_process_coding_system): Inherit system's eol
25297 format if necessary.
25299 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25301 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25303 2008-02-01 Kenichi Handa <handa@m17n.org>
25305 * coding.c (decode_eol): Pay attention to buffer relocation in
25307 (decode_coding): Call decode_eol before restoring undo_list.
25309 2008-02-01 Kenichi Handa <handa@m17n.org>
25311 * charset.c (Fdefine_charset_internal): Fix setting of
25314 2008-02-01 Kenichi Handa <handa@m17n.org>
25316 * keyboard.c (read_char): Check if C is a character or not before
25317 looking up Vkeyboard_translate_table.
25319 2008-02-01 Kenichi Handa <handa@m17n.org>
25321 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25322 Fix condition to terminate the loop.
25324 2008-02-01 Kenichi Handa <handa@m17n.org>
25326 * coding.c (produce_composition): Compare charbuf[i] instead of
25328 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25330 2008-02-01 Kenichi Handa <handa@m17n.org>
25332 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25333 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25334 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25336 (emacs_mule_char): Handle old style (Emacs 20) component character
25338 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25339 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25341 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25343 2008-02-01 Kenichi Handa <handa@m17n.org>
25345 * coding.c (encode_coding_ccl): Allocate destination dynamically
25348 2008-02-01 Kenichi Handa <handa@m17n.org>
25350 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25351 the loop. When quitted, show a proper error message.
25353 2008-02-01 Kenichi Handa <handa@m17n.org>
25355 * xterm.c (x_set_glyph_string_clipping_exactly):
25356 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25358 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25359 character sequence.
25360 (Fccl_execute_on_string): Use ASET, not XSET.
25362 2008-02-01 Kenichi Handa <handa@m17n.org>
25364 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25366 2008-02-01 Kenichi Handa <handa@m17n.org>
25368 * coding.c (decode_coding): Fix the condition of terminating the
25371 2008-02-01 Kenichi Handa <handa@m17n.org>
25373 * data.c (Faset): On setting a character bigger than 255 in a
25374 unibyte string, signal an error instead of make the string multibyte.
25376 2008-02-01 Kenichi Handa <handa@m17n.org>
25378 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25379 made by a mapping table.
25381 2008-02-01 Kenichi Handa <handa@m17n.org>
25383 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25385 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25386 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25388 * xterm.c (x_draw_composite_glyph_string_foreground):
25389 Check s->face is NULL or not.
25391 2008-02-01 Kenichi Handa <handa@m17n.org>
25393 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25394 (x_draw_glyph_string): Fix drawing of right_overhang and
25395 left_overhang around/on cursor.
25397 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25399 2008-02-01 Kenichi Handa <handa@m17n.org>
25401 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25403 2008-02-01 Kenichi Handa <handa@m17n.org>
25405 * coding.c (Fdefine_coding_system_internal)
25406 (Fdefine_coding_system_alias): Avoid a duplicated element in
25407 Vcoding_system_alist.
25409 2008-02-01 Kenichi Handa <handa@m17n.org>
25411 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25413 * coding.c (Qcoding_system_define_form): New variable.
25414 (syms_of_coding): Intern and staticpro it.
25415 (Fcoding_system_p): Check Qcoding_system_define_form.
25416 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25418 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25420 (CHECK_CODING_SYSTEM): If ID is not available, call
25421 Fcheck_coding_system.
25422 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25423 Try also Fcheck_coding_system.
25425 2008-02-01 Kenichi Handa <handa@m17n.org>
25427 * coding.c (code_conversion_restore): GCPRO arg.
25429 2008-02-01 Kenichi Handa <handa@m17n.org>
25431 * character.c (lisp_string_width): Check multibyteness of STRING.
25433 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25435 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25436 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25437 (decode_mac_font_name): Use decode_coding_c_string instead of
25439 (x_load_font): Initialize fontp->fontset to -1.
25440 Set fontp->encoding_type.
25442 2008-02-01 Kenichi Handa <handa@m17n.org>
25444 * search.c (search_buffer): Give up BM search on case-fold-search
25445 if one of a target character has a case-equivalence of different
25446 byte length even if that target character is an ASCII.
25447 (simple_search): Fix calculation of byte length of matched text.
25448 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25450 2008-02-01 Kenichi Handa <handa@m17n.org>
25452 * coding.c (decode_coding): Fix handling of invalid bytes.
25454 2008-02-01 Kenichi Handa <handa@m17n.org>
25456 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25457 Unicode characters.
25459 2008-02-01 Kenichi Handa <handa@m17n.org>
25461 * coding.c (encode_coding_object): If a pre-write-conversion
25462 function makes a new buffer, kill it.
25464 2008-02-01 Kenichi Handa <handa@m17n.org>
25466 * coding.c (QCascii_compatible_p): New variable.
25467 (syms_of_coding): Initialize it.
25468 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25469 calling string_char.
25470 (record_conversion_result): Add `default:' case.
25471 (coding_charset_list): Delete unused variable `coding_type'.
25472 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25473 property in the plist of the coding system.
25474 (Fcoding_system_put): Check QCascii_compatible_p.
25476 2008-02-01 Miles Bader <miles@gnu.org>
25478 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25479 removed calculation of frame `f', as it's now used.
25481 2008-02-01 Kenichi Handa <handa@m17n.org>
25483 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25484 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25485 (UNIDATA): New variable.
25486 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25487 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25488 Run $(RUN_TEMACS) unconditionally.
25490 2008-02-01 Kenichi Handa <handa@m17n.org>
25492 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25493 (admindir): New variable.
25494 ($(lispsource)international/charprop.el): New target.
25496 2008-02-01 Miles Bader <miles@gnu.org>
25498 * character.c (chars-in-region): Remove obsolete function.
25499 (syms_of_character): Remove its initialization.
25501 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25503 * w32select.c (validate_coding_system)
25504 (setup_windows_coding_system): New functions.
25505 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25506 Use setup_windows_coding_system.
25507 (setup_config, Fw32_get_clipboard_data):
25508 Use validate_coding_system.
25509 (Fx_selection_exists): Move call to setup_config to a place
25510 where signals are allowed.
25512 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25513 (Fcheck_coding_system): Add declarations.
25515 2008-02-01 Kenichi Handa <handa@m17n.org>
25517 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25519 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25521 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25522 string as the second argument for x_new_fontset.
25524 2008-02-01 Kenichi Handa <handa@m17n.org>
25526 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25527 (encode_coding_object): Use safe_call instead of call2.
25529 2008-02-01 Kenichi Handa <handa@m17n.org>
25531 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25533 * Makefile.in (lisp): Include charprop.el.
25535 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25537 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25538 Not sure if it's unnecessary.
25540 2008-02-01 Steven Tamm <steventamm@mac.com>
25542 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25543 some possibly unnecessary fontset checking code that crashed
25544 when creating a new frame.
25546 2008-02-01 Kenichi Handa <handa@m17n.org>
25548 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25551 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25553 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25555 2008-02-01 Kenichi Handa <handa@m17n.org>
25557 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25558 (coding_charset_list): New function.
25560 * coding.h (coding_charset_list): Extern it.
25562 2008-02-01 Kenichi Handa <handa@m17n.org>
25564 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25565 concatenation of family and registry.
25567 2008-02-01 Kenichi Handa <handa@m17n.org>
25569 * character.h (BYTE8_STRING): Fix typo.
25571 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25572 string to multibyte (sync to HEAD).
25574 * casefiddle.c (casify_region): Handle changes in byte-length
25575 using replace_range_2 (sync to HEAD).
25577 2008-02-01 Andreas Schwab <schwab@suse.de>
25579 * chartab.c (map_char_table): GCPRO table and arg.
25581 2008-02-01 Kenichi Handa <handa@m17n.org>
25583 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25586 2008-02-01 Kenichi Handa <handa@m17n.org>
25588 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25589 instead of fast_c_string_match_ignore_case.
25590 (find_font_encoding): Change argument to Lisp_Object.
25591 Use fast_string_match_ignore_case instead of
25592 fast_c_string_match_ignore_case. Change caller.
25594 2008-02-01 Kenichi Handa <handa@m17n.org>
25596 * xdisp.c (get_next_display_element): In unibyte case, decide to
25597 display in octal form by checking a character by
25598 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25600 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25602 * character.c (unibyte_has_multibyte_table): New variable.
25604 * character.h (unibyte_has_multibyte_table): Extern it.
25605 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25607 2008-02-01 Kenichi Handa <handa@m17n.org>
25609 * coding.c (encode_coding_iso_2022): Fix handling of charset
25612 2008-02-01 Kenichi Handa <handa@m17n.org>
25614 * coding.c (setup_coding_system): If coding_system is nil, use
25616 (Fterminal_coding_system): Return nil if terminal coding system is
25618 (syms_of_coding): Define coding-system `undecided' here.
25619 Setup terminal_coding as `undecided'.
25621 2008-02-01 Kenichi Handa <handa@m17n.org>
25623 * xdisp.c (message_dolog, set_message_1):
25624 Call unibyte_char_to_multibyte with arg type int.
25626 * lread.c (read1): Fix reading of a char-table.
25628 * print.c (print_object): Include sub char-table in circularities
25631 2008-02-01 Kenichi Handa <handa@m17n.org>
25633 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25634 Append the found sequences in car of ARGS instead of prepending.
25636 2008-02-01 Kenichi Handa <handa@m17n.org>
25638 * fileio.c (report_file_error): Make a unibyte string from
25639 strerror (errorno).
25640 (Fsubstitute_in_file_name): Fix the arg to
25641 unibyte_char_to_multibyte. It is evaluated twice.
25643 2008-02-01 Kenichi Handa <handa@m17n.org>
25645 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25647 2008-02-01 Kenichi Handa <handa@m17n.org>
25649 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25651 (detect_coding, detect_coding_system): Optimization for ISO-2022
25652 when no 8-bit data is found.
25654 2008-02-01 Jason Rumney <jasonr@gnu.org>
25656 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25658 2008-02-01 Kenichi Handa <handa@m17n.org>
25660 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25663 2008-02-01 Steven Tamm <steventamm@mac.com>
25665 * macterm.c (mac_encode_char): Add charset argument and update
25666 to use encoding_type.
25667 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25668 switch to pure fontset.
25669 (decode_mac_font_name): Temporarily remove decoding.
25670 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25671 (x_load_font): Temporarily remove encoding.
25673 2008-02-01 Kenichi Handa <handa@m17n.org>
25675 * xfaces.c (Fface_font): If frame is not on a window system,
25676 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25677 refer to face->font.
25678 (split_font_name_into_vector, build_font_name_from_vector)
25679 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25680 when HAVE_WINDOW_SYSTEM is defined.
25682 2008-02-01 Kenichi Handa <handa@m17n.org>
25684 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25685 (x_produce_glyphs): Fix setting of members of cmp in case
25686 cmp->glyph_len is zero.
25688 * fontset.c (Fset_fontset_font): Fix docstring.
25689 (Ffontset_info): Make it backward compatible. New arg ALL.
25691 2008-02-01 Kim F. Storm <storm@cua.dk>
25693 * process.c (read_process_output): Grow decoding_buf when needed;
25694 this could cause a crash in allocate_string and compact_small_strings.
25696 2008-02-01 Kenichi Handa <handa@m17n.org>
25698 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25700 2008-02-01 Kenichi Handa <handa@m17n.org>
25702 * coding.c (setup_coding_system): Set coding->common_flags
25703 correctly for raw-text.
25704 (consume_chars): On encoding unibyte text by raw-text, don't check
25706 (encode_coding): On encoding by raw-text, never use translation tables.
25708 * fileio.c (e_write): Short cut for the case of no encoding.
25710 2008-02-01 Kenichi Handa <handa@m17n.org>
25712 * coding.c (detect_coding, detect_coding_system): Delete unused
25715 2008-02-01 Kenichi Handa <handa@m17n.org>
25717 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25718 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25720 2008-02-01 Kenichi Handa <handa@m17n.org>
25722 * coding.c (Ffind_coding_systems_region_internal):
25723 Include raw-text and no-conversion in the result.
25725 2008-02-01 Kenichi Handa <handa@m17n.org>
25727 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25728 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25730 (font_def_arg, add_arg, from_arg, to_arg): New args.
25731 (set_fontset_font): Change argument.
25732 (Fset_fontset_font): Fix for the case that TARGET is a script
25733 name and charset name.
25734 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25736 2008-02-01 Kenichi Handa <handa@m17n.org>
25738 * fontset.c (fontset_font): Rename from fontset_face. Change return
25740 (face_suitable_for_char_p, face_for_char): Adjust for the change
25742 (make_fontset_for_ascii_face): Fix setting of the fontset element
25744 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25745 to get a font name.
25746 (Ffontset_info): Adjust for the change of fontset_font.
25748 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25750 * character.h (LEADING_CODE_LATIN_1_MIN)
25751 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25753 2008-02-01 Kenichi Handa <handa@m17n.org>
25755 * editfns.c (check_translation): New function.
25756 (Ftranslate_region_internal): Handle M:N mapping.
25758 2008-02-01 Kenichi Handa <handa@m17n.org>
25760 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25762 2008-02-01 Kenichi Handa <handa@m17n.org>
25764 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25766 (decode_coding_iso_2022): Fix handling of invalid designation.
25768 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25769 after calling code_conversion_save.
25771 2008-02-01 Kenichi Handa <handa@m17n.org>
25773 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25775 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25777 * fontset.c: Include "intervals.h".
25778 (fontset_face): Fix comparing of Lisp_Objects.
25779 (free_face_fontset, new_fontset_from_font_name):
25780 Fix Lisp_Object/int mixup.
25782 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25784 * coding.c: Add many prototypes for static functions.
25785 (get_translation_table): Allow max_lookup to be NULL.
25786 (decode_coding, Ffind_coding_systems_region_internal)
25787 (Funencodable_char_position, Fcheck_coding_systems_region):
25788 Call get_translation_table with max_lookup NULL.
25790 2008-02-01 Kenichi Handa <handa@m17n.org>
25792 * coding.c (get_translation_table): Declare it as Lisp_Object.
25793 (LOOKUP_TRANSLATION_TABLE): New macro.
25794 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25795 instead of CHAR_TABLE_REF.
25797 2008-02-01 Kenichi Handa <handa@m17n.org>
25799 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25800 annotation data format.
25801 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25802 Change arguments FROM and TO to single argument NCHARS. Change caller.
25803 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25804 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25805 (decode_coding_ccl, decode_coding_charset): Pay attention to
25806 coding->charbuf_used.
25807 (get_translation): New function.
25808 (produce_chars): New arguments translation_table and last_block.
25809 Translate characters here. Return number of carryover chars.
25811 (produce_composition): New argument pos. Change caller.
25812 Adjust for the change of annotation data format.
25813 (produce_charset, produce_annotation): Likewise.
25814 (decode_coding, encode_coding): Don't call translate_chars.
25815 (consume_chars): New arg translation_table. Change caller.
25816 (translate_chars): Delete.
25817 (syms_of_coding): Make translation-table's number of extra slots 2.
25819 2008-02-01 Kenichi Handa <handa@m17n.org>
25821 * search.c (simple_search): Fix setting this_pos_byte in backward
25824 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25826 (detect_coding_ccl): Fix setting of the variable valids.
25828 2008-02-01 Kenichi Handa <handa@m17n.org>
25830 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25832 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25834 * editfns.c (Ftranslate_region_internal): Rename from
25835 Ftranslate_region. Accept a char-table in TABLE.
25836 (syms_of_editfns): Defsubr Stranslate_region_internal.
25838 * xfaces.c (set_lface_from_font_name): If a font is specified for
25839 a frame, generate a fontset from the font.
25840 (build_scalable_font_name): If the scalable font is requested for
25841 a specific size, don't change that size.
25842 (try_font_list): Try a scalable font also in the case that a
25843 pattern string is specified.
25845 2008-02-01 Kenichi Handa <handa@m17n.org>
25847 * xfaces.c (Fface_font): New optional arg CHARACTER.
25849 2008-02-01 Kenichi Handa <handa@m17n.org>
25851 * charset.h (CHARSET_OFFSET): New macro.
25853 2008-02-01 Kenichi Handa <handa@m17n.org>
25855 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25857 * fontset.c (fontset_face): Handle the case that repertory is a
25859 (find_font_encoding): Return nil for unknown encoding.
25860 (Fset_fontset_font): Ignore a font of unknown encoding.
25862 2008-02-01 Kenichi Handa <handa@m17n.org>
25864 * keymap.c (describe_vector): Handle default value of a char table.
25866 * fontset.c (fontset_face): Handle fallback fonts correctly.
25867 (Ffontset_info): Return infomation about fallback fonts.
25869 2008-02-01 Kenichi Handa <handa@m17n.org>
25871 * fontset.c (FONTSET_DEFAULT): New macro.
25872 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25873 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25874 the case that it is nil.
25875 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25876 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25878 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25879 subset or superset.
25881 2008-02-01 Kenichi Handa <handa@m17n.org>
25883 * emacs.c (main): Call init_charset after syms_of_XXX.
25885 * charset.c (Vcharset_map_directory): Delete.
25886 (Vcharset_map_path): New variable.
25887 (load_charset_map_from_file): Use Vcharset_map_path instead.
25888 (init_charset): Initialize Vcharset_map_path.
25889 (syms_of_charset): Delete declaration of "charset-map-directory",
25890 add declaration of "charset-map-path".
25892 2008-02-01 Kenichi Handa <handa@m17n.org>
25894 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25897 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25899 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25900 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25902 2008-02-01 Kenichi Handa <handa@m17n.org>
25904 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25906 * coding.c (QCmnemonic, QCdefalut_char)
25907 (QCdecode_translation_table, QCencode_translation_table)
25908 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25909 (get_translation_table): Return a list of translation tables if
25911 (decode_coding): Call get_translation_table with ENCODEP 0.
25912 (char_encodable_p): If translation_table is non-nil, always call
25914 (Fdefine_coding_system_internal): Accept list of translation
25915 tables as :encode-translation-table and :decode-translation-table.
25916 (Fcoding_system_put): New function.
25917 (syms_of_coding): Declare new symbols.
25918 Defsubr Scoding_system_put.
25919 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25920 typically JISX0212.
25922 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25923 when the charset is superset type.
25925 * character.c (translate_char): Accept list of translation tables.
25927 2008-02-01 Kenichi Handa <handa@m17n.org>
25929 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25930 (CODING_ATTR_TRANS_TBL): New macro.
25932 * coding.c (get_translation_table): New function.
25933 (translate_chars): Fix the bug of skipping annotation data.
25934 (decode_coding, encode_coding): Utilize get_translation_table.
25935 (char_encodable_p, Funencodable_char_position): Translate char if
25937 (Ffind_coding_systems_region_internal)
25938 (Fcheck_coding_systems_region): Setup translation table for encode
25939 in a coding system attribute vector in advance.
25940 (Fdefine_coding_system_internal): Allow a symbol as translation
25941 table. For shift-jis type coding system, allow 4th charset.
25943 2008-02-01 Kenichi Handa <handa@m17n.org>
25945 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25947 * xdisp.c (get_next_display_element): Pass -1 as POS to
25948 FACE_FOR_CHAR if displaying a C-string.
25950 2008-02-01 Kenichi Handa <handa@m17n.org>
25952 * composite.c (get_composition_id): Handle xoff and yoff in a
25955 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25956 (struct composition): New member lbearing and rbearing.
25958 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25959 (x_get_glyph_overhangs): Handle a composition glyph.
25960 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25962 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25965 2008-02-01 Kenichi Handa <handa@m17n.org>
25967 * print.c: Include charset.h.
25968 (Vprint_charset_text_property): New variable.
25969 (Qdefault): Extern it.
25970 (PRINT_STRING_NON_CHARSET_FOUND)
25971 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25972 (print_check_string_result): New variable.
25973 (print_check_string_charset_prop): New function.
25974 (print_prune_charset_plist): New variable.
25975 (print_prune_string_charset): New function.
25976 (print_object): Call print_prune_string_charset if
25977 Vprint_charset_text_property is not t.
25978 (print_interval): Print nothing if interval->plist is nil.
25979 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25980 variable. Init and staticpro print_prune_charset_plist.
25982 2008-02-01 Kenichi Handa <handa@m17n.org>
25984 * fontset.c (new_fontset_from_font_name): Use the specified font
25985 for all characters in the new fontset.
25987 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25990 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25991 OBJECT args for composition too.
25993 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25996 2008-02-01 Kenichi Handa <handa@m17n.org>
25998 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26000 * fontset.c (reorder_font_vector): Adjust for the change of
26002 (fontset_face): New arg id. Change caller.
26003 (face_for_char): New args pos and object.
26004 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26005 (fs_query_fontset): Check NAME by Fassoc too.
26006 (Fset_fontset_font): Allow non-XLFD font name.
26007 (Ffontset_info): Adjust for the change of FONT_DEF format.
26009 * fontset.h (face_for_char): Adjust prototype.
26011 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26012 (append_space, extend_face_to_end_of_line)
26013 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26014 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26016 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26017 POS and OBJECT args.
26019 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26020 POS and OBJECT args.
26022 2008-02-01 Jason Rumney <jasonr@gnu.org>
26024 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26025 of GlobalAlloc'ed memory.
26027 2008-02-01 Kenichi Handa <handa@m17n.org>
26029 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26031 * charset.h (charset_table_used): Delete extern.
26033 * charset.c (charset_table_used): Make it static.
26034 (map_charset_chars): Fix args to c_function with.
26036 * chartab.c (map_sub_char_table_for_charset): Fix args to
26039 * coding.h (enum coding_result_code):
26040 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26042 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26043 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26044 (Vlast_code_conversion_error): New variables.
26045 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26046 (ONE_MORE_BYTE): Record error if any instead of signaling an
26047 error. If non-ASCII multibyte char is found, return the negative
26048 value of the code. All callers changed to check it.
26049 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26050 (record_conversion_result): New function. Change all codes setting
26051 coding->result to call this function.
26052 (detect_coding_utf_8, decode_coding_utf_8)
26053 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26054 Don't use the local variable incomplete.
26055 (emacs_mule_char): Change the second arg to `const'.
26056 (decode_coding): Fix of flushing out unprocessed data.
26057 (make_conversion_work_buffer): Fix making of a work buffer.
26058 (decode_coding_object): Return coding->dst_object.
26060 * fontset.c (set_fontset_font): Fix args.
26062 * lisp.h (CHARACTERBITS): Define as 22.
26064 * process.c (send_process): Be sure to set coding->src_multibyte.
26066 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26068 2008-02-01 Kenichi Handa <handa@m17n.org>
26070 * xdisp.c (handle_auto_composed_prop): Give limit to
26071 Fnext_single_char_property_change.
26073 2008-02-01 Kenichi Handa <handa@m17n.org>
26075 * composite.c (syms_of_composite): Don't make the composition hash
26078 * fontset.c (Fset_fontset_font): Fix docstring.
26080 * lisp.h (detect_coding_system): Adjust prototype.
26082 * fileio.c (kill_workbuf_unwind): Delete this function.
26083 (Finsert_file_contents): Adjust the call of detect_coding_system.
26084 Get conversion_buffer by code_conversion_save. Use the macro
26085 CODING_MAY_REQUIRE_DECODING. After decoding, update
26088 * coding.h (make_conversion_work_buffer): Delete extern.
26089 (code_conversion_save): Extern it.
26091 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26092 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26093 (decode_coding_utf_8): Don't do eol converion.
26094 (detect_coding_utf_16): Check coding->src_chars, not
26095 coding->src_bytes. Add heuristics for those that have no signature.
26096 (decode_coding_emacs_mule, decode_coding_iso_2022)
26097 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26098 Don't do eol converion.
26099 (adjust_coding_eol_type): Return a new coding system.
26100 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26101 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26103 (decode_coding): Pay attention to undo_list. Do eol conversion for
26104 all types of coding-systems (if necessary).
26105 (Vcode_conversion_work_buf_list): Delete it.
26106 (Vcode_conversion_reused_workbuf): Rename from
26107 Vcode_conversion_reused_work_buf.
26108 (Vcode_conversion_workbuf_name): New variable.
26109 (reused_workbuf_in_use): New variable.
26110 (make_conversion_work_buffer): Delete the arg DEPTH.
26111 (code_conversion_restore): Change argument to cons.
26112 (code_conversion_save): Delete the argument BUFFER. Change callers.
26113 (detect_coding_system): New argument src_chars. Change callers.
26114 Fix for utf-16 detection.
26115 (init_coding_once): Don't use ISO_carriage_return.
26116 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26117 reused_workbuf_in_use.
26119 2008-02-01 Kenichi Handa <handa@m17n.org>
26121 * keymap.c (store_in_keymap): Pay attention to the case that idx
26122 is a cons specifying a character range.
26124 2008-02-01 Kenichi Handa <handa@m17n.org>
26126 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26127 HANDLED_RECOMPUTE_PROPS.
26129 * coding.c (Fdefine_coding_system_internal): Fix checking of
26130 ascii compatibility.
26132 2008-02-01 Kenichi Handa <handa@m17n.org>
26134 * charset.c (find_charsets_in_text): Delete unused locale variable.
26135 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26137 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26138 Resync charset_list to Vemacs_mule_charset_list.
26140 * keymap.c (store_in_keymap): Pay attention to the case that idx
26141 is a cons specifying a character range.
26143 2008-02-01 Kenichi Handa <handa@m17n.org>
26145 * composite.c (update_compositions): Bind inhibit-read-only, etc
26146 to t before calling remove-list-of-text-properties.
26148 * print.c (print_object): Always print ASCII chars as is.
26150 2008-02-01 Kenichi Handa <handa@m17n.org>
26152 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26154 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26157 2008-02-01 Kenichi Handa <handa@m17n.org>
26159 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26161 2008-02-01 Kenichi Handa <handa@m17n.org>
26163 * xfaces.c (set_lface_from_font_name): Fix for the case that
26164 FONTNAME is not fontset name.
26166 2008-02-01 Kenichi Handa <handa@m17n.org>
26168 * fns.c (base64_encode_1): Fix previous change.
26170 2008-02-01 Kenichi Handa <handa@m17n.org>
26172 * fontset.c (set_fontset_font): New function.
26173 (Fset_fontset_font): If a font is specified for a charset, use
26174 map_charset_chars to store the font spec in a fontset.
26176 2008-02-01 Kenichi Handa <handa@m17n.org>
26178 * fontset.c (fontset_face): Create a fallback fontset on demand.
26179 (make_fontset): Don't create a fallback fontset here.
26180 (free_face_fontset): Free a fallback fontset (if any) too.
26181 (n_auto_fontsets): Delete this variable.
26182 (auto_fontset_alist): New variable.
26183 (new_fontset_from_font_name): Check auto_fontset_alist.
26184 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26185 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26186 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26187 Defsubr Sfontset_list_all.
26189 2008-02-01 Kenichi Handa <handa@m17n.org>
26191 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26193 2008-02-01 Kenichi Handa <handa@m17n.org>
26195 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26197 2008-02-01 Kenichi Handa <handa@m17n.org>
26199 * editfns.c (Fgoto_char): Fix docstring.
26201 2008-02-01 Kenichi Handa <handa@m17n.org>
26203 * insdel.c (insert_from_gap): Adjust intervals correctly.
26205 2008-02-01 Jason Rumney <jasonr@gnu.org>
26207 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26208 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26209 (w32_initialize): Try to load it.
26210 (x_get_font_repertory): Use it if available.
26211 (w32_encode_char): Add shortcut for unicode output.
26213 * w32fns.c (w32_load_system_font): Default charset to -1.
26214 (x_to_w32_charset): Match all fonts for unicode.
26215 (w32_to_x_charset): New parameter matching. Don't return partial
26216 or wildcard charsets.
26217 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26218 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26219 (w32_to_x_font): Match charset to real charset.
26220 (enum_font_cb2): Always list unicode versions.
26222 * makefile.w32-in (temacs): Increase EMHEAP.
26224 2008-02-01 Jason Rumney <jasonr@gnu.org>
26226 * w32term.c (w32_encode_char): New charset parameter.
26227 font_info.encoding becomes encoding_type.
26228 (x_get_font_repertory): New function. Warning: stub only!
26229 (x_new_font): Return quickly if font already set.
26230 (x_new_fontset): fontsetname parameter is Lisp_Object.
26231 Use new fs_query_fontset. Try new_fontset_from_font_name.
26232 Use fontset_name for return value.
26234 * w32term.h: Declare x_get_font_repertory.
26236 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26237 place of find_charset_in_text. Use encode_coding_object in place
26239 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26242 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26244 (w32_load_system_font): Initialize charset as unicode.
26245 font_info.encoding becomes encoding_type.
26246 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26247 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26248 (syms_of_w32fns): Set get_font_repertory_func.
26250 * w32console.c: Include character.h. Use terminal_encode_buffer
26252 (write_glyphs): Use new version of encode_terminal_code.
26253 Use encode_coding_object in place of encode_coding.
26255 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26256 encoding becomes encoding_type.
26258 * term.c (terminal_encode_buffer): Make externally visible.
26260 * makefile.w32-in: Add character.h dependancies.
26261 (character.o, chartab.o): New targets.
26263 2008-02-01 Kenichi Handa <handa@m17n.org>
26265 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26266 CODING_ID_EOL_TYPE.
26268 2008-02-01 Andreas Schwab <schwab@suse.de>
26270 * coding.c (produce_chars): Revert last change.
26272 2008-02-01 Kenichi Handa <handa@m17n.org>
26274 * charset.h (charset_unicode): Extern it.
26276 * charset.c (string_xstring_p): Check by (C >= 0x100).
26277 (find_charsets_in_text): Change format of the arc CHARSETS.
26279 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26280 change of find_charsets_in_text.
26281 (Fsplit_char): Fix doc. Never return unknown.
26283 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26285 * coding.c (Fdefine_coding_system_alias):
26286 Update Vcoding_system_list.
26288 * fontset.c (load_font_get_repertory): Pay attention to the case
26289 that ENCODING of a font is specified by a char-table.
26291 * xterm.c (x_get_font_repertory): Handle the case that the
26292 encoding of font is other than Unicode.
26294 2008-02-01 Kenichi Handa <handa@m17n.org>
26296 * term.c (encode_terminal_code): Don't handle glyph-table.
26297 Check if a character is encodable by the terminal coding system.
26298 If not, produces proper number of `?'s. Update
26299 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26300 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26302 2008-02-01 Kenichi Handa <handa@m17n.org>
26304 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26306 (encode_terminal_code): Change argument. Encode multiple
26307 characters at once. Store the result of encoding in
26308 terminal_encode_buffer.
26309 (write_glyphs, insert_glyphs): Adjust for the change of
26310 encode_terminal_code.
26311 (term_init): Initialize terminal_encode_buffer and
26312 terminal_encode_buf_size.
26314 * coding.c (consume_chars): If coding->src_object is nil, don't
26317 2008-02-01 Kenichi Handa <handa@m17n.org>
26319 * character.c (char_string): Use ASCII_CHAR_P instead of
26320 SINGLE_BYTE_CHAR_P.
26322 2008-02-01 Kenichi Handa <handa@m17n.org>
26324 * xdisp.c (handle_auto_composed_prop): Check if the last
26325 characters of auto-composed region is newly composed with the
26326 following characters.
26327 (handle_composition_prop): Fix checking of point being inside
26330 2008-02-01 Kenichi Handa <handa@m17n.org>
26332 * fns.c (concat): Don't change multibyteness of the result by
26333 concatenating an 8-bit character.
26335 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26336 multibyteness of the result when newelt is an 8-bit character.
26338 2008-02-01 Dave Love <fx@gnu.org>
26340 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26343 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26345 * xfaces.c (face_numeric_value): Declare dim size_t.
26346 (Finternal_lisp_face_equal_p): Remove unused f.
26348 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26349 (MATRIX_ROW): Remove unused vars.
26350 (draw_glyphs, x_insert_glyphs, fast_find_position)
26351 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26354 * regex.c (regex_compile): Remove unused var.
26356 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26358 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26359 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26361 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26363 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26365 * fileio.c (Fwrite_region): Remove unused var.
26367 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26368 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26370 * composite.c (Fremove_list_of_text_properties): Declare.
26372 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26373 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26374 (coding_inherit_eol_type): Remove unused attrs.
26375 (detect_coding): Cast arg of detect_eol.
26377 * charset.c (syms_of_charset): Remove unused var p.
26378 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26381 * casetab.c (set_case_table): Remove unused var.
26383 * window.c (Fdisplay_buffer, Fframe_selected_window):
26384 Remove unused vars.
26386 2008-02-01 Dave Love <fx@gnu.org>
26388 * xterm.c (x_bitmap_mask): Declare.
26390 2008-02-01 Dave Love <fx@gnu.org>
26392 * xterm.c (x_term_init): Fix type error.
26394 * lisp.h: Add Funibyte_char_to_multibyte.
26396 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26397 (Fset_coding_system_priority): Doc fix.
26399 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26401 * indent.c (check_composition): Make start and end EMACS_INT.
26403 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26405 * xdisp.c (handle_composition_prop, check_point_in_composition):
26406 Make buffer positions EMACS_INT.
26408 * composite.c (find_composition, run_composition_function)
26409 (update_compositions, Ffind_composition_internal): Make buffer
26410 positions EMACS_INT.
26412 * composite.h (find_composition, update_compositions):
26413 Make position args EMACS_INT.
26415 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26417 * intervals.c (get_property_and_range):
26418 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26420 * unexalpha.c: Don't include varargs.h.
26422 2008-02-01 Dave Love <fx@gnu.org>
26424 * coding.h (ENCODE_UTF_8): New.
26426 * Makefile.in (gtkutil.o): Depend on coding.h.
26428 * coding.c (Fset_coding_system_priority): Doc fix.
26430 2008-02-01 Kenichi Handa <handa@m17n.org>
26432 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26433 the case of auto saving.
26435 2008-02-01 Andreas Schwab <schwab@suse.de>
26437 * chartab.c (map_char_table, map_char_table_for_charset):
26438 Protect `range' from GC.
26440 2008-02-01 Kenichi Handa <handa@m17n.org>
26442 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26444 2008-02-01 Kenichi Handa <handa@m17n.org>
26446 * fileio.c (choose_write_coding_system): Return a decided coding system.
26447 (Fwrite_region): Set Vlast_coding_system_used to the return value
26448 of choose_write_coding_system.
26450 2008-02-01 Kenichi Handa <handa@m17n.org>
26452 * charset.c (Fset_charset_priority): Pay attention to duplicated
26455 * coding.c (QCcategory): New variable.
26456 (syms_of_coding): Defsym it. Set all elements of
26457 Vcoding_category_table and their symbol values.
26458 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26459 coding-category-XXX, and coding-category-list.
26460 (Fdefine_coding_system_internal): Add category in the plist.
26462 2008-02-01 Kenichi Handa <handa@m17n.org>
26464 * callproc.c (Fcall_process): Handle carryover correctly.
26466 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26467 (raw_text_coding_system): Check NILP (coding_system).
26468 (coding_inherit_eol_type): Check NILP (coding_system) and
26470 (consume_chars): Fix for the case of raw-text.
26472 * process.c (read_process_output): Handle carryover correctly.
26474 2008-02-01 Dave Love <fx@gnu.org>
26476 * regex.c (re_search_2): Fix last change.
26478 2008-02-01 Kenichi Handa <handa@m17n.org>
26480 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26481 target_multibyte. Even in a unibyte case, return a converted
26483 (GET_CHAR_AFTER): New macro.
26484 (PATFETCH): Translate via multibyte char.
26485 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26486 (SETUP_MULTIBYTE_RANGE): New macro.
26487 (regex_compile): Setup compiled code so that its multibyteness
26488 matches that of a target. Fix the handling of "[X-YZ]" using
26489 SETUP_MULTIBYTE_RANGE.
26490 (analyse_first) <charset>: For filling fastmap for all multibyte
26491 characters, don't check by BASE_LEADING_CODE_P.
26492 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26493 the same as RE_MULTIBYTE_P (bufp) now.
26494 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26495 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26496 (TRANSLATE_VIA_MULTIBYTE): New macro.
26497 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26498 It is the same as RE_MULTIBYTE_P (bufp) now.
26499 <exactn>: Translate via multibyte.
26500 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26501 Don't translate it.
26502 <charset, charset_not>: Fetch a character by
26503 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26504 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26505 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26506 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26508 (bcmp_translate): Likewise.
26510 * search.c (compile_pattern): Check the member target_multibyte,
26511 not the member multibyte of buf.
26513 * lread.c (read1): While reading a string, set force_singlebyte
26514 and force_multibyte correctly.
26516 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26517 up of unibyte_to_multibyte_table.
26519 2008-02-01 Kenichi Handa <handa@m17n.org>
26521 * coding.c (setup_coding_system): If coding has
26522 post-read-conversion or pre-write-conversion, set
26523 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26525 (decode_coding_gap): Run post-read-conversion if any.
26527 * fileio.c (Finsert_file_contents): Even if we read into a
26528 unibyte buffer, check if we must decode the result or not.
26530 2008-02-01 Kenichi Handa <handa@m17n.org>
26532 * coding.c (make_conversion_work_buffer): Change the work buffer
26533 name to the same one as that of Emacs 21.
26535 2008-02-01 Kenichi Handa <handa@m17n.org>
26537 * coding.h (make_conversion_work_buffer): Adjust prototype.
26538 (code_conversion_restore): Don't extern it.
26540 * coding.c (detected_mask): Delete unused variable.
26541 (decode_coding_iso_2022): Pay attention to the byte sequence of
26542 CTEXT extended segment, and retain those bytes as is.
26543 (decode_coding_ccl): Delete unused variable `valids'.
26544 (setup_coding_system): Delete unused variable `category'.
26545 (consume_chars): Delete unused variable `category'. Make it work
26546 for non-multibyte case.
26547 (make_conversion_work_buffer): Change argument.
26548 (saved_coding): Delete unused variable.
26549 (code_conversion_restore): Don't check saved_coding->destination.
26550 (code_conversion_save): New function.
26551 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26552 instead of record_unwind_protect.
26553 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26554 (detect_coding_system): Delete unused variable `mask'.
26555 (Fdefine_coding_system_internal): Delete unused variable id.
26557 * fileio.c (kill_workbuf_unwind): New function.
26558 (Finsert_file_contents): On replacing, call
26559 make_conversion_work_buffer with correct args, and call
26560 record_unwind_protect with the first arg kill_workbuf_unwind.
26562 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26564 2008-02-01 Kenichi Handa <handa@m17n.org>
26566 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26567 (fontset_add): Fix for the case that TO is less than TO1.
26568 (Ffontset_info): Don't use fallback fontset on checking the
26570 (dump_fontset): New function for debugging.
26572 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26573 coding_type is Qcharset.
26575 2008-02-01 Kenichi Handa <handa@m17n.org>
26577 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26578 (map_char_table): Don't inherit the value from the parent on
26579 initializing VAL. Adjust for the above change.
26581 2008-02-01 Kenichi Handa <handa@m17n.org>
26583 * coding.c (Qsignature, Qendian): Delete these variables.
26584 (syms_of_coding): Don't initialize them.
26585 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26586 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26587 detect_info->found.
26588 (decode_coding_utf_16): Don't detect BOM here.
26589 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26590 is NOT utf_16_without_bom.
26591 (setup_coding_system): For a coding system of type utf-16, check
26592 if the attribute :endian is Qbig or not (not nil or not), and set
26593 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26594 (detect_coding): If coding type is utf-16 and BOM detection is
26595 required, detect it.
26596 (Fdefine_coding_system_internal): For a coding system of type
26597 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26599 2008-02-01 Kenichi Handa <handa@m17n.org>
26601 * coding.c (coding_set_source): Fix for the case that the current
26602 buffer is different from coding->src_object.
26603 (decode_coding_object): Don't use the conversion work buffer if
26604 DST_OBJECT is a buffer.
26606 2008-02-01 Dave Love <fx@gnu.org>
26608 * lread.c (read_emacs_mule_char) [len==2]: Index
26609 emacs_mule_charset correctly.
26611 2008-02-01 Dave Love <fx@gnu.org>
26613 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26614 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26615 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26616 treated specially.)
26617 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26618 (detected_mask): Remove Big5 bits.
26620 2008-02-01 Kenichi Handa <handa@m17n.org>
26622 The following changes are to make the font rescaling facility
26623 compatible with Emacs 21.
26625 * xfaces.c (Vface_font_rescale_alist): Rename from
26626 Vface_resizing_fonts.
26627 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26628 (font_rescale_ratio): Rename from font_resizing_ratio.
26629 (split_font_name): Set font->rescale_ratio.
26630 (better_font_p): Pay attention to font->rescale_ratio.
26631 (build_scalable_font_name): Likewise. Change RESX, and RESY
26633 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26635 2008-02-01 Kenichi Handa <handa@m17n.org>
26637 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26638 (Qutf_16_le): Remove these variables.
26639 (syms_of_coding): Don't DEFSYM them.
26640 (decode_coding_utf_16): Fix handling of BOM.
26641 (encode_coding_utf_16): Fix handling of BOM.
26643 2008-02-01 Kenichi Handa <handa@m17n.org>
26645 * fileio.c (Finsert_file_contents): On replacing, before decoding
26646 the file into the work buffer, set point of the work buffer to the end.
26648 2008-02-01 Dave Love <fx@gnu.org>
26650 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26652 2008-02-01 Dave Love <fx@gnu.org>
26654 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26657 2008-02-01 Kenichi Handa <handa@m17n.org>
26659 * xdisp.c (SKIP_GLYPHS): New macro.
26660 (set_cursor_from_row): Pay attention to string display properties.
26662 * category.c (copy_category_entry): Fix for the case that RANGE
26665 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26667 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26669 2008-02-01 Kenichi Handa <handa@m17n.org>
26671 * charset.c (Fcharset_id_internal): New function.
26672 (syms_of_charset): Defsubr it.
26674 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26675 with the last arg charset_list acquired from coding.
26676 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26677 the attribute coding_attr_ccl_valids.
26679 * coding.h (enum define_coding_ccl_arg_index): Set the first
26680 member coding_arg_ccl_decoder to coding_arg_max.
26682 * ccl.h (ccl_driver): Adjust prototype.
26684 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26685 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
26686 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
26687 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26690 2008-02-01 Kenichi Handa <handa@m17n.org>
26692 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26695 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26697 2008-02-01 Dave Love <fx@gnu.org>
26699 * composite.c (syms_of_composite): Make composition_hash_table weak.
26701 2008-02-01 Kenichi Handa <handa@m17n.org>
26703 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26704 (font_name_registry): Don't extern them.
26705 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26707 * fontset.h (Qfontset): Don't extern it.
26708 (new_fontset_from_font_name): Extern it.
26710 * fontset.c: Give 8 extra slots to fontset objects.
26711 (Qfontset_info): New variable.
26712 (syms_of_fontset): Defsym it.
26713 (FONTSET_FALLBACK): New macro.
26714 (fontset_face): Try also the default fontset.
26715 (make_fontset): Realize a fallback fontset from the default fontset.
26716 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26717 using split_font_name_into_vector and build_font_name_from_vector.
26718 (Fset_fontset_font): Access the elements of font_spec by enum
26719 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26720 name by using split_font_name_into_vector.
26721 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
26722 generate a proper font name from the fontset name.
26723 Update Vfontset_alias_alist.
26724 (n_auto_fontsets): New variable.
26725 (new_fontset_from_font_name): New function.
26726 (Ffont_info): Store the information about fonts generated from the
26727 default fontset in the first extra slot of the returned char-table.
26729 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26730 (font_name_registry): Delete function.
26731 (split_font_name_into_vector): New function.
26732 (build_font_name_from_vector): New function.
26733 (font_list): The argument REGISTRY is now a list of registry names.
26734 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26735 specifies an explicit font name, return the name as is. Make a
26736 list of registy names.
26738 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26740 (Fx_create_frame): Don't call x_new_fontset here. Just use
26741 x_list_fonts to check the existence of fonts.
26743 * xterm.h (x_new_fontset): Adjust prototype.
26745 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26746 string. Use new_fontset_from_font_name to create a fontset from a
26749 2008-02-01 Kenichi Handa <handa@m17n.org>
26751 * syntax.c (Vfind_word_boundary_function_table): New name for
26752 Vnext_word_boundary_function_table.
26753 (find-word-boundary-function-table): New name for
26754 next-word-boundary-function-table.
26756 2008-02-01 Dave Love <fx@gnu.org>
26758 * Makefile.in: Fix some dependencies.
26760 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26761 set it to nil before returning.
26763 * composite.c (update_compositions): Fix type error.
26765 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26767 2008-02-01 Kenichi Handa <handa@m17n.org>
26769 * xterm.c (x_new_font): Optimize for the case that the font is
26770 already set for the frame.
26772 2008-02-01 Kenichi Handa <handa@m17n.org>
26774 * chartab.c (char_table_ascii): Check if the char table contents
26775 is sub-char-table or not.
26776 (char_table_set, char_table_set_range): Fix argument to
26779 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26780 (detect_coding_utf_8, detect_coding_utf_16)
26781 (detect_coding_emacs_mule, detect_coding_iso_2022)
26782 (detect_coding_sjis, detect_coding_big5)
26783 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26784 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26785 sequence is valid in this coding system. Change callers.
26786 (MAX_ANNOTATION_LENGTH): New macro.
26787 (ADD_ANNOTATION_DATA): New macro.
26788 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26789 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
26790 (ADD_CHARSET_DATA): New macro.
26791 (emacs_mule_char): New argument ID. Change callers.
26792 (decode_coding_emacs_mule, decode_coding_iso_2022)
26793 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26794 Produce charset annotation data in coding->charbuf.
26795 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26796 to charset annotation data in coding->charbuf.
26797 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26798 coding->common_flags if the coding system is iso-2022 based and
26800 (produce_composition): Adjust for the new annotation data format.
26801 (produce_charset): New function.
26802 (produce_annotation): Handle charset annotation.
26803 (handle_composition_annotation, handle_charset_annotation):
26805 (consume_chars): Handle charset annotation. Utilize the above two
26807 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26808 buffer, get the deleted text as a string and set
26809 coding->src_object to that string.
26810 (detect_coding, detect_coding_system): Use the new struct
26811 coding_detection_info.
26813 * coding.h (struct coding_detection_info): New structure.
26814 (struct coding_system): Adjust prototype of the member `detector'.
26815 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26817 2008-02-01 Kenichi Handa <handa@m17n.org>
26819 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26821 2008-02-01 Dave Love <fx@gnu.org>
26823 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26824 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26825 to new local and nullify apropos_accumulate before returning.
26826 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26828 2008-02-01 Kenichi Handa <handa@m17n.org>
26830 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26833 2008-02-01 Dave Love <fx@gnu.org>
26835 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26837 2008-02-01 Kenichi Handa <handa@m17n.org>
26839 The following changes are to make character composition happen
26840 automatically on displaying.
26842 * Makefile.in (lisp, shortlisp): Add composite.elc.
26844 * composite.h (Qauto_composed, Vauto_composition_function)
26845 (Qauto_composition_function): Extern them.
26847 * composite.c (Vcomposition_function_table)
26848 (Qcomposition_function_table): Delete variables.
26849 (Qauto_composed, Vauto_composition_function)
26850 (Qauto_composition_function): New variables.
26851 (run_composition_function): Don't call
26852 compose-chars-after-function.
26853 (update_compositions): Clear `auto-composed' text property.
26854 (compose_chars_in_text): Delete this function.
26855 (syms_of_composite): Staticpro Qauto_composed and
26856 Qauto_composition_function. Declare Vauto_composition_function as
26859 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26861 * xdisp.c (it_props): Add an entry for Qauto_composed.
26862 (handle_auto_composed_prop): New function.
26864 * xselect.c (selection_data_to_lisp_data): Don't call
26865 compose_chars_in_text.
26867 2008-02-01 Dave Love <fx@gnu.org>
26869 * keyboard.c (read_char): Modify checking around use of
26870 Vkeyboard_translate_table.
26872 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26875 2008-02-01 Kenichi Handa <handa@m17n.org>
26877 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26878 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26879 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26880 the case that the last byte is '\r' correctly.
26881 (decode_coding): Flush out the unprocessed data correctly.
26882 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26884 2008-02-01 Dave Love <fx@gnu.org>
26886 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26887 Add XK_ISO... case.
26888 (xaw_scroll_callback): Revert last change.
26890 2008-02-01 Kenichi Handa <handa@m17n.org>
26892 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26894 2008-02-01 Kenichi Handa <handa@m17n.org>
26896 * xfaces.c (Vface_resizing_fonts): New variable.
26897 (struct font_name): New member `resizing_ratio'.
26898 (font_resizing_ratio): New function.
26899 (split_font_name): Set font->resizing_ratio.
26900 (better_font_p): Pay attention to font->resizing_ratio.
26901 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26902 RESX, and RESY fields.
26903 (try_alternative_families): Try scalable fonts if
26904 Vscalable_fonts_allowed is not Qt.
26905 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26907 2008-02-01 Dave Love <fx@gnu.org>
26909 * xterm.c (xaw_scroll_callback): Cast correctly.
26911 2008-02-01 Dave Love <fx@gnu.org>
26913 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26914 (lispy_kana_keys): Comment out.
26915 (make_lispy_event) [XK_kana_A]: Comment out.
26917 * xterm.c (xaw_scroll_callback): Cast call_data.
26918 (XTread_socket): Deal with ASCII keysyms.
26919 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26921 2008-02-01 Dave Love <fx@gnu.org>
26923 * xterm.c (Vx_keysym_table): New.
26924 (syms_of_xterm): Initialize it.
26925 (XTread_socket): Use it.
26926 From head: Eliminate incorrect optimization that tried to avoid
26927 decoding the output of X*LookupString.
26928 (x_get_font_repertory): Delete charset declaration.
26930 2008-02-01 Kenichi Handa <handa@m17n.org>
26932 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26934 (Fdefine_coding_system_internal):
26935 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
26937 2008-02-01 Dave Love <fx@gnu.org>
26939 * coding.c (Fcheck_coding_system): Doc fix.
26941 * editfns.c (Finsert_byte): Return a proper value.
26943 2008-02-01 Kenichi Handa <handa@m17n.org>
26945 * coding.c (decode_coding): Fix args to translate_chars.
26946 Pay attention to Vstandard_translation_table_for_decode.
26947 (encode_coding): Fix args to translate_chars. Pay attention to
26948 Vstandard_translation_table_for_encode.
26950 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26951 SINGLE_BYTE_CHAR_P.
26953 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26954 not by SINGLE_BYTE_CHAR_P.
26956 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26957 SINGLE_BYTE_CHAR_P.
26959 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26960 SINGLE_BYTE_CHAR_P.
26962 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26963 by SINGLE_BYTE_CHAR_P.
26965 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26966 SINGLE_BYTE_CHAR_P.
26968 2008-02-01 Dave Love <fx@gnu.org>
26970 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26972 2008-02-01 Dave Love <fx@gnu.org>
26974 * fns.c (Flanginfo): Fix typo.
26976 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26978 2008-02-01 Kenichi Handa <handa@m17n.org>
26980 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26981 (detect_coding_emacs_mule, detect_coding_iso_2022)
26982 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26983 incomplete byte sequence. Don't update *mask when correctly detected.
26984 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26985 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26986 (detect_coding, detect_coding_system): Adjust for the changes above.
26988 2008-02-01 Kenichi Handa <handa@m17n.org>
26990 * character.c (char_string): Rename from
26991 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26992 (string_char): Rename from string_char.
26994 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26995 if C is greater than MAX_3_BYTE_CHAR.
26996 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26997 Call string_char instead of string_char_with_unification.
26999 2008-02-01 Dave Love <fx@gnu.org>
27001 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27003 2008-02-01 Kenichi Handa <handa@m17n.org>
27005 * keymap.c (push_key_description): Pay attention to force_multibyte.
27007 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27009 2008-02-01 Dave Love <fx@gnu.org>
27011 * charset.c (define_charset_internal): Rename `supprementary'.
27013 * Makefile.in (lisp, shortlisp): Remove latin-N.
27015 2008-02-01 Dave Love <fx@gnu.org>
27017 * xfns.c (x_window, x_window): Use use_xim.
27019 * xterm.c (use_xim): Initialize.
27020 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27021 (x_term_init): Maybe set use_xim.
27023 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27025 2008-02-01 Kenichi Handa <handa@m17n.org>
27027 * search.c (search_buffer): Fix case-fold-search of multibyte
27029 (boyer_moore): Rename the last argument to char_high_bits.
27031 2008-02-01 Kenichi Handa <handa@m17n.org>
27033 * xdisp.c (display_string): Fix for the case of zero width glyph.
27035 * xfns.c (x_set_font): Change the error message of the case that
27036 x_new_fontset returns Qt.
27038 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27039 (Finternal_set_lisp_face_attribute): Use signal_error for the
27040 error of invalid fontset.
27042 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27043 fontset, return Qt.
27045 2008-02-01 Dave Love <fx@gnu.org>
27047 * unexelf.c (unexec): Make .got handling not SGI-specific.
27049 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27051 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27053 * keyboard.c (read_key_sequence): Fix type error.
27055 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27058 * fontset.c (fontset_add): Return Lisp_Object.
27060 2008-02-01 Dave Love <fx@gnu.org>
27062 * charset.h (charset_ordered_list_tick): Declare extern.
27064 2008-02-01 Kenichi Handa <handa@m17n.org>
27066 The following changes (and some of 2008-02-01 changes of mine) are
27067 for handling syntax, category, and case conversion for unibyte
27068 characters by converting them to multibyte on the fly. With these
27069 changes, we don't have to setup syntax and case tables for unibyte
27070 characters in each language environment.
27072 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27073 multibyte if necessary.
27075 * bytecode.c (Fbyte_code): Likewise.
27077 * character.h (LEADING_CODE_LATIN_1_MIN)
27078 (LEADING_CODE_LATIN_1_MAX): New macros.
27079 (unibyte_to_multibyte_table): Extern it.
27080 (unibyte_char_to_multibyte): New macro.
27081 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27082 (CHAR_LEADING_CODE): New macro.
27083 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27085 * character.c (unibyte_to_multibyte_table): New variable.
27086 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27087 (multibyte_char_to_unibyte): If C is an eight-bit character,
27088 convert it to the corresponding byte value.
27090 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27091 not 1, signals an error. Update the elements of
27092 unibyte_to_multibyte_table.
27093 (init_charset_once): Initialize unibyte_to_multibyte_table.
27094 (syms_of_charset): Define the charset `iso-8859-1'.
27096 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27097 as is without converting it to unibyte. In a unibyte buffer,
27098 convert C to multibyte before checking the syntax.
27100 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27102 * minibuf.c (Fminibuffer_complete_word): Use the macro
27103 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27105 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27107 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27108 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27109 If that is zero, convert an eight-bit char to multibyte.
27110 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27112 (PATFETCH): Convert an eight-bit char to multibyte.
27113 (HANDLE_UNIBYTE_RANGE): New macro.
27114 (regex_compile): Setup the compiled pattern for multibyte chars
27115 even if the given regex string is unibyte. Use PATFETCH_RAW
27116 instead of PATFETCH in many places. To handle `charset'
27117 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27118 only for ASCII chars.
27119 (analyse_first) <exactn>: Simplify because the compiled pattern
27121 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27122 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27123 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27124 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27125 multibyte always 1.
27126 (re_search_2): In emacs, set the locale variable multibyte to 1,
27127 otherwise to 0. New local variable target_multibyte. Check it
27128 to decide the multibyteness of STR1 and STR2.
27129 If target_multibyte is zero, convert unibyte chars to multibyte
27130 before translating and checking fastmap.
27131 (TARGET_CHAR_AND_LENGTH): New macro.
27132 (re_match_2_internal): In emacs, set the locale variable multibyte
27133 to 1, otherwise to 0. New local variable target_multibyte.
27134 Check it to decide the multibyteness of STR1 and STR2.
27135 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27136 <charset, charset_not>: If multibyte is nonzero, check fastmap
27137 only for ASCII chars. Call bcmp_translate with
27138 target_multibyte, not with multibyte.
27139 <begline>: Declare the local variable C as `unsigned'.
27140 (bcmp_translate): Change the last arg name to target_multibyte.
27142 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27143 the regexp pattern and the matching target. Set cp->buf.multibyte
27144 to the multibyteness of the regexp pattern. Set
27145 cp->but.target_multibyte to the multibyteness of the matching target.
27146 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27147 FETCH_STRING_CHAR_ADVANCE.
27148 (Freplace_match): Convert unibyte chars to multibyte.
27150 * syntax.c (char_quoted, back_comment, scan_words)
27151 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27152 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27153 unibyte chars to multibyte.
27154 (skip_chars): Delete the arg syntaxp, and move the code for
27155 handling syntaxes to skip_syntaxes. Change callers.
27156 Fix the case that the multibyteness of STRING and the current
27157 buffer doesn't match.
27158 (skip_syntaxes): New function.
27159 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27160 SINGLE_BYTE_CHAR_P.
27162 2008-02-01 Kenichi Handa <handa@m17n.org>
27164 * xfaces.c (QCfontset): New variable.
27165 (LFACE_FONTSET): New macro.
27166 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27167 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27168 (Finternal_set_lisp_face_attribute)
27169 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27170 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27171 check also LFACE_FONTSET_INDEX.
27172 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27173 attrs[LFACE_FONT_INDEX].
27174 (syms_of_xfaces): Intern and staticpro QCfontset.
27176 * dispextern.h (enum lface_attribute_index): New member
27177 LFACE_FONTSET_INDEX.
27179 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27181 2008-02-01 Kenichi Handa <handa@m17n.org>
27183 * coding.c (coding_set_destination): Fix coding->destination for
27184 the case converting a region.
27185 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27186 (encode_coding_object): Fix coding->dst_pos and
27187 coding->dst_pos_byte for the case converting a region.
27189 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27191 * character.h (BYTE8_STRING): New macro.
27193 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27195 2008-02-01 Kenichi Handa <handa@m17n.org>
27197 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27198 characters by octal form.
27200 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27202 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27203 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27204 _fetch_multibyte_char_len.
27205 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27207 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27209 * casefiddle.c (casify_object): Simplify. Handle the case that
27210 the case conversion change the byte length.
27211 (casify_region): Likewise.
27213 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27215 * character.c (_fetch_multibyte_char_len): Delete this variable.
27216 (syms_of_character): Setup Vprintable_chars.
27218 * editfns.c (Fchar_equal): Fix for the unibyte case.
27219 (Finsert_byte): New function.
27220 (syms_of_editfns): Defsubr it.
27222 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27223 of direct code 0x3ffff.
27225 * search.c (Freplace_match): Fix for the unibyte case.
27227 2008-02-01 Kenichi Handa <handa@m17n.org>
27229 * lread.c (safe_to_load_p): Fix the logic.
27231 * syntax.c (scan_words): Don't treat characters belonging to
27232 different scripts as constituting a word.
27234 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27236 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27238 * emacs.c (main): In the case of --unibyte, instead of aborting on
27239 finding non-empty buffer, make it unibyte.
27241 2008-02-01 Kenichi Handa <handa@m17n.org>
27243 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27244 to create a fontset.
27246 2008-02-01 Dave Love <fx@gnu.org>
27248 * character.c (Funibyte_char_to_multibyte): Doc fix.
27250 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27252 2008-02-01 Kenichi Handa <handa@m17n.org>
27254 * fontset.c (fontset_add): Make the type `int'.
27255 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27257 * character.c (unibyte_char_to_multibyte)
27258 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27259 charset_unibyte, not charset_primary.
27261 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27263 * charset.c (charset_unibyte): Rename from charset_primary.
27264 (Funibyte_charset): Rename from Fprimary_charset.
27265 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27266 (syms_of_charset): Adjust for the above changes.
27268 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27269 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27270 it->multibyte_p is zero.
27272 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27275 2008-02-01 Kenichi Handa <handa@m17n.org>
27277 * coding.c (Fdefine_coding_system_internal): Fix category setting
27278 for a coding system of type iso-2022.
27280 2008-02-01 Kenichi Handa <handa@m17n.org>
27282 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27284 2008-02-01 Kenichi Handa <handa@m17n.org>
27286 * syntax.c (Vnext_word_boundary_function_table): New variable.
27287 (next-word-boundary-function-table): Declare it as a Lisp variable
27289 (scan_words): Call functions in Vnext_word_boundary_function_table
27292 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27294 * fontset.c (fs_load_font): If fontp->charset is not negative,
27295 return fontp without setting its members.
27297 2008-02-01 Dave Love <fx@gnu.org>
27299 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27301 * m/sparc.h (HAVE_ALLOCA): Delete.
27303 * s/irix6-5.h: Don't include strings.h.
27304 (bcopy, bzero, bcmp): Don't undef.
27306 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27308 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27309 (TIOCSIGSEND): Don't test IRIX6.
27310 (bcopy, bzero, bcmp): Define conditionally.
27312 2008-02-01 Kenichi Handa <handa@m17n.org>
27314 * buffer.c (Qas, Qmake, Qto): New variables.
27315 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27316 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27318 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27319 we are inserting a process output into a multibyte buffer.
27321 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27322 multibyte_char_to_unibyte.
27324 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27325 by the primary charset, make it eight-bit char.
27326 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27328 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27329 (charset_8_bit__control, charset_8_bit_graphic)
27330 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27331 (define_charset_internal): New function.
27332 (syms_of_charset): Call define_charset_internal for pre-defined
27335 * charset.h (charset_8_bit): Extern it.
27337 * coding.c (make_conversion_work_buffer): Adjust for the change
27338 of Fset_buffer_multibyte.
27339 (encode_coding_raw_text): Increment p0 in the loop.
27341 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27343 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27344 Adjust for the change of Fset_buffer_multibyte.
27346 * fns.c (Fstring_to_multibyte): New function.
27347 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27349 2008-02-01 Dave Love <fx@gnu.org>
27351 * xfns.c (x_put_x_image): Declare args.
27353 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27354 (try_font_list): Declare an arg.
27356 * xdisp.c (message2_nolog, set_message): Declare an arg.
27358 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27360 * syntax.c (scan_sexps_forward): Declare an arg.
27362 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27365 * lisp.h (Fnew_fontset): Declare.
27367 * keymap.c (push_key_description): Call CHARACTERP correctly.
27369 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27370 (face_for_char): Delete unused vars.
27371 (Fset_fontset_font): Doc fix. Delete unused vars.
27373 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27375 * composite.c (update_compositions): Declare arg.
27377 * cm.c (calccost, cmgoto): Declare args.
27379 * charset.c: Remove `emacs' conditional. Doc fixes.
27380 (map_char_table_for_charset): Declare.
27382 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27384 * ccl.c: Remove `emacs' conditional.
27386 2008-02-01 Kenichi Handa <handa@m17n.org>
27388 The following changes are to allow specifying multiple font
27389 patterns for a character range (specified by script or charset).
27391 * Makefile.in (abbrev.o): Depend on syntax.h.
27392 (xfaces.o): Depend on charset.h.
27394 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27395 SINGLE_BYTE_CHAR_P.
27397 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27399 * character.h (Vchar_script_table): Extern it.
27401 * character.c (Vscript_alist): Delete.
27402 (Vchar_script_table, Qchar_script_table): New variable.
27403 (syms_of_character): Declare Vchar_script_table as a lisp variable
27406 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27407 have property char-table-extra-slots, make no extra slot.
27409 * dispextern.h (struct face): Delete member `charset'.
27410 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27411 SINGLE_BYTE_CHAR_P.
27412 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27414 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27415 (generate_ascii_font_name): Rename from generate_ascii_font.
27417 * fontset.h (get_font_repertory_func): New prototype.
27418 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27419 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27421 * fontset.c (Qprepend, Qappend): New variables.
27422 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27423 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27424 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27425 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27426 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27427 (load_font_get_repertory): New functions.
27428 (fontset_set): Delete.
27429 (fontset_face): New arg FACE. Return face ID, not face.
27430 Complete re-write to handle new fontset structure. Change caller.
27431 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27432 (face_for_char): Don't call lookup_face.
27433 (make_fontset_for_ascii_face): New arg FACE.
27434 (fs_load_font): New arg CHARSET_ID. Don't check
27435 Vfont_encoding_alist here.
27436 (find_font_encoding): New function.
27437 (list_fontsets): Use STRINGP, not ! NILP.
27438 (accumulate_script_ranges): New function.
27439 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27440 Completely re-written to handle new fontset structure.
27441 (Ffontset_font): Return a copy of element.
27442 (syms_of_fontset): Define symbols Qprepend and Qappend.
27443 Fix docstring of font-encoding-alist.
27445 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27446 (Fset_fotset_font): Fix arguments to 5.
27448 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27450 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27451 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27452 (highlight_trailing_whitespace): Adjust for the change of
27455 * xfaces.c: Include charset.h.
27456 (load_face_font): Delete argument C. Change caller.
27457 (generate_ascii_font_name): Rename from generate_ascii_font.
27458 (font_name_registry): New function.
27459 (cache_face): Store ascii faces before non-ascii faces in buckets.
27460 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27461 Lookup only ascii faces.
27462 (lookup_non_ascii_face): New function.
27463 (lookup_named_face): Delete argument C. Change caller.
27464 (lookup_derived_face): Delete argument C. Change caller.
27465 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27466 a string, just call font_list with it.
27467 (choose_face_font): Delete arguments FACE and C. New arg
27468 FONT_SPEC. Change caller.
27469 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27471 (realize_non_ascii_face): New function.
27472 (realize_x_face): Call load_face_font here.
27473 (realize_tty_face): Delete argument C. Change caller.
27474 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27476 (dump_realized_face): Don't print charset of FACE.
27478 * xfns.c (x_set_font): Always call x_new_fontset and
27479 store_frame_parameter.
27480 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27481 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27483 * xterm.h (x_get_font_repertory): Extern it.
27485 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27486 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27487 it->multibyte_p is zero.
27488 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27489 (x_new_fontset): If FONTSETNAME doesn't match any existing
27490 fontsets, create a new one.
27491 (x_get_font_repertory): New function.
27493 2008-02-01 Kenichi Handa <handa@m17n.org>
27495 * coding.c (Ffind_coding_systems_region_internal): Detect an
27496 ASCII only string correctly.
27498 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27501 2008-02-01 Kenichi Handa <handa@m17n.org>
27503 * lread.c: Include "coding.h".
27504 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27505 (load_each_byte, unread_char): New variables.
27506 (readchar_backlog): Delete.
27507 (readchar): Return a character unless load_each_byte is nonzero.
27508 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27509 cons. If unread_char is not -1, simply return it.
27510 (unreadchar): Handle the case that readcharfun is
27511 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27512 (read_multibyte): Delete.
27513 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27514 (read_emacs_mule_char): New functions.
27515 (Fload): Even if the file doesn't have the extension ".elc", if
27516 safe_to_load_p returns a positive version number, assume that the
27517 file contains bytecompiled code. If the version is less than 22,
27518 load the file while decoding multibyte sequences by emacs-mule.
27519 (readevalloop): Don't use readchar_backlog.
27520 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27521 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27522 (read_escape): Delete the arg BYTEREP.
27523 (read1): Set load_each_byte to 1 temporarily while handling
27524 #@NUMBER. Don't call read_multibyte.
27525 (read_vector): Call Fread with a cons. If readcharfun is
27526 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27527 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27528 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27529 and Qload_force_doc_strings.
27531 2008-02-01 Kenichi Handa <handa@m17n.org>
27533 * xdisp.c (face_before_or_after_it_pos):
27534 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
27536 2008-02-01 Kenichi Handa <handa@m17n.org>
27538 * character.h (TRAILING_CODE_P): New macro.
27539 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27540 (string_char_with_unification): Fix prototype.
27541 (Vscript_alist): Extern it.
27543 * character.c (Vscript_alist): New variable.
27544 (string_char_with_unification, str_as_unibyte)
27545 (string_escape_byte8): Add `const' to local variables.
27546 (syms_of_character): Declare script-alist as a Lisp variable.
27548 * charset.h (Vcharset_ordered_list): Extern it.
27549 (charset_ordered_list_tick): Extern it.
27550 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27551 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27552 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27553 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27554 (Funify_charset): Adjust for the change of Funify_charset.
27556 * charset.c (charset_ordered_list_tick): New variable.
27557 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27558 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
27559 deunify instead of unify a charset.
27560 (string_xstring_p): Add `const' to local variables.
27561 (find_charsets_in_text): Add `const' to arguments and local variables.
27562 (encode_char): Adjust for the change of Funify_charset.
27563 Fix detecting of invalid code.
27564 (Fset_charset_priority): Increment charset_ordered_list_tick.
27565 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27568 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27569 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27570 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27571 (decode_coding_ccl, consume_chars)
27572 (Ffind_coding_systems_region_internal)
27573 (Fcheck_coding_systems_region): Add `const' to local variables.
27575 * print.c (print_object): Use octal form for printing the
27576 contents of a bool vector.
27578 2008-02-01 Dave Love <fx@gnu.org>
27580 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27581 <version == 20>: Refuse to load.
27583 2008-02-01 Dave Love <fx@gnu.org>
27585 * fns.c: Move coding.h.
27586 (Qcodeset, Qdays, Qmonths): New.
27587 (concat): Use CHARACTERP instead of INTEGERP.
27588 (Flocale_codeset): Delete.
27589 (Flanginfo): New function.
27590 (syms_of_fns): Change accordingly.
27592 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27594 2008-02-01 Dave Love <fx@gnu.org>
27596 * casetab.c (init_casetab_once, init_casetab_once):
27597 Fix CHAR_TABLE_SET call.
27599 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27601 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27603 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27604 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27605 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27607 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27609 * coding.c (ENCODE_DESIGNATION, decode_eol)
27610 (make_conversion_work_buffer, code_conversion_restore)
27611 (Fdefine_coding_system_internal): Convert Lisp types.
27612 (code_conversion_restore): Use EQ, not ==.
27613 (Fencode_coding_string): Fix code_convert_string call.
27615 * coding.h (code_convert_region): Fix prototype.
27617 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27619 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27620 (Ffontset_info): Convert Lisp types.
27622 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27624 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27626 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27628 * chartab.c: Include "...h", not <...h> in some cases.
27630 * callproc.c (Fcall_process): Remove unused variables.
27632 2008-02-01 Dave Love <fx@gnu.org>
27634 * coding.c (Fset_coding_system_priority): Allow null arg list.
27636 2008-02-01 Dave Love <fx@gnu.org>
27638 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27639 (Fself_insert_and_exit): Use CHARACTERP.
27641 * callproc.c (Fcall_process): Remove unused vars.
27643 * xterm.c (XTread_socket): Add extra dead keysyms.
27645 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27647 * dispextern.h: Remove prototypes for redraw_frame,
27648 redraw_garbaged_frames.
27650 * cmds.c (Fself_insert_command): Use CHARACTERP.
27652 * chartab.c (make_sub_char_table): Remove unused var.
27653 (Fset_char_table_default, Fmap_char_table): Doc fix.
27655 * keymap.c (access_keymap): Remove generic char code.
27656 (push_key_description): Use CHARACTERP.
27658 2008-02-01 Dave Love <fx@gnu.org>
27660 * charset.c: Doc fixes.
27661 (Funify_charset): Extra checking.
27663 2008-02-01 Dave Love <fx@gnu.org>
27665 * lread.c: Remove some unused variables.
27666 (safe_to_load_p): If safe, return the magic number version byte.
27667 (Fload): Maybe use load-with-code-conversion.
27669 2008-02-01 Kenichi Handa <handa@m17n.org>
27671 * category.c (Fmodify_category_entry): Don't modify the contents
27672 of category_set for characters out of the range.
27673 Avoid unnecessary modification.
27675 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27676 Vchar_unify_table. The default value of the table is now nil.
27678 * character.c (syms_of_character): Setup Vchar_width_table for
27679 eight-bit-control and raw-byte chars.
27681 * charset.h (enum define_charset_arg_index):
27682 Delete charset_arg_parents and add charset_arg_subset and
27683 charset_arg_superset.
27684 (enum charset_attr_index): Delete charset_parents and add
27685 charset_subset and charset_superset.
27686 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27687 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27688 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27689 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27690 (CHARSET_SUPERSET): New macros.
27691 (charset_work): Extern it.
27692 (ENCODE_CHAR): Use charset_work.
27693 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27694 (map_charset_chars): Extern it.
27696 * charset.c (load_charset_map): Set the default value of encoder
27697 and deunifier char-tables to nil.
27698 (map_charset_chars): Change argument. Change callers.
27699 Use map_char_table_for_charset instead of map_char_table.
27700 (Fmap_charset_chars): New optional args from_code and to_code.
27701 (Fdefine_charset_internal): Adjust for the change of
27702 `define-charset' (:parents -> :subset or :superset).
27703 (charset_work): New variable.
27704 (encode_char, syms_of_charset): Adjust for the change of
27705 Fdefine_charset_internal.
27706 (Ffind_charset_string): Setup the vector `charsets' correctly.
27708 * chartab.c (sub_char_table_ref_and_range): New arg default.
27709 Fix the previous change.
27710 (char_table_ref_and_range): Adjust for the above change.
27711 (map_sub_char_table_for_charset): New function.
27712 (map_char_table_for_charset): New function.
27714 * keymap.c (describe_vector): Handle a char-table directly here.
27715 (describe_char_table): Delete.
27717 * lisp.h (map_charset_chars): Delete.
27719 2008-02-01 Dave Love <fx@gnu.org>
27721 * fns.c (count_combining): Comment out (unused).
27722 (Flocale_codeset): New.
27723 (syms_of_fns): Defsubr it.
27725 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27728 2008-02-01 Dave Love <fx@gnu.org>
27730 * Makefile.in (chartab.o): Depend on charset.h.
27732 2008-02-01 Kenichi Handa <handa@m17n.org>
27734 * character.c (syms_of_character): Set the default value of
27735 Vprintable_chars to Qnil.
27737 2008-02-01 Dave Love <fx@gnu.org>
27739 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27741 2008-02-01 Kenichi Handa <handa@m17n.org>
27743 * charset.c (load_charset_map): Handle the case that from < to
27746 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27747 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27748 Pay attention to raw-8-bit chars.
27750 2008-02-01 Kenichi Handa <handa@m17n.org>
27752 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27753 It is not bytecompiled now.
27755 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27756 (charset_jisx0208): New variables.
27757 (Fdefine_charset_internal): Setup them if appropriate.
27758 (init_charset_once): Initialize them to -1.
27760 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27761 (charset_jisx0208): Extern them.
27763 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27764 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27765 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27766 (setup_iso_safe_charsets): Fix arguments to Fassq.
27767 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27768 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27769 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27770 (encode_coding_iso_2022): Change the 1st arg to
27771 ENCODE_ISO_CHARACTER to a variable.
27773 2008-02-01 Kenichi Handa <handa@m17n.org>
27775 * charset.h (enum define_charset_arg_index): New enums
27776 charset_arg_min_code and charset_arg_max_code.
27777 (struct charset): New member char_index_offset.
27779 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27780 Take charset->char_index_offset into account.
27781 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27782 args[charset_arg_max_code]. Setup charset.char_index_offset.
27783 (syms_of_charset): Fix args to Fdefine_charset_internal.
27785 2008-02-01 Dave Love <fx@gnu.org>
27787 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27789 2008-02-01 Dave Love <fx@gnu.org>
27791 * coding.c: Doc fixes.
27792 (Fcoding_system_aliases): Fix return value.
27793 (Qmac): Remove (duplicated) definition.
27795 2008-02-01 Dave Love <fx@gnu.org>
27797 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27800 * character.c (Fstring): Doc fix.
27802 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27804 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
27805 (font-encoding-alist): Doc fix.
27807 2008-02-01 Dave Love <fx@gnu.org>
27809 * term.c (costs_set): Declare static, non-initialized for pcc.
27810 (encode_terminal_code): Remove unused var.
27812 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27815 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27817 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27818 (suffixes): Move out of make_subsidiaries for K&R.
27820 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27822 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27824 2008-02-01 Dave Love <fx@gnu.org>
27826 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27828 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27830 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
27832 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27834 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27836 2008-02-01 Kenichi Handa <handa@m17n.org>
27838 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27839 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27841 2008-02-01 Kenichi Handa <handa@m17n.org>
27843 * coding.c (decode_coding_charset): Adjust for the change of
27844 Fdefine_coding_system_internal.
27845 (Fdefine_coding_system_internal): For a coding system of
27846 `charset' type, store a list of charset IDs in
27847 `charset_attr_charset_valids' element of coding attributes.
27849 2008-02-01 Kenichi Handa <handa@m17n.org>
27851 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
27852 (emacs_mule_char): New arg src. Delete arg `composition'.
27853 Change caller. Handle 2-byte and 3-byte charsets correctly.
27854 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27855 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27856 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
27857 (DECODE_EMACS_MULE_21_COMPOSITION):
27858 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
27860 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27861 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27862 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27863 and alt&rule composition.
27864 (decode_coding_iso_2022): Handle composition correctly.
27865 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27867 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27868 re-defining a charset. If the charset has :emacs-mule-id, setup
27870 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27872 2008-02-01 Kenichi Handa <handa@m17n.org>
27874 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27875 (encode_coding_big5, encode_coding_charset): If coding requires safe
27876 encoding, produce a character specified by
27877 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27879 2008-02-01 Dave Love <fx@gnu.org>
27881 * xterm.c (XSetIMValues): Declare.
27883 * process.c: Conditionally include sys/wait.h, pty.h.
27885 * print.c (print_object): Fix print format for 64-bit systems.
27887 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27889 * buffer.c (emacs_strerror): Declare.
27891 * fontset.c (Fclear_face_cache): Declare.
27892 (accumulate_font_info): Comment-out (unused).
27893 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27896 * character.h (string_escape_byte8): Declare.
27898 * charset.c (load_charset_map, load_charset_map_from_file):
27899 Remove unused vars.
27900 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27901 (Fmap_charset_chars): Doc fix.
27903 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27904 (Fset_coding_system_priority, Fset_coding_system_priority)
27905 (Fdefine_coding_system_internal): Doc fix.
27907 2008-02-01 Dave Love <fx@gnu.org>
27909 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27911 2008-02-01 Kenichi Handa <handa@m17n.org>
27913 * character.c (string_escape_byte8): Make multibyte string with
27916 * charset.c (Fmake_char): Delete unnecessary code.
27918 2008-02-01 Kenichi Handa <handa@m17n.org>
27920 * xfns.c (x_encode_text): Allocate coding.destination here, and
27921 call encode_coding_object with dst_object Qnil.
27923 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27924 multibyte form correctly.
27926 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27927 against Vfont_encoding_alist.
27929 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27930 handling of charset list.
27931 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27932 (decode_coding_object): Move point to coding->dst_pos before
27933 calling post-read-conversion function.
27934 (encode_coding_object): Give correct arguments to
27935 pre-write-conversion. Ignore the return value of
27936 pre-write-conversion function. Pay attention to the case that
27937 pre-write-conversion changes the current buffer. If dst_object is
27938 Qt, even if coding->src_bytes is zero, allocate at least one byte
27939 to coding->destination.
27941 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27943 * charset.c (Fmake_char): Make it more backward compatible.
27944 (Fmap_charset_chars): Fix docstring.
27946 2008-02-01 Dave Love <fx@gnu.org>
27948 * coding.c: Doc fixes.
27949 (Fdefine_coding_system_alias): Use names, not symbols, in
27950 coding-system-alist.
27952 2008-02-01 Kenichi Handa <handa@m17n.org>
27954 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27955 of calling free_realized_face.
27957 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
27959 * charset.c (read_hex): Don't treat SPC as a comment starter.
27960 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27961 (Fdecode_char): Fix typo.
27963 2008-02-01 Kenichi Handa <handa@m17n.org>
27965 * charset.h (struct charset): New member `code_space_mask'.
27967 * coding.c (coding_set_source): Delete the local variable beg_byte.
27968 (encode_coding_charset, Fdefine_coding_system_internal):
27969 Delete the local variable charset.
27970 (Fdefine_coding_system_internal):
27971 Setup attrs[coding_attr_charset_valids] correctly.
27973 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27974 member to check if CODE is valid or not.
27975 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27976 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27977 is within the range of charset->min_code and carset->max_code.
27979 2008-02-01 Dave Love <fx@gnu.org>
27981 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27983 * dispextern.h (generate_ascii_font): Fix return type.
27985 * xfaces.c (generate_ascii_font): Fix arg declaration.
27987 * coding.c (coding_inherit_eol_type)
27988 (Fset_terminal_coding_system_internal)
27989 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27991 2008-02-01 Kenichi Handa <handa@m17n.org>
27993 * coding.c (decode_coding_charset, encode_coding_charset):
27994 Handle multiple charsets correctly.
27996 2008-02-01 Kenichi Handa <handa@m17n.org>
27998 * search.c (boyer_moore): Fix handling of multibyte character
28001 * xdisp.c (display_mode_element): When the variable `elt' is
28002 changed, update `this' and `lisp_string'.
28004 2008-02-01 Kenichi Handa <handa@m17n.org>
28006 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28008 * callproc.c (Fcall_process): Be sure to give the current buffer
28009 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28011 * charset.c (struct charset_map_entries): New struct.
28012 (load_charset_map): Rename from parse_charset_map. New args
28013 entries and n_entries. Change caller.
28014 (load_charset_map_from_file): Rename from load_charset_map.
28015 Change caller. New arg control_flag. Call load_charset_map at
28017 (load_charset_map_from_vector): New function.
28018 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28019 (encode_char): If the charset is compact, change a character index
28022 * coding.c (coding_alloc_by_making_gap): Check the case that the
28023 source and destination are the same correctly.
28024 (decode_coding_raw_text): Set coding->consumed_char and
28025 coding->consumed to 0.
28026 (produce_chars): If coding->chars_at_source is nonzero, update
28027 coding->consumed_char and coding->consumed before calling
28029 (Fdefine_coding_system_alias): Register ALIAS in
28030 Vcoding_system_alist.
28031 (syms_of_coding): Define `no-conversion' coding system at the tail.
28033 * fileio.c (Finsert_file_contents): Set coding_system instead of
28034 val. If the current buffer is multibyte, always call
28037 * xfaces.c (try_font_list): Give higher priority to fontset's
28038 family than face's family.
28040 2008-02-01 Kenichi Handa <handa@m17n.org>
28042 * callproc.c (Fcall_process): Be sure to give the current buffer
28043 to decode_coding_c_string.
28045 * xfaces.c (try_font_list): Give a family specified in a fontset
28046 higher priority than a family specified in a face.
28048 2008-02-01 Kenichi Handa <handa@m17n.org>
28050 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28051 Fix arguments to insert_from_buffer.
28053 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28055 2008-02-01 Kenichi Handa <handa@m17n.org>
28057 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28058 (decode_coding_gap): Set coding->dst_multibyte correctly.
28060 2008-02-01 Kenichi Handa <handa@m17n.org>
28062 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28063 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28064 (encode_coding_utf_16): Substitute coding->default_char for
28065 non-Unicode characters.
28066 (decode_coding): Don't call record_insert here.
28067 (setup_coding_system): Initialize `surrogate' of
28068 coding->spec.utf_16 to 0.
28069 (EMIT_ONE_BYTE): Fix for multibyte case.
28071 * insdel.c (insert_from_gap): Call record_insert.
28073 2008-02-01 Kenichi Handa <handa@m17n.org>
28075 * casefiddle.c (casify_region): Fix multibyte case.
28077 * character.c (c_string_width): Add return type `int'.
28078 (char_string_with_unification): Delete arg ADVANCED.
28080 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28081 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28082 (CHAR_STRING_ADVANCE): Make it do-while statement.
28084 * chartab.c (sub_char_table_set_range): Optimize for the case
28085 DEPTH == 3. Add workaround code for a GCC optimization bug.
28087 * charset.c (parse_charset_map): Remove an unused variable.
28089 * coding.c: Delete unused variables.
28091 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28092 earlier. If inserted is zero and the coding system doesn't
28093 require flushing, don't call decode_coding_gap.
28095 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28097 2008-02-01 Kenichi Handa <handa@m17n.org>
28099 The following changes are for using Unicode as an internal
28100 character model, and use UTF-8 format for buffer/string
28103 * .gdbinit (xchartable): Adjust for the change of char table structure.
28104 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28106 * Makefile.in (obj): Add character.o and chartab.o.
28107 (lisp, shortlisp): Remove utf-8.elc.
28108 (*.o): For many files, change dependency on charset.h to
28109 character.h, and add dependency on character.h.
28110 (character.o, chartab.o): New targets.
28112 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28113 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28114 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28117 * dired.c, filelock.c: Include "character.h".
28119 * alloc.c: Include "character.h" instead of "charset.h".
28120 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28121 (syms_of_alloc): Remove defsubr for Smake_char_table.
28123 * buffer.c: Include "character.h" instead of "charset.h", don't
28124 include "coding.h".
28125 (Fset_buffer_multibyte): Adjust for UTF-8.
28127 * buffer.h: EXFUN Fbuffer_live_p.
28129 * callproc.c: Include "character.h" instead of "charset.h".
28130 (Fcall_process): Big change for the new code-conversion APIs.
28132 * casetab.c: Include "character.h" instead of "charset.h".
28133 (set_canon, set_identity, shuffle): Adjust for the new
28134 map_char_table spec.
28135 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28136 accessing the char table structure.
28138 * chartab.c: New file that implements char table.
28140 * category.c: Include "character.h".
28141 (copy_category_entry): New function.
28142 (copy_category_table): Call map_char_table and copy_category_entry.
28143 (Fmake_category_table): Initialize all top-level slots.
28144 (char_category_set): New function.
28145 (modify_lower_category_set): Delete.
28146 (Fmodify_category_entry): Call char_table_ref_and_range.
28148 * category.h (CATEGORY_SET): Just call char_category_set.
28150 * ccl.c: Include "character.h".
28151 (Qccl, Qcclp): New variables.
28152 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28153 it's less than 256.
28154 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28155 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28157 (ccl_driver): Change types of argument, adjust code accordingly.
28158 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28160 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28162 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28163 New members src_multibyte, dst_multibyte, consumed, and produced.
28164 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28165 (CODING_SPEC_CCL_PROGRAM): New macro.
28166 (ccl_driver): Update prototype.
28167 (Qccl, Qcclp, Fccl_program_p): Extern them.
28168 (CHECK_CCL_PROGRAM): New macro.
28170 * character.c, character.h, chartab.c: New files.
28172 * charset.c: Mostly re-written. Move character and multibyte sequence
28173 handling codes to character.c.
28175 * charset.h: Mostly re-written. Move character and multibyte sequence
28176 handling codes to character.h.
28178 * coding.c, coding.h: Mostly re-written.
28180 * composite.c: Include "character.h" instead of "charset.h".
28181 (CHAR_WIDTH): Move to character.h.
28182 (HASH_KEY, HASH_VALUE): Delete.
28184 * composite.h (enum composition_method): Change order of enumeration
28187 * data.c: Include "character.h" instead of "charset.h".
28188 (Faref): Call CHAR_TABLE_REF for a char table.
28189 (Faset): Call CHAR_TABLE_SET for a char table.
28191 * dispextern.h (free_realized_face, check_face_attribytes)
28192 (generate_ascii_font): Extern them.
28193 (free_realized_multibyte_face): Delete extern.
28195 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28198 * editfns.c: Include "character.h" instead of "charset.h".
28199 (Fchar_to_string): Always call CHAR_STRING.
28201 * emacs.c (main): Call init_charset_once, init_charset,
28202 syms_of_chartab, and syms_of_character.
28204 * fileio.c: Include "character.h" instead of "charset.h".
28205 (Finsert_file_contents): Big change for the new code-conversion API.
28206 (choose_write_coding_system, Fwrite_region): Likewise.
28207 (build_annotations_2): Delete.
28208 (e_write): Big change for the new code-conversion API.
28210 * fns.c: Include "character.h" instead of "charset.h".
28211 (copy_sub_char_table): Move to chartab.c.
28212 (Fcopy_sequence): Call copy_char_table for a char table.
28213 (concat): Delete codes calling count_multibyte.
28214 (string_char_to_byte, string_byte_to_char): Adjust for the new
28216 (internal_equal): Adjust for the change of char table structure.
28217 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28218 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28219 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28220 (char_table_translate, optimize_sub_char_table)
28221 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28223 (char_table_ref_and_index): Delete.
28224 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28225 (Fmd5): Call preferred_coding_system instead of accessing
28226 Vcoding_category_list. Adjust for the new code-conversion API.
28227 (syms_of_fns): Move defsubr for char table related functions to
28230 * fontset.c: Mostly re-written.
28232 * fontset.h (struct font_info): Change type of the member encoding_type.
28233 (enum FONT_SPEC_INDEX): New enum.
28234 (fontset_font_pattern, fs_load_font): Update prototype.
28235 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28237 * indent.c: Include "character.h" instead of "charset.h".
28238 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28240 * insdel.c: Include "character.h" instead of "charset.h".
28241 (copy_text): Don't refer to Vnonascii_translation_table.
28242 (insert_from_gap): New function.
28244 * keyboard.c: Include "character.h" instead of "charset.h".
28245 (command_loop_1): Never call direct_output_forward_char before
28246 a non-ASCII character.
28247 (read_char): If Vkeyboard_translate_table is a char table, always
28248 translate a character.
28250 * keymap.c: Include "character.h".
28251 (store_in_keymap): Handle the case that IDX is a cons.
28252 (Fdefine_key): Handle the case that KEY is a cons and the car part
28253 is also a cons (range).
28254 (push_key_description): Adjust for the new character code.
28255 (describe_vector): Call describe_char_table for a char table.
28256 (describe_char_table): New function.
28258 * keymap.h (describe_char_table): Extern it.
28260 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28261 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28262 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28263 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28265 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28267 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28268 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28269 (CHARTAB_SIZE_BITS_3): New macros.
28270 (chartab_size): Extern it.
28271 (struct Lisp_Char_Table): Re-design.
28272 (struct Lisp_Sub_Char_Table): New structure.
28273 (HASH_KEY, HASH_VALUE): Move from fns.c.
28274 (CHARACTERBITS): Define as 22.
28275 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28276 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28277 (GC_SUB_CHAR_TABLE_P): New macro.
28278 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28279 (code_convert_string_norecord): Delete extern.
28280 (init_character_once, syms_of_character, init_charset)
28281 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28283 * lread.c: Include "character.h".
28284 (read_multibyte): New arg NBYTES.
28285 (read_escape): Change the meaning of returned *BYTEREP.
28286 (to_multibyte): Delete.
28287 (read1): Adjust the handling of char table and string.
28289 * print.c: Include "character.h" instead of "charset.h".
28290 (print_string): Convert 8-bit raw bytes to octal form by
28291 string_escape_byte8.
28292 (print_object): Adjust for the new multibyte form. Print 8-bit
28293 raw bytes always in octal form. Handle sub char table correctly.
28295 * process.c: Include "character.h" instead of "charset.h".
28296 (read_process_output, send_process): Adjust for the new
28297 code-conversion API.
28299 * puresize.h (BASE_PURESIZE): Increase.
28301 * regex.c: Include "character.h" instead of "charset.h".
28302 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28303 (regex_compile): Accept a range whose starting and ending
28304 character have different leading bytes.
28305 (analyse_first): Adjust for the above change.
28307 * search.c: Include "character.h" instead of "charset.h".
28308 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28309 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28311 * syntax.c: Include "character.h" instead of "charset.h".
28312 (syntax_parent_lookup): Delete.
28313 (Fmodify_syntax_entry): Accept a cons as CHAR.
28314 (skip_chars): Adjust for the new multibyte form.
28315 (init_syntax_once): Call char_table_set_range instead of directly
28316 accessing the structure of a char table.
28318 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28319 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28320 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28321 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28323 * term.c: Include "buffer.h" and "character.h".
28324 (encode_terminal_code, write_glyphs): Adjust for the new
28325 code-conversion API.
28326 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28328 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28330 * xdisp.c: Include "character.h".
28331 (get_next_display_element): Adjust for the new multibyte form.
28332 (disp_char_vector): Adjust for the new char table structure.
28333 (decode_mode_spec_coding): Adjust for the new structure of
28335 (decode_mode_spec): Adjust for the new code-conversion API.
28337 * xfaces.c: Include "character.h" instead of "charset.h".
28338 (load_face_font): Adjust for the change of choose_face_font and
28340 (generate_ascii_font): New function.
28341 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28342 (set_font_frame_param): Adjust for the change of choose_face_font.
28343 (free_realized_face): Make it public.
28344 (free_realized_faces_for_fontset): Rename from
28345 free_realized_multibyte_face. Free also faces realized for ASCII.
28346 (choose_face_font): Change arguments. Adjust for the change of
28347 fontset_font_pattern and FS_LOAD_FONT.
28349 * xfns.c: Include "character.h".
28350 (x_encode_text): Adjust for the new code-conversion API.
28352 * xselect.c: Don't include "charset.h".
28353 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28355 * xterm.c: Include "character.h".
28356 (x_encode_char): New argument CHARSET. Change caller.
28357 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28358 Call ENCODE_CHAR instead of SPLIT_CHAR.
28359 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28360 CHAR_WIDTH instead of CHARSET_WIDTH.
28361 (XTread_socket): Adjust for the new code-conversion API.
28362 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28363 (x_load_font): Adjust for the change of struct font.
28365 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28367 * xfaces.c (face_at_buffer_position): Remove unused vars.
28369 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28371 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28372 Fix overflow checking.
28374 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28376 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28377 Cancel previous change.
28379 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28381 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28382 ccl->eight_bit_control. Fix check for buffer overflow.
28383 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28384 (ccl_driver): Initialize extra_bytes to 0.
28386 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28388 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28389 return it ORed with ctrl_modifier.
28391 2008-01-29 Miles Bader <miles@gnu.org>
28393 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28395 2008-01-28 Jason Rumney <jasonr@gnu.org>
28397 * w32.c (stat): Don't double check for networked drive.
28399 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28401 * window.c (run_window_configuration_change_hook): New function.
28402 Code extracted from set_window_buffer. Set the selected frame.
28403 (set_window_buffer): Use it.
28404 * window.h (run_window_configuration_change_hook): Declare.
28405 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28407 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28409 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28411 * Makefile.in: Remove references to unused macros.
28413 2008-01-26 Eli Zaretskii <eliz@gnu.org>
28415 * w32.c (g_b_init_get_sid_sub_authority)
28416 (g_b_init_get_sid_sub_authority_count): New static variables.
28417 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28418 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28419 (init_user_info): Use them to retrieve uid and gid.
28420 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28421 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28422 st_uid and st_gid of the file.
28424 2008-01-26 Jason Rumney <jasonr@gnu.org>
28426 * w32.c (logon_network_drive): New function.
28429 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
28431 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28432 invisible text covered with an ellipsis.
28434 2008-01-25 Richard Stallman <rms@gnu.org>
28436 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28437 jump back to beginning. Move some other initializations after that.
28438 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28440 (syms_of_xdisp): Init them.
28442 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28444 * buffer.c (reset_buffer_local_variables):
28445 Implement `permanent-local-hook'.
28446 (Qpermanent_local_hook): New variable.
28447 (syms_of_buffer): Init and staticpro it.
28449 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
28451 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28453 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28455 * fns.c (Fclrhash): Return TABLE.
28457 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28459 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28460 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28461 is set even without positional changes.
28462 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28464 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28466 2008-01-23 Jason Rumney <jasonr@gnu.org>
28468 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28470 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28471 the unicode range available in MULE by locale-coding-system.
28472 Improve dbcs lead byte detection. Set event timestamp and modifiers
28475 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28477 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28478 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28479 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28480 when used on child processes.
28482 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
28484 * dbusbind.c (Fdbus_method_return_internal): Rename from
28485 Fdbus_method_return.
28486 (Fdbus_unregister_object): Move to dbus.el.
28487 (Fdbus_call_method, Fdbus_method_return_internal)
28488 (Fdbus_send_signal): Improve debug messages.
28490 2008-01-20 Martin Rudalics <rudalics@gmx.at>
28492 * undo.c (undo_inhibit_record_point): New variable.
28493 (syms_of_undo): Initialize it.
28494 (record_point): Don't record point when undo_inhibit_record_point
28497 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28499 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28501 * xdisp.c (Qauto_hscroll_mode): New var.
28502 (syms_of_xdisp): Initialize it.
28503 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28505 (hscroll_windows): Don't check automatic_hscrolling_p here.
28507 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28508 vscroll if we're setting window-buffer to the value it already has.
28510 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28512 * m/intel386.h: Remove references to XENIX.
28514 2008-01-17 Andreas Schwab <schwab@suse.de>
28516 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28517 instead of HAVE_X86_64_LIB64_DIR.
28518 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28520 2008-01-17 Glenn Morris <rgm@gnu.org>
28522 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28523 to HAVE_X86_64_LIB64_DIR.
28525 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28532 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28534 * sysdep.c: Remove code containing references to symbols defined
28535 by unsupported systems.
28537 2008-01-16 Glenn Morris <rgm@gnu.org>
28539 * coding.c (select-safe-coding-system-function): Doc fix.
28541 2008-01-15 Glenn Morris <rgm@gnu.org>
28543 * config.in: Revert 2008-01-13 change: this is a generated file.
28545 2008-01-13 Tom Tromey <tromey@redhat.com>
28547 * lisp.h: Fix typo.
28549 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28555 * s/ptx4.h: Remove files for systems no longer supported.
28557 * callproc.c (Fcall_process): Fix previous change.
28559 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28561 * unexsunos4.c: Remove file, system not supported anymore.
28581 * alloc.c: Remove code containing references to symbols defined by
28582 unsupported systems.
28584 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28586 * coding.c (detect_coding_mask): Fix previous change.
28588 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28590 * coding.c (detect_coding_iso2022): New arg
28591 latin_extra_code_state. Allow Latin extra codes only
28592 when *latin_extra_code_state is nonzero.
28593 (detect_coding_mask): If there is a NULL byte, detect the encoding
28594 as UTF-16 or binary. If Latin extra codes exist, detect the
28595 encoding as ISO-2022 only when there's no other proper encoding is
28598 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28600 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28603 2008-01-08 Richard Stallman <rms@gnu.org>
28605 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28607 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
28609 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28610 menu bar in parentheses.
28612 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28616 * m/alliant-2800.h:
28624 * m/aviion-intel.h:
28719 * unexsni.c: Remove files for systems no longer supported.
28721 * m/intel386.h: Remove references to unsupported systems.
28723 * w32.c (get_emacs_configuration): Remove reference to i860.
28725 * sysdep.c: Remove dead code.
28727 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28730 * m/masscomp.h: Remove files. Platform is obsolete.
28732 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
28734 * dbusbind.c (Fdbus_method_return): New function.
28735 (xd_read_message): Add the serial number to the event.
28736 (Fdbus_register_method): Activate the function.
28738 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28740 * keyboard.c (read_key_sequence): Fix typo.
28742 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
28744 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28745 (xd_signature, xd_append_arg): Handle element type detection for
28747 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28748 SDATA () calls; this must be solved more general.
28749 (Fdbus_register_signal): Use SBYTES instead of strlen.
28751 2008-01-03 Magnus Henoch <magnus@zemdatav>
28753 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28754 unsigned int for byte values (necessary for big-endian platform).
28755 (Fdbus_call_method): Handle the case of no returned arguments.
28757 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28759 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28761 2007-12-31 Magnus Henoch <mange@freemail.hu>
28763 * dbusbind.c (xd_signature): Signature of variant is just "v".
28765 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
28767 * dbusbind.c: Fix several errors and compiler warnings.
28768 Reported by Tom Tromey <tromey@redhat.com>.
28769 (XD_ERROR, XD_DEBUG_MESSAGE)
28770 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28771 (xd_append_arg): Part for basic D-Bus types rewritten.
28772 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28773 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28775 (xd_read_message): Return Qnil. Don't signal an error; it is not
28776 useful during event reading.
28777 (Fdbus_register_signal): Signal an error if the check for
28779 (Fdbus_register_method): New function. The implementation is not
28780 complete, the call of the function signals an error therefore.
28781 (Fdbus_unregister_object): New function, renamed from
28782 Fdbus_unregister_signal. The initial check signals an error, if
28783 the object is not well formed.
28785 2007-12-30 Richard Stallman <rms@gnu.org>
28787 * textprop.c (get_char_property_and_overlay):
28788 Signal error if POSITION is out of range in a buffer.
28790 2007-12-29 Martin Rudalics <rudalics@gmx.at>
28792 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28793 because the original parameters are in pure storage now.
28795 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28797 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28799 2007-12-22 Eli Zaretskii <eliz@gnu.org>
28801 * callint.c (syms_of_callint) <command-history>: Add reference to
28802 history-length in the doc string.
28804 2007-12-17 Jason Rumney <jasonr@gnu.org>
28806 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28807 before passing as wParam.
28809 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
28811 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28812 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28813 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28814 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28816 (Fdbus_call_method): Fix docstring.
28818 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
28820 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28822 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28823 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28825 (xd_signature): New function.
28826 (xd_append_arg): Compute also signatures. Major rewrite.
28827 (xd_retrieve_arg): Make debug messages friendly.
28828 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28829 Check for signatures of arguments.
28831 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
28833 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28834 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28835 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28836 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28837 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28838 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28839 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28840 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28841 (xd_retrieve_value): Remove. Functionality included in ...
28842 (xd_append_arg): New function.
28843 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28845 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
28847 * dbusbind.c (top): Include <stdio.h>.
28848 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28849 dbus_message_new_method_call and dbus_message_new_signal.
28850 (Fdbus_register_signal): Rename unique_name to uname.
28851 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28852 non-existing unique name. Fix typos in matching rule. Return an
28853 object which is useful in Fdbus_unregister_signal.
28854 (Fdbus_unregister_signal): Reimplementation, in order to remove
28855 only the corresponding entry.
28856 (Vdbus_registered_functions_table): Change the order of entries.
28857 Apply these changes in xd_read_message and Fdbus_register_signal.
28859 2007-12-16 Andreas Schwab <schwab@suse.de>
28861 * fileio.c (Finsert_file_contents): Fix overflow check to not
28862 depend on undefined integer overflow.
28864 2007-12-14 Jason Rumney <jasonr@gnu.org>
28866 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28867 for characters above 127.
28869 2007-12-13 Jason Rumney <jasonr@gnu.org>
28871 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28872 before dereferencing array.
28873 (lookup_vk_code): Remove zero comparison.
28875 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
28877 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28878 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28879 Use `unsigned int' instead of `uint'.
28880 (xd_read_message, Fdbus_register_signal): Split expressions into
28881 multiple lines before operators "&&" and "||", according to the
28882 GNU Coding Standards.
28884 2007-12-14 Eli Zaretskii <eliz@gnu.org>
28886 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28888 2007-12-12 Juri Linkov <juri@jurta.org>
28890 * buffer.c (Frename_buffer): In interactive spec replace
28891 `read-buffer' with `read-string' that uses `buffer-name-history'
28892 as history, and the current buffer's name as default.
28894 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28896 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28897 manipulating the backtrace manually.
28898 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28899 (struct backtrace, backtrace_list): Remove.
28900 (command_loop_1): Remove dead var `no_direct'.
28902 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28903 preserve non-built-in buffer-local variables.
28904 (Fkill_all_local_variables): Don't re-create&re-set permanent
28905 buffer-local variables.
28907 2007-12-09 Juri Linkov <juri@jurta.org>
28909 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28910 Lisp code that uses `read-buffer' with current buffer as default.
28912 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
28914 * dbusbind.c (xd_read_message): Generate an event for every
28915 registered handler. There might be several handlers registered
28916 for the same signal.
28917 (Fdbus_register_signal): Don't overwrite a registration for the
28918 same signal. Add a new registration if handlers are different.
28919 (Vdbus_registered_functions_table): Rework doc string.
28921 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
28923 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28924 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28925 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28926 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28927 Unify argument lists.
28928 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28929 arguments and hash table keys. Use unique name for service.
28930 (Fdbus_unregister_signal): Remove checks.
28931 (Vdbus_registered_functions_table): Fix doc string.
28933 2007-12-05 Magnus Henoch <mange@freemail.hu>
28935 * process.c (make_process): Initialize pty_flag to 0.
28937 2007-12-05 Jason Rumney <jasonr@gnu.org>
28939 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28942 2007-12-05 Richard Stallman <rms@gnu.org>
28944 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28946 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28948 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28950 (mac_try_close_socket) [MAC_OSX]: New function.
28951 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28952 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28954 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28955 Use mac_try_close_socket.
28957 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28959 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28961 (copy_dysymtab): Compute relocation base here.
28962 (rebase_reloc_address) [__ppc64__]: New function.
28963 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28966 2007-12-05 Jason Rumney <jasonr@gnu.org>
28968 * w32proc.c (sys_spawnve): Quote args with wildcards.
28970 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28972 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28974 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28976 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
28978 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28979 Move check for Vdbus_registered_functions_table to
28980 xd_read_queued_messages.
28981 (xd_read_queued_messages): Protect xd_read_message calls by
28982 internal_condition_case_1.
28984 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
28986 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28987 Qdbus_system_bus and Qdbus_session_bus, respectively.
28988 (Vdbus_intern_symbols): Remove.
28989 (Vdbus_registered_functions_table): New hash table.
28990 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28991 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28992 Rewrite in order to manage registered functions by hash table
28993 Vdbus_registered_functions_table.
28995 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28997 * xterm.c: Update URL to Window Manager Specification in comment.
28999 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29001 * config.in (HAVE_DBUS): Add.
29003 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29004 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29005 (obj): Add $(DBUS_OBJ).
29006 (LIBES): Add $(DBUS_LIBS).
29007 (dbusbind.o): New target.
29009 * dbusbind.c: New file.
29011 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29013 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29014 (Qdbus_event): New Lisp symbol.
29015 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29016 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29017 (keys_of_keyboard): Define dbus-event.
29019 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29021 2007-12-01 Richard Stallman <rms@gnu.org>
29023 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29025 2007-11-30 Jason Rumney <jasonr@gnu.org>
29027 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29028 (w32con_reset_terminal_modes): Clear screen buffer.
29029 (w32_face_attributes): Don't use color indexes that are out of range.
29030 Only reverse the default colors.
29032 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29035 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29037 2007-11-29 Jason Rumney <jasonr@gnu.org>
29039 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29040 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29041 if the terminal colors are initialized.
29042 (unspecified_fg, unspecified_bg): Remove unused declarations.
29044 2007-11-29 Andreas Schwab <schwab@suse.de>
29046 * keyboard.c (apply_modifiers): Fix typo.
29048 2007-11-29 Richard Stallman <rms@gnu.org>
29050 * keymap.c (Fcurrent_local_map): Doc fix.
29052 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29054 * s/gnu-kfreebsd.h: New file.
29056 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29058 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29059 Don't cast redundantly.
29061 * keyboard.c (KEY_TO_CHAR): New macro.
29062 (parse_modifiers, apply_modifiers): Accept integer arguments.
29063 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29064 for chars and symbol keys.
29065 After doing such remapping, apply function-key-map again.
29067 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29069 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29072 2007-11-26 Andreas Schwab <schwab@suse.de>
29074 * process.c (list_processes_1): Fix indentation level of the
29077 2007-11-23 Andreas Schwab <schwab@suse.de>
29079 * editfns.c (Fformat): Handle %c specially since it requires the
29080 argument to be of type int.
29082 2007-11-23 Markus Triska <markus.triska@gmx.at>
29084 * emacs.c (main): Call init_editfns before init_process, since
29085 init_process sets Vprocess_connection_type depending on OS release.
29087 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29089 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29090 (find_symbol_value): Use do_symval_forwarding.
29092 * data.c (set_internal): Set the value in the `cons-cell' (for
29093 Buffer_Local_values) not only for frame-local variables.
29095 2007-11-22 Andreas Schwab <schwab@suse.de>
29097 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29099 * keymap.c (Fsingle_key_description): Likewise.
29100 * print.c (print_object): Likewise.
29102 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29104 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29105 file for image is nil.
29107 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29109 * term.c: Include stdarg.h.
29110 (fatal): Implement using varargs.
29111 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29113 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29115 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29116 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29117 Update call to buffer_slot_type_mismatch.
29118 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29119 (buffer_slot_type_mismatch): Update.
29120 * buffer.c (buffer_local_types): Remove.
29121 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29122 (defvar_per_buffer): Set the type in the buffer_objfwd.
29124 2007-11-21 Jason Rumney <jasonr@gnu.org>
29126 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29127 CreateFileMapping returns NULL on failure.
29129 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29131 * search.c (Fset_match_data): Remove the `evaporate' feature.
29132 (unwind_set_match_data): Don't use the `evaporate' feature.
29134 2007-11-21 Jason Rumney <jasonr@gnu.org>
29136 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29138 * w32console.c (w32con_write_glyphs): Remove unused variables.
29140 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29142 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29144 * s/darwin.h (MULTI_KBOARD): Remove.
29146 * macfns.c (x_create_tip_frame, Fx_create_frame)
29147 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29149 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29151 * buffer.c (Fbuffer_local_value): Remove redundant test.
29152 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29153 than in `current-buffer' to match the comment.
29154 Do the swap using swap_in_global_binding.
29156 * data.c (store_symval_forwarding, set_internal):
29157 * eval.c (specbind): Remove dead code.
29159 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29160 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29161 Since we do not want to see internal Lisp_*fwd objects here.
29163 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29165 * sysdep.c (init_system_name): Use getaddrinfo if available.
29167 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29168 (x_scroll_bar_note_movement): start, end, with, height in struct
29169 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29171 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29173 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29175 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29177 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29178 This undoes Richard's change of 14-Oct-2002.
29180 * alloc.c (allocate_other_vector):
29181 * lisp.h (allocate_other_vector): Remove.
29183 * window.c (struct save_window_data): Move non-lisp data to the end
29184 and make it `int' rather than Lisp_Object.
29185 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29186 Done wrap/unwrap integer values.
29187 (Fset_window_configuration, compare_window_configurations):
29188 Update use of fields to their new types.
29190 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29191 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29192 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29193 (SET_SCROLL_BAR_X_WINDOW): Remove.
29194 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29195 Access the new x_window field directly.
29196 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29197 Don't wrap/unwrap integers into Lisp_Objects.
29198 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29199 (x_scroll_bar_report_motion):
29200 Don't wrap/unwrap integers into Lisp_Objects.
29201 (x_term_init): Use SDATA.
29202 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29203 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29204 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29205 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29206 * xfns.c (x_set_background_color):
29207 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29208 Access the new x_window field directly.
29210 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29211 (allocate_pseudovector): Make non-static.
29213 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29214 (allocate_pseudovector): Declare.
29215 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29217 2007-11-15 Andreas Schwab <schwab@suse.de>
29219 * editfns.c (Fformat): Correctly format EMACS_INT values.
29220 Also take precision into account when formatting an integer.
29222 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29224 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29226 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29227 (syms_of_keyboard): Defsubr it.
29229 * data.c (swap_in_global_binding): Fix longstanding bug where
29230 store_symval_forwarding was not called with the right second argument,
29231 thus causing objfwd-ing from being dropped.
29233 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29235 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29236 (Fx_display_pixel_height, Fx_display_planes)
29237 (Fx_display_color_cells, Fx_server_max_request_size)
29238 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29239 (Fx_display_visual_class, Fx_display_save_under):
29240 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29241 (Fx_display_pixel_height, Fx_display_planes)
29242 (Fx_display_color_cells, Fx_server_max_request_size)
29243 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29244 (Fx_display_mm_height, Fx_display_mm_width)
29245 (Fx_display_backing_store, Fx_display_visual_class)
29246 (Fw32_select_font, Fx_display_save_under):
29247 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29248 (Fx_display_pixel_height, Fx_display_planes)
29249 (Fx_display_color_cells, Fx_server_max_request_size)
29250 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29251 (Fx_display_save_under): Fix typos in docstrings.
29253 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29255 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29256 corresponding to deleted entries; they are an implementation detail.
29257 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29259 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29260 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29261 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29262 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29263 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29264 (Fw32_define_rgb_color, Fw32_load_color_file)
29265 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29266 Fix typos in docstrings.
29267 (Fx_server_version): Reflow docstring.
29268 (Fw32_shell_execute): Doc fixes.
29270 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29272 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29273 if w32_parse_hot_key returned nil.
29275 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29277 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29279 2007-11-09 Jason Rumney <jasonr@gnu.org>
29281 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29283 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29285 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29286 Remove W32_SCROLL_BAR_CLICK_EVENT.
29288 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29289 Add MULTIMEDIA_KEY_EVENT.
29291 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29292 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29293 (make_lispy_event) [WINDOWSNT]: Use it to translate
29294 MULTIMEDIA_KEY_EVENT.
29296 * w32term.h (WM_APPCOMMAND): Define if not already.
29297 (GET_APPCOMMAND_LPARAM): Likewise.
29299 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29302 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29303 (syms_of_w32fns): Export and initialize it.
29304 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29306 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29308 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29311 * xdisp.c (handle_face_prop): Fix last change.
29313 2007-11-09 Richard Stallman <rms@gnu.org>
29315 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29316 not just for after-strings and before-strings.
29317 Call face_for_overlay_string and pass the overlay to it.
29318 (handle_display_prop): Determine whether property came from an overlay.
29319 Pass OVERLAY arg to handle_single_display_spec.
29320 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29321 (load_overlay_strings): Fill in it->string_overlays.
29322 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29324 * xfaces.c (face_for_overlay_string): Function renamed from
29325 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29327 * dispextern.h (struct it): New elt string_overlays.
29328 New elt from_overlay, also in stack.
29329 Rearrange a few elements.
29330 (face_for_overlay_string): Decl renamed from
29331 face_at_buffer_position_no_overlays, and add argument.
29333 2007-11-09 Richard Stallman <rms@gnu.org>
29335 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29336 to get the base face for an overlay string.
29338 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29340 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29342 * xdisp.c (handle_stop): Move some code out of loop.
29344 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29346 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29347 Fix conversion from Lisp object to ATSUFontID.
29349 2007-11-09 Jason Rumney <jasonr@gnu.org>
29351 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29353 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29355 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29356 Don't assume regions are aligned to page boundary.
29357 (print_load_command_name): Add LC_UUID if defined.
29359 2007-11-09 Richard Stallman <rms@gnu.org>
29361 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29363 2007-11-07 Jason Rumney <jasonr@gnu.org>
29365 * s/windows95.h: Remove.
29367 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29369 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29370 abort with a message on unhandled store_type values.
29372 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29374 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29375 Remove HAVE_X11R5 and HAVE_X11R4.
29377 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29379 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29381 2007-11-01 Johan Bockgård <bojohan@gnu.org>
29383 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29384 Don't set s->stippled_p here, since it has already been set by
29385 x_set_glyph_string_gc from x_draw_glyph_string.
29387 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29389 * sunfns.c: Remove file.
29393 * m/sparc.h: Remove Sun windows code.
29395 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29397 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29398 (init_keyboard): Set current_kboard's window-system to nil.
29399 (tty_read_avail_input): Typo.
29400 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29402 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29409 * Makefile.in: Remove all mentions of X10.
29411 * dispnew.c (syms_of_display): Don't mention version 10.
29413 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
29415 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29416 ($(BLD)/abbrev.$(O)): Remove.
29418 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29420 Rewrite abbrev.c in Elisp.
29421 * image.c (Qcount): Don't declare as extern.
29422 (syms_of_image): Initialize and staticpro `Qcount'.
29423 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29424 * emacs.c (main): Don't call syms_of_abbrev.
29425 * Makefile.in (obj): Remove abbrev.o.
29426 (abbrev.o): Remove.
29427 * abbrev.c: Remove.
29429 2007-10-26 Martin Rudalics <rudalics@gmx.at>
29431 * window.c (window_min_size_2): Don't count header-line.
29433 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29435 * frame.h (struct frame): Move all bit fields after the first bit
29436 field to take advantage of the available space. Group all the
29437 chars together to reduce wasted space due to padding.
29439 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
29441 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29443 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29444 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29445 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29446 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29447 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29448 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29449 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29450 (last_marked, mark_object_loop_halt): Make static.
29452 * frame.c (syms_of_frame) <delete-frame-functions>:
29453 Fix typo in docstring.
29455 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
29457 * w32.c (init_environment): Fix tiny memory leak.
29458 (w32_get_resource): Remove unused variable `ok'.
29460 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29462 Make `window-system' into a keyboard-local variable (rather than
29463 frame-local as done originally by multi-tty).
29465 * keyboard.h (struct kboard): Add Vwindow_system.
29466 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29467 (mark_kboards): Mark Vwindow_system.
29469 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29470 (init_display): Don't set the obsolete `window-system' frame-param.
29472 * xterm.c (x_term_init):
29473 * w32term.c (w32_create_terminal):
29474 * term.c (init_tty): Set Vwindow_system.
29475 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29476 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29478 * xfns.c (Fx_create_frame, x_create_tip_frame):
29479 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29480 * macfns.c (Fx_create_frame):
29481 Don't set the obsolete `window-system' frame-param.
29483 * frame.h (Qwindow_system): Remove.
29484 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29485 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29487 2007-10-24 Richard Stallman <rms@gnu.org>
29489 * frame.c (x_figure_window_size): For fullscreen case,
29490 set USPosition | PPosition without clobbering rest of window_prompting.
29492 * keyboard.c (Fcurrent_idle_time): Doc fix.
29494 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29496 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29498 * process.c (unwind_request_sigio): Only define if __ultrix__.
29500 * callproc.c (child_setup): Remove spurious *.
29502 * lisp.h (Fget_text_property): Declare.
29503 (have_menus_p): Declare it here rather than in sys-dep header files.
29504 * macterm.h (have_menus_p):
29505 * msdos.h (have_menus_p):
29506 * xterm.h (have_menus_p): Remove.
29508 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29509 (Fmake_variable_frame_local): Just check the variable's const-ness
29510 rather than checking nil or t.
29512 2007-10-22 Jason Rumney <jasonr@gnu.org>
29514 * w32fns.c: Include math.h.
29515 (w32_abort): Declaration moved to nt/config.nt.
29517 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29518 (abort): Redefinition moved to nt/config.nt.
29520 * m/windowsnt.h: Remove.
29522 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
29524 * emacs.c (Fdump_emacs): Fix typo in message.
29525 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29526 <installation-directory>: Reflow docstring.
29528 2007-10-22 Juri Linkov <juri@jurta.org>
29530 * minibuf.c: Allow minibuffer default to be a list of default values.
29531 With empty input use the first element of this list as returned default.
29533 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29534 (read_minibuf): If defalt is cons, set histstring to its car.
29535 (Fread_string): If default_value is cons, set val to its car.
29536 (Fread_buffer): If def is cons, use its car.
29537 (Fcompleting_read): If defalt is cons, set val to its car.
29539 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
29541 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29543 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
29545 * doc.c (Fdocumentation): Check for advice in all cases.
29547 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
29549 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29551 2007-10-19 Richard Stallman <rms@gnu.org>
29553 * doc.c (Fdocumentation): Check for and handle an advised function.
29555 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
29557 * process.c (Fset_process_filter): Doc fix.
29559 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29561 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29562 which caused key-translation-map to applied repeatedly (thus breaking
29565 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29567 * xselect.c (x_own_selection, x_handle_selection_clear)
29568 (x_clear_frame_selections):
29569 * w32menu.c (list_of_panes, list_of_items):
29570 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29571 * textprop.c (validate_plist, interval_has_all_properties)
29572 (interval_has_some_properties, interval_has_some_properties_list)
29573 (add_properties, text_property_list):
29574 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29575 * minibuf.c (Fassoc_string):
29576 * macselect.c (x_own_selection, x_clear_frame_selections)
29577 (Fx_disown_selection_internal):
29578 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29579 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29581 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
29583 * process.c: Link to libs for calling res_init() if available.
29584 (Fmake_network_process): Call res_init() before getaddrinfo or
29585 gethostbyname, if possible.
29587 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29589 * lread.c (read1): Set pvectype for char_tables.
29591 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29592 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29594 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29596 * alloc.c (free_misc): Use XMISCTYPE.
29597 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29599 2007-10-17 Glenn Morris <rgm@gnu.org>
29601 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29602 (syms_of_minibuf): Add Qcompletion_ignore_case.
29603 * dired.c (Qcompletion_ignore_case): Change to external.
29604 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29605 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29606 (Fread_file_name): Use it rather than intern'ing.
29608 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29609 (Fread_coding_system): Ignore case of user input.
29611 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29613 * xdisp.c (handle_display_prop): Ignore display specs after
29614 replacing one when string text is being replaced.
29615 (handle_single_display_spec): Pretend as if characters with display
29616 property haven't been consumed only when buffer text is being replaced.
29618 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29620 * xfns.c (Fx_create_frame, Fx_display_list):
29621 * window.c (window_fixed_size_p, enlarge_window)
29622 (shrink_window_lowest_first):
29623 * macterm.c (init_font_name_table):
29624 * macfns.c (Fx_create_frame, Fx_display_list):
29625 * lread.c (close_load_descs):
29626 * keyboard.c (read_char_x_menu_prompt):
29627 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29628 * coding.c (code_convert_region_unwind): Test the type of an object
29629 rather than just !NILP before extracting data from it.
29631 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29633 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29634 (XMISCANY): New macro.
29635 (XMISCTYPE): Use it.
29636 (struct Lisp_Misc_Any): New type.
29637 (union Lisp_Misc): Use it.
29638 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29639 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29640 (find_symbol_value, set_internal, default_value, Fset_default)
29641 (Fmake_variable_buffer_local, Fmake_local_variable)
29642 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29643 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29644 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29645 * alloc.c (allocate_buffer): Set the size and tag.
29646 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29648 (die): Follow the GNU convention for error messages.
29649 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29650 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29652 (set_buffer_internal_1):
29653 * frame.c (store_frame_param):
29654 * eval.c (specbind):
29655 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29657 * doc.c (Fsnarf_documentation): Simplify.
29659 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29661 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29662 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29664 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29666 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29668 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
29670 * eval.c (do_autoload): Don't save autoloads.
29672 * data.c (Ffset): Save autoload of the function being set.
29674 2007-10-07 John Paul Wallington <jpw@pobox.com>
29676 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29677 parameter before setting up faces.
29679 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29681 * ccl.c (Fregister_code_conversion_map):
29682 * keyboard.c (append_tool_bar_item): Reformat last change.
29684 * lisp.h (eabs): Rename from `abs'. All callers changed.
29686 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29688 * buffer.c (add_overlay_mod_hooklist):
29689 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29690 * fontset.c (make_fontset):
29691 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29692 (append_tool_bar_item):
29693 * macmenu.c (grow_menu_items):
29694 * w32menu.c (grow_menu_items):
29695 * xmenu.c (grow_menu_items): Use larger_vector.
29697 2007-10-13 Eli Zaretskii <eliz@gnu.org>
29699 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29700 selected frame'' on MSDOS).
29702 2007-10-12 Martin Rudalics <rudalics@gmx.at>
29704 * frame.c (Qexplicit_name): New variable.
29705 (x_report_frame_params): Report it in parameter alist.
29706 (syms_of_frame): Intern and staticpro it.
29708 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29710 * macfns.c (x_create_tip_frame): Set terminal for frame.
29712 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29714 * frame.c (Qenvironment): Remove.
29715 (syms_of_frame) <Qenvironment>: Don't initialize.
29716 (Fdelete_frame): Don't treat the `environment' param specially.
29717 * frame.h (Qenvironment): Don't declare.
29718 * callproc.c (set_initial_environment): Don't set unused frame param.
29720 * frame.c (Fframe_with_environment): Remove.
29721 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29723 * lisp.h (Fframe_with_environment): Don't declare.
29725 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
29727 * indent.c (indent_tabs_mode, last_known_column)
29728 (last_known_column_modified): Make static.
29729 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29731 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29733 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29735 2007-10-09 Jason Rumney <jasonr@gnu.org>
29737 * w32term.c (x_set_window_size): Disable code that attempts to tell
29738 Lisp code about a size change before it actually happens.
29740 2007-10-09 Richard Stallman <rms@gnu.org>
29742 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29743 return HANDLED_RETURN.
29745 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29747 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29748 when there's an unread command event.
29750 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29751 window autoselection act appropriately when leaving selected frame.
29752 (syms_of_frame): Initialize focus_follows_mouse.
29753 * frame.h (focus_follows_mouse): Extern it.
29754 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29755 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29756 * msdos.c (dos_rawgetc): Likewise.
29757 * w32term.c (w32_read_socket): Likewise.
29758 * xterm.c (handle_one_xevent): Likewise.
29759 * xdisp.c (syms_of_xdisp): In doc-string of
29760 mouse-autoselect-window mention focus-follows-mouse.
29762 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29764 * macterm.c (mac_load_query_font): Fix missing return value.
29765 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29768 2007-10-08 Richard Stallman <rms@gnu.org>
29770 * xdisp.c (get_window_cursor_type): Implement documented behavior
29771 for cursor-in-non-selected-windows = t.
29773 2007-10-08 Jason Rumney <jasonr@gnu.org>
29775 * w32.c (w32_get_resource): Always close registry keys.
29777 2007-10-08 Jason Rumney <jasonr@gnu.org>
29779 * makefile.w32-in (LIBS): Add COMCTL32.
29781 * w32fns.c (globals_of_w32fns): Init common controls.
29783 2007-10-08 Richard Stallman <rms@gnu.org>
29785 * image.c (our_memory_buffer): Rename from omfib_buffer.
29787 2007-10-08 Richard Stallman <rms@gnu.org>
29789 * buffer.c (Foverlays_at): Doc fix.
29791 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29793 * fns.c (Fplist_put): Preserve uneven tail data.
29795 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29797 * termhooks.h (enum event_kind): Remove trailing comma.
29799 * frame.h (enum): Remove trailing comma.
29801 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29803 * w32proc.c (delete_child): Don't terminate threads of zombies.
29805 2007-10-08 Martin Rudalics <rudalics@gmx.at>
29807 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29809 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29810 last-repeatable-command.
29811 (init_kboard): Initialize Vlast_repeatable_command.
29812 (command_loop_1): Set it to real_this_command unless that was
29813 bound to an input event.
29814 (mark_kboards): Mark it.
29816 2007-10-08 Richard Stallman <rms@gnu.org>
29818 * eval.c (condition-case): Doc fix.
29820 2007-10-08 Masatake YAMATO <jet@gyve.org>
29822 * xfaces.c (tty_supports_face_attributes_p): Fix code
29823 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29824 was copied and not edited.
29826 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29828 Add new `input-decode-map' keymap and use it for terminal
29830 * keyboard.h (struct kboard): Add Vinput_decode_map.
29831 Remove Vlocal_key_translation_map.
29832 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29833 (init_kboard): Init input-decode-map.
29834 Replace local-key-translation-map back with key-translation-map.
29835 (syms_of_keyboard): Declare input-decode-map.
29836 Remove local-key-translation-map. Update docstrings.
29837 (mark_kboards): Mark Vinput_decode_map.
29838 Don't mark Vlocal_key_translation_map.
29839 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29840 Replace local-key-translation-map back with key-translation-map.
29841 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29842 Bind in input-decode-map rather than function-key-map.
29844 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29845 This was made redundant by the previous introduction of XSETPVECTYPE.
29847 2007-10-09 Richard Stallman <rms@gnu.org>
29849 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29851 2007-09-29 Richard Stallman <rms@gnu.org>
29853 * eval.c (internal_condition_case_2, internal_condition_case_1)
29854 (internal_condition_case): Reenable abort if x_catching_errors ()
29855 to see if that really happens and why.
29857 2007-10-06 Andreas Schwab <schwab@suse.de>
29859 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29861 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
29863 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29865 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29867 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29869 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29871 * window.h (struct window):
29872 * window.c (struct save_window_data, struct saved_window):
29873 * termhooks.h (struct terminal):
29874 * process.h (struct Lisp_Process):
29875 * frame.h (struct frame):
29876 * buffer.h (struct buffer):
29877 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29878 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29879 The size field of (pseudo)vectors is now unsigned.
29880 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29882 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29883 Turn `count' into an integer.
29885 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29886 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29887 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29888 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29889 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29891 * alloc.c (allocate_pseudovector): New fun.
29892 (ALLOCATE_PSEUDOVECTOR): New macro.
29893 (allocate_window, allocate_terminal, allocate_frame)
29894 (allocate_process): Use it.
29895 (mark_vectorlike): New function.
29896 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29897 (mark_terminals): Use it.
29898 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29899 (Fmake_byte_code): Use XSETPVECTYPE.
29901 * frame.c (Fframe_parameters): Minor simplification.
29903 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29905 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29907 * buffer.c (Fget_buffer_create, init_buffer_once):
29908 * lread.c (defsubr):
29909 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29911 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29912 defined differently in the m/*.h files.
29913 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29914 (XSETPVECTYPE): New macro.
29915 (XSETPSEUDOVECTOR): Use it.
29917 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29918 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29920 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29921 * lread.c (defvar_per_buffer):
29922 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29924 * window.c (candidate_window_p): Only consider as visible frames that
29925 are on the same terminal.
29927 * m/ibms390x.h (MARKBIT): Remove unused macro.
29929 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
29931 * lread.c (Fload): Fix typo in docstring.
29933 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29935 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29936 of a non-zero value can't yield zero.
29938 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29940 * term.c (term_clear_mouse_face, term_mouse_highlight)
29941 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29943 * print.c (safe_debug_print): Use XHASH.
29945 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29946 Lisp elements such as tags.
29947 (XHASH): New macro.
29949 (SREF, SSET, STRING_COPYIN): Use SDATA.
29950 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29952 * alloc.c (mark_terminal): Remove left-over declaration.
29953 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29954 (allocate_vectorlike): Remove type argument. Adjust callers.
29955 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29956 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29958 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29959 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29960 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29961 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29962 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29965 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29966 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29967 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29969 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29971 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29974 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29976 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29978 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29980 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29982 (handle_one_term_event): Use Gpm_DrawPointer.
29983 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29984 Signal errors instead of returning nil. Always return nil.
29985 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29986 Make it a noop if gpm-mouse was not activated.
29987 (syms_of_term): Update names.
29989 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29991 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29992 (init_sys_modes): Check that gpm_tty is the current tty.
29994 * alloc.c (allocate_terminal): Set the vector size to only count the
29995 lisp fields. Initialize those to nil.
29996 (mark_object): Don't treat terminals specially.
29997 (mark_terminal): Remove.
29998 (mark_terminals): Use mark_object instead.
30000 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30001 the GC to the beginning.
30004 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30006 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30008 2007-09-25 Jason Rumney <jasonr@gnu.org>
30010 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30012 * w32console.c (create_w32cons_output): Remove.
30014 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30016 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30017 (reset_sys_modes): Use reset_terminal_modes_hook.
30019 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30021 * eval.c (do_autoload): Don't output any message.
30023 2007-09-24 Juri Linkov <juri@jurta.org>
30025 * emacs.c (standard_args): Change priority of "--no-splash"
30026 from 40 to 3. Add "--no-desktop" with the same priority.
30028 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30030 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30031 and optimize the case where they are all 1.
30033 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30035 * lisp.h (abs): Define if not defined.
30036 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30037 Don't define `abs', since it's defined in lisp.h.
30039 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30041 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30042 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30043 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30044 (init_tty): Use DEV_TTY instead of "/dev/tty".
30045 [WINDOWSNT]: No need to protect from NAME arg being null.
30047 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30049 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30052 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30054 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30055 (gpm_tty): Change its type.
30056 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30057 (gpm_tty): Change its type and initialize it.
30058 (Fterm_open_connection): Check the frame is indeed a tty.
30059 Use the new gpm_tty.
30060 (Fterm_close_connection): Use the new gpm_tty.
30061 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30062 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30064 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30066 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30067 underline_color, to draw strike-through.
30069 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30071 * lisp.h (allocate_terminal): Declare.
30073 * window.c (candidate_window_p): Consider frames that are being placed
30074 by the user as somewhere between visible and iconified.
30075 (window_loop): Prefer windows on the current frame.
30076 (Fselect_window): Move the use of select-frame to the beginning so we
30077 can just delegate all the work (it'll call us back anyway).
30079 * frame.c (Qdisplay_environment_variable):
30080 * frame.h (Qdisplay_environment_variable): Delete.
30082 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30083 of the first arg, since that value may be a union.
30085 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30086 parameter rather than Qdisplay_environment_variable. If all else
30087 fails, look for DISPLAY in initial-environment.
30089 2007-09-21 Glenn Morris <rgm@gnu.org>
30091 * Makefile.in (emacstool): Remove target.
30092 (lisp, shortlisp): Remove termdev.elc.
30094 2007-09-21 Markus Triska <markus.triska@gmx.at>
30096 * xterm.c (x_delete_display): Compile session management conditionally.
30098 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30100 * callproc.c (getenv_internal_1): New function.
30101 (getenv_internal): Use it.
30102 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30104 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30105 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30106 (Fset_terminal_parameter): Work with dead terminals as well.
30107 (Fmodify_terminal_parameters): Remove.
30109 * terminal.c (get_terminal): Handle terminals.
30110 Make sure the terminal returned is live.
30111 (create_terminal): Use allocate_terminal.
30112 (mark_terminals): Move to alloc.c.
30113 (delete_terminal): Use terminal->name as liveness status.
30114 NULL out fields after freeing their contents.
30115 Don't deallocate the object.
30116 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30117 rather than an int.
30118 (Fterminal_live_p): Accept non-integer arguments.
30119 (Fterminal_list): Return terminal objects rather than an ints.
30121 * alloc.c (enum mem_type): New member for `terminal' objects.
30122 (allocate_terminal): New function.
30123 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30125 (mark_terminal): New fun.
30126 (mark_terminals): Move from terminal.c.
30128 * term.c (get_tty_terminal): Don't treat output_initial specially.
30129 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30130 (delete_tty): Use terminal->name as liveness status.
30132 * termhooks.h (struct terminal): Make it into a pseudovector.
30133 Remove `deleted' replaced by checking `name's nullness.
30135 * print.c (print_object): Handle terminals.
30137 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30138 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30140 * frame.c (make_terminal_frame):
30141 * keyboard.c (tty_read_avail_input):
30142 * w32term.c (x_delete_terminal):
30143 * xfns.c (Fx_create_frame, x_create_tip_frame):
30144 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30146 2007-09-20 Glenn Morris <rgm@gnu.org>
30148 * process.c (Fmake_network_process): Doc fix.
30150 2007-09-19 Jason Rumney <jasonr@gnu.org>
30152 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30154 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30156 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30157 Fix a C warning regarding variable constness.
30159 * xterm.c (handle_one_xevent): Fix a C warning.
30161 2007-09-18 Jason Rumney <jasonr@gnu.org>
30163 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30165 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30167 * gtkutil.c (gdpy_def): New variable.
30168 (xg_initialize): Initialize gdpy_def.
30169 (xg_display_close): If no other display exists, set gdpy_def to a
30172 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30174 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30175 when we have no file name for the icon.
30176 (xg_tool_bar_expose_callback): Remove.
30177 (xg_create_tool_bar): Don't connect expose signal to
30178 xg_tool_bar_expose_callback.
30179 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30181 2007-09-16 Andreas Schwab <schwab@suse.de>
30183 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30184 values instead of zapping them.
30186 2007-09-14 Glenn Morris <rgm@gnu.org>
30188 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30189 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30190 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30191 scope and rename to omfib_buffer for clarity.
30192 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30194 2007-09-14 Kenichi Handa <handa@m17n.org>
30196 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30198 2007-09-13 Jason Rumney <jasonr@gnu.org>
30200 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30202 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30204 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30205 (mac_term_init): Call here instead, passing rif.
30207 2007-09-13 Glenn Morris <rgm@gnu.org>
30209 * s/hpux.h: No longer define `static' as nothing.
30211 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30213 * callint.c (Fcall_interactively): Remove unused var `fun'.
30215 2007-09-12 Romain Francoise <romain@orebokech.com>
30217 * window.c (prefer_window_split_horizontally, display_buffer):
30218 Revert 2007-09-08 change.
30220 2007-09-12 Glenn Morris <rgm@gnu.org>
30222 * alloca.c: Remove file.
30223 * Makefile.in (alloca): Do not undef.
30224 (allocaobj, alloca.o): Remove.
30225 (otherobj): Remove allocaobj.
30226 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30227 * regex.c (C_ALLOCA): Remove all references and code that was only
30228 used when this was defined.
30229 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30230 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30231 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30233 * Makefile.in (SOURCES, unlock, relock): Delete.
30235 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30236 (menu_grab_callback): All uses changed.
30238 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30239 (x_reply_selection_request): All uses changed.
30241 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30243 * lread.c (load_warn_old_style_backquotes): Change message to look
30244 better when it appears in the middle of byte-compiler messages.
30246 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30248 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30250 * xterm.c (x_create_terminal): Add comment.
30252 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30254 2007-09-10 Richard Stallman <rms@gnu.org>
30256 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30258 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30260 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30261 (DEFUN): Document `intspec', use it instead of `prompt'.
30263 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30265 * data.c (Finteractive_form): If the interactive specification starts
30266 with a `(', use it as a Lisp form.
30268 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30269 name and file modes.
30271 * callint.c (Fcall_interactively): Comment fixes.
30273 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30275 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30276 and compiled functions.
30278 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30280 * window.c (prefer_window_split_horizontally): New variable.
30281 (display_buffer): Consider splitting window horizontally depending
30282 on prefer_window_split_horizontally.
30284 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30286 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30288 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30290 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30292 * frame.c (x_set_frame_parameters): Check number is positive before
30295 * window.c (freeze_window_start): Don't presume selected_window holds
30297 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30299 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30301 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30303 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30305 * window.c (Vsplit_window_preferred_function): New var.
30306 (Fdisplay_buffer): Use it.
30307 (syms_of_window): Export, and initialize it.
30309 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30311 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30313 2007-09-06 Glenn Morris <rgm@gnu.org>
30315 * gtkutil.c (menu_grab_callback) <cnt>:
30316 * xselect.c (x_reply_selection_request) <cnt>: Move static
30317 variable to file scope.
30319 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30321 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30322 consistent values of selected_frame and selected_window.
30324 2007-09-04 Jason Rumney <jasonr@gnu.org>
30326 * w32console.c (initialize_w32_display): Zero unused hooks.
30328 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30330 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30331 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30333 2007-09-04 Jason Rumney <jasonr@gnu.org>
30335 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30336 in w32console.c. Set up input. Remove XXX comments that have been
30337 confirmed as correct.
30339 * s/ms-w32.h (MULTI_KBOARD): Define.
30341 * w32console.c (one_and_only_w32cons): Remove.
30342 (initialize_w32_display): Take terminal argument.
30344 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30345 initialize_w32_display.
30346 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30348 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30350 * keyboard.c (discard_mouse_events): Discard it.
30351 (make_lispy_event): Translate it to a lisp event.
30352 (lispy_wheel_names): Add wheel-left and right events.
30353 (syms_of_keyboard): Enlarge wheel_syms.
30355 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30356 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30358 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30360 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30361 from WM_MOUSEHWHEEL.
30362 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30364 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30367 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30368 keyboard for the terminal.
30370 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30372 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30373 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30374 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30375 and resume-tty-function to resume-tty-hook.
30376 (Fsuspend_tty, Fresume_tty): Use new names.
30378 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30380 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30381 if it starts with "n:".
30383 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30385 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30387 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30390 * frame.c (Qterm_environment_variable): Remove.
30391 (syms_of_frame): Don't init and staticpro it.
30393 * callproc.c (getenv_internal): Remove special case for $TERM.
30395 * callproc.c (Vinitial_environment): New variable.
30396 (set_initial_environment): Initialize it.
30397 (syms_of_callproc): Declare it.
30398 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30399 TERM under which a process runs is never related to the TERM in which
30402 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30404 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30405 * s/darwin.h: ... do it here.
30407 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30409 * lisp.h (set_initial_environment): Rename from set_global_environment.
30411 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30412 removed by mistake on the multi-tty branch.
30414 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30415 (Fmodify_frame_parameters): Return a value.
30417 * image.c (png_load): Comment-out var only used in commented-out code.
30419 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30420 before passing it to mark_object.
30422 * xfaces.c (internal_resolve_face_name): Return a value.
30423 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30425 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30426 (x_icon): Comment-out var only used in commented-out code.
30428 2007-08-29 Romain Francoise <romain@orebokech.com>
30430 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30431 QUIT hasn't been provided.
30433 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30435 * callproc.c (child_setup, getenv_internal): Use the
30436 display-environment-variable and term-environment-variable frame params.
30437 (set_initial_environment): Initialise Vprocess_environment.
30439 * config.in: Disable multi-keyboard support on a mac.
30441 * frame.c (Qterm_environment_variable)
30442 (Qdisplay_environment_variable): New variables.
30443 (syms_of_frame): Intern and staticpro them.
30444 (Fmake_terminal_frame): Disable output method test.
30446 * frame.h: Declare them here.
30448 * macfns.c (x_set_mouse_color): Get rif from the frame.
30449 (x_set_tool_bar_lines): Don't use updating_frame.
30450 (mac_window): Add 2 new parameters for consistency with other systems.
30451 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30452 frame parameters following what is done in X11 and w32. Don't use
30453 FRAME_MAC_DISPLAY_INFO.
30454 (Fx_open_connection, start_hourglass): Remove window-system check.
30455 (x_create_tip_frame): Get the keyboard from the terminal.
30457 * macmenu.c: Reorder includes.
30458 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30460 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30461 terminal parameter.
30462 (x_clear_frame): Add a frame parameter.
30463 (note_mouse_movement): Get rif from the frame.
30464 (mac_term_init): Initialize the terminal.
30465 (mac_initialize): Make static and move terminal initialization ...
30466 (mac_create_terminal): ... to this new function.
30468 * macterm.h (struct mac_display_info): Add terminal.
30469 (mac_initialize): Delete declaration.
30471 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30473 * sysdep.c: Comment out text after #endif.
30475 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30476 is defined. Better initialize ttys in windows. Use terminal
30477 specific mouse_position_hook.
30479 * termhooks.h (union display_info): Add mac_display_info.
30481 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30482 Set the default minibuffer frame, window_system and the rest of the
30483 frame parameters following what is done in X11.
30485 * w32term.c (w32_initialize): Make static.
30487 * xselect.c (x_handle_selection_clear): Only access
30488 terminal->kboard when MULTI_KBOARD is defined.
30490 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30491 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30493 2007-08-29 Jason Rumney <jasonr@gnu.org>
30495 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30496 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30498 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30499 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30501 * keyboard.c (restore_kboard_configuration): Only define when
30502 MULTI_KBOARD defined.
30504 * makefile.w32-in: Update dependancies from Makefile.in.
30505 (OBJ1): Add terminal.$(O)
30507 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30508 Don't define function body.
30509 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30511 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30513 * w32.c (request_sigio, unrequest_sigio): Remove.
30515 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30516 (w32con_clear_frame, w32con_clear_end_of_line)
30517 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30518 (w32con_delete_glyphs, w32con_set_terminal_window)
30519 (scroll_line, w32_sys_ring_bell): Add frame arg.
30520 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30522 (PICK_FRAME): Remove.
30523 (w32con_write_glyphs): Use frame specific terminal coding.
30524 (one_and_only_w32cons): New global variable.
30525 (initialize_w32_display): Use it for storing hooks.
30526 (create_w32cons_output): New function.
30528 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30531 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30533 (x_set_tool_bar_lines): Don't use updating_frame.
30534 (Fx_create_frame): Set terminal and ref count.
30535 (Fx_open_connection): Remove window-system check.
30537 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30539 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30540 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30541 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30543 (x_delete_terminal, w32_create_terminal): New functions.
30544 (w32_term_init): Create a terminal.
30545 (w32_initialize): Move terminal specific initialization to
30546 w32_create_terminal.
30548 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30549 (w32_clear_rect, w32_clear_area): Use background from frame.
30550 (w32_display_info): Add terminal.
30551 (w32_sys_ring_bell, x_delete_display): Declare here.
30553 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30555 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30557 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30559 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30560 Fix get_named_tty calls for the controlling tty.
30562 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30564 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
30566 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30568 * term.c (tty_insert_glyphs): Add missing first parameter.
30570 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30572 * buffer.c (Fbuffer_list, Fbury_buffer):
30573 Take frame->buried_buffer_list into account.
30575 * cm.c (current_tty): New variable, for cmputc().
30577 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30578 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30579 (cmgoto): Add tty parameter. Pass it on to calccost().
30580 Use emacs_tputs() instead of tputs().
30582 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30584 (current_tty): New variable, for cmputc().
30585 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30587 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30588 (internal_condition_case, internal_condition_case_1)
30589 (internal_condition_case_2): Don't abort when x_catching_errors.
30591 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30592 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30593 prevent crashes caused by bogus longjmps in read_char.
30595 * keymap.h (Fset_keymap_parent): Add EXFUN.
30597 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30598 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30599 Remove redundant definition.
30601 * macfns.c (x_set_mouse_color, x_make_gc):
30602 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30604 * w32term.c (x_free_frame_resources):
30605 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30606 (w32_initialize): Use the accessor macros for terminal characteristics.
30608 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30609 Use the accessor macros for terminal characteristics.
30610 * msdos.c (internal_terminal_init): Use the accessor macros for
30611 terminal characteristics.
30612 (ScreenVisualBell, internal_terminal_init):
30613 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30615 * termopts.h (no_redraw_on_reenter): Declare.
30617 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30618 (mark_terminals, mark_ttys): Declare.
30619 (Fgarbage_collect): Call them.
30620 (mark_object): Mark buried_buffer_list.
30622 * prefix-args.c: Include stdlib.h for exit.
30624 * syssignal.h: Add comment.
30626 * indent.c: Include stdio.h.
30628 * window.h (Vinitial_window_system): Declare.
30629 (Vwindow_system): Delete declaration.
30631 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30633 * image.c (lookup_image): Don't initialize `c' until the xasserts
30636 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30637 FRAME_FOREGROUND_PIXEL.
30639 * print.c (print_preprocess): Don't lose print_depth levels while
30642 * widget.c (update_from_various_frame_slots):
30643 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30645 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30647 (window_internal_height): Remove bogus make_number call.
30648 (init_window_once): Call make_terminal_frame with two zero parameters.
30650 * fileio.c (Fread_file_name): Update comment.
30652 * callint.c (Fcall_interactively):
30653 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30654 Make sure it is correctly unwound.
30656 * xsmfns.c (x_session_close): New function.
30658 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30659 Delete declarations.
30661 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30662 (x_output): Remove background_pixel and foreground_pixel fields.
30663 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30664 (x_delete_device, x_session_close): Declare.
30666 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30667 (read_filtered_event): Call `read_char' with a local
30668 `wrong_kboard_jmpbuf'.
30670 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30671 Don't call single_kboard_state. Use FRAME_RIF.
30673 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30676 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30677 (Fframe_with_environment, Fset_input_meta_mode)
30678 (Fset_quit_char): EXFUN.
30679 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30680 (init_sys_modes, reset_sys_modes): Update prototypes.
30681 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30683 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30684 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30685 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30686 Delete declarations.
30687 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30688 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30691 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30692 already does that during init_display(). Call syms_of_keymap
30693 before syms_of_keyboard. Call `syms_of_terminal'.
30694 Call set_initial_environment, not set_process_environment.
30695 (shut_down_emacs): Call reset_all_sys_modes() instead of
30698 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30699 (internal_resolve_face_name, resolve_face_name_error): New functions.
30700 (resolve_face_name): Protect against loops and errors thrown by Fget.
30701 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30702 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30704 * scroll.c: Replace CURTTY() with local variables throughout the
30705 file (where applicable).
30706 (calculate_scrolling, calculate_direct_scrolling)
30707 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30710 * keymap.c (Vfunction_key_map): Remove.
30711 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30712 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30713 (Vkey_translation_map): Remove.
30714 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30715 (Fdescribe_buffer_bindings)
30716 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30717 Update for terminal-local key-translation-map.
30719 * Makefile.in (callproc.o): Update dependencies.
30720 (lisp, shortlisp): Add termdev.elc.
30721 (obj): Add terminal.o.
30722 (terminal.o): Add dependencies.
30723 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30724 (data.o, fns.o): Add termhooks.h dependency.
30725 (SOME_MACHINE_LISP): Add dnd.elc.
30726 (minibuf.o): Fix typo.
30727 Update dependencies.
30729 * data.c (do_symval_forwarding, store_symval_forwarding)
30730 (find_symbol_value): Use the selected frame's keyboard, not
30733 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30736 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30738 (syms_of_xmenu): Update defsubr.
30739 (mouse_position_for_popup, Fx_popup_menu)
30740 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30741 (set_frame_menubar, free_frame_menubar)
30742 (create_and_show_popup_menu, xmenu_show)
30743 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30746 * xselect.c (x_own_selection): Abort if not an X frame.
30747 (some_frame_on_display): Check if it is an X frame.
30748 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30750 * coding.c: Include frame.h and termhooks.h.
30751 (terminal_coding, keyboard_coding): Delete.
30752 (Fset_terminal_coding_system_internal)
30753 (Fset_keyboard_coding_system_internal)
30754 (Fkeyboard_coding_system)
30755 (Fterminal_coding_system): Add a terminal parameter.
30756 Get terminal_coding from the terminal.
30757 (init_coding_once): Don't call setup_coding_system here.
30759 * dispextern.h (set_scroll_region, turn_off_insert)
30760 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30761 (tty_clear_end_of_line, tty_setup_colors)
30762 (delete_tty, updating_frame)
30763 (produce_special_glyphs, produce_glyphs, write_glyphs)
30764 (insert_glyphs): Remove.
30765 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30766 (tty_turn_off_highlight, get_tty_size): Add declaration.
30767 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30769 * frame.h (enum output_method): Add output_initial.
30770 (struct x_output): Delete.
30771 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30772 Access foreground_pixel and background_pixel directly from the frame.
30773 (tty_display): Delete.
30774 (struct frame): Add buried_buffer_list, foreground_pixel,
30775 background_pixel and terminal. Delete kboard.
30776 (union output_data): Add tty.
30777 (FRAME_KBOARD): Get the kboard from the terminal.
30778 (FRAME_INITIAL_P): New macro.
30779 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30780 (Qterm_environment_variable, Qdisplay_environment_variable)
30781 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30784 * termchar.h (tty_output, tty_display_info): New structures.
30785 (tty_list): Declare.
30786 (FRAME_TTY, CURTTY): New macros.
30787 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30788 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30789 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30790 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30792 * callproc.c: Include frame.h and termhooks.h, for terminal
30794 (add_env): New function.
30795 (child_setup): Use it.
30796 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30797 (getenv_internal): Fix get_terminal_param call.
30798 (Fgetenv_internal, egetenv): Update doc.
30799 (syms_of_callproc): Initialize Vprocess_environment to nil.
30800 Register and initialize them. Remove obsolete defvars. Update doc
30802 (child_setup): Handle Vlocal_environment_variables.
30803 (getenv_internal): Add terminal parameter.
30804 Handle Vlocal_environment_variables.
30805 (Fgetenv_internal): Add terminal parameter.
30806 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30807 environment in a frame (not terminal) parameter. Update doc strings.
30808 (set_initial_environment): Rename from set_global_environment.
30809 Store Emacs environment in initial frame parameter.
30811 * xdisp.c (redisplay_internal): Update references to
30812 `previous_terminal_frame'.
30813 (display_mode_line, Fformat_mode_line): Replace calls to
30814 `push_frame_kboard' with `push_kboard'.
30815 (get_glyph_string_clip_rects): Add extra parentheses and
30816 braces to prevent compiler warnings.
30817 (calc_pixel_width_or_height): Add xassert to check that the
30818 frame is alive. Don't call `lookup_image' on a termcap frame.
30819 (message2_nolog, message3_nolog, redisplay_internal)
30820 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30821 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30822 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30823 (Fx_display_pixel_width, Fx_display_pixel_height)
30824 (Fx_display_planes, Fx_display_color_cells)
30825 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30826 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30827 (Fx_display_backing_store, Fx_display_visual_class)
30828 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30829 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30831 * xfns.c (x_set_foreground_color x_set_background_color)
30832 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30833 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30834 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30835 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30836 terminal that is being deleted.
30837 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30838 frame parameter, and make sure it overrides any user-supplied setting.
30839 (Fx_close_connection, Fx_synchronize): Unify argument names with
30840 the rest of the DEFUNs.
30842 * dispnew.c (Fsend_string_to_terminal): Update call to
30843 `get_tty_terminal'.
30844 (Fredraw_frame, Fsend_string_to_terminal)
30845 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30846 FRAME_TERMCAP_P and FRAME_TTY.
30847 (window_change_signal): Don't believe width/height values that are
30849 (Vinitial_window_system): Rename from Vwindow_system.
30850 (termscript, Wcm, rif): Delete.
30852 * termhooks.h (struct terminal): New struct containing the
30853 previously global text display hooks and new members NAME,
30854 DELETED and PARAM_ALIST.
30855 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30856 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30857 (FRAME_RIF): New macros.
30858 (get_terminal_param, get_device): New declarations.
30859 (termscript): Delete declaration.
30861 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30862 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30863 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30864 FRAME_FOREGROUND_PIXEL.
30865 (x_fully_uncatch_errors): Disable definition.
30866 (x_scroll_bar_expose): Fix reference to foreground pixel.
30867 (XTread_socket): Disable loop on all X displays.
30868 (x_delete_terminal): Don't set terminal->deleted and let
30869 delete_terminal delete the frames on the terminal.
30870 (x_delete_display): Doc update to reflect changes in
30872 (x_display_info) <terminal>: Move member earlier in the struct.
30873 (deleting_tty): Remove old variable.
30874 (Fsuspend_tty): Call clear_tty_hooks.
30875 (Fresume_tty, init_tty): Call set_tty_hooks.
30876 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30877 errors on X frames.
30878 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30879 (handle_one_xevent): Initialize `f' to NULL.
30880 (x_delete_terminal, x_create_terminal): New functions.
30881 (XTset_terminal_modes, XTreset_terminal_modes)
30882 (XTread_socket, x_connection_closed, x_term_init)
30883 (x_term_init, x_delete_display): Add terminal parameter.
30884 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30887 * frame.c: Include termchar.h.
30888 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30889 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30890 (Qdisplay_environment_variable): New vars.
30891 (Fframep): Deal with output_initial.
30892 (Fframe-live-p): Doc fix.
30893 (Fwindow-system): New function.
30894 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30895 (make_terminal_frame): Don't create frames on a terminal that is
30896 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30897 (store_frame_param): Check for found_for_frame before calling XFRAME.
30898 (Fmake_terminal_frame): Handle NULL tty names correctly.
30899 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30900 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30901 frames to refer to a deleted frame in their 'environment parameter.
30902 (Fframe_with_environment): New function.
30903 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30904 (get_future_frame_param): New function.
30905 (Fmake_terminal_frame): Use it.
30906 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30908 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30909 * sysdep.c (reset_sys_modes): Update for renames.
30911 * keyboard.c (tty_read_avail_input): New function.
30912 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30913 (syms_of_keyboard): Defsubr them.
30914 (Fset_input_meta_mode, Fset_quit_char): New functions.
30915 (Fset_input_mode): Split to above functions.
30916 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30917 parameter. Use it in call to `read_char'.
30918 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30919 Set wrong_kboard_jmpbuf correctly in recursive calls.
30920 Use current_kboard to access Vkeyboard_translate_table.
30921 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30922 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30923 Update longjmp invocations. Remember the original current_kboard,
30924 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30925 changes it. Comment out unnecessary calls to
30926 `record_single_kboard_state' and `any_kboard_state'.
30927 Update recursive calls.
30928 (wrong_kboard_jmpbuf): Remove global variable.
30929 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30930 Handle deleted interrupted_kboards correctly; that is a legal
30931 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30932 and read_char calls. Abort if interrupted_kboard died in read_char.
30933 (any_kboard_state, single_kboard_state)
30934 (push_frame_kboard): Remove function.
30935 (pop_kboard): Switch out of single_kboard mode if the kboard has
30936 been deleted. Remove unused variable. Help debugging by not
30937 changing current_kboard unnecessarily. Set current_kboard to the
30938 kboard of the selected frame when the stored kboard object has
30939 been deleted before pop_kboard.
30940 (temporarily_switch_to_single_kboard): Change first parameter to a
30941 frame pointer. Throw an error when caller wants to change kboards
30942 while in single_kboard mode. Don't push_kboard if we weren't in
30943 single kboard state. Don't pop_kboard if we popped into any
30945 (restore_kboard_configuration): Abort if pop_kboard changed the
30946 kboard in single_kboard mode. Call pop_kboard only after setting
30947 up single_kboard mode.
30948 (Frecursive_edit): Switch to single_kboard mode only in nested
30950 (cmd_error, command_loop, command_loop_1, timer_check):
30951 Comment out unnecessary call to `any_kboard_state' and
30952 `record_single_kboard_state'.
30953 (delete_kboard): Exit single_kboard mode if we have just deleted
30954 that kboard. Use FRAME_KBOARD.
30955 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30956 `fatal_error_signal'.
30957 (record_single_kboard_state): Don't push_kboard if we weren't in
30958 single kboard state. Don't pop_kboard if we popped into any
30960 (push_frame_kboard): Rename to push_kboard.
30961 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30962 (read_avail_input): Read input from all terminals.
30963 (mark_kboards): Also mark Vkeyboard_translate_table.
30964 (kbd_buffer_store_event_hold): Simplify condition.
30965 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30966 (Vkeyboard_translate_table): Move to struct kboard.
30967 (init_kboard): Initialize Vkeyboard_translate_table.
30968 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30969 Vkeyboard_translate_table. Update doc strings. Update docs of
30970 local-function-key-map and function-key-map.
30972 * terminal.c: New file.
30974 * term.c: Include errno.h.
30975 (Vring_bell_function, device_list, initial_device)
30976 (next_device_id, ring_bell, update_begin, update_end)
30977 (set_terminal_window, cursor_to, raw_cursor_to)
30978 (clear_to_end, clear_frame, clear_end_of_line)
30979 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30980 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30981 (syms_of_term): Move their initialization to terminal.c.
30982 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30983 (Ftty_display_color_cells)
30984 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30985 (clear_tty_hooks, set_tty_hooks)
30986 (init_tty, maybe_fatal): New functions.
30987 (Ftty_type): Return nil if terminal is not on a tty instead of
30988 throwing an error. Doc update.
30989 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30990 Doc update. Initialize new subrs and variables.
30991 (delete_tty): Use terminal->deleted.
30992 (tty_set_terminal_modes): Rename from set_terminal_modes.
30993 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30994 (set_scroll_region): Rename to `tty_set_scroll_region'.
30995 (turn_on_insert): Rename to `tty_turn_on_insert'.
30996 (turn_off_insert): Rename to `tty_turn_off_insert'.
30997 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30998 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30999 (toggle_highligh): Rename to `tty_toggle_highlight'.
31000 (background_highlight): Rename to `tty_background_highlight'.
31001 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31002 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31003 (tty_set_scroll_region, tty_background_highlight)
31004 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31005 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31006 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31007 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31008 Add static modifier.
31009 (tty_reset_terminal_modes, tty_set_terminal_window)
31010 (tty_set_scroll_region, tty_background_highlight)
31011 (tty_highlight_if_desired, tty_cursor_to)
31012 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31013 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31014 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31017 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31019 * keyboard.c: Qrtl is new.
31020 (parse_tool_bar_item): Handle :rtl keyword.
31021 (syms_of_keyboard): Intern :rtl keyword.
31023 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31025 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31026 so no Lisp code is executed.
31027 (file_for_image, find_rtl_image): New functions.
31028 (xg_get_image_for_pixmap): Use file_for_image.
31029 (update_frame_tool_bar): If direction is RTL, use RTL image if
31030 defined. Use Gtk stock images if defined.
31032 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31034 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31035 for nonexistent or zero-width glyph in composition glyph.
31037 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31039 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31041 * xdisp.c (Finvisible_p): New function.
31042 (syms_of_xdisp): defsubr it.
31044 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31046 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31049 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31051 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31053 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31055 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31056 whether decoding has modified buffer contents.
31058 2007-08-24 Jason Rumney <jasonr@gnu.org>
31060 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31061 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31062 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31063 (init_svg_functions) [HAVE_NTGUI]: New function.
31064 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31065 (svg_load_image): Use them.
31066 (svg_load_image) [HAVE_NTGUI]: Implement background.
31068 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31070 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31071 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31072 (LIBX): Remove @RSVG_LIBS@.
31073 (LIBES): Add $(RSVG_LIBS).
31075 * image.c (svg_load_image): Blend with specified background if exists.
31076 Use IMAGE_BACKGROUND. Add Mac OS Support.
31078 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31079 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31081 [MAC_OSX] (socket_callback): Do nothing.
31082 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31084 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31086 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31088 2007-08-22 Glenn Morris <rgm@gnu.org>
31090 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31092 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31094 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31096 * image.c: Add support for SVG images. Some additional comments
31097 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31098 (svg_image_p): New function to test for SVG image.
31099 (svg_load): New function to load SVG image.
31100 (svg_load_image): New function, helper for svg_load.
31101 (Qsvg): New Lisp_object.
31102 (svg_keyword_index): New enum.
31103 (svg_format): New static `image_keyword' struct.
31104 (svg_type): New static `image_type' struct.
31105 (librsvg/rsvg.h): Include it.
31107 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31109 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31111 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31113 * lread.c (Qold_style_backquotes): New var.
31114 (syms_of_lread): Init and staticpro it.
31115 (load_warn_old_style_backquotes): New fun.
31116 (Fload): Use them to warn about old style backquotes.
31117 (end_of_file_error, Fload): Remove unused vars.
31119 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31121 * lread.c (Vold_style_backquotes): New var.
31122 (syms_of_lread): Init and export it to Elisp.
31123 (read1): Set it when we find an old-style (back)quote.
31125 2007-08-22 Jason Rumney <jasonr@gnu.org>
31127 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31129 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31131 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31133 2007-08-19 Richard Stallman <rms@gnu.org>
31135 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31137 2007-08-19 Andreas Schwab <schwab@suse.de>
31139 * alloc.c (pure): Round PURESIZE up.
31141 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31143 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31146 2007-08-16 Richard Stallman <rms@gnu.org>
31148 * eval.c (Fcommandp): Add parens to clarify.
31150 * minibuf.c (Fall_completions): Use enum for type of table.
31152 * emacs.c (USAGE2): Improve text.
31154 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31156 * term.c (tty_default_color_capabilities): Declare static
31157 variables in file scope, to avoid HPUX compiler problem.
31159 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31161 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31162 to gtk_toolbar_insert.
31164 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31166 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31168 * insdel.c (reset_var_on_error): New fun.
31169 (signal_before_change, signal_after_change):
31170 Use it to reset (after|before)-change-functions to nil in case of error.
31171 Bind inhibit-modification-hooks to t.
31172 Don't bind (after|before)-change-functions to nil while they run.
31174 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31176 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31177 filling pixmap with stippled background.
31179 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31181 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31182 Don't use invisible frame as parent window for repositioning.
31184 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31186 * print.c (new_backquote_output): Rename from old_backquote_output.
31187 (print): Inverse its logic (according to its name) so as to match the
31188 behavior of new_backquote_flag in lread.c.
31190 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31192 * gmalloc.c (posix_memalign): New function.
31194 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31195 ActivateControl/DeactivateControl here.
31196 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31197 frame-notice-user-settings is non-nil.
31198 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31199 for kEventParamFMFontStyle.
31200 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31201 mac_pass_command_to_system and mac_pass_control_to_system here.
31202 (XTread_socket): Call ActivateControl/DeactivateControl here.
31203 (XTread_socket) [TARGET_API_MAC_CARBON]:
31204 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31205 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31206 for window repositioning.
31208 2007-08-08 Glenn Morris <rgm@gnu.org>
31210 * Replace `iff' in doc-strings and comments.
31212 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31214 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31216 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31218 * fileio.c (Finsert_file_contents): Run format-decode and
31219 after_insert_file_functions on entire buffer when REPLACE is
31220 non-nil and inhibit modification_hooks and point_motion_hooks.
31221 For consistency, run after_insert_file_functions iff something
31222 got inserted. Move signal_after_change and update_compositions
31223 after code running after_insert_file_functions. Make sure that
31224 undo_list doesn't record intermediate steps of the decoding process.
31226 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31229 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31230 Call malloc_enable_thread on interactive startup.
31232 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31233 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31234 [USE_PTHREAD]: Conditionalize with it.
31235 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31236 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31239 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31241 * xdisp.c (redisplay_window): When restoring original buffer
31242 position, make sure it is still valid.
31244 * image.c (png_load): Ignore png-supplied background color.
31246 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31248 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31249 Use kCFAbsoluteTimeIntervalSince1970.
31251 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31253 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31254 event loop should be quit.
31255 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31256 Quit dialog event loop if quit_dialog_event_loop is set.
31258 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31259 (Selection): New typedef. Use instead of ScrapRef.
31260 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31261 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31262 (mac_clear_selection): Rename from clear_scrap.
31263 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31264 scrap_has_target_type. All uses changed.
31265 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31266 (mac_selection_has_target_p): New functions.
31267 (mac_put_selection_value): Rename from put_scrap_string.
31268 (mac_get_selection_value): Rename from get_scrap_string.
31269 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31270 (put_scrap_private_timestamp, scrap_has_target_type)
31271 (get_scrap_private_timestamp): Remove functions.
31272 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31273 (x_own_selection, x_get_local_selection):
31274 Use mac_valid_selection_value_p.
31275 (x_own_selection): Don't use put_scrap_private_timestamp.
31276 Record OWNERSHIP-INFO into Vselection_alist instead.
31277 (x_get_local_selection): Don't check type if request is local.
31278 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31279 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31281 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31283 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31284 add comment explaining why.
31286 2007-08-03 Richard Stallman <rms@gnu.org>
31288 * fileio.c (Fvisited_file_modtime): Use make_time.
31290 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31292 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31295 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31297 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31299 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31301 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31303 2007-07-30 Richard Stallman <rms@gnu.org>
31305 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31307 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31309 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31311 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31313 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31314 remote default-directory.
31316 * buffer.c (mode-line-format): Update doc string.
31318 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31320 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31322 (x_scroll_bar_create): Set bar->fringe_extended_p.
31323 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31324 on frame edge. Check fringe background extension. Don't clear
31325 extended fringe background area.
31327 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31328 (w32_fill_area): Enclose multiple statements with do ... while (0).
31330 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31331 Extend fringe background to scroll bar gap.
31332 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31333 Set bar->fringe_extended_p.
31334 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31335 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31336 background extension. Don't clear extended fringe background area.
31338 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31339 New member fringe_extended_p.
31341 2007-07-25 Glenn Morris <rgm@gnu.org>
31343 * Relicense all FSF files to GPLv3 or later.
31345 * COPYING: Switch to GPLv3.
31347 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31349 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31351 * data.c (Finteractive_form): Check for the presence of an
31352 `interactive-form' symbol property more thoroughly.
31354 * data.c (Finteractive_form): Use an `interactive-form' property if
31355 present, analogous to the function-documentation property.
31357 2007-07-24 Jason Rumney <jasonr@gnu.org>
31359 * w32fns.c (x_real_positions): Get real position from OS instead of
31362 2007-07-23 Jason Rumney <jasonr@gnu.org>
31364 * filelock.c (current_lock_owner): Allow for @ sign in username.
31366 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31368 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31369 remote default-directory.
31371 * buffer.c (mode-line-format): Describe above case in doc string.
31373 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31375 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31376 Define if not defined.
31378 2007-07-18 Jason Rumney <jasonr@gnu.org>
31380 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31382 2007-07-18 Richard Stallman <rms@gnu.org>
31384 * data.c (Fsetq_default): Doc fix.
31386 * eval.c (Fsetq): Doc fix.
31388 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
31390 * coding.c (Ffind_operation_coding_system):
31391 * eval.c (For, Fand): Doc fixes.
31392 Reported by Johan Bockgård.
31394 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31396 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31398 * xterm.h: Declare x_ewmh_activate_frame.
31400 * xterm.c (x_ewmh_activate_frame): New function.
31401 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31403 2007-07-17 Martin Rudalics <rudalics@gmx.at>
31405 * window.c (Fdisplay_buffer): If largest or LRU window is the
31406 only window, split it even if it is not eligible for splitting.
31407 This restores the original behavior broken by the 2007-07-15
31410 2007-07-17 Glenn Morris <rgm@gnu.org>
31412 * abbrev.c (abbrev_check_chars): New function.
31413 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31414 Call abbrev_check_chars to check abbrev characters are word
31415 constituents. Doc fix.
31417 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31419 * process.c (Fstart_process, Fmake_network_process)
31420 (read_process_output): Fix up last changes.
31422 2007-07-16 Eli Zaretskii <eliz@gnu.org>
31424 * makefile.w32-in (clean): Don't delete *~.
31426 2007-07-16 Andreas Schwab <schwab@suse.de>
31428 * window.c (Fdisplay_buffer): Use NILP.
31429 (Fset_window_scroll_bars): Likewise.
31431 2007-07-15 Martin Rudalics <rudalics@gmx.at>
31433 * window.c (window_min_size_2): New function.
31434 (window_min_size_1, size_window, Fdisplay_buffer)
31435 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31436 windows without mode- or header-lines when window-min-height is
31438 (size_window): Reset nodelete_p after testing it, following an
31439 earlier note by Kim F. Storm.
31440 (display_buffer): Do not set split_height_threshold to twice the
31441 value of window_min_height to avoid changing the value of a
31442 customizable variable. Rather explicitly check whether the
31443 height of the window that shall be splitted is at least as large
31444 as split_height_threshold.
31445 (Fwindow_full_width_p): New defun.
31446 (syms_of_window): Defsubr it.
31448 * window.h: Add EXFUN for Fwindow_full_width_p.
31450 2007-07-14 Jason Rumney <jasonr@gnu.org>
31452 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31454 2007-07-14 Richard Stallman <rms@gnu.org>
31456 * eval.c (maybe_call_debugger): New function.
31457 (find_handler_clause): Use maybe_call_debugger.
31458 Call it when the handler says `debug'.
31459 Eliminate DEBUGGER_VALUE_PTR.
31460 (Fsignal): Eliminate debugger_value.
31461 (Qdebug): New variable.
31462 (syms_of_eval): Initialize it.
31464 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
31467 * keyboard.c (Ftrack_mouse):
31468 * print.c (Fwith_output_to_temp_buffer):
31469 * window.c (Fsave_window_excursion): Doc fix.
31471 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31473 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31475 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31477 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31478 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31479 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31480 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31481 Remove unused encoding_carryover.
31482 * process.c: Adjust all functions accordingly.
31484 2007-07-12 Richard Stallman <rms@gnu.org>
31486 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31488 2007-07-11 Jason Rumney <jasonr@gnu.org>
31490 * makefile.w32-in (LIBS): Include OLE32.
31492 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31493 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31495 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31497 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31498 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31499 from a Lisp_Object into a bare pointer.
31500 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31501 Adjust the code correspondingly.
31503 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31505 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31506 (term_show_mouse_face): Remove unused var `j'.
31507 (handle_one_term_event): Remove unused vars `i' and `j'.
31508 Don't cast return value of ttyname since it's not necessary.
31510 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31512 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31513 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31515 * fns.c (map_char_table): Use an array of int for `indices' rather than
31516 an array of Lisp_Objects (which are only ever integers anyway).
31517 (Fmap_char_table): Update caller.
31518 * lisp.h: Update prototype.
31519 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31520 * fontset.c (Ffontset_info):
31521 * casetab.c (set_case_table): Update callers.
31523 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31525 * keymap.c (struct accessible_keymaps_data)
31526 (struct where_is_internal_data): New structures.
31527 (accessible_keymaps_1, where_is_internal_1): Use them to change
31528 interface to adhere to the one used by map_keymap.
31529 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31530 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31532 * keymap.h (map_keymap_function_t): More informative prototype.
31534 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31536 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31537 (looking_at_1): Don't change search_regs and last_thing_searched
31538 if `inhibit-changing-match-data' is non-nil.
31539 (string_match_1, search_buffer, set_search_regs): Likewise.
31540 (syms_of_search): Add Lisp level definition for
31541 `inhibit-changing-match-data' and set it to nil.
31542 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31543 start and end of the match, instead of using values in search_regs.
31545 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31547 * minibuf.c (Fcompleting_read): New value `confirm-only'
31548 for `require-match'.
31550 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31552 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31553 part of the 2007-06-27 change to syms_of_fileio.
31555 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31557 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31558 Check WINDOWP before using XWINDOW. Consolidate return statements.
31560 2007-06-27 Richard Stallman <rms@gnu.org>
31562 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31564 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
31566 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31568 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31570 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31571 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31572 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31573 (_free_internal, memalign): Use them.
31574 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31575 Initialize to PTHREAD_MUTEX_INITIALIZER.
31576 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31577 (morecore_nolock): Rename from morecore. All uses changed.
31578 Use only nolock versions of internal allocation functions.
31579 (_malloc_internal_nolock, _realloc_internal_nolock)
31580 (_free_internal_nolock): New functions created from
31581 _malloc_internal, _realloc_internal, and _free_internal.
31582 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31583 Copy hook value to automatic variable before its use.
31584 (memalign): Copy hook value to automatic variable before its use.
31586 2007-06-26 Kenichi Handa <handa@m17n.org>
31588 * coding.c (Ffind_operation_coding_system): Docstring improved.
31589 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31591 2007-06-25 David Kastrup <dak@gnu.org>
31593 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31594 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31595 cater for additional parameter.
31597 * keymap.h: Adjust number of parameters to `current-active-maps'.
31599 * doc.c (Fsubstitute_command_keys): Adjust call of
31600 `current-active-maps'.
31602 2007-06-25 David Kastrup <dak@gnu.org>
31604 * callint.c (Fcall_interactively): Make the parsing of interactive
31605 specs somewhat more readable.
31607 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31609 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31610 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31611 if extended background has already been filled.
31613 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31615 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31616 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31618 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31619 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31620 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31621 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31622 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31623 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31624 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31625 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31626 Run timers during dialog popup.
31627 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31629 2007-06-21 Jason Rumney <jasonr@gnu.org>
31631 * image.c (convert_mono_to_color_image): Swap fore and background.
31633 2007-06-20 Jason Rumney <jasonr@gnu.org>
31635 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31636 (w32_free_bdf_font): Unmap memory not handle.
31638 2007-06-20 Sam Steingold <sds@gnu.org>
31640 * gmalloc.c (__morecore): Fix the declaration to comply with the
31643 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
31645 * w32term.c (w32_delete_display): Remove leftover declaration.
31646 (w32_define_cursor, w32_initialize): Make static.
31648 * w32.c (_wsa_errlist): Fix typo in error message.
31649 (init_environment): Ignore any environment variable from the
31650 registry having a null value.
31652 2007-06-20 Glenn Morris <rgm@gnu.org>
31654 * Makefile.in (LIBGIF): Default to -lgif.
31656 2007-06-17 Jason Rumney <jasonr@gnu.org>
31658 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31661 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
31663 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31664 Fix typo in docstring.
31666 2007-06-16 Eli Zaretskii <eliz@gnu.org>
31668 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31669 and their keybindings.
31671 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
31673 * composite.c (update_compositions): Fix last fix.
31675 2007-06-14 Jason Rumney <jasonr@gnu.org>
31677 * w32.c (get_process_times_fn): New function pointer.
31678 (globals_of_w32): Intialize it if present in kernel32.dll.
31679 (w32_get_internal_run_time): New function.
31681 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31683 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31685 * composite.c (update_compositions): Check the validness of
31688 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31690 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31691 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31693 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31694 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31696 * macgui.h (USE_MAC_TOOLBAR): New define.
31698 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31699 Return immediately unless popup is activated.
31701 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31702 background to scroll bar gap.
31703 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31704 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31705 scroll bars on frame edge. Check fringe background extension.
31706 Don't clear extended fringe background area.
31707 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31708 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31709 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31710 [USE_MAC_TOOLBAR]: New macros.
31711 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31712 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31713 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31714 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31715 [USE_MAC_TOOLBAR]: New functions.
31716 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31717 manually if previous repositioning has failed.
31718 (mac_handle_keyboard_event): Use precomputed event kind.
31719 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31720 as tool bar item click. Handle mouse movement over tool bar items.
31722 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31723 toolbar_win_gravity.
31724 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31725 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31728 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31729 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31731 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
31733 * image.c (search_image_cache): Remove unused variable.
31735 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
31737 * xfns.c, xmenu.c: Link to xaw3d if available.
31739 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31741 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31742 frame_foreground and frame_background.
31744 * image.c (lookup_image): Save frame foreground and background colors.
31745 (search_image_cache): Check if saved and current frame colors match.
31747 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31749 * regex.c (regex_compile): Remove the `regnum' counter.
31750 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31752 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31754 * term.c: Include intervals.h to declare Fget_text_property.
31756 2007-06-10 Jason Rumney <jasonr@gnu.org>
31758 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31760 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
31762 * callint.c (Fcall_interactively):
31763 * editfns.c (Fdelete_and_extract_region):
31764 * fileio.c (Fread_file_name):
31765 * fns.c (Fmapconcat):
31766 * keyboard.c (cmd_error_internal):
31767 * keymap.c (Fkey_description):
31769 * minibuf.c (read_minibuf):
31770 * search.c (wordify):
31771 * sunfns.c (sel_read):
31772 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31773 * xfns.c (x_default_scroll_bar_color_parameter):
31774 * xmenu.c (menu_help_callback):
31775 * xselect.c (Fx_get_atom_name):
31776 * xterm.c (x_term_init): Use empty_unibyte_string.
31778 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31780 * alloc.c (init_strings): Initialize canonical empty strings.
31781 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31782 canonical empty string when the requested size is 0.
31784 * emacs.c (empty_unibyte_string): Rename from empty_string.
31785 (empty_multibyte_string): New canonical empty string.
31786 (syms_of_emacs): Don't initialize empty_string.
31788 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31789 string, if appropriate.
31790 (empty_unibyte_string, empty_multibyte_string): New externs.
31791 (empty_string): Remove extern.
31793 * lread.c (syms_of_lread): Use empty_unibyte_string.
31795 2007-06-07 Jason Rumney <jasonr@gnu.org>
31797 * s/ms-w32.h: Don't define HAVE_TZNAME.
31799 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31801 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31803 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31805 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31806 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31808 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31809 Don't call next handler.
31810 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31811 Remove argument. Install handler to application.
31812 (set_frame_menubar): Don't change deep_p.
31813 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31814 FRAME_OUTER_TO_INNER_DIFF_Y.
31815 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31816 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31817 [HAVE_DIALOGS]: New macros.
31818 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31820 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31822 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31823 init_service_handler. All callers changed. Return OSStatus value.
31825 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31826 All callers changed so as not to call SetPortWindowPort.
31827 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31828 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31829 mac_draw_string_common.
31830 (mac_draw_image_string_qd): Likewise.
31831 (mac_draw_string_common): Use them. Add INLINE.
31832 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31833 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31835 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31836 and FRAME_OUTER_TO_INNER_DIFF_Y.
31837 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31838 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31839 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31840 repositioning window to mac_handle_window_event.
31841 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31842 saving window location to mac_handle_window_event
31843 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31844 (install_menu_target_item_handler): Remove argument in extern.
31845 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31846 Also accept command events.
31847 (do_keystroke): New function created from XTread_socket.
31848 (init_command_handler): Remove functions.
31849 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31850 and save window location by kEventWindowShowing and kEventWindowHiding
31851 handlers here. Don't call next handler for window state change and
31853 (mac_handle_application_event, mac_handle_keyboard_event)
31854 [TARGET_API_MAC_CARBON]: New functions.
31855 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31856 kEventWindowShowing and kEventWindowHiding events. Move installation
31857 of mouse, font, text input and menu target item handlers to
31858 install_application_handler.
31859 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31860 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31862 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31864 (XTread_socket) [TARGET_API_MAC_CARBON]:
31865 Consolidate SendEventToEventTarget calls.
31866 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31867 Move application activation handler to mac_handle_application_event.
31868 Move keyboard handler to mac_handle_keyboard_event.
31869 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31870 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31871 init_command_handler. Call install_application_handler.
31873 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31874 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31876 2007-06-07 Glenn Morris <rgm@gnu.org>
31878 * emacs.c (main): Use `emacs-copyright' in --version output.
31880 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
31882 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31884 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31886 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31888 * macgui.h: Replace WindowPtr with WindowRef.
31890 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31891 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31892 Replace ControlHandle with ControlRef.
31893 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31895 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31896 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31897 Replace ControlHandle with ControlRef.
31898 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31899 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31901 * macterm.h (struct scroll_bar): Rename member control_handle_low
31902 and control_handle_high to control_ref_low and control_ref_high.
31904 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31905 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31906 respectively. All uses changed.
31907 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31908 (install_window_handler, remove_window_handler): Replace WindowPtr
31909 with WindowRef in externs.
31911 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
31913 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31915 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
31917 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31919 * frame.c (Fmouse_position, Fmouse_pixel_position):
31920 Condition on HAVE_GPM too.
31922 * term.c (term_mouse_highlight): Remove unused variables.
31923 (Fterm_open_connection): Set gpm_zerobased to 1.
31924 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31925 Use zero based co-ordinates.
31926 (handle_one_term_event): Report a drag as mouse movement too.
31928 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31930 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
31932 * image.c (search_image_cache): New function. Require background
31933 color match if background color is unspecified in the image spec.
31934 (uncache_image, lookup_image): Use it.
31936 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
31938 * window.c (Fshrink_window): Reflow docstring.
31940 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
31942 * Version 22.1 released.
31944 2007-06-01 Richard Stallman <rms@gnu.org>
31946 * xfns.c (x_encode_text): Add GCPRO.
31948 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31950 * xfns.c (x_set_name_internal): Save encoded name before
31951 x_encode_text in case string data is relocated.
31953 2007-05-31 Richard Stallman <rms@gnu.org>
31955 * buffer.c (syms_of_buffer): Doc fix.
31957 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
31959 * sysdep.c (init_sys_modes): Add rather than replace with
31962 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31965 * termhooks.h (term_mouse_moveto): New extern.
31967 * term.c (mouse_face_window): Rename...
31968 (Qmouse_face_window): ...to this.
31969 (term_show_mouse_face, term_clear_mouse_face)
31970 (term_mouse_highlight): Use Qmouse_face_window.
31971 (term_mouse_moveto): New function.
31972 (term_mouse_position): Make it work.
31973 (syms_of_term): Uncomment assignment to mouse_position_hook.
31974 Staticpro Qmouse_face_window.
31976 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31978 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31979 around current_column call.
31981 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31983 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31984 * xdisp.c (next_element_from_buffer):
31985 * window.c (delete_window):
31986 * term.c (term_mouse_highlight):
31987 * msdos.c (getdefdir):
31988 * macterm.c (mac_create_bitmap_from_bitmap_data)
31989 (init_font_name_table):
31991 * data.c (Fmake_local_variable):
31992 * ccl.c (ccl_driver): Likewise.
31994 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31996 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31997 Call mac_wakeup_from_rne on window size change.
31999 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32001 * image.c (uncache_image): Fix typo.
32003 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32005 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32007 2007-05-22 Richard Stallman <rms@gnu.org>
32009 * xterm.c (x_connection_closed): Remove NO_RETURN.
32011 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32013 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32015 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32017 * image.c (uncache_image): New function.
32018 (Fimage_refresh): New function.
32020 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32022 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32024 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32026 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32027 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32029 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32031 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32032 conditional on [HAVE_GPM_H].
32034 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32036 * syntax.c (skip_chars): Update syntax-table only after we checked that
32037 the new location is valid.
32039 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32041 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32042 mac_get_window_bounds.
32044 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32046 * Makefile.in (LIBGPM): Allow it to be set from configure.
32047 If set then link Emacs with it.
32049 * config.in: Regenerate.
32051 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32054 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32056 (handle_one_term_event, term_gpm): New externs.
32058 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32059 and allow it to be interrupted by SIGIO.
32061 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32062 (wait_reading_process_output): Wait on gpm_fd too.
32063 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32064 (add_gpm_wait_descriptor_called_flag): New variable.
32065 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32067 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32068 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32069 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32070 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32071 (make_lispy_event): Add case GPM_CLICK_EVENT.
32072 (read_avail_input): Handle mouse input.
32074 * term.c (write_glyphs_with_face): New function.
32075 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32076 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32077 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32078 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32079 (last_mouse_x, last_mouse_y): New variables.
32080 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32081 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32082 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32083 (Fterm_close_connection): New functions.
32084 (term_init): Initialise mouse_face_window.
32086 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32088 * xdisp.c (redisplay_window): If first window line is a
32089 continuation line, recompute the new window start instead of
32092 2007-05-18 Glenn Morris <rgm@gnu.org>
32094 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32095 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32097 2007-05-17 Glenn Morris <rgm@gnu.org>
32099 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32101 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32103 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32104 dead key repeat and up events.
32106 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32108 * image.c (pbm_load): Check image size for monochrome pbm.
32110 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32112 * xterm.c (XTread_socket): Revert last change.
32114 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32116 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32118 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32120 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32122 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32125 2007-05-07 Andreas Schwab <schwab@suse.de>
32127 * keymap.c (Flookup_key): Fix typo in last change.
32129 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32131 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32132 mapping for unibyte strings.
32134 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32136 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32137 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32139 2007-04-29 Richard Stallman <rms@gnu.org>
32141 * insdel.c (replace_range): For undo, record insertion first.
32143 2007-04-29 Andreas Schwab <schwab@suse.de>
32145 * lisp.h (VECSIZE): Use OFFSETOF.
32147 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32149 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32152 2007-04-28 Richard Stallman <rms@gnu.org>
32154 * lread.c (read_escape): In a string, \s is always space.
32156 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32158 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32160 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32161 submenu for menu bar items.
32163 See ChangeLog.10 for earlier changes.
32165 ;; Local Variables:
32169 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32171 This file is part of GNU Emacs.
32173 GNU Emacs is free software: you can redistribute it and/or modify
32174 it under the terms of the GNU General Public License as published by
32175 the Free Software Foundation, either version 3 of the License, or
32176 (at your option) any later version.
32178 GNU Emacs is distributed in the hope that it will be useful,
32179 but WITHOUT ANY WARRANTY; without even the implied warranty of
32180 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32181 GNU General Public License for more details.
32183 You should have received a copy of the GNU General Public License
32184 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.