Introduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
[emacs.git] / src / ChangeLog
blob96f60877fce9ac66ad1f4f9708efc0cb49a181e3
1 2011-03-27  Anders Lindgren <andlind@gmail.com>
3         * nsterm.m (ns_menu_bar_is_hidden): New variable.
4         (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
5         (ns_update_auto_hide_menu_bar): New functions.
6         (ns_update_begin): Call ns_update_auto_hide_menu_bar.
7         (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
8         ns_constrain_all_frames.
9         (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
10         (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
12 2011-03-27  Jan Djärv  <jan.h.d@swipnet.se>
14         * nsmenu.m (runDialogAt): Remove argument to timer_check.
16 2011-03-27  Glenn Morris  <rgm@gnu.org>
18         * syssignal.h: Replace RETSIGTYPE with void.
19         * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
20         * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
21         Replace SIGTYPE with void everywhere.
22         * s/usg5-4-common.h (SIGTYPE): Remove definition.
23         * s/template.h (SIGTYPE): Remove commented out definition.
25 2011-03-26  Eli Zaretskii  <eliz@gnu.org>
27         * xdisp.c (redisplay_window): Don't check buffer's clip_changed
28         flag as a prerequisite for invoking try_scrolling.  (Bug#6671)
30 2011-03-26  Juanma Barranquero  <lekktu@gmail.com>
32         * w32.c (read_unc_volume): Use parameter `henum', instead of
33         global variable `wget_enum_handle'.
35         * keymap.c (describe_vector): Remove parameters `indices' and
36         `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
37         (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
39         * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
41         * keyboard.c (timer_check): Remove parameter `do_it_now',
42         unused since 1996-04-12T06:01:29Z!rms@gnu.org.
43         (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
44         unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
46         * keyboard.c (read_char):
47         * w32menu.c (w32_menu_display_help):
48         * xmenu.c (show_help_event, menu_help_callback):
49         Adjust calls to `show_help_echo'.
51         * gtkutil.c (xg_maybe_add_timer):
52         * keyboard.c (readable_events):
53         * process.c (wait_reading_process_output):
54         * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
56         * insdel.c (adjust_markers_gap_motion):
57         Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
58         (gap_left, gap_right): Don't call it.
60 2011-03-25  Chong Yidong  <cyd@stupidchicken.com>
62         * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
63         incurred during fontification.
65 2011-03-25  Juanma Barranquero  <lekktu@gmail.com>
67         * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
68         (DEFVAR_PER_BUFFER): Don't pass it.
70         * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
71         (scrolling_window): Don't pass it.
73 2011-03-25  Juanma Barranquero  <lekktu@gmail.com>
75         * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
77         * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
78         and `suffix'.
79         (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
80         of variables specific to SELinux and computation of `encoded_absname'.
82         * image.c (XPutPixel): Remove unused variable `height'.
84         * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
86         * unexw32.c (get_section_info): Remove unused variable `section'.
88         * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
89         (system_process_attributes): Remove unused variable `sess'.
90         (sys_read): Remove unused variable `err'.
92         * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
93         (w32_wnd_proc): Remove unused variable `isdead'.
94         (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
95         (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
96         (x_create_tip_frame): Remove unused variable `tem'.
98         * w32inevt.c (w32_console_read_socket):
99         Remove unused variable `no_events'.
101         * w32term.c (x_draw_composite_glyph_string_foreground):
102         Remove unused variable `width'.
104 2011-03-24  Juanma Barranquero  <lekktu@gmail.com>
106         * w32term.c (x_set_glyph_string_clipping):
107         Don't pass uninitialized region to CombineRgn.
109 2011-03-23  Juanma Barranquero  <lekktu@gmail.com>
111         * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
112         (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
113         (Fx_close_connection): Remove unused variable `i'.
115         * w32font.c (w32font_draw): Return number of glyphs.
116         (w32font_open_internal): Remove unused variable `i'.
117         (w32font_driver): Add missing initializer.
119         * w32menu.c (utf8to16): Remove unused variable `utf16'.
120         (fill_in_menu): Remove unused variable `items_added'.
122         * w32term.c (last_mouse_press_frame): Remove static global variable.
123         (w32_clip_to_row): Remove unused variable `f'.
124         (x_delete_terminal): Remove unused variable `i'.
126         * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
127         (NOTHING): Remove unused static global variable.
128         (uniscribe_check_otf): Remove unused variable `table'.
129         (uniscribe_font_driver): Add missing initializers.
131 2011-03-23  Julien Danjou  <julien@danjou.info>
133         * term.c (Fsuspend_tty, Fresume_tty):
134         * minibuf.c (read_minibuf, run_exit_minibuf_hook):
135         * window.c (temp_output_buffer_show):
136         * insdel.c (signal_before_change):
137         * frame.c (Fhandle_switch_frame):
138         * fileio.c (Fdo_auto_save):
139         * emacs.c (Fkill_emacs):
140         * editfns.c (save_excursion_restore):
141         * cmds.c (internal_self_insert):
142         * callint.c (Fcall_interactively):
143         * buffer.c (Fkill_all_local_variables):
144         * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
145         Use Frun_hooks.
146         (command_loop_1): Use Frun_hooks.  Call safe_run_hooks
147         unconditionnaly since it does the check itself.
149 2011-03-23  Paul Eggert  <eggert@cs.ucla.edu>
151         Fix more problems found by GCC 4.5.2's static checks.
153         * coding.c (encode_coding_raw_text): Avoid unnecessary test
154         the first time through the loop, since we know p0 < p1 then.
155         This also avoids a gcc -Wstrict-overflow warning.
157         * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
158         leading to a memory leak, possible in functions like
159         load_charset_map_from_file that can allocate an unbounded number
160         of objects (Bug#8318).
162         * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
163         that could (at least in theory) be that large.
165         * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
166         This is less likely to overflow, and avoids undefined behavior if
167         overflow does occur.  All callers changed.  Use strtoul to scan
168         for the unsigned long integer.
169         (pint2hrstr): Simplify and tune code slightly.
170         This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
172         * scroll.c (do_scrolling): Work around GCC bug 48228.
173         See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
175         * frame.c (Fmodify_frame_parameters): Simplify loop counter.
176         This also avoids a warning with gcc -Wstrict-overflow.
177         (validate_x_resource_name): Simplify count usage.
178         This also avoids a warning with gcc -Wstrict-overflow.
180         * fileio.c (Fcopy_file): Report error if fchown or fchmod
181         fail (Bug#8306).
183         * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
185         * process.c (Fmake_network_process): Use socklen_t, not int,
186         where POSIX says socklen_t is required in portable programs.
187         This fixes a porting bug on hosts like 64-bit HP-UX, where
188         socklen_t is wider than int (Bug#8277).
189         (Fmake_network_process, server_accept_connection):
190         (wait_reading_process_output, read_process_output):
191         Likewise.
193         * process.c: Rename or move locals to avoid shadowing.
194         (list_processes_1, Fmake_network_process):
195         (read_process_output_error_handler, exec_sentinel_error_handler):
196         Rename or move locals.
197         (Fmake_network_process): Define label "retry_connect" only if needed.
198         (Fnetwork_interface_info): Fix pointer signedness.
199         (process_send_signal): Add cast to avoid pointer signedness problem.
200         (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
201         (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
203         Make tparam.h and terminfo.c consistent.
204         * cm.c (tputs, tgoto, BC, UP): Remove extern decls.  Include
205         tparam.h instead, since it declares them.
206         * cm.h (PC): Remove extern decl; tparam.h now does this.
207         * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
208         * terminfo.c: Include tparam.h, to check interfaces.
209         (tparm): Make 1st arg a const pointer in decl.  Put it at top level.
210         (tparam): Adjust signature to match interface in tparam.h;
211         this removes some undefined behavior.  Check that outstring and len
212         are zero, which they always are with Emacs.
213         * tparam.h (PC, BC, UP): New extern decls.
215         * xftfont.c (xftfont_shape): Now static, and defined only if needed.
216         (xftfont_open): Rename locals to avoid shadowing.
218         * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
219         (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
220         (OTF_TAG_SYM): Omit macro if not needed.
221         (ftfont_list): Remove unused local.
222         (get_adstyle_property, ftfont_pattern_entity):
223         (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
224         Rename locals to avoid shadowing.
226         * xfont.c (xfont_list_family): Mark var as initialized.
228         * xml.c (make_dom): Now static.
230         * composite.c (composition_compute_stop_pos): Rename local to
231         avoid shadowing.
232         (composition_reseat_it): Remove unused locals.
233         (find_automatic_composition, composition_adjust_point): Likewise.
234         (composition_update_it): Mark var as initialized.
235         (find_automatic_composition): Mark vars as initialized,
236         with a FIXME (Bug#8290).
238         character.h: Rename locals to avoid shadowing.
239         * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
240         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
241         (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
242         (BUF_DEC_POS): Be more systematic about renaming local temporaries
243         to avoid shadowing.
245         * textprop.c (property_change_between_p): Remove; unused.
247         * intervals.c (interval_start_pos): Now static.
249         * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
251         * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
252         locals to avoid shadowing.
254         * sound.c (wav_play, au_play, Fplay_sound_internal):
255         Fix pointer signedness.
256         (alsa_choose_format): Remove unused local var.
257         (wav_play): Initialize a variable to 0, to prevent undefined
258         behavior (Bug#8278).
260         * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
262         * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
264         * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
265         clobbering (Bug#8298).
266         * sysdep.c (sys_subshell): Likewise.
267         Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
269         * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
270         This should get cleaned up, so that child_setup has the
271         same signature on all platforms.
273         * callproc.c (call_process_cleanup): Now static.
274         (relocate_fd): Rename locals to avoid shadowing.
276 2011-03-22  Chong Yidong  <cyd@stupidchicken.com>
278         * xterm.c (x_clear_frame): Remove XClearWindow call.  This appears
279         not to be necessary, and produces flickering.
281 2011-03-20  Glenn Morris  <rgm@gnu.org>
283         * config.in: Remove file.
285 2011-03-20  Juanma Barranquero  <lekktu@gmail.com>
287         * minibuf.c (Vcompleting_read_function): Don't declare, global variables
288         are now in src/globals.h.
289         (syms_of_minibuf): Remove spurious & from previous change.
291 2011-03-20  Leo  <sdl.web@gmail.com>
293         * minibuf.c (completing-read-function): New variable.
294         (completing-read-default): Rename from completing-read.
295         (completing-read): Call completing-read-function.
297 2011-03-19  Juanma Barranquero  <lekktu@gmail.com>
299         * xfaces.c (Fx_load_color_file):
300         Read color file from absolute filename (bug#8250).
302 2011-03-19  Juanma Barranquero  <lekktu@gmail.com>
304         * makefile.w32-in: Update dependencies.
306 2011-03-17  Eli Zaretskii  <eliz@gnu.org>
308         * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
310 2011-03-17  Paul Eggert  <eggert@cs.ucla.edu>
312         Fix more problems found by GCC 4.5.2's static checks.
314         * process.c (make_serial_process_unwind, send_process_trap):
315         (sigchld_handler): Now static.
317         * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
318         That way, the code declares only the vars that it needs.
319         * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
320         * s/cygwin.h (PTY_ITERATION): Likewise.
321         * s/darwin.h (PTY_ITERATION): Likewise.
322         * s/gnu-linux.h (PTY_ITERATION): Likewise.
324         * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
325         * process.c (allocate_pty): Don't declare stb unless it's needed.
327         * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
328         (CONSTANTLIM): Remove; unused.
329         (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
330         Define only if needed.
332         * unexelf.c (unexec): Name an expression,
333         to avoid gcc -Wbad-function-cast warning.
334         Use a different way to cause a compilation error if anyone uses
335         n rather than nn, a way that does not involve shadowing.
336         (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
338         * deps.mk (unexalpha.o): Remove; unused.
340         New file unexec.h, the (simple) interface for unexec (Bug#8267).
341         * unexec.h: New file.
342         * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
343         (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
344         Depend on unexec.h.
345         * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
346         * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
347         * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
348         Change as necessary to match prototype in unexec.h.
350         * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
351         shadowing.
352         (back_comment, skip_chars): Mark vars as initialized.
354         * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
355         Rename locals to avoid shadowing.
357         * lread.c (read1): Rewrite so as not to use empty "else".
358         (Fload, readevalloop, read1): Rename locals to avoid shadowing.
360         * print.c (Fredirect_debugging_output): Fix pointer signedess.
362         * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
363         warning when compiling print.c.
365         * font.c (font_unparse_fcname): Abort in an "impossible" situation
366         instead of using an uninitialized var.
367         (font_sort_entities): Mark var as initialized.
369         * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
371         * font.c (font_unparse_xlfd): Don't mix pointers to variables with
372         pointers to constants.
373         (font_parse_fcname): Remove unused vars.
374         (font_delete_unmatched): Now static.
375         (font_get_spec): Remove; unused.
376         (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
377         (font_update_drivers, Ffont_get_glyphs, font_add_log):
378         Rename or move locals to avoid shadowing.
380         * fns.c (require_nesting_list, require_unwind): Now static.
381         (Ffillarray): Rename locals to avoid shadowing.
383         * floatfns.c (domain_error2): Define only if needed.
384         (Ffrexp, Fldexp): Rename locals to avoid shadowing.
386         * alloc.c (mark_backtrace): Move decl from here ...
387         * lisp.h: ... to here, so that it can be checked.
389         * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
390         (Fdefvar): Rewrite so as not to use empty "else".
391         (lisp_indirect_variable): Name an expression,
392         to avoid gcc -Wbad-function-cast warning.
393         (Fdefvar): Rename locals to avoid shadowing.
395         * callint.c (quotify_arg, quotify_args): Now static.
396         (Fcall_interactively): Rename locals to avoid shadowing.
397         Use const pointer when appropriate.
399         * lisp.h (get_system_name, get_operating_system_release):
400         Move decls here, to check interfaces.
401         * process.c (get_operating_system_release): Move decl to lisp.h.
402         * xrdb.c (get_system_name): Likewise.
403         * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
404         (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
405         some of which prompt warnings from gcc -Wbad-function-cast.
406         (Fformat_time_string, Fencode_time, Finsert_char):
407         (Ftranslate_region_internal, Fformat):
408         Rename or remove local vars to avoid shadowing.
409         (Ftranslate_region_internal): Mark var as initialized.
411         * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
412         avoid shadowing.
414         * lisp.h (eassert): Check that the argument compiles, even if
415         ENABLE_CHECKING is not defined.
417         * data.c (Findirect_variable): Name an expression, to avoid
418         gcc -Wbad-function-cast warning.
419         (default_value, arithcompare, arith_driver, arith_error): Now static.
420         (store_symval_forwarding): Rename local to avoid shadowing.
421         (Fmake_variable_buffer_local, Fmake_local_variable): Mark
422         variables as initialized.
423         (do_blv_forwarding, do_symval_forwarding): Remove; unused.
425         * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
426         (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
427         Rename locals to avoid shadowing.
428         (mark_stack): Move local variables into the #ifdef region where
429         they're used.
430         (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
431         ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
432         needed otherwise.
433         (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
434         (GC_STRING_CHARS): Remove; not used.
435         (Fmemory_limit): Cast sbrk's returned value to char *.
437         * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
438         avoids undefined behavior in theory.
440         * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
442         Use functions, not macros, for up- and down-casing (Bug#8254).
443         * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
444         (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove.  All callers changed
445         to use the following functions instead of these macros.
446         (downcase): Adjust to lack of DOWNCASE_TABLE.  Return int, not
447         EMACS_INT, since callers assume the returned value fits in int.
448         (upcase1): Likewise, for UPCASE_TABLE.
449         (uppercasep, lowercasep, upcase): New static inline functions.
450         * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
451         the race-condition problem in the old DOWNCASE.
453         * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
454         Rename locals to avoid shadowing.
455         (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
456         (regex_compile, re_search_2, re_match_2_internal):
457         Remove unused local vars.
458         (FREE_VAR): Rewrite so as not to use empty "else",
459         which gcc can warn about.
460         (regex_compile, re_match_2_internal): Mark locals as initialized.
461         (RETALLOC_IF): Define only if needed.
462         (WORDCHAR_P): Likewise.  This one is never needed, but is used
463         only in a comment talking about a compiler bug, so put inside
464         the #if 0 of that comment.
465         (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
466         (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
467         Remove; unused.
469         * search.c (boyer_moore): Rename locals to avoid shadowing.
470         * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
471         (PREV_CHAR_BOUNDARY): Likewise.
473         * search.c (simple_search): Remove unused var.
475         * dired.c (compile_pattern): Move decl from here ...
476         * lisp.h: ... to here, so that it can be checked.
477         (struct re_registers): New forward decl.
479         * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
481         * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
482         All uses changed.
483         (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
484         Rename locals to avoid shadowing.
485         (Fvertical_motion): Mark locals as initialized.
487         * casefiddle.c (casify_object, casify_region): Now static.
488         (casify_region): Mark local as initialized.
490         * cmds.c (internal_self_insert): Rename local to avoid shadowing.
492         * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
493         New macros, so that the caller can use some names other than
494         gcpro1, gcpro2, etc.
495         (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
496         of the new macros.
497         (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
498         argument, for consistency with GCPRO2_VAR, etc: it is now the
499         prefix of the variable, not the variable itself.  All uses
500         changed.
501         * dired.c (directory_files_internal, file_name_completion):
502         Rename locals to avoid shadowing.
504         Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
505         An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
506         dired.c's scmp function, had undefined behavior.
507         * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
508         (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
509         * buffer.h: ... to here, because these macros use current_buffer,
510         and the new implementation with inline functions needs to have
511         current_buffer in scope now, rather than later when the macros
512         are used.
513         (downcase, upcase1): New static inline functions.
514         (DOWNCASE, UPCASE1): Reimplement using these functions.
515         This avoids undefined behavior in expressions like
516         DOWNCASE (x) == DOWNCASE (y), which previously suffered
517         from race conditions in accessing the global variables
518         case_temp1 and case_temp2.
519         * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
520         * lisp.h (case_temp1, case_temp2): Remove their decls.
521         * character.h (ASCII_CHAR_P): Move from here ...
522         * lisp.h: ... to here, so that the inline functions mentioned
523         above can use them.
525         * dired.c (directory_files_internal_unwind): Now static.
527         * fileio.c (file_name_as_directory, directory_file_name):
528         (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
529         Now static.
530         (file_name_as_directory): Use const pointers when appropriate.
531         (Fexpand_file_name): Likewise.  In particular, newdir might
532         point at constant storage, so make it a const pointer.
533         (Fmake_directory_internal, Fread_file_name): Remove unused vars.
534         (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
535         signedness issues.
536         (Fset_file_times, Finsert_file_contents, auto_save_error):
537         Rename locals to avoid shadowing.
539         * minibuf.c (choose_minibuf_frame_1): Now static.
540         (Ftry_completion, Fall_completions): Rename or remove locals
541         to avoid shadowing.
543         * marker.c (bytepos_to_charpos): Remove; unused.
545         * lisp.h (verify_bytepos, count_markers): New decls,
546         so that gcc does not warn that these functions aren't declared.
548         * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
549         (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
550         (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
551         (copy_text): Remove unused local var.
553         * filelock.c (within_one_second): Now static.
554         (lock_file_1): Rename local to avoid shadowing.
556         * buffer.c (fix_overlays_before): Mark locals as initialized.
557         (fix_start_end_in_overlays): Likewise.  This function should be
558         simplified by using pointers-to-pointers, but that's a different
559         matter.
560         (switch_to_buffer_1): Now static.
561         (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
562         (report_overlay_modification): Rename locals to avoid shadowing.
564         * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
565         Fix pointer signedness issue.
566         (sys_subshell): Mark local as volatile if checking for lint,
567         to suppress a gcc -Wclobbered warning that does not seem to be right.
568         (MAXPATHLEN): Define only if needed.
570         * process.c (serial_open, serial_configure): Move decls from here ...
571         * systty.h: ... to here, so that they can be checked.
573         * fns.c (get_random, seed_random): Move extern decls from here ...
574         * lisp.h: ... to here, so that they can be checked.
576         * sysdep.c (reset_io): Now static.
577         (wait_for_termination_signal): Remove; unused.
579         * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
580         (copy_keymap_item, append_key, push_text_char_description):
581         Now static.
582         (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
583         (DENSE_TABLE_SIZE): Remove; unused.
584         (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
585         (describe_map_tree):
586         Rename locals to avoid shadowing.
588         * keyboard.c: Declare functions static if they are not used elsewhere.
589         (echo_char, echo_dash, cmd_error, top_level_2):
590         (poll_for_input, handle_async_input): Now static.
591         (read_char, kbd_buffer_get_event, make_lispy_position):
592         (make_lispy_event, make_lispy_movement, apply_modifiers):
593         (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
594         (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
595         (Fread_key_sequence_vector): Rename locals to avoid shadowing.
596         (read_key_sequence, read_char): Mark locals as initialized.
597         (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
599         * keyboard.h (make_ctrl_char): New decl.
600         (mark_kboards): Move decl here ...
601         * alloc.c (mark_kboards): ... from here.
603         * lisp.h (force_auto_save_soon): New decl.
605         * emacs.c (init_cmdargs): Rename local to avoid shadowing.
606         (DEFINE_DUMMY_FUNCTION): New macro.
607         (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
608         Use it.
609         (main): Add casts to avoid warnings
610         if GCC considers string literals to be constants.
612         * lisp.h (fatal_error_signal): Add decl, since it's exported.
614         * dbusbind.c: Pointer signedness fixes.
615         (xd_signature, xd_append_arg, xd_initialize):
616         (Fdbus_call_method, Fdbus_call_method_asynchronously):
617         (Fdbus_method_return_internal, Fdbus_method_error_internal):
618         (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
619         (Fdbus_register_signal): Use SSDATA when the context wants char *.
621         * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
622         if GCC considers string literals to be constants.
623         (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
625 2011-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
627         * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
628         (print_preprocess, print_object): New macro to fix last change.
630         * print.c (print_preprocess): Don't forget font objects.
632 2011-03-16  Juanma Barranquero  <lekktu@gmail.com>
634         * emacs.c (USAGE3): Doc fixes.
636 2011-03-15  Andreas Schwab  <schwab@linux-m68k.org>
638         * coding.c (detect_coding_iso_2022): Reorganize code to clarify
639         structure.
641 2011-03-14  Juanma Barranquero  <lekktu@gmail.com>
643         * lisp.h (VWindow_system, Qfile_name_history):
644         * keyboard.h (lispy_function_keys) [WINDOWSNT]:
645         * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
646         (w32_system_caret_x, w32_system_caret_y): Declare extern.
648         * w32select.c: Don't #include "keyboard.h".
649         (run_protected): Add extern declaration for waiting_for_input.
651         * w32.c (Qlocal, noninteractive1, inhibit_window_system):
652         * w32console.c (detect_input_pending, read_input_pending)
653         (encode_terminal_code):
654         * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
655         (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
656         (w32_system_caret_y, Qfile_name_history):
657         * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
658         * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
659         * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
660         (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
661         * w32proc.c (Qlocal, report_file_error):
662         * w32term.c (Vwindow_system, updating_frame):
663         * w32uniscribe.c (initialized, uniscribe_font_driver):
664         Remove unneeded extern declarations.
666 2011-03-14  Chong Yidong  <cyd@stupidchicken.com>
668         * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
670 2011-03-13  Chong Yidong  <cyd@stupidchicken.com>
672         * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
673         (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
674         These macros can no longer be used for assignment.
676         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
677         struct members directly, instead of using BUF_BEGV etc.
678         (record_buffer_markers, fetch_buffer_markers): New functions for
679         recording and fetching special buffer markers.
680         (set_buffer_internal_1, set_buffer_temp): Use them.
682         * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
684         * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
686         * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
687         (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
689         * xdisp.c (hscroll_window_tree):
690         (reconsider_clip_changes): Use PT instead of BUF_PT.
692 2011-03-13  Eli Zaretskii  <eliz@gnu.org>
694         * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
695         $(EMACS_ROOT)/lib/intprops.h.
697 2011-03-13  Paul Eggert  <eggert@cs.ucla.edu>
699         Fix more problems found by GCC 4.5.2's static checks.
701         * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
702         to unsigned char * to avoid compiler diagnostic.
703         (xg_free_frame_widgets): Make it clear that a local variable is
704         needed only if USE_GTK_TOOLTIP.
705         (gdk_window_get_screen): Make it clear that this macro is needed
706         only if USE_GTK_TOOLTIP.
707         (int_gtk_range_get_value): New function, which avoids a diagnostic
708         from gcc -Wbad-function-cast.
709         (xg_set_toolkit_scroll_bar_thumb): Use it.
710         (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
711         diagnostic from gcc -Wbad-function-cast.
712         (get_utf8_string, xg_get_file_with_chooser):
713         Rename locals to avoid shadowing.
714         (create_dialog): Move locals to avoid shadowing.
716         * xgselect.c (xg_select): Remove unused var.
718         * image.c (four_corners_best): Mark locals as initialized.
719         (gif_load): Initialize transparent_p to zero (Bug#8238).
720         Mark another local as initialized.
721         (my_png_error, my_error_exit): Mark with NO_RETURN.
723         * image.c (clear_image_cache): Now static.
724         (DIM, HAVE_STDLIB_H_1): Remove unused macros.
725         (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
726         (x_edge_detection): Remove unnecessary cast that
727         gcc -Wbad-function-cast diagnoses.
728         (gif_load): Fix pointer signedness.
729         (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
730         (jpeg_load, gif_load): Rename locals to avoid shadowing.
732 2011-03-11  Paul Eggert  <eggert@cs.ucla.edu>
734         Improve quality of tests for time stamp overflow.
735         For example, without this patch (encode-time 0 0 0 1 1
736         1152921504606846976) returns the obviously-bogus value (-948597
737         62170) on my RHEL 5.5 x86-64 host.  With the patch, it correctly
738         reports time overflow.  See
739         <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
740         * deps.mk (editfns.o): Depend on ../lib/intprops.h.
741         * editfns.c: Include limits.h and intprops.h.
742         (TIME_T_MIN, TIME_T_MAX): New macros.
743         (time_overflow): Move earlier, to before first use.
744         (hi_time, lo_time): New functions, for an accurate test for
745         out-of-range times.
746         (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
747         (Fget_internal_run_time): Don't assume time_t fits in int.
748         (make_time): Use list2 instead of Fcons twice.
749         (Fdecode_time): More accurate test for out-of-range times.
750         (check_tm_member): New function.
751         (Fencode_time): Use it, to test for out-of-range times.
752         (lisp_time_argument): Don't rely on undefined left-shift and
753         right-shift behavior when checking for time stamp overflow.
755         * editfns.c (time_overflow): New function, refactoring common code.
756         (Fformat_time_string, Fdecode_time, Fencode_time):
757         (Fcurrent_time_string): Use it.
759         Move 'make_time' to be next to its inverse 'lisp_time_argument'.
760         * dired.c (make_time): Move to ...
761         * editfns.c (make_time): ... here.
762         * systime.h: Note the move.
764 2011-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
766         * fringe.c (update_window_fringes): Remove unused variables.
768         * unexmacosx.c (copy_data_segment): Also copy __got section.
769         (Bug#8223)
771 2011-03-12  Eli Zaretskii  <eliz@gnu.org>
773         * termcap.c [MSDOS]: Include "msdos.h".
774         (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
775         Constify `char *' arguments and their references according to
776         prototypes in tparam.h.
778         * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
780         * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
781         Adapt all references accordingly.
783         * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
785 2011-03-11  Tom Tromey  <tromey@redhat.com>
787         * buffer.c (syms_of_buffer): Remove obsolete comment.
789 2011-03-11  Eli Zaretskii  <eliz@gnu.org>
791         * termhooks.h (encode_terminal_code): Declare prototype.
793         * msdos.c (encode_terminal_code): Don't declare prototype.
795         * term.c (encode_terminal_code): Now external again, used by
796         w32console.c and msdos.c.
798         * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
799         on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
801 2011-03-11  Paul Eggert  <eggert@cs.ucla.edu>
803         Fix some minor problems found by GCC 4.5.2's static checks.
805         * fringe.c (update_window_fringes): Mark locals as initialized
806         (Bug#8227).
807         (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
809         * alloc.c (mark_fringe_data): Move decl from here ...
810         * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
811         to check its interface.
812         (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
814         * fontset.c (free_realized_fontset): Now static.
815         (Fset_fontset_font): Rename local to avoid shadowing.
816         (fontset_font): Mark local as initialized.
817         (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
819         * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
821         * xselect.c (x_disown_buffer_selections): Remove; not used.
822         (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
823         (x_own_selection, Fx_disown_selection_internal): Rename locals
824         to avoid shadowing.
825         (x_handle_dnd_message): Remove local to avoid shadowing.
827         * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
828         so that the caller can use some name other than gcpro1.
829         (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
830         * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
831         (Fx_backspace_delete_keys_p):
832         Use them to avoid shadowing, and rename vars to avoid shadowing.
833         (x_decode_color, x_set_name, x_window): Now static.
834         (Fx_create_frame): Add braces to silence GCC warning.
835         (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
836         (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
837         Remove unused locals.
838         (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
839         (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
840         Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
841         macros.
843         * xterm.h (x_mouse_leave): New decl.
845         * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
846         Remove unused functions.
847         (x_shift_glyphs_for_insert, XTflash, XTring_bell):
848         (x_calc_absolute_position): Now static.
849         (XTread_socket): Don't define label "out" unless it's used.
850         Don't declare local "event" unless it's used.
851         (x_iconify_frame, x_free_frame_resources): Don't declare locals
852         unless they are used.
853         (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
854         (x_fatal_error_signal): Remove; not used.
855         (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
856         (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
857         (x_error_catcher, x_connection_closed, x_error_handler):
858         (x_error_quitter, xembed_send_message, x_iconify_frame):
859         (my_log_handler): Rename locals to avoid shadowing.
860         (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
861         (x_connection_closed): Tell GCC not to suggest NO_RETURN.
863         * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
864         or move locals to avoid shadowing.
865         (tty_defined_color, merge_face_heights): Now static.
866         (free_realized_faces_for_fontset): Remove; not used.
867         (Fx_list_fonts): Mark variable that gcc -Wuninitialized
868         does not deduce is never used uninitialized.
869         (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
870         (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
872         * terminal.c (store_terminal_param): Now static.
874         * xmenu.c (menu_highlight_callback): Now static.
875         (set_frame_menubar): Remove unused local.
876         (xmenu_show): Rename parameter to avoid shadowing.
877         (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
878         since they might point to immutable storage.
879         (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
880         since it's unused otherwise.
882         * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
883         Add a FIXME, since the code still doesn't look right.  (Bug#8215)
884         (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
885         avoids a gcc -Wuninitialized diagnostic.
886         (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
887         (note_mouse_highlight): Mark variables that gcc -Wuninitialized
888         does not deduce are never used uninitialized.
890         * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
892         * xdisp.c (redisplay_window): Rename local to avoid shadowing.
893         * window.c (window_loop, size_window):
894         (run_window_configuration_change_hook, enlarge_window): Likewise.
896         * window.c (display_buffer): Now static.
897         (size_window): Mark variables that gcc -Wuninitialized
898         does not deduce are never used uninitialized.
899         * window.h (check_all_windows): New decl, to forestall
900         gcc -Wmissing-prototypes diagnostic.
901         * dispextern.h (bidi_dump_cached_states): Likewise.
903         * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
904         shadowing.
905         * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
906         Include <limits.h>.
907         (Fsort_charsets): Redo min/max calculation to shorten the code a bit
908         and to avoid gcc -Wuninitialized warning.
909         (load_charset_map): Mark variables that gcc -Wuninitialized
910         does not deduce are never used uninitialized.
911         (load_charset): Abort instead of using uninitialized var (Bug#8229).
913         * coding.c (coding_set_source, coding_set_destination):
914         Use "else { /* comment */ }" rather than "else /* comment */;"
915         for clarity, and to avoid gcc -Wempty-body warning.
916         (Fdefine_coding_system_internal): Don't redeclare 'i' inside
917         a block, when the outer 'i' will do.
918         (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
919         (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
920         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
921         (decode_coding_raw_text, decode_coding_charset, get_translation_table):
922         (Fdecode_sjis_char, Fdefine_coding_system_internal):
923         Rename locals to avoid shadowing.
924         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
925         * coding.c (emacs_mule_char, encode_invocation_designation):
926         Now static, since they're not used elsewhere.
927         (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
928         (decode_coding_object, encode_coding_object, detect_coding_system):
929         (decode_coding_emacs_mule): Mark variables that gcc
930         -Wuninitialized does not deduce are never used uninitialized.
931         (detect_coding_iso_2022): Initialize a local variable that might
932         be used uninitialized.  Leave a FIXME because it's not clear that
933         this initialization is needed.  (Bug#8211)
934         (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
935         (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
936         (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
937         (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
938         Remove unused macros.
940         * category.c (hash_get_category_set): Remove unused local var.
941         (copy_category_table): Now static, since it's not used elsewhere.
942         * character.c (string_count_byte8): Likewise.
944         * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
945         (Fregister_code_conversion_map): Rename locals to avoid shadowing.
947         * chartab.c (copy_sub_char_table): Now static, since it's not used
948         elsewhere.
949         (sub_char_table_ref_and_range, char_table_ref_and_range):
950         Rename locals to avoid shadowing.
951         (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
953         * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
954         (BIDI_BOB): Remove unused macro.
956         * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
957         deduce are never used uninitialized.
958         * term.c (encode_terminal_code): Likewise.
960         * term.c (encode_terminal_code): Now static.  Remove unused local.
962         * tparam.h: New file.
963         * term.c, tparam.h: Include it.
964         * deps.mk (term.o, tparam.o): Depend on tparam.h.
965         * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
966         Move these decls to tparam.h, and make them agree with what
967         is actually in tparam.c.  The previous trick of using incompatible
968         decls in different modules does not conform to the C standard.
969         All callers of tparam changed to use tparam's actual API.
970         * tparam.c (tparam1, tparam, tgoto):
971         Use const pointers where appropriate.
973         * cm.c (calccost, cmgoto): Use const pointers where appropriate.
974         * cm.h (struct cm): Likewise.
975         * dispextern.h (do_line_insertion_deletion_costs): Likewise.
976         * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
977         * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
978         (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
979         (turn_on_face, init_tty): Likewise.
980         * termchar.h (struct tty_display_info): Likewise.
982         * term.c (term_mouse_position): Rename local to avoid shadowing.
984         * alloc.c (mark_ttys): Move decl from here ...
985         * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
987 2011-03-11  Andreas Schwab  <schwab@linux-m68k.org>
989         * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
991 2011-03-09  Juanma Barranquero  <lekktu@gmail.com>
993         * search.c (compile_pattern_1): Remove argument regp, unused since
994         revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
995         (compile_pattern): Don't pass it.
997 2011-03-08  Jan Djärv  <jan.h.d@swipnet.se>
999         * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1000         (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1001         for ! HAVE_GTK3.
1002         (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1004         * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1006         * gtkutil.c: Include gtkx.h if HAVE_GTK3.  If ! HAVE_GTK3, define
1007         gdk_window_get_screen, gdk_window_get_geometry,
1008         gdk_x11_window_lookup_for_display and GDK_KEY_g.
1009         (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1010         (xg_get_pixbuf_from_pixmap): New function.
1011         (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1012         to Pixmap, take frame as parameter, remove GdkColormap parameter.
1013         Call xg_get_pixbuf_from_pixmap instead of
1014         gdk_pixbuf_get_from_drawable.
1015         (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1016         xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1017         (xg_check_special_colors): Use GtkStyleContext and its functions
1018         for HAVE_GTK3.
1019         (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1020         (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1021         (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1022         (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
1023         gtk_widget_get_preferred_size.
1024         (xg_frame_resized): gdk_window_get_geometry only takes 5
1025         parameters.
1026         (xg_win_to_widget, xg_event_is_for_menubar): Call
1027         gdk_x11_window_lookup_for_display.
1028         (xg_set_widget_bg): New function.
1029         (delete_cb): New function.
1030         (xg_create_frame_widgets): connect delete-event to delete_cb.
1031         Call xg_set_widget_bg.  Only set backgrund pixmap for ! HAVE_GTK3
1032         (xg_set_background_color): Call xg_set_widget_bg.
1033         (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1034         (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1035         Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1036         (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1037         if ! HAVE_GTK3.
1038         (update_frame_tool_bar): Call gtk_widget_hide.
1039         (xg_initialize): Use GDK_KEY_g.
1041         * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1042         if ! HAVE_GTK3
1043         (x_session_initialize): Call gdk_x11_set_sm_client_id.
1045         * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1046         (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1047         Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1049 2011-03-08  Juanma Barranquero  <lekktu@gmail.com>
1051         * w32xfns.c (select_palette): Check success of RealizePalette against
1052         GDI_ERROR, not zero.
1054 2011-03-07  Ben Key  <bkey76@gmail.com>
1056         * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1057         (file_dialog_callback): Fix locating the window handle of the File Name
1058         text field.  After disabling it, set focus on the list control.
1059         (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1060         Name text field to "Current Directory" if it does not already have
1061         another value.  (Bug#8181)
1063 2011-03-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
1065         * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1066         parameter for hbar cursors.  Based on a patch by Ben Key
1067         <bkey76@gmail.com>.
1069 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
1071         * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1072         change.
1074 2011-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1076         current_column: Now returns EMACS_INT, fixing some iftc
1077         that was introduced in the 2002-06-02 change "temporarily"; see
1078         <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1079         * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1080         * cmds.c (internal_self_insert): Likewise.
1081         * indent.c (Fcurrent_column): Likewise.
1082         * keymap.c (describe_command): Likewise.
1083         * minibuf.c (read_minibuf): Likewise.
1084         * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1085         to int.
1086         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1087         Likewise.
1088         * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1089         not int or double, if they might contain a column number.
1090         * indent.c (current_column, Findent_to, indented_beyond_p):
1091         (compute_motion, vmotion): Likewise.
1092         * keymap.c (describe_command): Likewise.
1093         * xdisp.c (pint2str): Likewise.
1094         * indent.c (last_known_column): Now EMACS_INT, not int.
1095         * minibuf.c (minibuf_prompt_width): Likewise.
1096         * indent.c (current_column, current_column_1, position_indentation):
1097         Return EMACS_INT, not double.
1098         * lisp.h (current_column): Likewise.
1099         * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1100         All callers changed.
1101         * lisp.h (indented_beyond_p): Likewise.
1103         * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1104         from xdisp.c, and make static, since these are used only here.
1105         * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1106         Remove decls.
1108         * cmds.c (internal_self_insert): Reindent to match Emacs style.
1109         * xdisp.c (redisplay_window): Likewise.
1111         * xdisp.c: Rename or move local decls to avoid shadowing.
1112         (init_iterator, handle_fontified_prop, handle_single_display_spec):
1113         (message_dolog, message_with_string, redisplay_internal):
1114         (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1115         (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1116         (display_line, display_string, rows_from_pos_range):
1117         (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1118         Rename or move local decls.
1119         * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1120         (produce_glyphless_glyph): Make a pointer "const"
1121         since it might point to immutable storage.
1122         (update_window_cursor): Now static, since it's not used elsewhere.
1123         (SKIP_GLYPHS): Removed unused macro.
1125 2011-03-06  Michael Shields  <shields@msrl.com>  (tiny change)
1127         * window.c (Fnext_window): Doc fix.  (Bug#5567)
1129 2011-03-05  Chong Yidong  <cyd@stupidchicken.com>
1131         * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1133 2011-03-02  Ken Brown  <kbrown@cornell.edu>
1135         * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1137 2011-03-02  Paul Eggert  <eggert@cs.ucla.edu>
1139         Work around some portability problems with symlinks.
1141         * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1142         generate a special message for it.  Suggested by Eli Zaretskii in
1143         <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1144         (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1145         Simplify the code by assuming that the readlink and symlink calls
1146         exist, even if they always fail on this host.
1147         (Ffile_readable_p): Likewise, for fifos.
1148         * config.in: Regenerate.
1150 2011-02-27  Chong Yidong  <cyd@stupidchicken.com>
1152         * frame.c (store_frame_param): Don't store value directly in
1153         buffer_list and buried_buffer_list; copy the list and remove dead
1154         buffers (Bug#7898).
1156 2011-02-27  Eli Zaretskii  <eliz@gnu.org>
1158         * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1160         * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1162         * w32.c (symlink, readlink): New stub functions.
1164 2011-02-27  Paul Eggert  <eggert@cs.ucla.edu>
1166         * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1167         This avoids a gcc warning in some configurations.
1169         * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1171         * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1172         (set_menu_bar_lines, x_get_resource_string): New decls.
1173         * msdos.c (set_menu_bar_lines): Omit decl.
1175         * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1176         It's always given int values and used as an int.  This suppresses
1177         a gcc "comparison of unsigned expression >= 0" warning in some
1178         configurations.
1180         * dispnew.c: Rename locals to avoid shadowing.
1181         (update_text_area, scrolling_window, update_frame_1): Rename locals.
1183 2011-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1185         * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1186         (copy_glyph_row_contents): Remove; not used.
1187         (frame_row_to_window, check_current_matrix_flags):
1188         (window_change_signal): Now static, since they're not used elsewhere.
1189         (check_current_matrix_flags): Surround with "#if 0", since its
1190         only use is in a comment.  Maybe both the comment and the "#if 0"
1191         stuff should be removed?
1193         * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1194         (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1195         contexts that actually need it.
1197 2011-02-26  Eli Zaretskii  <eliz@gnu.org>
1199         * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1200         (lstat): Define for DJGPP < 2.04.
1202 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1204         * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1205         as per recent filemodestring API change.  Reported by Jonas Öster in
1206         <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1208 2011-02-23  Ben Key  <bkey76@gmail.com>
1210         * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1211         directly, for bar cursors.
1213 2011-02-23  Chong Yidong  <cyd@stupidchicken.com>
1215         * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1216         into the frame's cursor_width.
1218 2011-02-23  Stefan Monnier  <monnier@iro.umontreal.ca>
1220         * print.c (print_object): Never print old-style backquotes.
1221         Obey escapeflag for hash tables as well.
1223 2011-02-23  Kenichi Handa  <handa@m17n.org>
1225         * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1226         (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1228 2011-02-22  Paul Eggert  <eggert@cs.ucla.edu>
1230         * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1232 2011-02-22  Wolfgang Jenkner  <wjenkner@inode.at>  (tiny change)
1234         * lread.c (openp): Correct Boolean typo in last commit.
1236 2011-02-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
1238         * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1239         key to Emacs, treat as unmodified (go to input manager processing).
1241 2011-02-22  Paul Eggert  <eggert@cs.ucla.edu>
1243         Assume S_ISLNK etc. work, since gnulib supports this.
1244         * config.in: Regenerate.
1245         * dired.c (lstat): Remove.
1246         (file_name_completion): Assume S_ISDIR works.
1247         (file_name_completion_stat): Assume S_ISLNK works.
1248         Do not bother calling stat unless lstat says it's a symlink.
1249         * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1250         (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1251         (check_writable, Ffile_writable_p, Fset_file_times):
1252         Assume S_ISDIR works.
1253         (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1254         fifos exist.
1255         (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1256         * filelock.c (S_ISLNK): Remove.
1257         * lread.c (openp): Assume S_ISDIR works.
1258         * xrdb.c (S_ISDIR): Remove.
1260 2011-02-21  Eli Zaretskii  <eliz@gnu.org>
1262         * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1263         lib/makefile.w32-in.
1264         ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1265         (GLOBAL_SOURCES): Remove filemode.c.
1266         (OBJ1): Remove $(BLD)/filemode.$(O).
1268 2011-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1270         Import filemode module from gnulib.
1271         * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1272         * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1273         (filemode.o): Remove; this is now in ../lib.
1274         * dired.c: Include <filemode.h>.
1275         (filemodestring): Remove now-redundant decl.
1276         * config.in: Regenerate.
1278 2011-02-20  Eli Zaretskii  <eliz@gnu.org>
1280         * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1281         $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1283 2011-02-20  Christoph Scholtes  <cschol2112@gmail.com>
1285         * makefile.w32-in: Remove md5.$(O).
1286         ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1287         lib/makefile.w32-in.
1289 2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1291         Import crypto/md5 and stdint modules from gnulib.
1292         * Makefile.in (base_obj): Remove md5.o, since this file
1293         is in lib now.
1294         * config.in: Regenerate.
1295         * md5.h, md5.h: Move to ../lib.
1296         * deps.mk (md5.o): Remove.
1297         (fns.o): Depend on ../lib/md5.h, not md5.h.
1299 2011-02-19  Eli Zaretskii  <eliz@gnu.org>
1301         * termcap.c (tputs): Don't declare baud_rate.
1303         * s/msdos.h (strtold): Define to _strtold.
1305 2011-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1307         * process.c (Fstart_process, Fmake_serial_process)
1308         (Fmake_network_process, server_accept_connection):
1309         Use empty_unibyte_string.
1311         * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1313         * lread.c (Qdir_ok): New constant.
1314         (syms_of_lread): Initialize it.
1315         (openp): Don't ignore directories if the predicate returns dir-ok.
1317 2011-02-18  Eli Zaretskii  <eliz@gnu.org>
1319         * xdisp.c (display_line): Fix the change made for bug#7939.
1321         * terminal.c (create_terminal): Use default-keyboard-coding-system
1322         and default-terminal-coding-system to initialize coding systems of
1323         the new terminal.  (Bug#7840)
1325 2011-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1327         * lisp.h (BYTE_MARK_STACK): New macro.
1328         (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1330         * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1331         (struct byte_stack): Only define `top' and `bottom' if used.
1332         (mark_byte_stack): Only define if used.
1333         (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1334         is not set.
1335         (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1337         * term.c (OUTPUT_IF): Use OUTPUT.
1339         * alloc.c (Fgarbage_collect): When using stack scanning, don't
1340         redundantly scan byte-code stacks, catchlist, and handlerlist.
1342 2011-02-17  Jan Djärv  <jan.h.d@swipnet.se>
1344         * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1345         (Fns_read_file_name): Replace B_ with BVAR.
1347         * nsterm.m (ns_term_init): Use KVAR.
1349 2011-02-16  Eli Zaretskii  <eliz@gnu.org>
1351         * msdos.c (internal_terminal_init): Use KVAR.
1353         * w32fns.c (Fx_create_frame): Use KVAR.
1355         * w32term.c (w32_create_terminal): Use KVAR.
1357         * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1358         (getloadavg): Declare prototype which was removed from lisp.h.
1360         * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1362         * fileio.c (Finsert_file_contents, Fwrite_region):
1363         Remove references to buffer_file_type.
1364         (syms_of_fileio): Don't intern and staticpro
1365         find-buffer-file-type.
1367         * callproc.c (syms_of_callproc): Remove references to
1368         buffer_file_type.
1370         * buffer.c (reset_buffer_local_variables): Don't set
1371         buffer_file_type.
1372         (init_buffer_once): Likewise.
1373         (syms_of_buffer): Don't define buffer-file-type.
1375         * buffer.h (struct buffer): Remove buffer_file_type.
1377 2011-02-16  Tom Tromey  <tromey@parfait>
1379         * callint.c (Fcall_interactively): Update for change to field names.
1380         * doc.c (Fsubstitute_command_keys): Update for change to field names.
1381         * cmds.c (Fself_insert_command): Update for change to field names.
1382         * keymap.c (Fcurrent_active_maps, Fkey_binding)
1383         (Fdescribe_buffer_bindings): Update for change to field names.
1384         * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1385         (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1386         Update for change to field names.
1387         * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1388         (echo_length, echo_truncate, cmd_error, command_loop_1)
1389         (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1390         (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1391         (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1392         (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1393         Update for change to field names.
1394         * xfns.c (Fx_create_frame): Update for change to field names.
1395         * xterm.c (x_connection_closed, x_term_init): Update for change to
1396         field names.
1397         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1398         Update for change to field names.
1399         * window.c (window_scroll_pixel_based, window_scroll_line_based):
1400         Update for change to field names.
1401         * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1402         (delete_frame): Update for change to field names.
1403         * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1404         * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1405         (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1407 2011-02-16  Tom Tromey  <tromey@redhat.com>
1409         * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1411 2011-02-16  Tom Tromey  <tromey@parfait>
1413         * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1414         * xfaces.c (compute_char_face): Replace B_ with BVAR.
1415         * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1416         (message_dolog, update_echo_area, ensure_echo_area_buffers)
1417         (with_echo_area_buffer, setup_echo_area_for_printing)
1418         (set_message_1, update_menu_bar, update_tool_bar)
1419         (text_outside_line_unchanged_p, redisplay_internal)
1420         (try_scrolling, try_cursor_movement, redisplay_window)
1421         (try_window_reusing_current_matrix, row_containing_pos)
1422         (try_window_id, get_overlay_arrow_glyph_row, display_line)
1423         (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1424         (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1425         (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1426         BVAR.
1427         * window.c (window_display_table, unshow_buffer, window_loop)
1428         (window_min_size_2, set_window_buffer, Fset_window_buffer)
1429         (select_window, Fforce_window_update, temp_output_buffer_show)
1430         (Fset_window_configuration, save_window_save): Replace B_ with
1431         BVAR.
1432         * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1433         Replace B_ with BVAR.
1434         * undo.c (record_point, record_insert, record_delete)
1435         (record_marker_adjustment, record_first_change)
1436         (record_property_change, Fundo_boundary, truncate_undo_list)
1437         (Fprimitive_undo): Replace B_ with BVAR.
1438         * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1439         (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1440         * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1441         (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1442         (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1443         * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1444         (string_match_1, fast_looking_at, newline_cache_on_off)
1445         (search_command, search_buffer, simple_search, boyer_moore)
1446         (Freplace_match): Replace B_ with BVAR.
1447         * process.c (get_process, list_processes_1, Fstart_process)
1448         (Fmake_serial_process, Fmake_network_process)
1449         (read_process_output, send_process, exec_sentinel)
1450         (status_notify, setup_process_coding_systems): Replace B_ with
1451         BVAR.
1452         * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1453         (strout, print_string, temp_output_buffer_setup, print_object):
1454         Replace B_ with BVAR.
1455         * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1456         * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1457         Replace B_ with BVAR.
1458         * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1459         (set_marker_both, set_marker_restricted_both, unchain_marker):
1460         Replace B_ with BVAR.
1461         * lread.c (readchar, unreadchar, openp, readevalloop)
1462         (Feval_buffer, Feval_region): Replace B_ with BVAR.
1463         * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1464         * keymap.c (Flocal_key_binding, Fuse_local_map)
1465         (Fcurrent_local_map, push_key_description)
1466         (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1467         * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1468         (read_key_sequence): Replace B_ with BVAR.
1469         * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1470         * intervals.c (set_point_both, get_local_map): Replace B_ with
1471         BVAR.
1472         * insdel.c (check_markers, insert_char, insert_1_both)
1473         (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1474         (adjust_after_replace, replace_range, del_range_2)
1475         (modify_region, prepare_to_modify_buffer)
1476         (Fcombine_after_change_execute): Replace B_ with BVAR.
1477         * indent.c (buffer_display_table, recompute_width_table)
1478         (width_run_cache_on_off, current_column, scan_for_column)
1479         (Findent_to, position_indentation, compute_motion, vmotion):
1480         Replace B_ with BVAR.
1481         * fringe.c (get_logical_cursor_bitmap)
1482         (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1483         with BVAR.
1484         * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1485         * font.c (font_at): Replace B_ with BVAR.
1486         * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1487         Replace B_ with BVAR.
1488         * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1489         (unlock_buffer): Replace B_ with BVAR.
1490         * fileio.c (Fexpand_file_name, Ffile_directory_p)
1491         (Ffile_regular_p, Ffile_selinux_context)
1492         (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1493         (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1494         (Finsert_file_contents, choose_write_coding_system)
1495         (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1496         (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1497         (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1498         * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1499         (save_excursion_restore, Fprevious_char, Fchar_before)
1500         (general_insert_function, Finsert_char, Finsert_byte)
1501         (make_buffer_string_both, Finsert_buffer_substring)
1502         (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1503         (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1504         (Ftranslate_region_internal, save_restriction_restore)
1505         (Fchar_equal): Replace B_ with BVAR.
1506         * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1507         * dispextern.h (WINDOW_WANTS_MODELINE_P)
1508         (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1509         * dired.c (directory_files_internal): Replace B_ with BVAR.
1510         * data.c (swap_in_symval_forwarding, set_internal)
1511         (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1512         Replace B_ with BVAR.
1513         * composite.c (fill_gstring_header)
1514         (composition_compute_stop_pos, composition_adjust_point)
1515         (Ffind_composition_internal): Replace B_ with BVAR.
1516         * coding.c (decode_coding, encode_coding)
1517         (make_conversion_work_buffer, decode_coding_gap)
1518         (decode_coding_object, encode_coding_object)
1519         (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1520         (Funencodable_char_position, Fcheck_coding_systems_region):
1521         Replace B_ with BVAR.
1522         * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1523         with BVAR.
1524         * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1525         * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1526         (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1527         * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1528         * category.h (Vstandard_category_table): Replace B_ with BVAR.
1529         * category.c (check_category_table, Fcategory_table)
1530         (Fset_category_table, char_category_set): Replace B_ with BVAR.
1531         * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1532         BVAR.
1533         * casefiddle.c (casify_object, casify_region): Replace B_ with
1534         BVAR.
1535         * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1536         with BVAR.
1537         * callint.c (check_mark, Fcall_interactively): Replace B_ with
1538         BVAR.
1539         * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1540         * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1541         with BVAR.
1542         * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1543         (get_truename_buffer, Fget_buffer_create)
1544         (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1545         (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1546         (Fbuffer_local_value, buffer_lisp_local_variables)
1547         (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1548         (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1549         (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1550         (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1551         (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1552         (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1553         (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1554         (record_overlay_string, overlay_strings, init_buffer_once)
1555         (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1557 2011-02-16  Eli Zaretskii  <eliz@gnu.org>
1559         * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1560         window is changed inside calls to do_pending_window_change.
1561         (Bug#8020)
1563 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1565         Remove no-longer needed getloadavg symbols.
1566         * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1567         * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1568         * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1569         * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1570         * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1571         * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1572         * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1573         * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1574         * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1575         * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1576         * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1577         (LDAV_SYMBOL): Remove.
1578         * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1579         * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1581         Import getloadavg module from gnulib.
1582         * deps.mk (getloadavg.o): Remove; gnulib now does this.
1583         * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1584         now does this.
1585         * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1586         * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1587         * config.in: Regenerate.
1589 2011-02-15  Eli Zaretskii  <eliz@gnu.org>
1591         * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1593 2011-02-14  Michael Welsh Duggan  <md5i@md5i.com>
1595         * print.c (float_to_string): Ensure that a decimal point is
1596         printed if using dtoastr (Bug#8033).
1598 2011-02-14  Eli Zaretskii  <eliz@gnu.org>
1600         * msdos.c (IT_frame_up_to_date):
1601         * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1603         * dired.c (directory_files_internal):
1604         * fileio.c (Finsert_file_contents):
1605         * insdel.c (prepare_to_modify_buffer):
1606         * xdisp.c (pos_visible_p):
1607         * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1608         * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1609         Use B_ for the MS-Windows build.
1611 2011-02-14  Jan Djärv  <jan.h.d@swipnet.se>
1613         * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1614         resource that specifies helvetica for menus and dialogs.
1616         * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1617         (apply_systemfont_to_menu): Set resources *menubar*font and
1618         *popup*font.  Remove defflt.
1619         (set_frame_menubar, create_and_show_popup_menu):
1620         Call apply_systemfont_to_menu before lw_create_widget.
1622 2011-02-14  Tom Tromey  <tromey@redhat.com>
1624         * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1626         * keyboard.h: Remove obsolete comment.
1628 2011-02-14  Tom Tromey  <tromey@parfait>
1630         * composite.c (fill_gstring_header)
1631         (composition_compute_stop_pos, composition_adjust_point)
1632         (Ffind_composition_internal): Use B_.
1633         * intervals.c (set_point_both, get_local_map): Use B_.
1634         * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1635         * process.c (get_process, list_processes_1, Fstart_process)
1636         (Fmake_serial_process, Fmake_network_process)
1637         (read_process_output, send_process, exec_sentinel)
1638         (status_notify, setup_process_coding_systems): Use B_.
1639         * bytecode.c (Fbyte_code): Use B_.
1640         * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1641         (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1642         (skip_syntaxes, scan_lists): Use B_.
1643         * lread.c (readchar, unreadchar, openp, readevalloop)
1644         (Feval_buffer, Feval_region): Use B_.
1645         * print.c (printchar, strout, print_string, PRINTDECLARE)
1646         (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1647         (print_object): Use B_.
1648         * font.c (font_at): Use B_.
1649         * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1650         Use B_.
1651         * callint.c (check_mark, Fcall_interactively): Use B_.
1652         * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1653         (save_excursion_restore, Fprevious_char, Fchar_before)
1654         (general_insert_function, Finsert_char, Finsert_byte)
1655         (make_buffer_string_both, Finsert_buffer_substring)
1656         (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1657         (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1658         (Ftranslate_region_internal, save_restriction_restore)
1659         (Fchar_equal): Use B_.
1660         * data.c (swap_in_symval_forwarding, set_internal)
1661         (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1662         Use B_.
1663         * undo.c (record_point, record_insert, record_delete)
1664         (record_marker_adjustment, record_first_change)
1665         (record_property_change, Fundo_boundary, truncate_undo_list)
1666         (Fprimitive_undo): Use B_.
1667         * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1668         (string_match_1, fast_looking_at, newline_cache_on_off)
1669         (search_command, search_buffer, simple_search, boyer_moore)
1670         (Freplace_match): Use B_.
1671         * indent.c (buffer_display_table, recompute_width_table)
1672         (width_run_cache_on_off, current_column, scan_for_column)
1673         (Findent_to, position_indentation, compute_motion, vmotion):
1674         Use B_.
1675         * casefiddle.c (casify_object, casify_region): Use B_.
1676         * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1677         * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1678         * fileio.c (Fexpand_file_name, Ffile_directory_p)
1679         (Ffile_regular_p, Ffile_selinux_context)
1680         (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1681         (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1682         (Finsert_file_contents, choose_write_coding_system)
1683         (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1684         (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1685         (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1686         * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1687         * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1688         (set_marker_both, set_marker_restricted_both, unchain_marker):
1689         Use B_.
1690         * insdel.c (check_markers, insert_char, insert_1_both)
1691         (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1692         (adjust_after_replace, replace_range, del_range_2)
1693         (modify_region, prepare_to_modify_buffer)
1694         (Fcombine_after_change_execute): Use B_.
1695         * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1696         (unlock_buffer): Use B_.
1697         * keymap.c (Flocal_key_binding, Fuse_local_map)
1698         (Fcurrent_local_map, push_key_description)
1699         (Fdescribe_buffer_bindings): Use B_.
1700         * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1701         (read_key_sequence): Use B_.
1702         * fringe.c (get_logical_cursor_bitmap)
1703         (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1704         * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1705         * xfaces.c (compute_char_face): Use B_.
1706         * character.c (chars_in_text, Fget_byte): Use B_.
1707         * category.c (check_category_table, Fcategory_table)
1708         (Fset_category_table, char_category_set): Use B_.
1709         * coding.c (decode_coding, encode_coding)
1710         (make_conversion_work_buffer, decode_coding_gap)
1711         (decode_coding_object, encode_coding_object)
1712         (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1713         (Funencodable_char_position, Fcheck_coding_systems_region):
1714         Use B_.
1715         * charset.c (Ffind_charset_region): Use B_.
1716         * window.c (window_display_table, unshow_buffer, window_loop)
1717         (window_min_size_2, set_window_buffer, Fset_window_buffer)
1718         (select_window, Fforce_window_update, temp_output_buffer_show)
1719         (Fset_window_configuration, save_window_save): Use B_.
1720         * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1721         (message_dolog, update_echo_area, ensure_echo_area_buffers)
1722         (with_echo_area_buffer, setup_echo_area_for_printing)
1723         (set_message_1, update_menu_bar, update_tool_bar)
1724         (text_outside_line_unchanged_p, redisplay_internal)
1725         (try_scrolling, try_cursor_movement, redisplay_window)
1726         (try_window_reusing_current_matrix, row_containing_pos)
1727         (try_window_id, get_overlay_arrow_glyph_row, display_line)
1728         (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1729         (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1730         (get_window_cursor_type, note_mouse_highlight): Use B_.
1731         * frame.c (make_frame_visible_1): Use B_.
1732         * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1733         * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1734         (WINDOW_WANTS_MODELINE_P): Use B_.
1735         * syntax.h (Vstandard_syntax_table): Update.
1736         (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1737         * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1738         (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1739         * character.h (FETCH_CHAR_ADVANCE): Update.
1740         (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1741         * category.h (Vstandard_category_table): Update.
1742         * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1743         names.
1744         (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1745         * buffer.c (swapfield_): New macro.
1746         (Fbuffer_swap_text): Use swapfield_ where appropriate.
1747         (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1748         (Fget_buffer_create, clone_per_buffer_values)
1749         (Fmake_indirect_buffer, reset_buffer)
1750         (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1751         (Fbuffer_local_value, buffer_lisp_local_variables)
1752         (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1753         (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1754         (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1755         (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1756         (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1757         (Fbuffer_swap_text, Fset_buffer_multibyte)
1758         (swap_out_buffer_local_variables, record_overlay_string)
1759         (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1760         Use B_.
1761         * buffer.h (struct buffer): Rename all Lisp_Object fields.
1762         (BUFFER_INTERNAL_FIELD, B_): New macro.
1763         (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1765 2011-02-14  Jan Djärv  <jan.h.d@swipnet.se>
1767         * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1768         is null.
1770 2011-02-13  Jan Djärv  <jan.h.d@swipnet.se>
1772         * callproc.c (Fcall_process):
1773         * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1774         comment.
1776 2011-02-12  Martin Rudalics  <rudalics@gmx.at>
1778         * window.c (select_window): Check inhibit_point_swap argument when
1779         deciding whether to return immediately.
1781 2011-02-12  Jan Djärv  <jan.h.d@swipnet.se>
1783         * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1784         zero (Bug#7348).
1786 2011-02-12  Chong Yidong  <cyd@stupidchicken.com>
1788         * config.in (TERMINFO): New definition.
1790         * s/netbsd.h: Use it to choose between terminfo and termcap
1791         (Bug#7642).
1793 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1795         * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1796         The difference doesn't matter here, in practice, and sizeof is
1797         more portable to non-GCC compilers.  Also, this makes the code
1798         match the already-existing comment.
1800 2011-02-12  Andreas Schwab  <schwab@linux-m68k.org>
1802         * process.c (create_process): Reset SIGPIPE handler in the child.
1803         * callproc.c (Fcall_process): Likewise.  (Bug#5238)
1805 2011-02-12  Eli Zaretskii  <eliz@gnu.org>
1807         * xdisp.c <this_line_min_pos>: New variable.
1808         (move_it_in_display_line_to): Record in this_line_min_pos the
1809         smallest position iterated across.
1810         (display_line): Use this_line_min_pos to record the smallest
1811         position in the line even if it is not displayed due to
1812         hscrolling.  (Bug#7939)
1814 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1816         Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1817         * md5.h (ATTRIBUTE_ALIGNED): New macro.
1818         (struct md5_ctx): Use it.
1820         Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1821         * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1822         defined.
1823         * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1824         FC_HINT_STYLE is supported.
1826 2011-02-11  Jan Djärv  <jan.h.d@swipnet.se>
1828         * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1829         Make sure we don't do x_catch_errors twice.
1831 2011-02-10  Glenn Morris  <rgm@gnu.org>
1833         * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1835 2011-02-09  Eli Zaretskii  <eliz@gnu.org>
1837         * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1838         New macros.
1839         (globals.h, gl-stamp): New targets.
1840         (clean): Clean gl-stamp and globals.h.
1842 2011-02-09  Andreas Schwab  <schwab@linux-m68k.org>
1844         * Makefile.in (gl-stamp): Create globals.h here.
1845         (globals.h): Don't do it here.
1846         (mostlyclean): Clean globals.h and gl-stamp.
1848 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1850         * Makefile.in ($(otherobj)): Depend on globals.h.
1851         Otherwise 'make -j10' failed on my host, because the build lacked
1852         necessary dependencies, e.g., vm-limit.o depends on globals.h.
1854 2011-02-08  Tom Tromey  <tromey@redhat.com>
1856         * Makefile.in (NS_OBJC_OBJ): New variable.
1857         (base_obj): Rename from 'obj'.
1858         (obj): New variable.
1859         (globals.h, gl-stamp, $(obj)): New targets.
1860         (GLOBAL_SOURCES): New variable.
1861         * globals.h: Remove.
1862         * nsselect.m (Vselection_alist): Define.  Reverts part of
1863         2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1864         * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1865         variable.
1866         * xselect.c (Vselection_alist): Define.  Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1868 2011-02-08  Kenichi Handa  <handa@m17n.org>
1870         * font.c (Ffont_get): Do not cache :otf value.
1872 2011-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1874         conform to C89 pointer rules
1876         * dired.c (scmp, file_name_completion):
1877         Change types between char * and unsigned char *, to satisfy C89
1878         rules about pointer type compatibility.
1879         * casefiddle.c (casify_object, casify_region): Likewise.
1880         * search.c (Freplace_match, Fregexp_quote): Likewise.
1881         * alloc.c (make_string, make_specified_string, make_pure_string):
1882         Likewise.
1883         * data.c (Fstring_to_number): Likewise.
1884         * print.c (float_to_string, PRINTFINISH, printchar, strout):
1885         (print_object): Likewise.
1886         * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1887         (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1888         (Fformat): Likewise.
1889         * callint.c (Fcall_interactively): Likewise.
1890         * fns.c (string_make_multibyte, string_to_multibyte):
1891         (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1892         (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1893         Likewise.
1894         * lread.c (read1, hash_string): Likewise.
1895         * process.c (read_process_output, send_process, Fprocess_send_region):
1896         Likewise.
1897         * callproc.c (Fcall_process): Likewise.
1898         * doprnt.c (doprnt): Likewise.
1899         * indent.c (compute_motion): Likewise.
1900         * xfont.c (xfont_decode_coding_xlfd): Likewise.
1901         * ralloc.c (resize_bloc): Likewise.
1902         * image.c (tiff_load): Likewise.
1903         * xml.c (make_dom, parse_region): Likewise.
1904         * character.c (strwidth): Make its argument const char *, not const
1905         unsigned char *, since more callers prefer it that way.  All callers
1906         changed.
1908 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1910         * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1911         Emacs assumes two's complement elsewhere, but the assumption is
1912         easy to remove here, and this suppresses a warning with Sun C 5.8.
1914         conform to C89 pointer rules
1916         * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1917         (same_x_server, x_term_init):
1918         Change types between char * and unsigned char *, to satisfy C89
1919         rules about pointer type compatibility.
1920         * doc.c (get_doc_string, Fsnarf_documentation):
1921         (Fsubstitute_command_keys): Likewise.
1922         * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1923         * bitmaps/gray.xbm (gray_bits): Likewise.
1924         * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
1925         * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1926         Likewise.
1927         * keymap.c (Ftext_char_description): Likewise.
1928         * minibuf.c (Fread_buffer): Likewise.
1929         * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1930         (DRIVE_LETTER) [defined DOS_NT]:
1931         (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1932         (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1933         (search_embedded_absfilename, Fsubstitute_in_file_name):
1934         (barf_or_query_if_file_exists, Fmake_directory_internal):
1935         (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1936         (Finsert_file_contents, Fwrite_region):
1937         Likewise.
1938         * insdel.c (insert, insert_and_inherit, insert_before_markers):
1939         (insert_before_markers_and_inherit, insert_1, insert_1_both):
1940         Likewise.  This changes these functions' signatures, which is
1941         more convenient since most callers use char *.  All remaining
1942         callers changed.
1943         * editfns.c (general_insert_function): Change signature to
1944         match changes to insert functions' signatures.
1945         * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1946         Use explicit cast when converting between void * and function pointer
1947         types, as C89 requires this.
1949 2011-02-05  Paul Eggert  <eggert@cs.ucla.edu>
1951         don't ignore chdir failure
1952         * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1953         failure and exit.
1954         (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1955         remaining unchecked chdir calls in this function; some DOS/NT
1956         expert needs to fix them.
1957         * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1958         in this function; some NextStep expert needs to fix them.
1960 2011-02-05  Glenn Morris  <rgm@gnu.org>
1962         * xfaces.c (Finternal_set_lisp_face_attribute):
1963         Try to clarify some error messages.  (Bug#2659)
1965 2011-02-05  Stefan Monnier  <monnier@iro.umontreal.ca>
1967         * editfns.c (save_restriction_restore): Don't forget to invalidate the
1968         current_column cache (bug#7946).
1970 2011-02-05  Kenichi Handa  <handa@m17n.org>
1972         * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1974         * xftfont.c (xftfont_open): Likewise.
1976 2011-02-05  Andreas Schwab  <schwab@linux-m68k.org>
1978         * window.c (Fselect_window): Add missing return value.
1980 2011-02-05  Paul Eggert  <eggert@cs.ucla.edu>
1982         xstrcasecmp: conform to C89 pointer rules
1983         * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1984         to const char *, since they're usually low-level C strings, and
1985         this stays compatible with C89 pointer rules.  All callers changed.
1987         * charset.c: Conform to C89 pointer rules.
1988         (define_charset_internal): Switch between char * and unsigned char *.
1990         * xmenu.c: Conform to C89 const rules.
1991         (xmenu_show, xdialog_show): Declare local var as char *, not
1992         const char *, to stay compatible with C89 const rules.
1994         * xdisp.c: Conform to C89 pointer rules.
1995         (store_mode_line_noprop, display_string, reseat_to_string):
1996         (c_string_pos, number_of_chars, message_dolog):
1997         (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1998         (display_mode_element, display_string):
1999         Switch between char * and unsigned char * to stay compatible wth
2000         C89 pointer rules.
2002         * regex.c: Conform to C89 pointer rules.
2003         (re_wctype): Add cast, as C89 does not allow assigning between
2004         char * and unsigned char *.
2005         (regex_compile): Likewise.
2007         sync from gnulib to remove HAVE_STDBOOL_H
2008         * config.in: Regenerate.
2010 2011-02-04  Eli Zaretskii  <eliz@gnu.org>
2012         * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2013         Replace all uses of lisp.h with $(LISP_H), and all uses of
2014         process.h with $(PROCESS_H).
2015         ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2016         ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2018         * deps.mk: Update for recent changes: gnutls support, gnulib
2019         imports, addition of globals.h.
2021         * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2022         ../lib/ignore-value.h.
2024 2011-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2026         allow C code to suppress warnings about ignored return values
2028         We need to go through the code and for each such warning, either
2029         fix the code to pay attention to the returned value, or tell GCC
2030         that we really do want to ignore the returned value.  Here is one
2031         example of how to do the latter.
2032         * sysdep.c: Include <ignore-value.h>.
2033         (sys_subshell): Suppress an undesirable warning about not checking
2034         the returned value of 'write', as there's nothing useful one can
2035         do with that returned value.
2037 2011-02-03  Jan Djärv  <jan.h.d@swipnet.se>
2039         * xterm.c (x_connection_closed): Remove all calls that calls
2040         XSync (Bug#7949).
2042 2011-02-01  Eli Zaretskii  <eliz@gnu.org>
2044         * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2045         TIFFClientOpen.
2047 2011-02-01  Jan Djärv  <jan.h.d@swipnet.se>
2049         * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2050         (x_session_check_input): Change args and return type so it can be used
2051         as argument to add_read_fd.  Make static.  Remove call to select.
2052         Call kbd_buffer_store_event for emacs_event.
2053         (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2054         (ice_conn_watch_CB): Call add_read_fd.
2056         * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2057         x_session_check_input.
2058         (x_session_initialized): Remove definition.
2059         (x_initialize): Remove setting of x_session_initialized.
2061         * xterm.h (x_session_check_input): Remove declaration.
2063 2011-02-01  Paul Eggert  <eggert@cs.ucla.edu>
2065         format-time-string now supports subsecond time stamp resolution
2066         * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2067         for consistency with its new argument and with gnulib nstrftime.
2068         All callers changed.  New argument NS.
2069         (Fformat_time_string): Check that the time argument's microseconds
2070         component, if any, is in range; this avoids integer overflow and
2071         also nstrftime needs this.  Document %N.
2073 2011-01-31  Andreas Schwab  <schwab@linux-m68k.org>
2075         * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2076         of int.  All uses adjusted.
2077         (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2078         (svg_load_image): Remove casts.
2080 2011-01-31  Chong Yidong  <cyd@stupidchicken.com>
2082         * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2083         function definitions for compiling with libpng-1.5.
2084         (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2085         (my_png_error, png_load): Use them.  Suggested by Thomas Klausner
2086         (Bug#7908).
2088 2011-01-31  Eli Zaretskii  <eliz@gnu.org>
2090         * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2092         * makefile.w32-in (OBJ2): Remove strftime.$(O).
2093         ($(BLD)/strftime.$(O)): Remove prerequisites.
2095 2011-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2097         src/emacs.c now gets version number from configure.in
2098         * emacs.c (emacs_version): Set to VERSION so that it
2099         is determined automatically from ../configure.in.
2101 2011-01-31  Jim Meyering  <meyering@redhat.com>
2103         * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2104         Use xmalloc rather than malloc.
2106 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2108         strftime: import from gnulib
2109         * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2110         * deps.mk (strftime.o): Remove.
2111         * editfns.c: Include <strftime.h>, supplied by gnulib.
2112         (emacs_strftimeu): Remove decl.
2113         (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2114         emacs_strftimeu.
2115         * config.in: Regenerate.
2116         * strftime.c: Remove; we now use strftime from gnulib.
2118         Use SSDATA when the context wants char *.
2119         * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2120         * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2121         * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2122         * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2123         * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2124         Use SSDATA (not SDATA) when the context of the expression wants
2125         char * (not unsigned char *).
2127 2011-01-30  Jan Djärv  <jan.h.d@swipnet.se>
2129         * .gdbinit: Read global lisp variables as globals.f_V*.
2131 2011-01-30  Andreas Schwab  <schwab@linux-m68k.org>
2133         * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2134         All uses changed.
2135         (PROP_SAVE): Likewise.
2137 2011-01-29  Chong Yidong  <cyd@stupidchicken.com>
2139         * keyboard.c (make_lispy_position): Fix typo in last change
2140         (Bug#7935).
2142 2011-01-29  Eli Zaretskii  <eliz@gnu.org>
2144         * s/ms-w32.h (HAVE_MKTIME): Remove.
2146         * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2147         (GNULIB): New variable.
2148         (LIBS): Add $(GNULIB).
2149         $(TEMACS): Depend on $(GNULIB).
2150         <top-level>: Fix font-lock disrupted by a lone `"'.
2152 2011-01-29  Jan Djärv  <jan.h.d@swipnet.se>
2154         * nsselect.m (ns_string_from_pasteboard): Get length of string
2155         and use make_string instead of build_string (Bug#7934).
2156         (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2157         instead of stringWithUTF8String  (Bug#7934).
2159 2011-01-29  Anders Lindgren  <andlind@gmail.com>  (tiny change)
2161         * nsfont.m (nsfont_open): Ensure that fonts with inexact
2162         descenders would not become one pixel too tall (Bug#7887).
2164 2011-01-28  Chong Yidong  <cyd@stupidchicken.com>
2166         * keyboard.c (make_lispy_position): For clicks on right fringe or
2167         margin, compute text position using the X coordinate relative to
2168         the left of the text area (Bug#7839).
2170 2011-01-28  Kenichi Handa  <handa@m17n.org>
2172         * ftfont.c (ftfont_spec_pattern): Check each extra property
2173         value.
2175 2011-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2177         * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2179 2011-01-27  Chong Yidong  <cyd@stupidchicken.com>
2181         * font.c (font_parse_fcname): Undefine a temporary macro.
2183 2011-01-26  Stefan Monnier  <monnier@iro.umontreal.ca>
2185         Let the debugger continue to the normal handler (bug#7825).
2186         * eval.c (maybe_call_debugger): Declare before new use.
2187         (find_handler_clause): Don't call debugger any more.
2188         Ignore Vstack_trace_on_error.
2189         Use XCAR/XCDR.
2190         (syms_of_eval): Remove Vstack_trace_on_error.
2191         (Fsignal): Only modify handlerlist when we know we need to do it.
2192         Call the debugger when necessary.
2193         * globals.h (Vstack_trace_on_error): Remove.
2195 2011-01-26  Chong Yidong  <cyd@stupidchicken.com>
2197         * font.c (font_parse_fcname): Rewrite GTK font name parser.
2199 2011-01-25  Stefan Monnier  <monnier@iro.umontreal.ca>
2201         * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2202         the buffer's point-max (bug#7876).
2204 2011-01-25  Chong Yidong  <cyd@stupidchicken.com>
2206         * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2207         Remove unused case (Bug#6811).
2209 2011-01-23  Jan Djärv  <jan.h.d@swipnet.se>
2211         * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2212         setFrameTopLeftPoint is constrained.
2214 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2216         Check return values of some library calls.
2217         * emacs.c (main): Check dup result.
2218         * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2219         (frame_name_fnn_p): Check strtol result.
2221         * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2222         when calling XpmCreatePixmapFromData.
2224         Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2225         * lisp.h (SSDATA): New macro.
2226         All uses of (char *) SDATA (x) replaced with SSDATA (x),
2227         and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2228         * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2229         * xsmfns.c (SSDATA): Likewise.
2231 2011-01-22  Martin Rudalics  <rudalics@gmx.at>
2233         * window.c (select_window): New function.
2234         (Fselect_window): Call it.
2235         (inhibit_point_swap): Variable deleted.
2236         (Fset_window_configuration): Call select_window directly.
2238 2011-01-22  Jan Djärv  <jan.h.d@swipnet.se>
2240         * nsterm.m (constrainFrameRect): Only constrain the first time called.
2242 2011-01-21  Jan Djärv  <jan.h.d@swipnet.se>
2244         * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2245         screen, not the window screen.
2246         (x_set_window_size): Remove constraints.
2247         Calculate origin.y only if zooming is 0 and without referring to a
2248         screen.
2249         (windowWillResize): Don't modify frameSize.
2250         (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2251         (initFrameFromEmacs): Initialize ns_userRect.
2252         (windowShouldZoom): Set zooming to one.  Remove all other code.
2253         (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2254         Zero it after restore.
2255         (constrainFrameRect): New method for EmacsWindow.
2256         (mouseDragged): Always post NSWindowDidResizeNotification after call to
2257         windowWillResize.
2259         * nsterm.h (ns_output): Add dont_constrain and zooming.
2260         (EmacsView): Add ns_userRect.
2262         * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2263         if ns_alternate_modifier is none.
2265 2011-01-20  Jan Djärv  <jan.h.d@swipnet.se>
2267         * unexmacosx.c: Add comment about include order.
2269 2011-01-20  Glenn Morris  <rgm@gnu.org>
2271         * minibuf.c (syms_of_minibuf) <read-expression-history>:
2272         Give it a doc string.
2273         * globals.h: Add Vread_expression_history.
2275         * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2276         Give it a doc string.
2277         * globals.h: Add Vkbd_macro_termination_hook.
2279 2011-01-20  Chong Yidong  <cyd@stupidchicken.com>
2281         * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2283 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2285         Fix X11 compilation failure.
2286         * globals.h (struct emacs_globals): Document f_Vselection_alist.
2287         * xselect.c (Vselection_alist): Remove declaration, moving its
2288         documentation to globals.h.  This fixes a compilation failure
2289         induced by the earlier change to globals.h today.
2291 2011-01-19  Jan Djärv  <jan.h.d@swipnet.se>
2293         * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2295         * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2296         (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2297         (ns_input_spi_name, ns_input_spi_arg)
2298         (ns_alternate_modifier, ns_right_alternate_modifier)
2299         (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2300         (ns_right_control_modifier, ns_function_modifier)
2301         (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2302         (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2303         (x_underline_at_descent_line): Remove declaration.
2304         (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2306         * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2307         (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2308         (syms_of_nsselect): Remove & from DEFVAR_LISP.
2310         * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2311         Remove declaration.
2313         * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2314         globals.h.
2315         (syms_of_nsfont): Remove & from DEFVAR_LISP.
2317         * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2318         (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2319         (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2321         * globals.h (struct emacs_globals): Add f_ns_input_file,
2322         f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2323         f_ns_input_color, f_ns_input_text, f_ns_working_text,
2324         f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2325         f_ns_right_alternate_modifier, f_ns_command_modifier,
2326         f_ns_right_command_modifier, f_ns_control_modifier,
2327         f_ns_right_control_modifier, f_ns_function_modifier,
2328         f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2329         f_Vns_version_string, f_Vns_sent_selection_hooks,
2330         f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2331         and corresponding defines.
2333 2011-01-19  Sam Steingold  <sds@gnu.org>
2335         * w32.c (check_windows_init_file): Remove declarations of
2336         Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2337         * w32fns.c: Fix an error introduced by the previous patch.
2339 2011-01-19  Tom Tromey  <tromey@redhat.com>
2341         * window.c: Fix error introduced by previous patch.
2343 2011-01-18  Tom Tromey  <tromey@parfait>
2345         * globals.h: New file.
2346         * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2347         * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2348         (Vwindow_system_version): Remove declaration.
2349         * w32term.h (Vw32_enable_palette)
2350         (Vx_pixel_size_width_font_regexp): Remove declaration.
2351         * w32menu.c (Voverriding_local_map)
2352         (Voverriding_local_map_menu_flag): Remove declaration.
2353         * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2354         (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2355         (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2356         (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2357         (Vw32_phantom_key_code, Vw32_recognize_altgr)
2358         (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2359         (w32_use_full_screen_buffer): Remove declaration.
2360         * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2361         (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2362         (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2363         * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2364         (no_redraw_on_reenter, visible_bell): Remove declaration.
2365         * sysdep.c (Vsystem_name): Remove declaration.
2366         * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2367         * menu.h (Vmenu_updating_frame): Remove declaration.
2368         * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2369         Remove declaration.
2370         * lisp.h (Vafter_init_time, Vafter_load_alist)
2371         (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2372         (Vcompletion_regexp_list, Vcurrent_load_list)
2373         (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2374         (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2375         (Vexec_directory, Vexec_path, Vexec_suffixes)
2376         (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2377         (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2378         (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2379         (Vinstallation_directory, Vinvocation_directory)
2380         (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2381         (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2382         (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2383         (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2384         (Vscalable_fonts_allowed, Vselect_active_regions)
2385         (Vshell_file_name, Vstandard_input, Vstandard_output)
2386         (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2387         (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2388         (Vuser_login_name, Vwindow_scroll_functions)
2389         (Vwindow_system_version, Vx_no_window_manager)
2390         (Vx_resource_class, Vx_resource_name, baud_rate)
2391         (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2392         (history_delete_duplicates, inhibit_x_resources)
2393         (last_nonmenu_event, load_in_progress, max_specpdl_size)
2394         (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2395         (use_dialog_box, use_file_dialog): Remove declaration.
2396         Include globals.h.
2397         * keymap.h (Voverriding_local_map)
2398         (Voverriding_local_map_menu_flag, meta_prefix_char):
2399         Remove declaration.
2400         * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2401         (Vinput_method_function, Vkey_translation_map)
2402         (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2403         (do_mouse_tracking, extra_keyboard_modifiers)
2404         (num_nonmacro_input_events): Remove declaration.
2405         * intervals.h (Vchar_property_alias_alist)
2406         (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2407         (Vtext_property_default_nonsticky): Remove declaration.
2408         * gtkutil.h (x_gtk_file_dialog_help_text)
2409         (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2410         (x_gtk_whole_detached_tool_bar): Remove declaration.
2411         * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2412         (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2413         (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2414         (focus_follows_mouse): Remove declaration.
2415         * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2416         (Vignore_relative_composition, Votf_script_alist)
2417         (Vuse_default_ascent, Vvertical_centering_font_regexp):
2418         Remove declaration.
2419         * font.h (Vfont_log): Remove declaration.
2420         * dosfns.h (Vdos_display_scancodes, Vdos_version)
2421         (Vdos_windows_version, dos_codepage, dos_country_code)
2422         (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2423         (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2424         Remove declaration.
2425         * disptab.h (Vglyph_table, Vstandard_display_table):
2426         Remove declaration.
2427         * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2428         (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2429         (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2430         (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2431         (inverse_video, mode_line_in_non_selected_windows)
2432         (tool_bar_button_relief, tool_bar_max_label_size)
2433         (underline_minimum_offset)
2434         (unibyte_display_via_language_environment, x_stretch_cursor_p):
2435         Remove declaration.
2436         * composite.h (Vauto_composition_function)
2437         (Vcomposition_function_table): Remove declaration.
2438         * commands.h (Vexecuting_kbd_macro)
2439         (Vminibuffer_local_completion_map)
2440         (Vminibuffer_local_filename_completion_map)
2441         (Vminibuffer_local_filename_must_match_map)
2442         (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2443         (Vminibuffer_local_ns_map, Vthis_command)
2444         (Vunread_command_events, cursor_in_echo_area)
2445         (last_command_event, last_nonmenu_event, unread_command_char):
2446         Remove declaration.
2447         * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2448         (Vdefault_file_name_coding_system)
2449         (Vdefault_process_coding_system, Vfile_name_coding_system)
2450         (Vlast_coding_system_used, Vlocale_coding_system)
2451         (Vselect_safe_coding_system_function)
2452         (Vtranslation_table_for_input, coding_system_require_warning)
2453         (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2454         (eol_mnemonic_unix, inherit_process_coding_system):
2455         Remove declaration.
2456         * charset.h (Vcharset_list, Vcurrent_iso639_language):
2457         Remove declaration.
2458         * character.h (Vauto_fill_chars, Vchar_direction_table)
2459         (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2460         (Vscript_representative_chars, Vtranslation_table_vector)
2461         (Vunicode_category_table): Remove declaration.
2462         * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2463         * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2464         (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2465         (inhibit_modification_hooks): Remove declaration.
2466         * xterm.c (syms_of_xterm): Update.
2467         (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2468         (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2469         (x_mouse_click_focus_ignore_position)
2470         (x_underline_at_descent_line)
2471         (x_use_underline_position_properties): Remove.
2472         * xsmfns.c (syms_of_xsmfns): Update.
2473         (Vx_session_id, Vx_session_previous_id): Remove.
2474         * xsettings.c (syms_of_xsettings): Update.
2475         (Vxft_settings, use_system_font): Remove.
2476         * xselect.c (syms_of_xselect): Update.
2477         (Vselection_converter_alist, Vx_lost_selection_functions)
2478         (Vx_sent_selection_functions, x_selection_timeout): Remove.
2479         * xfns.c (syms_of_xfns): Update.
2480         (Vgtk_version_string, Vmotif_version_string)
2481         (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2482         (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2483         (Vx_no_window_manager, Vx_nontext_pointer_shape)
2484         (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2485         (Vx_sensitive_text_pointer_shape)
2486         (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2487         (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2488         (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2489         Remove.
2490         * xfaces.c (syms_of_xfaces): Update.
2491         (Vface_default_stipple, Vface_font_rescale_alist)
2492         (Vface_ignored_fonts, Vface_new_frame_defaults)
2493         (Vface_remapping_alist, Vfont_list_limit)
2494         (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2495         * xdisp.c (syms_of_xdisp): Update.
2496         (Vauto_resize_tool_bars, Vblink_cursor_alist)
2497         (Vdisplay_pixels_per_inch, Vfontification_functions)
2498         (Vframe_title_format, Vglobal_mode_string)
2499         (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2500         (Vicon_title_format, Vinhibit_redisplay)
2501         (Vline_number_display_limit, Vline_prefix)
2502         (Vmax_mini_window_height, Vmenu_bar_update_hook)
2503         (Vmenu_updating_frame, Vmessage_log_max)
2504         (Vmouse_autoselect_window, Vnobreak_char_display)
2505         (Voverlay_arrow_position, Voverlay_arrow_string)
2506         (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2507         (Vresize_mini_windows, Vshow_trailing_whitespace)
2508         (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2509         (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2510         (Vwindow_scroll_functions, Vwindow_size_change_functions)
2511         (Vwindow_text_change_functions, Vwrap_prefix)
2512         (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2513         (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2514         (highlight_nonselected_windows, hscroll_margin)
2515         (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2516         (inhibit_menubar_update, inhibit_try_cursor_movement)
2517         (inhibit_try_window_id, inhibit_try_window_reusing)
2518         (line_number_display_limit_width)
2519         (make_cursor_line_fully_visible_p, message_truncate_lines)
2520         (mode_line_inverse_video, multiple_frames, overline_margin)
2521         (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2522         (tool_bar_max_label_size, underline_minimum_offset)
2523         (unibyte_display_via_language_environment, x_stretch_cursor_p):
2524         Remove.
2525         * window.c (syms_of_window): Update.
2526         (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2527         (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2528         (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2529         (Vwindow_point_insertion_type, auto_window_vscroll_p)
2530         (mode_line_in_non_selected_windows, next_screen_context_lines)
2531         (window_min_height, window_min_width): Remove.
2532         (scroll_margin): Remove declaration.
2533         * w32term.c (syms_of_w32term): Update.
2534         (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2535         (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2536         (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2537         (w32_use_visible_system_caret, x_underline_at_descent_line)
2538         (x_use_underline_position_properties): Remove.
2539         (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2540         Remove declaration.
2541         * w32select.c (syms_of_w32select): Update.
2542         (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2543         * w32proc.c (syms_of_ntproc): Update.
2544         (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2545         (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2546         (Vw32_start_process_inherit_error_mode)
2547         (Vw32_start_process_share_console)
2548         (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2549         (Vsystem_name): Remove declaration.
2550         * w32font.c (syms_of_w32font): Update.
2551         (Vw32_charset_info_alist): Remove.
2552         * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2553         (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2554         (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2555         (Vw32_enable_palette, Vw32_lwindow_modifier)
2556         (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2557         (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2558         (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2559         (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2560         (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2561         (Vx_no_window_manager, Vx_nontext_pointer_shape)
2562         (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2563         (Vx_sensitive_text_pointer_shape)
2564         (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2565         (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2566         (w32_mouse_move_interval)
2567         (w32_pass_extra_mouse_buttons_to_system)
2568         (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2569         (w32_strict_fontnames, w32_strict_painting): Remove.
2570         (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2571         (Vw32_recognize_altgr, Vwindow_system_version)
2572         (w32_num_mouse_buttons, w32_use_visible_system_caret):
2573         Remove declaration.
2574         * w32console.c (syms_of_ntterm): Update.
2575         (w32_use_full_screen_buffer): Remove.
2576         (Vtty_defined_color_alist): Remove declaration.
2577         * w16select.c (syms_of_win16select): Update.
2578         (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2579         * undo.c (syms_of_undo): Update.
2580         (Vundo_outer_limit, Vundo_outer_limit_function)
2581         (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2582         Remove.
2583         * textprop.c (syms_of_textprop): Update.
2584         (Vchar_property_alias_alist, Vdefault_text_properties)
2585         (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2586         Remove.
2587         * terminal.c (syms_of_terminal): Update.
2588         (Vdelete_terminal_functions, Vring_bell_function): Remove.
2589         * term.c (syms_of_term): Update.
2590         (Vresume_tty_functions, Vsuspend_tty_functions)
2591         (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2592         Remove.
2593         * syntax.c (syms_of_syntax): Update.
2594         (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2595         (open_paren_in_column_0_is_defun_start)
2596         (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2597         (words_include_escapes): Remove.
2598         * search.c (syms_of_search): Update.
2599         (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2600         * process.c (syms_of_process): Update.
2601         (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2602         (delete_exited_processes): Remove.
2603         * print.c (syms_of_print): Update.
2604         (Vfloat_output_format, Vprint_charset_text_property)
2605         (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2606         (Vprint_length, Vprint_level, Vprint_number_table)
2607         (Vstandard_output, print_escape_multibyte)
2608         (print_escape_newlines, print_escape_nonascii, print_quoted):
2609         Remove.
2610         * msdos.c (syms_of_msdos): Update.
2611         (Vdos_unsupported_char_glyph): Remove.
2612         (unibyte_display_via_language_environment): Remove declaration.
2613         * minibuf.c (syms_of_minibuf): Update.
2614         (Vcompletion_regexp_list, Vhistory_add_new_input)
2615         (Vhistory_length, Vminibuffer_completing_file_name)
2616         (Vminibuffer_completion_confirm)
2617         (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2618         (Vminibuffer_exit_hook, Vminibuffer_help_form)
2619         (Vminibuffer_history_position, Vminibuffer_history_variable)
2620         (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2621         (Vread_buffer_function, Vread_expression_map)
2622         (completion_ignore_case, enable_recursive_minibuffers)
2623         (history_delete_duplicates, minibuffer_allow_text_properties)
2624         (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2625         Remove.
2626         * marker.c (syms_of_marker): Update.
2627         (byte_debug_flag): Remove.
2628         * macros.c (syms_of_macros): Update.
2629         (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2630         * lread.c (syms_of_lread): Update.
2631         (Vafter_load_alist, Vbyte_boolean_vars)
2632         (Vbytecomp_version_regexp, Vcurrent_load_list)
2633         (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2634         (Vload_history, Vload_path, Vload_read_function)
2635         (Vload_source_file_function, Vload_suffixes, Vobarray)
2636         (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2637         (Vread_symbol_positions_list, Vread_with_symbol_positions)
2638         (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2639         (force_load_messages, load_convert_to_unibyte)
2640         (load_dangerous_libraries, load_force_doc_strings)
2641         (load_in_progress): Remove.
2642         * keymap.c (syms_of_keymap): Update.
2643         (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2644         (Vminibuffer_local_completion_map)
2645         (Vminibuffer_local_filename_completion_map)
2646         (Vminibuffer_local_filename_must_match_map)
2647         (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2648         (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2649         (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2650         Remove.
2651         * keyboard.c (syms_of_keyboard): Update.
2652         (Vauto_save_timeout, Vcommand_error_function)
2653         (Vcommand_hook_internal, Vdeactivate_mark)
2654         (Vdeferred_action_function, Vdeferred_action_list)
2655         (Vdisable_point_adjustment, Vdouble_click_time)
2656         (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2657         (Vfunction_key_map, Vglobal_disable_point_adjustment)
2658         (Vhelp_char, Vhelp_event_list, Vhelp_form)
2659         (Vinput_method_function, Vinput_method_previous_message)
2660         (Vkey_translation_map, Vlast_event_frame)
2661         (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2662         (Vminibuffer_message_timeout, Voverriding_local_map)
2663         (Voverriding_local_map_menu_flag, Vpost_command_hook)
2664         (Vpre_command_hook, Vprefix_help_command)
2665         (Vsaved_region_selection, Vselect_active_regions)
2666         (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2667         (Vthis_command, Vthis_command_keys_shift_translated)
2668         (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2669         (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2670         (Vtty_erase_char, Vunread_command_events)
2671         (Vunread_input_method_events, Vunread_post_input_method_events)
2672         (auto_save_interval, cannot_suspend, do_mouse_tracking)
2673         (double_click_fuzz, extra_keyboard_modifiers)
2674         (inhibit_local_menu_bar_menus, last_command_event)
2675         (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2676         (menu_prompting, meta_prefix_char, num_input_keys)
2677         (num_nonmacro_input_events, polling_period, unread_command_char):
2678         Remove.
2679         * insdel.c (syms_of_insdel): Update.
2680         (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2681         * indent.c (syms_of_indent): Update.
2682         (indent_tabs_mode): Remove.
2683         * image.c (syms_of_image): Update.
2684         (Vimage_cache_eviction_delay, Vimage_types)
2685         (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2686         (cross_disabled_images): Remove.
2687         * fringe.c (syms_of_fringe): Update.
2688         (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2689         * frame.c (syms_of_frame): Update.
2690         (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2691         (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2692         (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2693         (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2694         (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2695         Remove.
2696         * fontset.c (syms_of_fontset): Update.
2697         (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2698         (Vfontset_alias_alist, Vignore_relative_composition)
2699         (Votf_script_alist, Vuse_default_ascent)
2700         (Vvertical_centering_font_regexp): Remove.
2701         * font.c (syms_of_font): Update.
2702         (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2703         (Vfont_weight_table, Vfont_width_table): Remove.
2704         * fns.c (syms_of_fns): Update.
2705         (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2706         * filelock.c (syms_of_filelock): Update.
2707         (Vtemporary_file_directory): Remove.
2708         * fileio.c (syms_of_fileio): Update.
2709         (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2710         (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2711         (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2712         (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2713         (Vinhibit_file_name_operation, Vset_auto_coding_function)
2714         (Vwrite_region_annotate_functions)
2715         (Vwrite_region_annotations_so_far)
2716         (Vwrite_region_post_annotation_function)
2717         (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2718         (Vw32_get_true_file_attributes): Remove declaration.
2719         * eval.c (syms_of_eval): Update.
2720         (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2721         (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2722         (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2723         (debug_on_next_call, debug_on_quit, debugger_may_continue)
2724         (max_lisp_eval_depth, max_specpdl_size): Remove.
2725         * emacs.c (syms_of_emacs): Update.
2726         (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2727         (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2728         (Vinstallation_directory, Vinvocation_directory)
2729         (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2730         (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2731         (Vsystem_configuration, Vsystem_configuration_options)
2732         (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2733         (inhibit_x_resources, noninteractive1): Remove.
2734         * editfns.c (syms_of_editfns): Update.
2735         (Vbuffer_access_fontified_property)
2736         (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2737         (Voperating_system_release, Vsystem_name, Vuser_full_name)
2738         (Vuser_login_name, Vuser_real_login_name): Remove.
2739         * dosfns.c (syms_of_dosfns): Update.
2740         (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2741         (dos_codepage, dos_country_code, dos_decimal_point)
2742         (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2743         (dos_super_key, dos_timezone_offset): Remove.
2744         * doc.c (syms_of_doc): Update.
2745         (Vbuild_files, Vdoc_file_name): Remove.
2746         * dispnew.c (syms_of_display): Update.
2747         (Vglyph_table, Vinitial_window_system)
2748         (Vredisplay_preemption_period, Vstandard_display_table)
2749         (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2750         (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2751         * dired.c (syms_of_dired): Update.
2752         (Vcompletion_ignored_extensions): Remove.
2753         (Vw32_get_true_file_attributes): Remove declaration.
2754         * dbusbind.c (syms_of_dbusbind): Update.
2755         (Vdbus_debug, Vdbus_registered_buses)
2756         (Vdbus_registered_objects_table): Remove.
2757         * data.c (syms_of_data): Update.
2758         (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2759         * composite.c (syms_of_composite): Update.
2760         (Vauto_composition_function, Vauto_composition_mode)
2761         (Vcompose_chars_after_function, Vcomposition_function_table):
2762         Remove.
2763         * coding.c (syms_of_coding): Update.
2764         (Vcharset_revision_table, Vcoding_category_list)
2765         (Vcoding_system_alist, Vcoding_system_for_read)
2766         (Vcoding_system_for_write, Vcoding_system_list)
2767         (Vdefault_process_coding_system, Venable_character_translation)
2768         (Vfile_coding_system_alist, Vlast_code_conversion_error)
2769         (Vlast_coding_system_used, Vlatin_extra_code_table)
2770         (Vlocale_coding_system, Vnetwork_coding_system_alist)
2771         (Vprocess_coding_system_alist)
2772         (Vselect_safe_coding_system_function)
2773         (Vstandard_translation_table_for_decode)
2774         (Vstandard_translation_table_for_encode)
2775         (Vtranslation_table_for_input, coding_system_require_warning)
2776         (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2777         (eol_mnemonic_unix, inherit_process_coding_system)
2778         (inhibit_eol_conversion, inhibit_iso_escape_detection)
2779         (inhibit_null_byte_detection): Remove.
2780         * cmds.c (syms_of_cmds): Update.
2781         (Vpost_self_insert_hook): Remove.
2782         * charset.c (syms_of_charset): Update.
2783         (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2784         (inhibit_load_charset_map): Remove.
2785         * character.c (syms_of_character): Update.
2786         (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2787         (Vchar_width_table, Vprintable_chars)
2788         (Vscript_representative_chars, Vtranslation_table_vector)
2789         (Vunicode_category_table): Remove.
2790         * ccl.c (syms_of_ccl): Update.
2791         (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2792         (Vtranslation_hash_table_vector): Remove.
2793         * category.c (syms_of_category): Update.
2794         (Vword_combining_categories, Vword_separating_categories): Remove.
2795         * callproc.c (syms_of_callproc): Update.
2796         (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2797         (Vexec_directory, Vexec_path, Vexec_suffixes)
2798         (Vinitial_environment, Vprocess_environment)
2799         (Vshared_game_score_directory, Vshell_file_name): Remove.
2800         * callint.c (syms_of_callint): Update.
2801         (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2802         (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2803         * bytecode.c (syms_of_bytecode): Update.
2804         (Vbyte_code_meter, byte_metering_on): Remove.
2805         * buffer.c (syms_of_buffer): Update.
2806         (Vafter_change_functions, Vbefore_change_functions)
2807         (Vchange_major_mode_hook, Vfirst_change_hook)
2808         (Vinhibit_read_only, Vkill_buffer_query_functions)
2809         (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2810         * alloc.c (syms_of_alloc): Update.
2811         (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2812         (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2813         (cons_cells_consed, floats_consed, garbage_collection_messages)
2814         (gc_cons_threshold, gcs_done, intervals_consed)
2815         (misc_objects_consed, pure_bytes_used, string_chars_consed)
2816         (strings_consed, symbols_consed, vector_cells_consed): Remove.
2818         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2819         (DEFVAR_INT): Assume global is in `globals'.
2820         * alloc.c (globals): Define.
2822 2011-01-18  Tom Tromey  <tromey@redhat.com>
2824         * image.c (Vimagemagick_render_type): Remove redundant
2825         definition.
2827 2011-01-18  Tom Tromey  <tromey@redhat.com>
2829         * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2830         (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2831         (redisplay_window): Update.
2832         (syms_of_xdisp): Update.
2834 2011-01-18  Tom Tromey  <tromey@redhat.com>
2836         * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2837         (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2838         Declare.
2839         * gtkutil.c (xg_uses_old_file_dialog):
2840         (xg_get_file_with_chooser):
2841         (xg_tool_bar_detach_callback): Don't redeclare globals.
2843 2011-01-18  Tom Tromey  <tromey@redhat.com>
2845         * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2846         * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2848 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2850         * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2851         defined __GNUC__.  ../configure now checks for this GCC feature,
2852         which is now also supported by IBM and Oracle compilers.
2853         (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2854         since Solaris malloc returns mult-of-8.
2856 2011-01-18  Stefan Monnier  <monnier@iro.umontreal.ca>
2858         * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2860 2011-01-17  Paul Eggert  <eggert@cs.ucla.edu>
2862         Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2863         * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2864         * data.c (Fnumber_to_string): Use it.
2865         * print.c (float_to_string, print_object): Likewise.
2867         Include <unistd.h> unilaterally.
2868         * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2869         * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2870         * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2871         * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2872         * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2873         * xterm.c:
2874         Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2875         unistd.h is always present now, possibly supplied by gnulib.
2877         * mktime.c: Remove; moving to ../lib.
2879         Use gnulib's mktime module.
2880         * deps.mk (mktime.o): Remove rule.
2882         Use gnulib's ftoastr module.
2883         * print.c: Include ftoastr.h.
2884         (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2885         Remove; no longer needed.
2886         (float_to_string): Use dtoastr rather than rolling our own code,
2887         which had an off-by-one bug on non-IEEE hosts.
2889         Automate syncing from gnulib.
2890         * Makefile.in (lib): New macro.
2891         (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2892         ($(lib)/libgnu.a): New rule.
2893         (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2895         * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2896         XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2897         so change the type of 'ign' to unsigned int from int.
2899         * regex.c (analyse_first): Remove unreachable 'continue' statement.
2901         * xterm.h (struct x_display_info): Remove stray semicolon.
2902         The extra semicolon didn't conform to the C standard.
2903         Problem reported by Sun cc.
2905         * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2906         These changes make compilation easier to follow with Sun cc.
2907         (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2908         EMACS_INT values without provoking overflow diagnostics.
2909         (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2910         (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2911         diagnostic with signed left shift.
2913         * fileio.c (make_temp_name): Remove unreachable code.
2915         * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2916         Previously it was marked by preceding it with "return;", but
2917         Sun cc complains about this.
2919         * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2920         This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2921         which fixed Bug#2370.  Caught by Sun cc.
2923 2011-01-15  Martin Rudalics  <rudalics@gmx.at>
2925         * window.c (inhibit_point_swap): New variable.
2926         (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2927         point this time.
2928         (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2929         of setting selected_window to nil (Bug#7728).
2931 2011-01-11  Tassilo Horn  <tassilo@member.fsf.org>
2933         * image.c (imagemagick_load_image, Finit_image_library):
2934         Free intermediate image after creating a MagickWand from it.
2935         Terminate MagickWand environment after image loading.
2937 2011-01-10  Michael Albinus  <michael.albinus@gmx.de>
2939         * dbusbind.c (Fdbus_register_service): Raise an error in case of
2940         unexpected return values.
2941         (Fdbus_register_method): Remove connection initialization.
2943 2011-01-10  Jan Moringen  <jan.moringen@uni-bielefeld.de>
2945         * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2946         used by Fdbus_register_service.
2947         (QCdbus_request_name_replace_existing): Likewise.
2948         (QCdbus_request_name_do_not_queue): Likewise.
2949         (QCdbus_request_name_reply_primary_owner): Likewise.
2950         (QCdbus_request_name_reply_in_queue): Likewise.
2951         (QCdbus_request_name_reply_exists): Likewise.
2952         (QCdbus_request_name_reply_already_owner): Likewise.
2953         (Fdbus_register_service): New function.
2954         (Fdbus_register_method): Use Fdbus_register_service to do the name
2955         registration.
2956         (syms_of_dbusbind): Add symbols dbus-register-service,
2957         :allow-replacement, :replace-existing, :do-not-queue,
2958         :primary-owner, :existing, :in-queue and :already-owner.
2960 2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
2962         * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2963         when removing extra buttons.
2965 2011-01-08  Chong Yidong  <cyd@stupidchicken.com>
2967         * fns.c (Fyes_or_no_p): Doc fix.
2969 2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
2971         * fns.c (Fyes_or_no_p): Add usage.
2973 2011-01-08  Glenn Morris  <rgm@gnu.org>
2975         * makefile.w32-in ($(EMACS)):
2976         * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2978         * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2979         * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2981 2011-01-07  Andreas Schwab  <schwab@linux-m68k.org>
2983         * image.c (imagemagick_load_image): Fix some resource leaks and
2984         error handling.
2986 2011-01-07  Chong Yidong  <cyd@stupidchicken.com>
2988         * fns.c (Fyes_or_no_p): Accept format string args.
2990 2011-01-07  Glenn Morris  <rgm@gnu.org>
2992         * emacs.c (no_site_lisp): New int.
2993         (USAGE1): Add --no-site-lisp, mention -Q uses it.
2994         (main): Set no_site_lisp.
2995         (standard_args): Add --no-site-lisp.
2996         * lisp.h (no_site_lisp): New int.
2997         * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2998         directories to Vload_path.
3000 2011-01-05  Andreas Schwab  <schwab@linux-m68k.org>
3002         * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3004 2011-01-04  Jan Moringen  <jan.moringen@uni-bielefeld.de>
3006         * dbusbind.c (Fdbus_register_method): Add optional parameter
3007         dont_register_service.  Updated docstring accordingly.
3009 2011-01-04  Glenn Morris  <rgm@gnu.org>
3011         * emacs.c (emacs_copyright): Update short copyright year to 2011.
3013 2011-01-03  Eli Zaretskii  <eliz@gnu.org>
3015         * image.c (png_jmpbuf): Remove definition.
3016         (my_png_error, png_load): Don't use png_jmpbuf.
3018 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
3020         * keyboard.c (Vselect_active_regions): Doc fix.  (Bug#7702)
3022 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
3024         * image.c <Qlibpng_version>: New variable.
3025         (syms_of_image): Intern and staticpro it.  Set its value to the
3026         version of PNG library we were compiled with.
3027         (my_png_error, png_load): Avoid GCC warnings about direct access
3028         to png_ptr->jmpbuf.  (Bug#7716)
3029         (png_jmpbuf): New macro.
3030         (my_png_error, png_load): Use it instead of #ifdef'ing according
3031         to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3033 2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
3035         * .gdbinit (xgetptr): Fix the union+lsb case.
3036         (xbacktrace): Fix the union case.
3038 2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
3040         * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3041         different from selected-window's.
3043 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
3045         * keyboard.c (parse_menu_item): Prepend "  " to the key sequence
3046         equivalent of a menu item when the key sequence is given by the
3047         `:keys' attribute.  (Bug#7662)
3049         * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3050         the basic faces are supported.
3052 2011-01-02  Jan Djärv  <jan.h.d@swipnet.se>
3054         * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3056 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
3058         * xdisp.c (Fformat_mode_line): Fix last change.
3060 2011-01-02  Chong Yidong  <cyd@stupidchicken.com>
3062         * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3063         faces (Bug#7587).
3065 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
3067         * fileio.c (Fexpand_file_name): One more doc fix.
3069 2011-01-01  Chong Yidong  <cyd@stupidchicken.com>
3071         * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3072         image or label in the container.
3073         (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3074         (xg_show_toolbar_item): Function deleted.
3075         (xg_tool_item_stale_p): New function.
3076         (update_frame_tool_bar): Calculate tool-bar style once per call.
3077         Instead of hiding text labels, omit them.  Don't use
3078         xg_show_toolbar_item; create new GtkToolItems from scratch if
3079         necessary, instead of trying to re-use them.  This avoids an
3080         annoying animation when changing tool-bars.
3082 2010-12-31  Jan Djärv  <jan.h.d@swipnet.se>
3084         * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3085         title and buffer filename only for RepresentedFilename.
3086         Handle bad UTF-8 in buffer name (Bug#7517).
3088 2010-12-30  Jan Djärv  <jan.h.d@swipnet.se>
3090         * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3092         * nsfns.m (ns_set_name_iconic): Remove.
3093         (ns_set_name_internal): New function (Bug#7517).
3094         (Vicon_title_format): Extern declare.
3095         (ns_set_name): Call ns_set_name_internal.
3096         (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3097         (x_implicitly_set_name): Ditto.
3098         (x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
3099         (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3101 2010-12-29  Štěpán Němec  <stepnem@gmail.com>  (tiny change)
3103         * window.c (syms_of_window): Add missing defsubr for
3104         window-use-time.
3106 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
3108         * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3109         * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3111 2010-12-27  Andreas Schwab  <schwab@linux-m68k.org>
3113         * buffer.c: Remove unused declarations.
3114         * buffer.h: Likewise.
3115         * charset.h: Likewise.
3116         * composite.h: Likewise.
3117         * dispextern.h: Likewise.
3118         * dispnew.c: Likewise.
3119         * font.h: Likewise.
3120         * fontset.c: Likewise.
3121         * fontset.h: Likewise.
3122         * intervals.h: Likewise.
3123         * keymap.h: Likewise.
3124         * lisp.h: Likewise.
3125         * syntax.c: Likewise.
3126         * syntax.h: Likewise.
3127         * termhooks.h: Likewise.
3128         * window.h: Likewise.
3129         * xsettings.h: Likewise.
3130         * xterm.c: Likewise.
3131         * xterm.h: Likewise.
3133         * chartab.c (sub_char_table_ref): Make static.
3134         * dispnew.c (line_hash_code, required_matrix_height)
3135         (required_matrix_width): Likewise.
3136         * eval.c (interactive_p, apply_lambda): Likewise.
3137         * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3138         Likewise.
3139         * font.c (QCadstyle, QCregistry, font_make_spec)
3140         (font_parse_fcname, font_encode_char, font_at): Likewise.
3141         * frame.c (x_frame_get_arg): Likewise.
3142         * keymap.c (get_keyelt): Likewise.
3143         * lread.c (read_filtered_event): Likewise.
3144         * print.c (write_string_1): Likewise.
3145         * window.c (delete_window, window_height, window_width)
3146         (foreach_window): Likewise.
3147         * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3148         * xterm.c (x_scroll_bar_clear, xembed_set_info)
3149         (xembed_send_message): Likewise.
3151         * eval.c (run_hook_list_with_args): Delete.
3152         * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3153         * terminal.c (get_terminal_param): Likewise.
3154         * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3156         * scroll.c: Fix comment.
3158         * dispnew.c (add_window_display_history)
3159         (add_frame_display_history, glyph_row_slice_p)
3160         (find_glyph_row_slice, flush_stdout)
3161         (check_matrix_pointer_lossage, matrix_row)
3162         (check_matrix_invariants, check_window_matrix_pointers)
3163         (check_matrix_pointers, window_to_frame_vpos)
3164         (window_to_frame_hpos): Prototize.
3165         * textprop.c (erase_properties): Likewise.
3167 2010-12-22  Stefan Monnier  <monnier@iro.umontreal.ca>
3169         * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3170         (print_preprocess): Fix handling of uninterned symbols in last change.
3172         * print.c (print, print_preprocess, print_object): Use a hash table
3173         rather than a linear table for Vprint_number_table.
3175 2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
3177         * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3179 2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
3181         * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3182         (parse_tool_bar_item): Use it to obtain image separators for
3183         displays not using native tool-bar separators.
3185         * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3186         specially, since this is now done in parse_tool_bar_item.
3188 2010-12-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3190         Minor clean up to silence some gcc warnings.
3191         * window.c (Fset_window_buffer):
3192         * xterm.c (x_set_frame_alpha): Restructure code to silence
3193         compiler warning.
3194         (handle_one_xevent): Remove unused var `p'.
3195         (do_ewmh_fullscreen): Remove unused var `lval'.
3196         (xembed_set_info): Remove unused var `atom'.
3197         * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3198         compiler warning.
3199         * fontset.c (fontset_id_valid_p, dump_fontset):
3200         * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3201         * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3202         * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3203         label only when it's used.
3204         * image.c (x_create_bitmap_from_xpm_data):
3205         * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3206         its callers.
3207         * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3208         `consumed_chars'.
3209         (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3210         (decode_coding_emacs_mule): Remove unused label `retry'.
3211         (detect_eol): Add parens to silence compiler warning.
3212         * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3213         it's used to silence the compiler.
3214         (make_number): Modernize k&r declaration.
3215         (mark_char_table): Add parens to silence compiler warning.
3217 2010-12-17  Chong Yidong  <cyd@stupidchicken.com>
3219         * keyboard.c (parse_tool_bar_item): Allow menu separators in
3220         tool-bar maps.
3221         (menu_separator_name_p): New function, from gtkutil.c.
3222         (separator_names): Move from gtkutil.c.
3224         * keyboard.h (menu_separator_name_p): Add prototype.
3226         * gtkutil.c (XG_BIN_CHILD): New macro.
3227         (xg_get_menu_item_label, xg_update_menubar)
3228         (xg_update_menu_item, xg_tool_bar_menu_proxy)
3229         (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3230         (separator_names, xg_separator_p): Move to keyboard.c.
3231         (create_menus, xg_update_submenu, update_frame_tool_bar):
3232         Use menu_separator_name_p.
3234         * nsmenu.m (name_is_separator): Function deleted.
3235         (addItemWithWidgetValue): Use menu_separator_name_p.
3237         * w32menu.c (name_is_separator): Function deleted.
3238         (add_menu_item): Use menu_separator_name_p.
3240 2010-12-16  Jan Djärv  <jan.h.d@swipnet.se>
3242         * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3243         same as the background, use the face forground as cursor.
3245 2010-12-13  Eli Zaretskii  <eliz@gnu.org>
3247         * fileio.c (Fexpand_file_name): Doc fix.  (Bug#7617)
3249 2010-12-13  Eli Zaretskii  <eliz@gnu.org>
3251         * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3252         (face_before_or_after_it_pos, next_element_from_string)
3253         (next_element_from_c_string, produce_stretch_glyph): Remove unused
3254         calculations of maximum string length before calling
3255         string_char_and_length and STRING_CHAR_AND_LENGTH.
3256         (string_char_and_length): Update commentary: MAXLEN is no longer
3257         needed.
3259 2010-12-13  Jan Djärv  <jan.h.d@swipnet.se>
3261         * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3262         as (Qsave_session arg).
3264         * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3265         (smc_die_CB): Make an event with arg Qt.
3266         (Fhandle_save_session): If event has Qt as argument,
3267         call Fkill_emacs (Bug#7552).
3269 2010-12-13  Chong Yidong  <cyd@stupidchicken.com>
3271         * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3273 2010-12-13  Jan Djärv  <jan.h.d@swipnet.se>
3275         * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3277 2010-12-13  Chong Yidong  <cyd@stupidchicken.com>
3279         * dispextern.h (struct it): New member overlay_strings_charpos.
3281         * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3282         charpos where we computed n_overlay_strings.
3283         (next_overlay_string): Load overlay strings at recorded position,
3284         which may not be the same as the iterator's charpos (Bug#7016).
3286 2010-12-13  Chong Yidong  <cyd@stupidchicken.com>
3288         * xdisp.c (try_scrolling): Avoid infloop if the first line is
3289         obscured due to a vscroll (Bug#7537).
3291 2010-12-13  Jan Djärv  <jhd@zeplinf.localdomain>
3293         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3295         * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3296         Use FRAME_TOOLBAR_HEIGHT.
3297         (x_set_offset): Handle XNegative and YNegative in
3298         f->size_hint_flags (Bug#7510).
3300 2010-12-11  Eli Zaretskii  <eliz@gnu.org>
3302         * w32fns.c (Fx_show_tip): Call try_window with last argument
3303         TRY_WINDOW_IGNORE_FONTS_CHANGE.  Delete the TODO ifdef: problem
3304         solved.  Round up the tip height to an integral multiple of the
3305         frame's line height.  Add FRAME_COLUMN_WIDTH to the tip width.
3306         (Bug#7398)
3308 2010-12-08  Glenn Morris  <rgm@gnu.org>
3310         * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3312 2010-12-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
3314         * xml.c (parse_region): Ignore blank HTML nodes.
3315         (make_dom): Return CDATA sections (like <style>foo</style>) as
3316         text nodes.
3318 2010-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
3320         * lread.c (read1): Allow newstyle unquote outside of backquote.
3321         Disallow old-style backquotes inside new-style backquotes.
3322         Don't count unquotes to figure out when we're "syntactically inside
3323         but semantically outside of a backquote" any more.
3324         Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3325         to all contexts.
3327 2010-12-05  Chong Yidong  <cyd@stupidchicken.com>
3329         * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3331 2010-12-04  Andreas Schwab  <schwab@linux-m68k.org>
3333         * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3334         (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3335         * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3337 2010-12-03  Andreas Schwab  <schwab@linux-m68k.org>
3339         * lisp.h (union Lisp_Object): Explicitly declare signedness of
3340         bit-field.
3341         (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3342         * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3343         * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3344         * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3345         * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3346         * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3347         * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3348         * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3349         * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3350         * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3351         * m/hp800.h: Remove file.
3352         * m/mips.h: Remove file.
3354 2010-12-03  Jan Djärv  <jan.h.d@swipnet.se>
3356         * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3357         with cursor color and draw a rectangle around the image (Bug#7412).
3359 2010-12-03  Andreas Schwab  <schwab@linux-m68k.org>
3361         * frame.c (x_set_font): Remove unused variable.
3363 2010-12-02  Jan Djärv  <jan.h.d@swipnet.se>
3365         * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3367         * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3368         drawing text under filled box cursor (Bug#7479).
3370 2010-11-27  Kenichi Handa  <handa@m17n.org>
3372         * charset.c (emacs_mule_charset): Make it an array of charset ID;
3373         i.e. integer.
3374         (Fdefine_charset_internal): Adjust for the above change.
3375         (init_charset_once): Likewise.
3377         * charset.h (emacs_mule_charset): Adjust the prototype.
3378         Delete duplicated extern.
3380         * coding.c (emacs_mule_char): Adjust for the change of
3381         emacs_mule_charset.
3383         * lread.c (read_emacs_mule_char): Adjust for the change of
3384         emacs_mule_charset.
3386 2010-11-27  Eli Zaretskii  <eliz@gnu.org>
3388         * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3389         of w32api >= 3.15.  (Bug#6989)  (Bug#7452)
3391 2010-11-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3393         * alloc.c (mark_terminals): Ensure that the image cache is marked
3394         even if the terminal object was marked earlier (Bug#6301).
3396 2010-11-21  Chong Yidong  <cyd@stupidchicken.com>
3398         * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3400 2010-11-27  Jan Djärv  <jan.h.d@swipnet.se>
3402         * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3403         (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3404         Use 23 as menubar height if 0.  (Bug#7425).
3406 2010-11-26  Eli Zaretskii  <eliz@gnu.org>
3408         * xdisp.c (set_message_1): Force paragraph direction in echo area
3409         be left-to-right.
3411         * keyboard.c (make_lispy_position): Put a meaningful value in yret
3412         when the click is on the header or mode line.
3414 2010-11-25  Eli Zaretskii  <eliz@gnu.org>
3416         * xdisp.c (set_cursor_from_row): Don't forget to consider the
3417         `cursor' property of the first character in overlay strings.
3418         (Bug#7474)  (Bug#7481)
3420 2010-11-24  Jan Djärv  <jan.h.d@swipnet.se>
3422         * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3423         (NSLeftAlternateKeyMask): New defines.
3424         (keyDown): Parse left and right keys separately (Bug#7458).
3425         Compare Left key masks exactly (Bug#7458).
3427 2010-11-23  Eli Zaretskii  <eliz@gnu.org>
3429         * intervals.c (temp_set_point_both): Define before calling, to
3430         avoid GCC warnings.
3432 2010-11-23  Dan Nicolaescu  <dann@ics.uci.edu>
3434         * nsmenu.m: Use #include <config.h> instead of "config.h".
3436         * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3437         (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3438         Move declarations ...
3439         * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3440         (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3441         ... here.
3443         * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3444         (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3445         (gdb_pvec_type):
3446         * print.c (print_output_debug_flag):
3447         * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3448         (safe_debug_print): New declaration.
3450         * xterm.c:
3451         * systty.h:
3452         * sound.c: Include <sys/ioctl.h> unconditionally.
3454 2010-11-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3456         * alloc.c (mark_maybe_object): Return early if given a Lisp
3457         integer (Bug#6301).
3459 2010-11-21  Ken Brown  <kbrown@cornell.edu>
3461         * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3463 2010-11-21  Jan Djärv  <jan.h.d@swipnet.se>
3465         * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3466         Define (Bug#7458).
3467         (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3468         (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3469         NSRightControlKeyMask also (Bug#7458).
3470         (keyDown): Ditto (Bug#7458).
3471         (syms_of_nsterm): Defvar ns-right-command-modifier and
3472         ns-right-control-modifier (Bug#7458).
3474 2010-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
3476         * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3477         * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3479         * intervals.h (temp_set_point, temp_set_point_both):
3480         * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3482 2010-11-20  Ken Brown  <kbrown@cornell.edu>
3484         * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3486 2010-11-20  Eli Zaretskii  <eliz@gnu.org>
3488         * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3489         \xNNNNNN for hex-code display of glyphless characters.
3491 2010-11-20  Jan Djärv  <jan.h.d@swipnet.se>
3493         * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3494         Set important to ! vert_only.
3495         (xg_show_toolbar_item): Don't show label horizontally if
3496         tool item isn't important.
3497         (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3498         xg_make_tool_item, or update important on existing tool item.
3500         * keyboard.c (QCvert_only): New variable.
3501         (parse_tool_bar_item): Check for QCvert_only.
3502         (syms_of_keyboard): Initialize QCvert_only.
3504         * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3506 2010-11-20  Eli Zaretskii  <eliz@gnu.org>
3508         * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3509         same in-line.
3511 2010-11-20  Andreas Schwab  <schwab@linux-m68k.org>
3513         * xfaces.c (lookup_face): Make static.
3514         * dispnew.c (copy_row_except_pointers): Likewise.
3515         * syntax.c (dec_bytepos): Likewise.
3516         (inc_bytepos): Remove.
3517         * dispextern.h (lookup_face): Remove declaration.
3519 2010-11-19  Eli Zaretskii  <eliz@gnu.org>
3521         * xdisp.c (set_cursor_from_row): Display cursor after all the
3522         glyphs that come from an overlay.  Don't overstep the last glyph
3523         when skipping glyphs from an overlay.  (Bug#6687)
3525 2010-11-18  Dan Nicolaescu  <dann@ics.uci.edu>
3527         * alloc.c (refill_memory_reserve): Move declaration ...
3528         * lisp.h (refill_memory_reserve): ... here.
3530         * strftime.c (_strftime_copytm): Add declaration.
3532         * callproc.c (syms_of_callproc): Use intern_c_string.
3534         Move declarations from .c files to .h files.
3535         * process.c (timers_run):
3536         * minibuf.c (quit_char):
3537         * lread.c (read_emacs_mule_char):
3538         * keyboard.c (minibuf_level, message_enable_multibyte)
3539         (pending_malloc_warning):
3540         * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3541         (Qonly): Remove declarations.
3542         * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3543         (Vselect_active_regions):
3544         * keyboard.h (timers_run): Add declarations.
3546         * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3547         (tm_diff): Convert definitions to standard C.
3548         (extra_args_spec_iso): Remove, unused.
3550 2010-11-18  Jan Djärv  <jan.h.d@swipnet.se>
3552         * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3554         * config.in (HAVE_G_TYPE_INIT): New symbol.
3556 2010-11-18  Eli Zaretskii  <eliz@gnu.org>
3558         * lread.c (Fload): Mention `load-in-progress' and
3559         `load-file-name'.  (Bug#7346)
3561         * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3562         (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3563         (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3564         subprocesses.  Use buffer_free only ifdef subprocesses.
3566         * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3567         the subprocesses version, not in the non-subprocesses one.
3569         * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3571 2010-11-17  Eli Zaretskii  <eliz@gnu.org>
3573         * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3574         lines on text-mode terminals.  (bug#7417)
3576 2010-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
3578         * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3579         (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3581 2010-11-17  Kenichi Handa  <handa@m17n.org>
3583         * coding.c (Fset_terminal_coding_system_internal): Fix previous
3584         change (set charset-ID list instead of charset-symbol list).
3586 2010-11-16  Chong Yidong  <cyd@stupidchicken.com>
3588         * keyboard.c (make_lispy_position): For text area clicks, record Y
3589         pixel position relative to the text area, excluding header line.
3590         Also change X and Y to Lisp_Objects, not pointers; don't return
3591         coordinate values via pointers.  Pass ON_TEXT_AREA coordinate to
3592         buffer_posn_from_coords counting from the start of the text area.
3593         (Fposn_at_x_y, make_lispy_event): Callers changed.
3595         * window.c (coordinates_in_window): Change X and Y to ints rather
3596         than pointers; don't return coordinates via pointers.
3597         (struct check_window_data): Change X and Y from pointers to ints.
3598         (window_from_coordinates): Remove args WX and WY; don't return
3599         coordinates via pointers.
3600         (Fcoordinates_in_window_p, window_from_coordinates):
3601         (check_window_containing, Fwindow_at): Callers changed.
3602         (window_relative_x_coord): New function.
3604         * window.h (window_from_coordinates, window_relative_x_coord):
3605         Update prototypes.
3607         * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3608         the start of the text area.
3610         * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3611         call.  Use window_relative_x_coord.
3612         (note_mouse_highlight): Change window_from_coordinates call.
3614         * w32term.c (w32_read_socket):
3615         * msdos.c (dos_rawgetc):
3616         * xterm.c (handle_one_xevent): Likewise.
3618 2010-11-16  Dan Nicolaescu  <dann@ics.uci.edu>
3620         * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3621         (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3622         (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3623         Convert definitions to standard C.
3624         * regex.c: Do not include <stdlib.h>, config.h does it.
3625         Include unistd.h.
3626         (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3627         (regerror, regfree): Convert definitions to standard C.
3628         * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3629         (__mktime_internal): Convert definitions to standard C.
3631 2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>
3633         * w32proc.c:
3634         * w32inevt.c:
3635         * w32heap.c:
3636         * w32.c: Remove config.h include guards.
3638         * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3639         No code changes.
3641         * process.c: Include <sys/ioctl.h> unconditionally,
3642         keyboard.c already does it.
3644         * keyboard.c (pending_malloc_warning): Add const to match
3645         definition in alloc.c.
3646         (Fset_input_interrupt_mode): Simplify #ifdefs.
3648 2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>
3650         Clean up systty.h macros.
3651         * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3652         (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3653         definition in all uses.
3654         (EMACS_TTY_TABS_OK): Remove, it has a single user.
3655         * sysdep.c (discard_tty_input, child_setup_tty)
3656         (init_sys_modes, tabs_safe_p, reset_sys_modes):
3657         * emacs.c (shut_down_emacs):
3658         * callproc.c (child_setup):
3659         * term.c (dissociate_if_controlling_tty): Inline removed macros.
3661         * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3663 2010-11-14  Chong Yidong  <cyd@stupidchicken.com>
3665         * w32fns.c (Fx_create_frame):
3666         * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3667         resource here; it's now done at startup.
3669 2010-11-14  Jan Djärv  <jan.h.d@swipnet.se>
3671         * xterm.c (set_wm_state): Add Qnil to final cons.
3673         * xselect.c (x_send_client_event): Remove unused variables cons and
3674         size.
3676 2010-11-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3678         * keyboard.c (modify_event_symbol): Add const to array elements of
3679         arg NAME_TABLE.
3680         (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3681         (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3682         (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3683         Add const to array elements.
3684         (scroll_bar_parts): Make static.  Fix position of const.
3686         * w32fns.c (lispy_function_keys): Add const to extern.
3688         * w32inevt.c (lispy_function_keys): Likewise.
3690 2010-11-14  Chong Yidong  <cyd@stupidchicken.com>
3692         * xfns.c (Fx_create_frame): Don't check for the cursorColor
3693         resource here; it's now done at startup.
3695 2010-11-13  Dan Nicolaescu  <dann@ics.uci.edu>
3697         * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3699         Fix compilation on Solaris.
3700         * sysdep.c: Do not #include <term.h>.
3701         (tputs): Add declaration, similar to what cm.c does.  (Bug#7178)
3703         * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3705 2010-11-13  Jan Djärv  <jan.h.d@swipnet.se>
3707         * xterm.c (set_wm_state): Don't put Atom in cons, call
3708         make_fixnum_or_float on them first.
3709         (x_term_init): Initialize Xatom_net_supporting_wm_check and
3710         Xatom_net_supported correctly.
3712         * xselect.c (x_send_client_event): Move CHECK_STRING ...
3713         (Fx_send_client_event): to here.
3715 2010-11-13  Martin Rudalics  <rudalics@gmx.at>
3717         * window.c (Fwindow_use_time): New function.
3719 2010-11-13  Eli Zaretskii  <eliz@gnu.org>
3721         * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3722         zero-width characters.
3724         * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3726         * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3727         box before drawing the glyphs inside it.
3729         * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3731         * dispextern.h (enum glyphless_display_method):
3732         Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3733         All users changed.
3735         * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3736         Fix comments.
3737         (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3738         whitespace in "[]", to simulate a box.  Don't use uninitialized
3739         variable `width'.
3741 2010-11-11  Julien Danjou  <julien@danjou.info>
3743         * xsettings.c (init_xsettings): Use already fetch atoms.
3745         * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3746         from dpyinfo.
3748         * xselect.c (Fx_send_client_event): Split and create
3749         x_send_client_event.
3751         * lisp.h: Do not EXFUN Fx_send_client_event.
3753         * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3754         from dpyinfo.
3755         (wm_supports): Use atoms from dpyinfo.
3756         (do_ewmh_fullscreen): Use atoms from dpyinfo.
3757         (x_ewmh_activate_frame): Use atoms from dpyinfo.
3758         (xembed_set_info): Use atoms from dpyinfo.
3759         (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3760         _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3761         _NET_ACTIVE_WINDOW, XSETTINGS  atoms.
3762         Get all atoms in one round-trip.
3763         (set_wm_state): Use x_send_client_event rather than
3764         Fx_send_client_event, using Atom directly.
3765         (x_ewmh_activate_frame): Ditto.
3766         (x_set_sticky): Pass atoms to set_wm_state.
3767         (do_ewmh_fullscreen): Ditto.
3769         * xterm.h (x_display_info): Add Xatom_net_supported,
3770         Xatom_net_supporting_wm_check, Xatom_net_active_window,
3771         Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3773         * xfns.c (Fx_show_tip): Fix typo in docstring.
3775 2010-11-11  Stefan Monnier  <monnier@iro.umontreal.ca>
3777         * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3778         it's not negative.
3780 2010-11-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3782         * font.c (font_filter_properties): Add const to array elements of
3783         properties args.
3785         * font.h (font_filter_properties): Likewise.
3787         * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3788         elements.
3790         * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3792 2010-11-10  Michael Albinus  <michael.albinus@gmx.de>
3794         * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3795         (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3796         (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3797         (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3798         (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3800 2010-11-10  Glenn Morris  <rgm@gnu.org>
3802         * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3804 2010-11-09  Eli Zaretskii  <eliz@gnu.org>
3806         * xfns.c (x_real_positions): Fix declaration-after-statement problem.
3808 2010-11-09  Chong Yidong  <cyd@stupidchicken.com>
3810         * image.c (free_image): Don't garbage the frame here, since this
3811         function can be called while redisplaying (Bug#7210).
3812         (uncache_image): Garbage the frame here (Bug#6426).
3814 2010-11-09  Jan Djärv  <jan.h.d@swipnet.se>
3816         * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3817         parent is the root window.  Check this after traversing window tree.
3819         * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
3821         * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
3823         * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3824         before traversing window tree (Bug#5721).
3826 2010-11-07  Jan Djärv  <jan.h.d@swipnet.se>
3828         * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3830         * xdisp.c (note_mode_line_or_margin_highlight):
3831         Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
3833 2010-11-06  Eli Zaretskii  <eliz@gnu.org>
3835         * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3836         adjust width of tool-tip frame to the width of text, excluding the
3837         stretch glyph at the beginning of R2L glyph rows.
3839         * w32fns.c (Fx_show_tip): Likewise.
3841 2010-11-06  Jan Djärv  <jan.h.d@swipnet.se>
3843         * nsfont.m: Include termchar for new mouse-highlight.
3844         (nsfont_draw): Use MOUSE_HL_INFO.
3846 2010-11-05  Eli Zaretskii  <eliz@gnu.org>
3848         Unify mouse-highlight code for all GUI and TTY sessions.
3850         * term.c: Remove static mouse_face_* variables.  All users
3851         changed.
3852         (term_show_mouse_face, term_clear_mouse_face)
3853         (fast_find_position, term_mouse_highlight): Functions deleted.
3854         (tty_draw_row_with_mouse_face): New function.
3855         (term_mouse_movement): Call note_mouse_highlight instead of
3856         term_mouse_highlight.
3858         * nsterm.m (ns_update_window_begin, ns_update_window_end)
3859         (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3860         (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3861         (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3862         (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3863         Replace Display_Info with Mouse_HLInfo everywhere where
3864         mouse_face_* members were accessed for mouse highlight purposes.
3866         * xterm.c (x_update_window_begin, x_update_window_end)
3867         (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
3868         (handle_one_xevent, x_free_frame_resources, x_term_init):
3869         Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
3870         members were accessed for mouse highlight purposes.
3872         * w32term.c (x_update_window_begin, x_update_window_end)
3873         (x_update_end, w32_read_socket, x_free_frame_resources)
3874         (w32_initialize_display_info): Replace Display_Info with
3875         Mouse_HLInfo everywhere where mouse_face_* members were accessed
3876         for mouse highlight purposes.
3878         * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3879         (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3880         unless the frame is on a window-system.
3881         (get_tool_bar_item, handle_tool_bar_click)
3882         (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3883         (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3884         (note_mode_line_or_margin_highlight, note_mouse_highlight)
3885         (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3886         Replace Display_Info with Mouse_HLInfo everywhere where
3887         mouse_face_* members were accessed for mouse highlight purposes.
3888         (coords_in_mouse_face_p): Move prototype out of the
3889         HAVE_WINDOW_SYSTEM conditional.
3890         (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3891         HAVE_WINDOW_SYSTEM block.
3892         (try_window_id) [HAVE_GPM || MSDOS]:
3893         Call x_clear_window_mouse_face.
3894         (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
3895         systems.  Call tty_draw_row_with_mouse_face for TTY systems.
3896         (show_mouse_face): Call draw_row_with_mouse_face, instead of
3897         calling draw_glyphs directly.
3898         (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3899         (cursor_in_mouse_face_p, rows_from_pos_range)
3900         (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3901         (note_mode_line_or_margin_highlight, note_mouse_highlight)
3902         (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3903         HAVE_WINDOW_SYSTEM block.  Ifdef away window-system specific
3904         fragments.
3905         (note_mouse_highlight): Call popup_activated for MSDOS as well.
3906         Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3907         integer.
3908         (mouse_face_from_buffer_pos): Add parentheses around && within ||.
3909         (x_consider_frame_title, tool_bar_lines_needed):
3910         Move prototypes to HAVE_WINDOW_SYSTEM-only part.
3911         (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3912         part.  Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3913         (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3914         part.
3916         * dispnew.c (mirror_make_current): Set Y coordinate of the
3917         mode-line and header-line rows.
3918         (init_display): Setup initial frame's output_data for text
3919         terminal frames.
3921         * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3922         its own definition on msdos.c.
3924         * msdos.c (show_mouse_face, clear_mouse_face)
3925         (fast_find_position, IT_note_mode_line_highlight)
3926         (IT_note_mouse_highlight): Functions deleted.
3927         (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3928         instead of IT_note_mouse_highlight.
3929         (draw_row_with_mouse_face, popup_activated): New functions.
3930         (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3931         (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3932         (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3933         where mouse_face_* members were accessed for mouse highlight
3934         purposes.
3936         * msdos.h (initialize_msdos_display): Add prototype.
3938         * frame.h (MOUSE_HL_INFO): New macro.
3940         * lisp.h (Mouse_HLInfo): New data type.
3942         * xterm.h (struct x_display_info):
3943         * w32term.h (struct w32_display_info):
3944         * nsterm.h (struct ns_display_info):
3945         * termchar.h (struct tty_display_info): Use it instead of
3946         mouse_face_* members.
3948         * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3949         1st argument.
3950         (frame_to_window_pixel_xy, note_mouse_highlight)
3951         (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3952         (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3953         HAVE_WINDOW_SYSTEM conditional.
3954         (draw_row_with_mouse_face): Declare prototype.
3955         (tty_draw_row_with_mouse_face): Declare prototype.
3957 2010-11-05  Eli Zaretskii  <eliz@gnu.org>
3959         * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3960         Remove unused variables.
3962 2010-11-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
3964         * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3965         logic pointed out by Eli Zaretskii.
3967 2010-11-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
3969         * coding.c (coding-category-list): Refer to set-coding-system-priority
3970         instead of the obsolete set-coding-priority in the doc string.
3972 2010-11-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
3974         * nsfont.m (nsfont_draw): Correct previous patch to return
3975         correct value.
3976         * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3977         don't change the method signature, change the return.
3979 2010-11-04  Ismail Donmez  <ismail@namtrac.org>  (tiny change)
3981         * nsfont.m (nsfont_draw)
3982         * nsimage.m (EmacsImage-setXBMColor:)
3983         * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3985 2010-11-03  Julien Danjou  <julien@danjou.info>
3987         * image.c (gif_load): Add support for transparency and specified
3988         :background.
3990 2010-11-01  Kenichi Handa  <handa@m17n.org>
3992         * dispextern.h (lookup_glyphless_char_display): Extern it.
3994         * termhooks.h (struct terminal): New member charset_list.
3996         * coding.c (Fset_terminal_coding_system_internal): Set the
3997         `charset_list' member of struct terminal.
3999         * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4000         (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4002         * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4003         (lookup_glyphless_char_display): Set it->what at the end.
4004         (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4005         (last_glyphless_glyph_merged_face_id): Make them non-static.
4007         * w32term.c (x_draw_glyphless_glyph_string_foreground):
4008         Fix the arg with_background for font->driver->draw.
4010 2010-11-01  Kenichi Handa  <handa@m17n.org>
4012         * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4013         Surround chp by parentheses.
4015 2010-11-01  Kenichi Handa  <handa@m17n.org>
4017         Implement various display methods for glyphless characters.
4019         * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4020         (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4021         (Qzero_width): New variables.
4022         (THIN_SPACE_WIDTH): New macro.
4023         (lookup_glyphless_char_display): New function.
4024         (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4025         (last_glyphless_glyph_merged_face_id): New variables.
4026         (get_next_display_element): Check glyphless characters.
4027         (redisplay_internal): Initialize last_glyphless_glyph_frame and
4028         last_glyphless_glyph_face_id.
4029         (fill_glyphless_glyph_string): New function.
4030         (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4031         (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4032         (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4033         (x_produce_glyphs): If a suitable font is not found, produce a
4034         glyphless glyph.  Handle the case it->what == IT_GLYPHLESS.
4035         (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4036         Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4037         Qzero_width.
4038         (Vglyphless_char_display): Declare it as a Lisp variable.
4040         * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4041         (struct glyph): Change the size of the member "type" to 3.
4042         Add glyphless to the union slice and u.
4043         (enum display_element_type): Add IT_GLYPHLESS.
4044         (enum glyphless_display_method): New enum.
4045         (struct it): New member glyphless_method.
4046         (Vglyphless_char_display): Extern it.
4048         * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4049         (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4051         * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4052         (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4054         * nsterm.m (ns_draw_glyph_string): Handle the case
4055         GLYPHLESS_GLYPH (the detail is not yet implemented).
4057 2010-10-31  Glenn Morris  <rgm@gnu.org>
4059         * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4061         * frame.c (syms_of_frame) <tool-bar-mode>:
4062         Default to nil if !HAVE_WINDOW_SYSTEM.  (Bug#7299)
4064 2010-10-31  Chong Yidong  <cyd@stupidchicken.com>
4066         * xterm.c (x_connection_closed): Print informative error message
4067         when aborting on GTK.  This requires using shut_down_emacs
4068         directly instead of Fkill_emacs.
4070 2010-10-29  Eli Zaretskii  <eliz@gnu.org>
4072         * emacs.c (main): Call syms_of_filelock unconditionally.
4074         * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4075         clause, but keep part of it conditioned on CLASH_DETECTION.
4077 2010-10-29  Glenn Morris  <rgm@gnu.org>
4079         * nsfns.m (Fx-display-save-under, Fx-open-connection)
4080         (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4081         * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4082         * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4083         Sync docs between X, W32, NS.
4085         * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4086         * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4088 2010-10-26  Juanma Barranquero  <lekktu@gmail.com>
4090         * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4091         otherwise, bootstrapping on Windows fails to compile macroexp.el.
4093 2010-10-26  Eli Zaretskii  <eliz@gnu.org>
4095         * cmds.c (internal_self_insert): Don't insert if argument N is
4096         zero or negative.  (Bug#7281)
4098 2010-10-26  Jan Djärv  <jan.h.d@swipnet.se>
4100         * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4102 2010-10-25  Glenn Morris  <rgm@gnu.org>
4104         * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4106 2010-10-24  Glenn Morris  <rgm@gnu.org>
4108         * w32fns.c (Fx_synchronize, Fx_change_window_property)
4109         (Fx_window_property, Fx_file_dialog):
4110         * xfns.c (Fx_synchronize, Fx_change_window_property)
4111         (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4113 2010-10-24  Chong Yidong  <cyd@stupidchicken.com>
4115         * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4117 2010-10-24  Eli Zaretskii  <eliz@gnu.org>
4119         * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4121         * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4122         Deprecate use as a boolean flag.
4124 2010-10-24  Jim Meyering  <jim@meyering.net>
4126         * emacs.c (argmatch): Don't treat "--" as "--chdir".
4128 2010-10-24  Glenn Morris  <rgm@gnu.org>
4130         * w16select.c (syms_of_win16select) <selection-coding-system>:
4131         <next-selection-coding-system>:
4132         * w32select.c (syms_of_w32select) <selection-coding-system>:
4133         <next-selection-coding-system>:
4134         Sync docs with select.el.
4136         * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4137         Lisp version.
4139         * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4140         Sync doc with the xterm.c version.
4142         * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4143         * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4145 2010-10-23  Glenn Morris  <rgm@gnu.org>
4147         * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4148         * frame.c (syms_of_frame) <menu-bar-mode>:
4149         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4150         <hourglass-delay>: Sync docs with Lisp.
4152 2010-10-23  Eli Zaretskii  <eliz@gnu.org>
4154         Implement mouse highlight for bidi-reordered lines.
4156         * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4157         (mouse_face_from_string_pos): New function, replaces
4158         fast_find_string_pos.
4159         (note_mouse_highlight): Call it instead of fast_find_string_pos.
4160         (note_mode_line_or_margin_highlight): Support bidi-reordered
4161         strings and R2L glyph rows.  Fix comments.
4162         (note_mouse_highlight): When bidi reordering is turned on in a
4163         buffer, call next-single-property-change and
4164         previous-single-property-change with last argument nil.
4165         Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4166         glyph that stands for no text beyond the line end.
4167         (row_containing_pos): Don't return too early when CHARPOS is in a
4168         bidi-reordered continued line.  Return immediately when the first
4169         hit is found in a line that is not continued, or when an exact
4170         match for CHARPOS is found.
4171         (rows_from_pos_range): New function.
4172         (mouse_face_from_buffer_pos): Use it instead of calling
4173         row_containing_pos for START_CHARPOS and END_CHARPOS.  Rewrite the
4174         function to support mouse highlight in bidi-reordered lines and
4175         not to assume that START_CHARPOS is always in mouse_face_beg_row.
4176         If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4177         that the former is always above the latter or identical to it.
4178         (show_mouse_face): Support drawing highlighted R2L lines.
4179         (coords_in_mouse_face_p): New function, bidi-aware.
4180         (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4181         Call it instead of comparing with mouse-face members of dpyinfo.
4182         (note_mode_line_or_margin_highlight): Fix confusingly swapped
4183         usage of hpos and vpos.
4185 2010-10-22  Jan Djärv  <jan.h.d@swipnet.se>
4187         * xrdb.c: Include keyboard.h for MOTIF.
4189         * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4190         MOTIF (Bug#7263).
4192         * xfns.c: Include Xm/TextF and Xm/List.
4193         (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4194         Make ANSI prototypes.
4196 2010-10-22  Glenn Morris  <rgm@gnu.org>
4198         * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4199         Remove ccl and duplicate mouse.
4201 2010-10-21  Chong Yidong  <cyd@stupidchicken.com>
4203         * insdel.c (prepare_to_modify_buffer): Don't set
4204         saved-region-selection if modification hooks are disabled.
4206 2010-10-19  Chong Yidong  <cyd@stupidchicken.com>
4208         * cmds.c (Fdelete_char): Doc fix.
4210 2010-10-19  Ken Brown  <kbrown@cornell.edu>
4212         * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4214 2010-10-19  Kenichi Handa  <handa@m17n.org>
4216         Fix incorrect font metrics when the same font is opened with
4217         different pixelsizes.
4219         * xftfont.c: Include composite.h.
4220         (xftfont_shape): New function.
4221         (syms_of_xftfont): Set xftfont_driver.shape.
4223 2010-10-18  Julien Danjou  <julien@danjou.info>
4225         * frame.c (Fframe_pointer_visible_p):
4226         Add `frame-pointer-visible-p' to get the pointer visibility.
4228 2010-10-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4230         * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4231         non-"EAGAIN"-like error to signal to Emacs that the socket should
4232         be closed.
4234 2010-10-15  Eli Zaretskii  <eliz@gnu.org>
4236         * unexcoff.c (make_hdr): Fix prototype according to changes in
4237         2010-10-03T13:59:56Z!dann@ics.uci.edu.
4239         * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4241 2010-10-15  Tassilo Horn  <tassilo@member.fsf.org>
4243         * Makefile.in (really-oldXMenu): Fix typo in variable name that
4244         made building the X menu fail.
4245         (really-oldXMenu): Fix my previous fix.
4247 2010-10-14  Damyan Pepper  <damyanp@gmail.com>
4249         Fix handling of font properties on Windows (bug#6303).
4250         * font.c (font_filter_properties): New function, refactored from
4251         ftfont_filter_properties.
4252         * font.h (font_filter_properties): Declare.
4253         * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4254         * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4255         (w32font_filter_properties): New function.
4256         (w32font_driver): Add w32font_filter_properties.
4258 2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
4260         * font.c (Ffont_variation_glyphs):
4261         * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4263 2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
4265         * w32fns.c (w32_wnd_proc, file_dialog_callback):
4266         * w32font.c (w32_generic_family):
4267         * w32inevt.c (key_event):
4268         * w32menu.c (fill_in_menu):
4269         * w32proc.c (reader_thread, w32_executable_type, compare_env)
4270         (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4271         * w32term.c (w32_read_socket): Make static.
4273 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
4275         * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4276         prototypes; all callers changed.
4278 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
4280         * makefile.w32-in (TLIB2): Rename from TLIBW32.
4281         (OBJ2): New macro.
4282         (WIN32OBJ, FONTOBJ): Remove.
4283         (OBJ1): Redistribute object files with OBJ2.
4284         (LIBS, $(TEMACS)): Use TLIB2.
4285         (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4286         ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4288 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
4290         * emacs.c (Vdynamic_library_alist)
4291         (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4292         Doc fix.
4294         * lisp.h (Vdynamic_library_alist): Declare extern.
4296         * image.c (Vimage_library_alist)
4297         (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4298         (lookup_image_type): Use Vdynamic_library_alist.
4299         (Finit_image_library): Doc fix.
4301 2010-10-12  Dan Nicolaescu  <dann@ics.uci.edu>
4303         * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4304         (lispdir): Remove trailing /, update all uses.
4306 2010-10-12  Jan Djärv  <jan.h.d@swipnet.se>
4308         * nsterm.m (Qleft): Declare.
4309         (ns_right_alternate_modifier): New variable.
4310         (NSRightAlternateKeyMask): New define.
4311         (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4312         ns_right_alternate_modifier isn't Qleft.
4313         (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4314         as emacs modifier for NSRightAlternateKeyMask.
4315         (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4317 2010-10-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4319         * gnutls.c (emacs_gnutls_write): If we're trying to write before
4320         gnutls is ready, return EAGAIN as the errno.
4322 2010-10-10  Dan Nicolaescu  <dann@ics.uci.edu>
4324         * vm-limit.c:
4325         * unexhp9k800.c:
4326         * unexelf.c:
4327         * unexaix.c:
4328         * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4330         * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4331         (PROFILING_LDFLAGS): Remove, not needed anymore.
4333         * Makefile.in: Use $(...) everywhere instead of ${...}.
4334         (CRT_DIR): Move near potential user.
4335         (START_FILE): Move near CRT_DIR, it might use it.
4337         * sysdep.c (LPASS8): Remove, unused.
4338         (emacs_ospeed): Change from being a global to a local in the only
4339         user: init_baud_rate.
4341 2010-10-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4343         * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4344         (emacs_gnutls_write): Remove the debuggin fsync call.
4345         (emacs_gnutls_read): Return -1 if we got an error from
4346         gnutls_read.  This allows us to actually read lots of data from
4347         the GnuTLS stream.
4348         (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4349         According to the documentation, this is correct, and it seems to
4350         make things work.
4352 2010-10-09  Chong Yidong  <cyd@stupidchicken.com>
4354         * xterm.c (x_draw_relief_rect): Clear corner pixels.
4356 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
4358         * keyboard.c: Revert last change; it was not intended to be
4359         synchronized with the trunk.
4361 2010-10-08  Kenichi Handa  <handa@m17n.org>
4363         * coding.c (complement_process_encoding_system): Fix previous change.
4365 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
4367         * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4368         (Fdbus_init_bus): ... here.  (Bug#7113)
4370 2010-10-08  Glenn Morris  <rgm@gnu.org>
4372         * buffer.c (before-change-functions, after-change-functions):
4373         Three-year overdue doc fix following 2007-08-13 change.
4375 2010-10-08  Kenichi Handa  <handa@m17n.org>
4377         * coding.c (coding_inherit_eol_type): If parent doesn't specify
4378         eol-format, inherit from the system's default.
4379         (complement_process_encoding_system): Make a new coding system
4380         inherit the original eol-format.
4382 2010-10-08  Kenichi Handa  <handa@m17n.org>
4384         * coding.c (complement_process_encoding_system): New function.
4386         * coding.h (complement_process_encoding_system): Extern it.
4388         * callproc.c (Fcall_process): Complement the coding system for
4389         encoding arguments.
4390         (Fcall_process_region): Complement the coding system for encoding
4391         the input to the process.
4393         * process.c (Fstart_process): Complement the coding system for
4394         encoding arguments.
4395         (send_process): Complement the coding system for encoding what
4396         sent to the process.
4398 2010-10-08  Kenichi Handa  <handa@m17n.org>
4400         * xfont.c (xfont_open): Fix setting of font->average_width from
4401         :avgwidth property (Bug#7123).
4403 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
4405         * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4406         is more portable.
4408         * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4409         (kbd_buffer_get_event): ... here.  This is needed for cygwin, which
4410         has not defined SIGIO.
4412 2010-10-08  Chong Yidong  <cyd@stupidchicken.com>
4414         * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4415         draw the outermost line using the black relief, for legibility.
4416         Omit drawing the four corner pixels.
4418 2010-10-04  Chong Yidong  <cyd@stupidchicken.com>
4420         * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4421         (read_key_sequence): Inline echo_prompt.
4422         (echo_dash): Add a dash only if key is continued (Bug#7137).
4424 2010-10-04  Dan Nicolaescu  <dann@ics.uci.edu>
4426         Remove O_RDONLY, O_WRONLY definitions, not needed.
4427         * unexcoff.c:
4428         * lread.c:
4429         * fileio.c:
4430         * doc.c:
4431         * callproc.c:
4432         * alloc.c:
4433         * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4435 2010-10-03  Teodor Zlatanov  <tzz@lifelogs.com>
4437         * gnutls.h (GNUTLS_LOG2): Convenience macro.
4439         * gnutls.c: Add property list symbol holders.
4440         (emacs_gnutls_handshake): Clarify how sockets are passed to
4441         GnuTLS.
4442         (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4443         (Fgnutls_boot): Get all parameters from a plist.  Require trustfiles
4444         and keyfiles to be a list of file names.  Default to "NORMAL" for
4445         the priority string.  Improve logging.
4447 2010-10-03  Glenn Morris  <rgm@gnu.org>
4449         * fileio.c (Vdirectory_sep_char): Remove.
4451 2010-10-03  Dan Nicolaescu  <dann@ics.uci.edu>
4453         * termhooks.h: Remove #ifdef CONSP.
4455         * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4457         Include <fcntl.h> unconditionally.
4458         * termcap.c:
4459         * sysdep.c:
4460         * lread.c:
4461         * keyboard.c:
4462         * filelock.c:
4463         * fileio.c:
4464         * doc.c:
4465         * callproc.c:
4466         * alloc.c: Remove include guards for <fcntl.h>, process.c already
4467         does it.
4469         * process.c: Do not include <sys/wait.h>, syswait.h does it.
4471         * sysdep.c (flush_pending_output): Remove code, does not do
4472         anything on any platform.
4474         Remove unused code.
4475         * sysdep.c (select_alarm, sys_select, read_input_waiting):
4476         Remove select emulation, all systems support select.
4477         (set_exclusive_use): Remove, the only user is in an #if 0 block.
4478         * process.c (create_process): Remove #if 0 code.
4480         Remove unused arguments for unexec.
4481         The third one is never used, and the last two are always passed as zero.
4482         * emacs.c (unexec): Add declaration.
4483         (Fdump_emacs): Only pass the first two arguments to unexec.
4484         Simplify #ifdef.
4485         * unexw32.c (unexec):
4486         * unexsol.c (unexec):
4487         * unexhp9k800.c (unexec):
4488         * unexcw.c (unexec): Remove the last 3 arguments, unused.
4489         * unexelf.c (unexec): Remove the last 3 arguments, unused.
4490         (find_section): Use const.
4491         * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4492         (unexec_error): Declare it NO_RETURN.
4493         * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4494         it as an argument, remove data_start and entry_address arguments, unused.
4495         (unexec): Remove bss_start, data_start and
4496         entry_address arguments.
4497         * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4498         it as an argument, remove data_start and entry_address arguments, unused.
4499         (unexec): Remove bss_start, data_start and
4500         entry_address arguments.
4502 2010-10-03  Juanma Barranquero  <lekktu@gmail.com>
4504         * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4506         * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4507         (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4508         (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4509         Fix typos in docstrings.
4510         (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4511         (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4513 2010-10-03  Chong Yidong  <cyd@stupidchicken.com>
4515         * keyboard.c (command_loop_1): Make sure the mark is really alive
4516         before using it (Bug#7044).
4518 2010-10-02  Juanma Barranquero  <lekktu@gmail.com>
4520         * makefile.w32-in (tags): Rename target to full-tags.
4522 2010-10-02  Eli Zaretskii  <eliz@gnu.org>
4524         * emacs.c (main): Remove !WINDOWSNT conditional.
4525         (Fkill_emacs): Don't mention exemption on MS-Windows.
4527 2010-10-02  Glenn Morris  <rgm@gnu.org>
4529         * character.c (Fchar_bytes): Remove obsolete function.
4530         (syms_of_character): Remove Schar_bytes.
4532         * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4533         (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4534         in batch-mode.
4535         (Fkill_emacs): Doc fix.  Also run the hook in batch mode.
4536         (kill-emacs-hook): Doc fix.
4538 2010-10-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4540         * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4541         (parse_region): Rework to take regions instead of strings, and
4542         renamed to reflect that these are the libxml functions.
4544 2010-10-01  Eli Zaretskii  <eliz@gnu.org>
4546         * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4547         screen dimensions in tty->Wcm.
4549         * xdisp.c (set_cursor_from_row): When the row is truncated and
4550         point is outside the range of displayed characters, position the
4551         cursor inside the scroll margin.  (Bug#6349)
4553 2010-10-01  Dan Nicolaescu  <dann@ics.uci.edu>
4555         Do not include stdlib.h and string.h, config.h does it.
4556         * xfont.c:
4557         * w32term.c:
4558         * w32reg.c:
4559         * w32inevt.c:
4560         * w32heap.c:
4561         * w32console.c:
4562         * w16select.c:
4563         * unexsol.c:
4564         * term.c:
4565         * sound.c:
4566         * scroll.c (m):
4567         * gtkutil.c:
4568         * font.c:
4569         * filelock.c:
4570         * fileio.c:
4571         * dosfns.c:
4572         * dbusbind.c:
4573         * bidi.c:
4574         * callproc.c:
4575         * process.c:
4576         * msdos.c:
4577         * charset.c: Do not include stdlib.h and string.h, config.h does it.
4579         * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4580         defines it.
4582         * process.c: Move #include <pty.h> earlier.
4583         (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4584         (pty_name): Move definition later.
4586         * nsselect.m (syms_of_nsselect):
4587         * nsmenu.m (syms_of_nsmenu):
4588         * nsfns.m (syms_of_nsfns):
4589         * msdos.c (syms_of_msdos):
4591         * image.c (syms_of_image):
4592         * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4594         * point.h: Remove, unused.
4596 2010-10-01  Eli Zaretskii  <eliz@gnu.org>
4598         * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4599         (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4600         (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4602 2010-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
4604         * xml.c (parse_string): Use const.
4606 2010-09-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4608         * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4609         Also only override Vprint_level if it isn't already bound, and increase
4610         the level to 8 to produce more useful backtraces for bug reports.
4612 2010-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
4614         * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4616 2010-09-30  Juanma Barranquero  <lekktu@gmail.com>
4618         * w32console.c (vga_stdcolor_name): Remove unused function;
4619         presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4621 2010-09-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4623         * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4624         (Fgnutls_boot): Start the handshake.
4625         (emacs_gnutls_read): Perform the handshake from the reader loop.
4626         (Fgnutls_boot): Remove some debugging messages.
4627         Change indentation throughout to use the Emacs style.
4628         (emacs_gnutls_handshake): Cast the fds to something that's
4629         possibly the expected length.
4630         (emacs_gnutls_write): Return -1 if we try to write before handshake.
4632         * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4634         * process.c (make_process): Set the gnutls_p field to zero by
4635         default.
4636         (read_process_output): Always call the gnutls_read function if the
4637         stream is a gnutls stream.
4638         (send_process): Ditto for writes.
4640         * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4641         or write anything until the state is GNUTLS_STAGE_READY.
4642         (Fgnutls_boot): Mark the stream as being a gnutls stream.
4644 2010-09-29  Eli Zaretskii  <eliz@gnu.org>
4646         * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4647         NEUTRAL_DIR.
4648         (handle_invisible_prop, iterate_out_of_display_property)
4649         (next_element_from_buffer): If bidi_it.first_elt is set, call
4650         bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4651         (Bug#7128)
4653         * print.c (print_object): Fix format string and argument types for
4654         printing a Lisp_Misc_Marker.
4656         * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4657         (load_overlay_strings, get_overlay_strings_1)
4658         (get_overlay_strings, forward_to_next_line_start)
4659         (back_to_previous_visible_line_start, reseat, reseat_to_string)
4660         (get_next_display_element, next_element_from_string)
4661         (next_element_from_c_string, next_element_from_buffer)
4662         (move_it_vertically_backward, move_it_by_lines, add_to_log)
4663         (message_dolog, message_log_check_duplicate, message2_nolog)
4664         (message3, message3_nolog, vmessage, set_message, set_message_1)
4665         (hscroll_window_tree, text_outside_line_unchanged_p)
4666         (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4667         (find_last_unchanged_at_beg_row)
4668         (find_first_unchanged_at_end_row, row_containing_pos)
4669         (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4670         (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4671         Use EMACS_INT for buffer and string positions.
4673         * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4674         (row_containing_pos): Adjust prototype.
4676         * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4677         (message2_nolog, set_message): Adjust prototypes.
4679 2010-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
4681         * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4682         (Fgnutls_boot): Use SDATA.
4683         (Fgnutls_handshake): Remove unused var `max_log_level'.
4685 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
4687         * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4688         (Bug#7113)
4690 2010-09-27  Jan Djärv  <jan.h.d@swipnet.se>
4692         * xgselect.c (xg_select): Clear file descriptors not set from
4693         rfds and wfds.
4695         * process.c (wait_reading_process_output): Add missing FD_CLR
4696         for write_mask (must mirror connect_wait_mask).
4698 2010-09-27  Teodor Zlatanov  <tzz@lifelogs.com>
4700         * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4701         prefix.
4702         (Fgnutls_boot): Use changed process members.  Use log level with a
4703         function parameter to set it.  Bring back Emacs-level debugging
4704         messages at log level 1 and 2.
4706         * process.c (make_process): Initialize gnutls_log_level.
4708         * process.h: Add gnutls_log_level and rename x509_cred and
4709         anon_cred to have the gnutls_ prefix for consistency.
4711         * gnutls.h (GNUTLS_LOG): Add convenience macro.
4713 2010-09-27  Juanma Barranquero  <lekktu@gmail.com>
4715         * w32.c (g_b_init_get_sid_identifier_authority)
4716         (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4717         Remove, not used.
4718         (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4719         (init_winsock): Remove useless assignment.
4720         (open_process_token, get_token_information, lookup_account_sid)
4721         (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4722         (get_security_descriptor_owner, get_security_descriptor_group)
4723         (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4724         (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4725         (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4726         (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4727         (unc_volume_file_attributes, convert_from_time_t)
4728         (create_toolhelp32_snapshot, process32_first, process32_next)
4729         (open_thread_token, impersonate_self, revert_to_self)
4730         (get_process_memory_info, get_process_working_set_size)
4731         (global_memory_status, global_memory_status_ex, socket_to_fd)
4732         (shutdown_handler): Make static.
4734 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
4736         * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4737         (xd_pending_messages): Functions removed.
4738         (xd_read_queued_messages): Add parameters fd, *data, for_read in
4739         order to be compatible with add_read_fd.  Determine bus from data,
4740         and call xd_read_message just for this bus.
4741         (xd_add_watch): Use xd_read_queued_messages as callback function.
4742         Add data.
4744         * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4746 2010-09-27  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4748         * gnutls.c (gnutls_log_function): Add more debugging.
4749         (emacs_gnutls_read): Don't infloop while reading.
4751 2010-09-27  Kenichi Handa  <handa@m17n.org>
4753         These changes are to remove restriction on the number of glyphs in
4754         one composition.
4756         * dispextern.h (struct glyph): Change the member "slice" to union.
4757         Remove u.cmp.from and u.cmp.to.  Give more bits to u.cmp.id.
4758         (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4760         * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4761         instead of glyph->slice.
4762         (marginal_area_string): Likewise.
4764         * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4765         glyph->u.cmp.
4766         (append_composite_glyph): Likewise.
4768         * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4769         glyph->u.cmp.
4770         (fill_gstring_glyph_string, x_get_glyph_overhangs)
4771         (append_composite_glyph): Likewise.
4772         (fill_image_glyph_string): Use glyph->slice.img instead of
4773         glyph->slice.
4774         (append_glyph, produce_image_glyph, append_stretch_glyph)
4775         (note_mouse_highlight): Likewise.
4777 2010-09-26  Jan Djärv  <jan.h.d@swipnet.se>
4779         * process.c (add_keyboard_wait_descriptor)
4780         (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4781         (wait_reading_process_output): Don't pass write_mask to select
4782         if SELECT_CANT_DO_WRITE_MASK is defined.
4783         (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4785         * process.h (add_read_fd, delete_read_fd, add_write_fd)
4786         (delete_write_fd): Declare.
4788         * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4789         (write_mask): New variable.
4790         (max_input_desc): Rename from max_keyboard_desc.
4791         (fd_callback_info): New variable.
4792         (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4793         New functions.
4794         (Fmake_network_process): FD_SET write_mask.
4795         (deactivate_process): FD_CLR write_mask.
4796         (wait_reading_process_output): Connecting renamed to Writeok.
4797         check_connect removed.  check_write is new.  Remove references to gpm.
4798         Use Writeok/check_write unconditionally (i.e. no #ifdef
4799         NON_BLOCKING_CONNECT) instead of Connecting.
4800         Loop over file descriptors and call callbacks in fd_callback_info
4801         if file descriptor is ready for I/O.
4802         (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4803         (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4804         (keyboard_bit_set): Use max_input_desc.
4805         (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4806         Remove #ifdef subprocesses.  Use max_input_desc.
4807         (init_process): Initialize write_mask and fd_callback_info.
4809         * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4811         * dbusbind.c: Include process.h.
4812         (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4813         (xd_read_message_1): New functions.
4814         (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4815         Handle watch for both read and write.
4816         (Fdbus_init_bus): Also register xd_toggle_watch.
4817         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4818         (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4819         to dbus_connection_flush.
4820         (xd_read_message): Move most of the code to xd_read_message_1.
4821         Call xd_read_message_1 until status is COMPLETE.
4823 2010-09-26  Dan Nicolaescu  <dann@ics.uci.edu>
4825         * term.c: Do not include sys/ioctl.h, not needed.
4826         (init_tty): Reorder code to reduce the number of #ifdefs.
4827         No code changes.
4829 2010-09-26  Teodor Zlatanov  <tzz@lifelogs.com>
4831         * process.h: Set up GnuTLS support.
4833         * process.c (make_process, Fstart_process)
4834         (read_process_output, send_process): Set up GnuTLS support for
4835         process input/output file descriptors.
4837         * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4839         * gnutls.c: The source code for GnuTLS support in Emacs.
4841         * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4843         * config.in: Set up GnuTLS support.
4845         * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4846         (obj, LIBES): Set up GnuTLS support.
4848 2010-09-26  Juanma Barranquero  <lekktu@gmail.com>
4850         * w32.c (get_emacs_configuration_options): Fix previous change.
4852 2010-09-25  Chong Yidong  <cyd@stupidchicken.com>
4854         * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4855         alive before using it (Bug#6977).
4857 2010-09-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4859         * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4861         * dispextern.h: EMACS_INT/int fixup.
4863         * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4864         fixup.
4866         * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4868 2010-09-25  Eli Zaretskii  <eliz@gnu.org>
4870         * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4871         (Fselect_window, window_scroll_pixel_based)
4872         (window_scroll_line_based, Frecenter, Fset_window_configuration):
4873         Use EMACS_INT for buffer positions.
4875         * textprop.c (validate_interval_range, interval_of)
4876         (property_change_between_p, Fadd_text_properties)
4877         (set_text_properties_1, Fremove_text_properties)
4878         (Fremove_list_of_text_properties, Ftext_property_any)
4879         (Ftext_property_not_all, copy_text_properties)
4880         (text_property_list, extend_property_ranges)
4881         (verify_interval_modification): Use EMACS_INT for buffer
4882         positions.
4884         * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4885         for buffer positions.
4887         * process.c (read_process_output, send_process)
4888         (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4889         and string positions and size.
4891         * print.c (print_object, print_string, strout): Use EMACS_INT for
4892         string indices.
4894         * minibuf.c (string_to_object): Use EMACS_INT for string position
4895         and size.
4897         * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4899         * lread.c <read_from_string_index, read_from_string_index_byte>
4900         <read_from_string_limit, readchar_count>: Define EMACS_INT.
4901         (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4902         buffer positions and string length.
4904         * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4905         EMACS_INT.
4906         (echo_truncate, adjust_point_for_property, read_char)
4907         (gen_help_event, make_lispy_event, modify_event_symbol)
4908         (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4909         for buffer positions and string length.
4911         * keyboard.h (gen_help_event): Adjust prototype.
4913         * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4915         * commands.h <last_point_position>: Declare EMACS_INT.
4917         * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4918         (truncate_echo_area): Accept EMACS_INT argument.
4920         * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4922         * lisp.h (truncate_echo_area): Adjust prototype.
4924         * composite.c (composition_adjust_point): Return EMACS_INT.
4926         * composite.h (composition_adjust_point): Adjust prototype.
4928 2010-09-25  Juanma Barranquero  <lekktu@gmail.com>
4930         * process.c (Fmake_network_process): When arg :host is 'local,
4931         use address 127.0.0.1, not name "localhost".  (Bug#6781)
4933 2010-09-24  Eli Zaretskii  <eliz@gnu.org>
4935         * indent.c (Fcurrent_indentation, indented_beyond_p)
4936         (compute_motion): Use EMACS_INT for buffer position variables.
4938         * lisp.h (indented_beyond_p): Adjust prototype.
4940         * buffer.c (overlay_strings): Return EMACS_INT.
4942         * buffer.h (overlay_strings): Adjust prototype.
4944         * region-cache.c (pp_cache): Adjust format to arguments.
4946         * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4947         (call_debugger): Use EMACS_INT for specpdl_size related variables.
4948         (verror): Use EMACS_INT for size of allocated buffer.
4950         * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4951         positions.
4953         * xdisp.c (redisplay_internal, try_window_id)
4954         (set_cursor_from_row, find_first_unchanged_at_end_row):
4955         Use EMACS_INT for buffer positions.
4957         * dispextern.h (set_cursor_from_row): Adjust prototype.
4959         * dispnew.c (increment_matrix_positions)
4960         (increment_row_positions, copy_glyph_row_contents)
4961         (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4962         positions.
4964         * dispextern.h (mode_line_string, marginal_area_string)
4965         (increment_matrix_positions, increment_row_positions):
4966         Adjust prototypes.
4968         * data.c (Faref, Faset): Use EMACS_INT for string length and
4969         positions.
4971         * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4972         characters to insert.
4974         * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4975         position and size.
4977         * syntax.c (scan_words, update_syntax_table)
4978         (prev_char_comend_first, back_comment, skip_chars)
4979         (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4980         Use EMACS_INT for buffer and string positions.
4982         * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4984         * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4985         positions.
4987 2010-09-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
4989         * scroll.c (calculate_scrolling, line_ins_del)
4990         (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4991         conversion.
4993         * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4994         (region_cache_backward, region_cache_forward)
4995         (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4996         conversion.
4998         * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5000         * eval.c (verror): Fix EMACS_INT/int conversion.
5002         * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5003         (print_preprocess, print_check_string_charset_prop)
5004         (print_object): Fix EMACS_INT/int conversion.
5006         * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5008 2010-09-24  Eli Zaretskii  <eliz@gnu.org>
5010         * callproc.c (Fcall_process): Use EMACS_INT for count of
5011         characters read from the subprocess.
5013         * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5014         positions.
5015         (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5016         positions.
5018         * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5019         (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5020         length.
5021         (advance_to_char_boundary, Fset_buffer_multibyte)
5022         (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5023         (overlay_touches_p, record_overlay_string, overlay_strings)
5024         (recenter_overlay_lists, fix_start_end_in_overlays)
5025         (modify_overlay, Fmove_overlay, report_overlay_modification)
5026         (evaporate_overlays): Use EMACS_INT for buffer positions.
5028         * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5029         Adjust prototypes.
5031         * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5032         positions.
5034         * fns.c (Fcompare_strings, Fstring_lessp, concat)
5035         (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5036         (Fsubstring_no_properties, substring_both, Ffillarray)
5037         (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5038         (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5039         (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5040         (Fmd5): Use EMACS_INT for buffer and string positions and length
5041         variables and arguments.
5043         * lisp.h (substring_both): Adjust prototype.
5045 2010-09-24  Juanma Barranquero  <lekktu@gmail.com>
5047         Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5048         * w32fns.c (clipboard_sequence_fn): Don't declare.
5049         (globals_of_w32fns): Don't initialize it.
5051 2010-09-23  Stefan Monnier  <monnier@iro.umontreal.ca>
5053         * syntax.c (back_comment): Detect the case where a 1-char comment
5054         starter is also the 2nd char of a 2-char comment ender.
5056 2010-09-23  Jan Djärv  <jan.h.d@swipnet.se>
5058         * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5060 2010-09-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5062         * eval.c (verror): EMACS_INT/int cleanup.
5064         * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5065         unwind_protect more than 2GB worth of functions.
5067         * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5069         * lisp.h: Have oblookup take EMACS_INT to allow interning big
5070         string and avoid compiler warnings.
5071         (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5072         all users.
5074         * lread.c (oblookup): EMACS_INT/int cleanup.
5076         * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5078 2010-09-23  Eli Zaretskii  <eliz@gnu.org>
5080         * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5082         * lisp.h (clip_to_bounds): Adjust prototype.
5084         * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5086 2010-09-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5088         * lisp.h: doprnt.c EMACS_INT/int cleanup.
5090         * doprnt.c (doprnt): EMACS_INT/int cleanup.
5092         * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5093         cleanup.
5095         * lisp.h: Change the definition of all marker.c functions that
5096         take and return buffer stuff to be EMACS_INT instead of int.
5098         * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5099         (buf_charpos_to_bytepos, bytepos_to_charpos)
5100         (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5101         (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5102         for all buffer positions.
5104 2010-09-23  Chong Yidong  <cyd@stupidchicken.com>
5106         * intervals.c (traverse_intervals, rotate_right, rotate_left)
5107         (split_interval_right, find_interval, next_interval)
5108         (delete_node, delete_interval, interval_deletion_adjustment)
5109         (adjust_intervals_for_deletion, merge_interval_right)
5110         (merge_interval_left, graft_intervals_into_buffer)
5111         (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5113         * intervals.h (traverse_intervals): Update prototype.
5115 2010-09-23  Eli Zaretskii  <eliz@gnu.org>
5117         * indent.c (compute_motion): Use EMACS_INT for arguments to
5118         region_cache_forward.
5120         * region-cache.c (struct boundary, struct region_cache):
5121         Use EMACS_INT for positions.
5122         (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5123         (delete_cache_boundaries, set_cache_region)
5124         (invalidate_region_cache, know_region_cache)
5125         (region_cache_forward, region_cache_backward, pp_cache):
5126         Use EMACS_INT for buffer positions.
5128         * region-cache.h (know_region_cache, invalidate_region_cache)
5129         (region_cache_forward, region_cache_backward): Adjust prototypes.
5131         * search.c (string_match_1, fast_c_string_match_ignore_case)
5132         (looking_at_1, scan_buffer, scan_newline)
5133         (find_next_newline_no_quit, find_before_next_newline)
5134         (search_command, trivial_regexp_p, search_buffer, simple_search)
5135         (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5136         and string positions and length.
5138         * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5139         (find_before_next_newline): Adjust prototypes.
5141         * editfns.c (transpose_markers, update_buffer_properties)
5142         (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5143         (get_pos_property, Fconstrain_to_field)
5144         (Fline_beginning_position, Fline_end_position, Fprevious_char)
5145         (Fchar_after, Fchar_before, Finsert_char)
5146         (Finsert_buffer_substring, Fcompare_buffer_substrings)
5147         (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5148         Use EMACS_INT for buffer and string position variables.
5149         (Finsert_char): Protect against too large insertions.
5151         * lisp.h (clip_to_bounds): Adjust prototype.
5153         * intervals.c (traverse_intervals, rotate_right, rotate_left)
5154         (balance_an_interval, split_interval_right, split_interval_left)
5155         (find_interval, next_interval, update_interval)
5156         (adjust_intervals_for_insertion, delete_node, delete_interval)
5157         (interval_deletion_adjustment, adjust_intervals_for_deletion)
5158         (offset_intervals, merge_interval_right, merge_interval_left)
5159         (graft_intervals_into_buffer, adjust_for_invis_intang)
5160         (move_if_not_intangible, get_local_map, copy_intervals)
5161         (copy_intervals_to_string, compare_string_intervals)
5162         (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5163         and for interval tree size.
5165         * intervals.h (traverse_intervals, split_interval_right)
5166         (split_interval_left, find_interval, offset_intervals)
5167         (graft_intervals_into_buffer, copy_intervals)
5168         (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5169         (update_interval): Adjust prototypes.
5171         * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5172         Use EMACS_INT for buffer position variables and arguments.
5174         * composite.c (get_composition_id, find_composition)
5175         (run_composition_function, compose_text)
5176         (composition_gstring_width, autocmp_chars)
5177         (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5178         for buffer positions and string length variables and arguments.
5180         * composite.h (get_composition_id, find_composition, compose_text)
5181         (composition_gstring_width): Adjust prototypes.
5183         * editfns.c (Fformat): Use EMACS_INT for string size variables.
5185         * xdisp.c (store_mode_line_noprop, display_mode_element):
5186         Use EMACS_INT for string positions.
5188         * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5189         position arguments.
5191         * intervals.h (get_property_and_range): Adjust prototype.
5193         * character.c (parse_str_as_multibyte, str_as_multibyte)
5194         (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5195         (string_count_byte8, string_escape_byte8, c_string_width)
5196         (strwidth, lisp_string_width, multibyte_chars_in_text):
5197         Use EMACS_INT for string length variables and arguments.
5199         * character.h (parse_str_as_multibyte, str_as_multibyte)
5200         (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5201         (c_string_width, strwidth, lisp_string_width):
5202         Adjust prototypes.
5204         * font.c (font_intern_prop): Use EMACS_INT for string length
5205         variables.
5207         * font.c (font_intern_prop): Use EMACS_INT for string length
5208         variables.
5210         * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5211         variables.
5213         * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5214         (Fmake_string): Protect against too large strings.
5215         (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5216         (live_misc_p): Use ptrdiff_t instead of int for pointer
5217         differences.
5218         (string_bytes, check_sblock, check_string_free_list)
5219         (allocate_string_data, compact_small_strings, Fmake_string)
5220         (Fmake_bool_vector, make_string, make_unibyte_string)
5221         (make_multibyte_string, make_string_from_bytes)
5222         (make_specified_string_string, Fmake_list, Fmake_vector):
5223         Use EMACS_INT for string length variables and arguments.
5224         (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5225         (Fpurecopy): Use EMACS_INT for string size.
5226         (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5227         for vector size.
5229         * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5230         (make_string_from_bytes, make_specified_string_string)
5231         (make_pure_string, string_bytes, check_point_in_composition):
5232         Adjust prototypes.
5234 2010-09-22  Eli Zaretskii  <eliz@gnu.org>
5236         * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5237         (check_translation): Use EMACS_INT for buffer positions and
5238         length.
5240         * undo.c (record_marker_adjustment, record_delete)
5241         (record_change, record_point, record_insert)
5242         (record_property_change, Fprimitive_undo): Use EMACS_INT for
5243         buffer positions.
5245         * lisp.h (record_marker_adjustment, record_delete)
5246         (record_change, record_point, record_insert)
5247         (record_property_change, Fprimitive_undo): Adjust prototypes.
5249 2010-09-22  Juanma Barranquero  <lekktu@gmail.com>
5250             Eli Zaretskii  <eliz@gnu.org>
5252         * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5254 2010-09-22  Eli Zaretskii  <eliz@gnu.org>
5256         * minibuf.c (Fminibuffer_contents)
5257         (Fminibuffer_contents_no_properties)
5258         (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5259         positions.
5261         * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5262         mark.
5264         * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5265         (allocate_string_data): Accept EMACS_INT for string length.
5267         * editfns.c (Ffield_string, Ffield_string_no_properties)
5268         (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5269         (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5270         (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5271         (Ffield_end): Use EMACS_INT for buffer positions.
5273         * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5274         point with mark.
5276         * lisp.h (allocate_string_data, make_uninit_string)
5277         (make_uninit_multibyte_string, make_buffer_string)
5278         (make_buffer_string_both): Adjust prototypes.
5280 2010-09-22  Chong Yidong  <cyd@stupidchicken.com>
5282         * xml.c: Switch to GNU indentation.
5283         (make_dom): Change parse tree format to match xml.el.
5284         (Fxml_parse_html_string_internal): Rename from html-parse-string.
5285         (Fxml_parse_string_internal): Rename from xml-parse-string.
5287 2010-09-22  Kenichi Handa  <handa@m17n.org>
5289         * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5290         only if we are not at a composition.
5291         (set_iterator_to_next): Give it->end_charpos to
5292         composition_compute_stop_pos.
5293         (set_iterator_to_next, next_element_from_buffer): Likewise.
5295         * dispnew.c (buffer_posn_from_coords): Fix position when the
5296         current display element is a grapheme cluster in bidi-reordered
5297         region.
5299 2010-09-21  Ari Roponen  <ari.roponen@gmail.com>  (tiny change)
5301         * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5302         the regions may overlap.
5304 2010-09-21  Juanma Barranquero  <lekktu@gmail.com>
5306         * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5308 2010-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
5310         * emacs.c: Do not include sys/ioctl.h, not needed.
5312         * doprnt.c: Do not include stdlib.h, config.h does it.
5313         Move #include before macro definition.
5315 2010-09-20  Dan Nicolaescu  <dann@ics.uci.edu>
5317         * Makefile.in (temacs): Link using $(CC) not $(LD).
5318         (LD_FIRSTFLAG): Define using autoconf.
5319         (LD): Remove.
5321         Remove HAVE_TERMIOS definitions.
5322         * s/usg5-4-common.h (HAVE_TERMIOS):
5323         * s/template.h (HAVE_TERMIOS):
5324         * s/gnu-linux.h (HAVE_TERMIOS):
5325         * s/darwin.h (HAVE_TERMIOS):
5326         * s/cygwin.h (HAVE_TERMIOS):
5327         * s/bsd-common.h (HAVE_TERMIOS):
5328         * s/aix4-2.h (HAVE_TERMIOS):
5329         * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5330         defined on all non-MS platforms.
5331         (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5333         * xterm.c (xt_action_hook): Use const.
5335 2010-09-20  Juanma Barranquero  <lekktu@gmail.com>
5337         Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5338         * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5339         (gethostname) [!HAVE_SOCKETS]: Remove.
5340         (SOCK_REPLACE_HANDLE): Remove macro.
5341         (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5342         (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5343         * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5344         (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5346 2010-09-18  Eli Zaretskii  <eliz@gnu.org>
5348         * deps.mk (xml.o): Add dependencies.
5350         * xdisp.c (Fcurrent_bidi_paragraph_direction):
5351         Call bidi_paragraph_init with NO_DEFAULT_P non-zero.  (Bug#7038)
5353         * bidi.c (bidi_paragraph_init): Accept an additional argument
5354         NO_DEFAULT_P; all callers changed.  If NO_DEFAULT_P is non-zero,
5355         search back until a paragraph with a strong directional character
5356         is found, and use that to determine paragraph's base direction.
5358         * dispextern.h (bidi_paragraph_init): Update prototype.
5360 2010-09-17  Eli Zaretskii  <eliz@gnu.org>
5362         * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5363         of w32api >= 3.15.  (Bug#6989)
5365 2010-09-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5367         * process.c (wait_reading_process_output): Don't message about
5368         accept-process-output unless the time limit really is zero.
5370 2010-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
5372         * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5373         int/Lisp_Object mixup).
5375 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
5377         * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5378         not HELP.
5380 2010-09-17  Stephen Berman  <stephen.berman@gmx.net>
5382         * frame.c (Ftool_bar_pixel_width): New function to expose tool
5383         bar's pixel width to Lisp (Bug#7048).
5385 2010-09-14  Juanma Barranquero  <lekktu@gmail.com>
5387         * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5389 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
5391         * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5392         with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5394 2010-09-17  Kenichi Handa  <handa@m17n.org>
5396         * ftfont.c (ftfont_check_otf): Fix previous change.
5398 2010-09-14  Kenichi Handa  <handa@m17n.org>
5400         * ftfont.c (ftfont_check_otf): Fix the case of checking just
5401         existence of GSUB or GPOS.
5403 2010-09-14  Juanma Barranquero  <lekktu@gmail.com>
5405         * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5407 2010-09-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5409         * xml.c (parse_buffer): Rename to parse_string(), since that's
5410         what it does.
5411         (parse_string): Return nil when the document can't be parsed.
5413 2010-09-14  Jan Djärv  <jan.h.d@swipnet.se>
5415         * xterm.c (get_current_vm_state): New function.
5416         (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5417         want_fullscreen so set_wm_state calls are few (Bug#7013).
5418         (x_handle_net_wm_state): Move code to get_current_vm_state and
5419         call that function.
5421 2010-09-14  Courtney Bane  <emacs-bugs-7626@cbane.org>  (tiny change)
5423         * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5425 2010-09-14  Kenichi Handa  <handa@m17n.org>
5427         * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5428         we may use designation or locking-shift.
5430 2010-09-14  Kenichi Handa  <handa@m17n.org>
5432         * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5433         sequence when the source is multibyte.
5435 2010-09-14  Andreas Schwab  <schwab@linux-m68k.org>
5437         * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5438         Don't make first argument optional.  Doc fix.
5440 2010-09-14  Leo  <sdl.web@gmail.com>  (tiny change)
5442         * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5443         parameters for the doc string.
5445 2010-09-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5447         * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5449 2010-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
5451         * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5452         (syms_of_fns): Don't defsubr Sy_or_n_p.
5453         * lisp.h: Don't declare Fy_or_n_p.
5454         * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5456 2010-09-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5458         * xml.c (Fxml_parse_buffer): New function to parse XML files.
5460 2010-09-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
5462         * xml.c: New file.
5463         (Fhtml_parse_buffer): New function to interface to the libxml2
5464         html parsing function.
5466 2010-09-05  Juanma Barranquero  <lekktu@gmail.com>
5468         * biditype.h: Regenerate.
5470 2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
5472         * nsimage.m (ns_load_image): Check argument types.
5474         * image.c: Remove all uses of gcpro.
5475         (xpm_load): Check all lisp types.
5476         (pbm_load): Likewise.
5477         (png_load): Likewise.
5478         (jpeg_load): Likewise.
5479         (tiff_load): Likewise.
5480         (gif_load): Likewise.
5481         (imagemagick_load_image): Likewise.
5482         (imagemagick_load): Likewise.
5483         (svg_load): Likewise.
5484         (gs_load): Likewise.
5486 2010-09-04  Eli Zaretskii  <eliz@gnu.org>
5488         * w32uniscribe.c (uniscribe_shape): Update commentary.
5489         Don't try to reorder grapheme clusters, since LGSTRING should always
5490         hold them in the logical order.
5491         (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5492         return glyph codes in the logical order.
5494 2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
5496         * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5497         (imagemagick_load_image): Fix type mismatch.
5498         (Fimagemagick_types): Likewise.  Doc fix.
5500 2010-09-02  Jan Djärv  <jan.h.d@swipnet.se>
5502         * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5504         * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5506         * xselect.c: Remove declaration of cut-buffer objects and functions.
5507         (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5508         (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5509         (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5510         (Fx_rotate_cut_buffers_internal): Remove.
5511         (syms_of_xselect): Remove defsubr of above.
5512         Remove intern of QCUT_BUFFERn.
5514 2010-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
5516         * cmds.c (Vblink_paren_function): Remove.
5517         (internal_self_insert): Make it insert N chars at a time.
5518         Don't call blink-paren-function.
5519         (Fself_insert_command): Adjust accordingly.
5520         (syms_of_cmds): Don't declare blink-paren-function.
5522 2010-08-31  Kenichi Handa  <handa@m17n.org>
5524         * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5525         characters.
5527         * term.c (encode_terminal_code): Fix the previous change.
5528         (produce_glyphs): Don't set it->char_to_display here.
5529         Don't handle unibyte-display-via-language-environment here.
5530         (produce_special_glyphs): Set temp_it.char_to_display before
5531         calling produce_glyphs.
5533         * xdisp.c (get_next_display_element): Set it->char_to_display
5534         here.  Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5535         characters.
5536         (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5537         calling PRODUCE_GLYPHS.
5538         (append_space_for_newline): Save and store it->char_to_display.
5539         Set it->char_to_display before calling PRODUCE_GLYPHS.
5540         (extend_face_to_end_of_line): Set it->char_to_display before
5541         calling PRODUCE_GLYPHS.
5542         (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5543         character to its byte value.
5544         (get_char_glyph_code): New function.
5545         (produce_stretch_glyph): Set it2.char_to_display too before
5546         calling x_produce_glyphs.
5547         (x_produce_glyphs): Simplify by using the same code for ASCII and
5548         non-ASCII characters.  Don't set it->char_to_display here.
5549         Don't handle unibyte-display-via-language-environment here.  For a
5550         character of no glyph, use font->space_width instead of FONT_WIDTH.
5552 2010-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
5554         * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5556 2010-08-31  Chong Yidong  <cyd@stupidchicken.com>
5558         * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5560 2010-08-30  Stefan Monnier  <monnier@iro.umontreal.ca>
5562         * marker.c (Fcopy_marker): Make the first arg optional.
5564 2010-08-30  Kenichi Handa  <handa@m17n.org>
5566         * composite.c (composition_update_it): Fix computing of
5567         cmp_it->width.
5569 2010-08-29  Kenichi Handa  <handa@m17n.org>
5571         * term.c (encode_terminal_code): Encode byte chars to the
5572         corresponding bytes.
5574 2010-08-29  Jan Djärv  <jan.h.d@swipnet.se>
5576         * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5578 2010-08-26  Kenichi Handa  <handa@m17n.org>
5580         * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5581         on calling composition_compute_stop_pos.
5583 2010-08-25  Kenichi Handa  <handa@m17n.org>
5585         * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5586         :otf.
5588         * composite.c (composition_compute_stop_pos): Don't break
5589         composition at PT.
5590         (composition_reseat_it): Likewise.  Fix calculation of character
5591         position starting a composition.
5592         (Fcomposition_get_gstring): Don't limit the number of components
5593         for automatic composition.
5595 2010-08-25  Kenichi Handa  <handa@m17n.org>
5597         * composite.c (composition_compute_stop_pos): In forward search,
5598         pay attention to the possibility that some character after ENDPOS
5599         will be composed with charactrs before ENDPOS.
5601 2010-08-24  Chong Yidong  <cyd@stupidchicken.com>
5603         * keyboard.c (command_loop_1): Don't clobber primary selection
5604         during handle-switch-frame (Bug#6872).
5606 2010-08-23  Michael Albinus  <michael.albinus@gmx.de>
5608         * dbusbind.c: Accept UNIX domain sockets as bus address.
5609         (Fdbus_close_bus): New function.
5610         (Vdbus_registered_buses): New variable.
5611         (xd_initialize): Implement string as bus address.
5612         (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5613         (Fdbus_get_unique_name, Fdbus_call_method)
5614         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5615         (Fdbus_method_error_internal, Fdbus_send_signal)
5616         (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5617         check.  This is done in xd_initialize_bus.  Adapt doc string, if
5618         necessary.
5619         (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5620         Vdbus_registered_buses.
5621         (Vdbus_registered_objects_table): Create hash.
5623 2010-08-22  Juri Linkov  <juri@jurta.org>
5625         * keyboard.c (Fexecute_extended_command): Move reading a command name
5626         with `completing-read' to a new Elisp function `read-extended-command'.
5627         Call it to read a command to `function'  (bug#5364, bug#5214).
5629 2010-08-22  Chong Yidong  <cyd@stupidchicken.com>
5631         * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5633 2010-08-22  Andreas Schwab  <schwab@linux-m68k.org>
5635         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5636         instead of SAFE_ALLOCA.
5638 2010-08-22  Chong Yidong  <cyd@stupidchicken.com>
5640         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5641         (Bug#6214).
5643 2010-08-22  Jan Djärv  <jan.h.d@swipnet.se>
5645         * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5647 2010-08-22  Jan Djärv  <jan.h.d@swipnet.se>
5649         * doc.c (Fsnarf_documentation): Initialize skip_file before
5650         build-files test.
5652 2010-08-22  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
5654         * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5655         New definitions.
5656         (HAVE_TERMIO): Remove.
5658 2010-08-22  Eli Zaretskii  <eliz@gnu.org>
5660         * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5662         * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5663         for w32.
5665         * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5666         it's done in nt/config.nt.
5668         * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5670         * unexcoff.c (report_error, make_hdr, write_segment)
5671         (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5672         Convert argument lists and prototypes to ANSI C.
5673         (make_hdr, write_segment): Remove unused variables.
5674         (unexec): Remove commented-out line.  Initialize `new' to shut up
5675         compiler warnings.
5677 2010-08-22  Dan Nicolaescu  <dann@ics.uci.edu>
5679         Simplify termio code.
5680         All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5681         HAVE_TERMIO code is obsolete.
5682         Replace HAVE_TERMIOS conditionals with !DOS_NT.
5683         * systty.h: Do not define HAVE_TCATTR.
5684         Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5685         Do not define EMACS_HAVE_TTY_PGRP.  Only define
5686         EMACS_GET_TTY_PGRP for !DOS_NT.
5687         * sysdep.c: Include sysselect.h unconditionally.  Do not include
5688         sys/ioctl.h and termios.h, systty.h does it.
5689         Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5690         (init_baud_rate): Remove HAVE_TERMIO code.
5691         (child_setup_tty): Remove HAVE_TERMIO code.
5692         (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5693         and HAVE_LTCHARS code.  Use !DOS_NT instead of HAVE_TCATTR.
5694         (new_ltchars, new_tchars): Remove, unused.
5695         (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5696         code.  Remove special casing for __mips__, it was a no-op.
5697         Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5698         (init_sys_modes): Remove HPUX special case.
5699         * process.c: Include stdlib.h unconditionally.  Do not include
5700         fcntl.h, systty.h does it.  Remove conditional code for
5701         HAVE_SERIAL, it is always true.
5702         (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5703         always true when SIGNALS_VIA_CHARACTERS is true.
5704         (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5705         !WINDOWSNT means HAVE_TERMIOS.
5706         (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5707         conditional, which is true for all HAVE_TERMIOS systems.
5708         * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5709         instead of HAVE_TERMIOS.
5710         * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5711         EMACS_HAVE_TTY_PGRP.
5712         * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5713         non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5714         anyway.
5716 2010-08-21  Eli Zaretskii  <eliz@gnu.org>
5718         * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5719         mirroring pixel positions.
5721 2010-08-20  Dan Nicolaescu  <dann@ics.uci.edu>
5723         * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5724         write only.
5725         (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5726         malloc_sbrk_used, nothing uses them.
5728         * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5729         defined, unconditionally defined in lisp.h.
5731         * term.c: Do not include <termios.h>, systty.h does it.
5733         * s/unixware.h (HAVE_TCATTR):
5734         * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5735         systty.h defines it when HAVE_TERMIOS is defined.
5737 2010-08-20  Eli Zaretskii  <eliz@gnu.org>
5739         * dispnew.c (buffer_posn_from_coords): Fix last change for text
5740         terminals: add one-character offset for R2L lines.
5742         * emacs.c <emacs_version>: Add a comment regarding
5743         msdos/mainmake.v2's dependency on the syntax of this declaration.
5745 2010-08-20  Eli Zaretskii  <eliz@gnu.org>
5747         * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5748         position for R2L lines by mirroring the pixel position wrt the
5749         text are box.  Improve commentary.
5751 2010-08-20  Andreas Schwab  <schwab@linux-m68k.org>
5753         * image.c (imagemagick_clear_image): Remove debugging output.
5755 2010-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
5757         * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5758         (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5759         (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5760         self-insert-face.
5761         (syms_of_cmds): Initialize the new vars.
5763 2010-08-19  Jason Rumney  <jasonr@gnu.org>
5765         * w32menu.c (set_frame_menubar): Remove call to undefined function.
5767         * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5769 2010-08-19  Jan Djärv  <jan.h.d@swipnet.se>
5771         * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5773 2010-08-18  Eli Zaretskii  <eliz@gnu.org>
5775         * xterm.c (x_draw_bar_cursor):
5776         * w32term.c (x_draw_bar_cursor): If the character under cursor is
5777         R2L, draw the bar cursor on its right rather than on its left.
5779 2010-08-18  Stefan Monnier  <monnier@iro.umontreal.ca>
5781         * eval.c (Fdefmacro): Only obey one declaration.
5783         * casefiddle.c (casify_region): Setup gl_state.
5785 2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
5787         * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5789 2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
5791         * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
5793 2010-08-18  David De La Harpe Golden  <david@harpegolden.net>
5795         * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5796         (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5797         QPRIMARY => NXPrimaryPboard.
5798         (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5799         NXPrimaryPboard => QPRIMARY.
5800         (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5801         NXSecondaryPboard = SecondarySelection.
5802         (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5804 2010-08-18  Joakim Verona  <joakim@verona.se>
5806         * image.c: Add support for ImageMagick.  When HAVE_IMAGEMAGICK is
5807         defined:
5808         (imagemagick_image_p): New function to test for ImageMagic image.
5809         (imagemagick_load): New function to load ImageMagick image.
5810         (imagemagick_load_image): New function, helper for imagemagick_load.
5811         (imagemagick-types): New function.
5812         (Qimagemagick): New Lisp_object.
5813         (imagemagick-render-type): New variable, decides which renderer to use.
5815 2010-08-17  Stefan Monnier  <monnier@iro.umontreal.ca>
5817         * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5818         is a string.
5820 2010-08-17  Jan Djärv  <jan.h.d@swipnet.se>
5822         * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5823         x_set_tool_bar_position handler.
5825 2010-08-17  Eli Zaretskii  <eliz@gnu.org>
5827         * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5828         x_set_tool_bar_position handler, needed to support changes from
5829         2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar.  (Bug#6796)
5831 2010-08-16  Jan Djärv  <jan.h.d@swipnet.se>
5833         * nsselect.m: Include keyboard.h for QPRIMARY, remove its
5834         declaration (Bug#6863).
5835         (syms_of_nsselect): Don't intern QPRIMARY.
5837         * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5839         * keyboard.h (QPRIMARY): Declare (Bug#6864).
5841 2010-08-16  Chong Yidong  <cyd@stupidchicken.com>
5843         * keyboard.c (command_loop_1): Avoid setting selection twice,
5844         since it's done in deactivate-mark as well.
5845         (Vselect_active_regions): Change default to t.  Replace `lazy'
5846         with non-default value `only', meaning only set PRIMARY for
5847         temporarily active regions.
5849         * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5850         select-active-regions.
5852 2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
5854         * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5855         isn't a string.
5857 2010-08-15  Andreas Schwab  <schwab@linux-m68k.org>
5859         * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5861 2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
5863         * keyboard.c (parse_tool_bar_item): malloc buf.
5864         Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5865         new_lbl (Bug#6855).
5867 2010-08-14  Eli Zaretskii  <eliz@gnu.org>
5869         * xterm.c (x_draw_stretch_glyph_string):
5870         * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5871         the cursor on the right edge of the stretch glyph.
5873         * xdisp.c (window_box_right_offset, window_box_right):
5874         Fix commentary.
5876         * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5877         direction when point is inside a run of whitespace characters.
5879         * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5881 2010-08-14  Jason Rumney  <jasonr@gnu.org>
5883         * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5885 2010-08-14  Chong Yidong  <cyd@stupidchicken.com>
5887         * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5889 2010-08-13  Jason Rumney  <jasonr@gnu.org>
5891         * w32menu.c (simple_dialog_show): Use unicode message box if available.
5892         (MessageBoxW_Proc): New function typedef.
5893         (unicode-message-box): New function pointer.
5894         (globals_of_w32menu): Import it from user32.dll.  (Bug#5629)
5896 2010-08-13  Jan Djärv  <jan.h.d@swipnet.se>
5898         * frame.h (Qtool_bar_position): Declare.
5900         * xfns.c (Fx_create_frame): Call x_default_parameter for
5901         Qtool_bar_position.
5903 2010-08-13  Eli Zaretskii  <eliz@gnu.org>
5905         * unexcoff.c: Remove the parts used when "emacs" is not defined.
5906         (report_error, report_error_1): Ditto.
5907         (write_segment): Remove "#if 0" unused code.
5908         (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5909         NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5910         (start_of_text): Remove unused function (was used only if NO_REMAP
5911         was NOT defined).
5913         * msdos.c (IT_set_face): Fix format string to match argument
5914         types.
5915         (IT_write_glyphs, IT_note_mode_line_highlight)
5916         (IT_set_frame_parameters): Remove unused variables.
5917         (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5918         (IT_set_terminal_modes): Disambiguate expression in if clause.
5919         (Fmsdos_remember_default_colors): Return Qnil.
5920         (IT_set_frame_parameters): Add parens to disambiguate boolean
5921         expression for logging the cursor type to termscript.
5922         (keyboard_layout_list, keypad_translate_map)
5923         (grey_key_translate_map): Add braces in inner initializers.
5924         (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5925         (dos_rawgetc): Remove unused label.
5926         (XMenuActivate): Add braces to remove ambiguous `else'.
5927         (dos_ttraw): Always return a value.
5928         (spawnve): Declare.
5929         (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5931         * dosfns.h (x_set_title): Declare.
5933         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5934         Remove unused variables.
5936         * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5937         variables.
5938         (init_dosfns): Declare get_lim_data.
5939         (system_process_attributes): Declare Fget_internal_run_time.
5941         * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5942         list to be consistent with menu.h.
5944         * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5945         warnings due to mixing of "char *" and "const char *".
5947 2010-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
5949         Introduce a new comment style "c" flag.
5950         * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5951         (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5952         (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5953         (syntax_prefix_flag_p): New function.
5954         (Fstring_to_syntax): Understand new "c" flag.
5955         (Finternal_describe_syntax_value): Recognize new flag; use the
5956         SYNTAX_FLAGS_* macros.
5957         (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5958         comment style to accomodate the new styles.
5959         (back_comment, forw_comment, Fforward_comment, scan_lists)
5960         (scan_sexps_forward): Update code to obey the new comment style flag.
5962         * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5964         * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5966 2010-08-11  Jan Djärv  <jan.h.d@swipnet.se>
5968         * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5969         first.
5970         (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
5972         * gtkutil.h (xg_check_special_colors): Declare.
5974         * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5975         (xg_create_frame_widgets): Connect theme name changes to
5976         style_changed_cb.
5978         * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5979         (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5980         (x_term_init): Use char[] display_opt and name_opt instead of
5981         string literal.  file is const char*.
5983         * xsmfns.c (NOSPLASH_OPT): Change to char[].
5984         (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5985         props.  Free them at the end.
5987         * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5989         * xrdb.c (get_system_app): Make path const and use char *p for
5990         non-const char.
5992         * xmenu.c (Fx_popup_dialog): error_name is const char*.
5993         (xmenu_show): error parameter is const char **.  pane_string is const
5994         char *.
5995         (button_names): Is const char *.
5996         (xdialog_show): error_name and pane_string is const.
5998         * process.h (synch_process_death): Is const char*.
6000         * w32menu.c (w32_menu_show):
6001         * nsmenu.m (ns_menu_show): error parameter is const char **.
6003         * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6004         is const char **.
6006         * menu.c (Fx_popup_menu): error_name is const.
6008         * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
6009         with unsigned char and XtPointer with void *.
6011         * gtkutil.h: Replace widget_value with struct _widget_value.
6012         (enum button_type, struct _widget_value): Remove and use the one from
6013         keyboard.h.
6015         * gtkutil.c (get_utf8_string): Always return an allocated string.
6016         Parameter is const.
6017         (create_dialog, xg_create_one_menuitem, create_menus)
6018         (xg_item_label_same_p, xg_update_menu_item): Free result from
6019         get_utf8_string.
6020         (xg_separator_p, xg_item_label_same_p): label is const.
6022         * font.h (font_open_by_name): Make name const.
6024         * font.c (font_open_by_name): Make name const.
6026         * floatfns.c (matherr): Use a const char* variable for x->name.
6028         * emacs.c (main): Pass char[] to putenv instead of literal.
6030         * callproc.c (synch_process_death): Make const.
6031         (Fcall_process): Make signame const.
6033         * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6034         (addDisplayItemWithImage): Use const char*.
6036         * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6037         (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6039         * nsfont.m (ns_descriptor_to_entity): Use const char*.
6041         * keyboard.h (_widget_value): name, value and key are const char*.
6043         * unexmacosx.c (unexec_error): Use const char *.
6045 2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
6047         * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6048         (font_parse_name, font_open_by_name):
6049         * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6050         (font_parse_name, font_open_by_name): Remove const.
6052 2010-08-09  Andreas Schwab  <schwab@linux-m68k.org>
6054         Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6055         definition.
6057         * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6058         * m/amdx86-64.h: Likewise.
6059         * m/arm.h: Likewise.
6060         * m/hp800.h: Likewise.
6061         * m/ia64.h: Likewise.
6062         * m/ibmrs6000.h: Likewise.
6063         * m/ibms390.h: Likewise.
6064         * m/intel386.h: Likewise.
6065         * m/iris4d.h: Likewise.
6066         * m/m68k.h: Likewise.
6067         * m/macppc.h: Likewise.
6068         * m/mips.h: Likewise.
6069         * m/sh3.h: Likewise.
6070         * m/sparc.h: Likewise.
6071         * m/template.h: Likewise.
6072         * m/vax.h: Likewise.
6073         * m/xtensa.h: Likewise.
6074         * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6075         WORDS_BIG_ENDIAN.
6076         * lisp.h: Likewise.
6077         * md5.c: Likewise.
6078         * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6080 2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
6082         Use const char* instead of char*.
6083         Reduce the number of warnings with -Wwrite-strings.
6084         * xrdb.c (get_environ_db, get_system_name):
6085         * unexelf.c (find_section):
6086         * term.c (string_cost, string_cost_one_line, per_line_cost)
6087         (get_named_tty, init_tty):
6088         * sysdep.c (sys_subshell):
6089         * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6090         (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6091         * search.c (Freplace_match):
6092         * process.c (Fmake_network_process, send_process, init_process):
6093         * lread.c (Fload, init_lread):
6094         * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6095         * keyboard.c (parse_tool_bar_item, struct event_head):
6096         * gtkutil.h (xg_get_font_name):
6097         * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6098         (make_widget_for_menu_item, make_menu_item, create_menus)
6099         (xg_make_tool_item):
6100         * font.c (parse_matrix, font_parse_name):
6101         * floatfns.c (rounding_driver, float_error_fn_name):
6102         * filelock.c (get_boot_time_1, lock_file_1):
6103         * fileio.c (barf_or_query_if_file_exists, check_writable):
6104         * editfns.c (get_system_name, get_operating_system_release)
6105         (Fencode_time, Fset_time_zone_rule):
6106         * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6107         * buffer.c (defvar_per_buffer): Use const.
6109 2010-08-08  Kenichi Handa  <handa@m17n.org>
6111         * charset.c: Include <stdlib.h>.
6112         (struct charset_sort_data): New struct.
6113         (charset_compare): New function.
6114         (Fsort_charsets): New function.
6115         (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6117         * coding.c (decode_coding_iso_2022): Fix checking of dimension
6118         number in CTEXT extended segment.
6120 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
6122         * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6123         * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6125 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
6127         * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6128         (Fhash_table_size): Fix typos in docstrings.
6129         (Fmake_hash_table): Doc fix.
6131 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
6133         * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6134         Doc fix (bug#5625).
6136 2010-08-08  Ken Brown  <kbrown@cornell.edu>
6138         * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6139         the MSDOS definition.
6141 2010-08-08  Dan Nicolaescu  <dann@ics.uci.edu>
6143         Use const char* instead of char*.
6144         * xterm.c (x_create_toolkit_scroll_bar):
6145         * xfont.c (xfont_list_pattern):
6146         * xfns.c (x_default_scroll_bar_color_parameter)
6147         (xic_create_fontsetname, x_default_font_parameter)
6148         (x_screen_planes):
6149         * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6150         (store_mode_line_string, decode_mode_spec, display_string):
6151         * menu.c (digest_single_submenu):
6152         * keymap.h (initial_define_key, initial_define_lispy_key):
6153         * keymap.c (initial_define_key, initial_define_lispy_key):
6154         * image.c (image_error, image_keyword):
6155         * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6156         * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6157         * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6158         (ftfont_list, ftfont_match):
6159         * frame.c (frame_parm_table):
6160         * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6161         (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6162         (font_add_log, font_deferred_log):
6163         * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6164         (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6165         (font_add_log, font_deferred_log):
6166         * emacs.c (argmatch):
6167         * dispextern.h (struct it):
6168         * coding.c (ENCODE_DESIGNATION):
6169         * charset.c (define_charset_internal): Use const.
6171         * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6173         * xrdb.c: Remove include guard.
6174         Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6175         Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
6176         realloc->xrealloc instead of using #defines.
6178 2010-08-08  Eli Zaretskii  <eliz@gnu.org>
6180         * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6181         * editfns.c (Fline_beginning_position, Fline_end_position):
6182         State in the doc strings that start and end of line are in the
6183         logical order.
6185         * xdisp.c (display_line): Move the handling of overlay arrow after
6186         the call to find_row_edges.  (Bug#6699)
6188 2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
6190         * keyboard.c (command_loop_1):
6191         * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6193 2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
6195         * insdel.c (prepare_to_modify_buffer): Save active region text to
6196         Vsaved_region_selection.
6198         * xselect.c (QPRIMARY): Move to keyboard.c.
6200         * keyboard.c (Vselect_active_regions): Move from simple.el.
6201         (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6202         (command_loop_1): Set window selection prior to deactivating the mark.
6204 2010-08-07  Juanma Barranquero  <lekktu@gmail.com>
6206         * alloc.c (lisp_malloc):
6207         * buffer.c (set_buffer_internal, set_buffer_internal_1):
6208         * charset.h (emacs_mule_charset):
6209         * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6210         (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6211         (bitch_at_user):
6212         * lisp.h (Fcheck_coding_system, Fget_text_property)
6213         (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6214         Remove duplicate declarations.
6216 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
6218         * process.c: Simplify include logic.
6220         * keyboard.h (quit_char): Add declaration.
6221         * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6222         (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6223         Add declarations.
6224         * sysdep.c:
6225         * w32.c: Remove the above declarations.
6227         Remove extern declarations in .c files, .h files have them.
6228         * xterm.c:
6229         * xdisp.c:
6230         * msdos.c:
6231         * image.c:
6232         * gtkutil.c:
6233         * fileio.c:
6234         * eval.c: Remove declarations.
6236         * frame.c (frame_params): Make const.
6238         * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6240         * emacs.c (emacs_copyright, emacs_version): Make static.
6241         (Vinitial_window_system, Vauto_save_list_file_name)
6242         (Vinhibit_redisplay): Remove declarations.
6243         (main): Remove HAVE_SHM code, unused.  Remove _I386 conditional
6244         for AIX.
6246         Use const for some arrays and functions.
6247         * xterm.h (xg_set_icon_from_xpm_data):
6248         * xfns.c (xg_set_icon_from_xpm_data):
6249         * term.c (fkeys):
6250         * keyboard.c (lispy_accent_keys, lispy_function_keys)
6251         (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6252         (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6253         (frame.c frame_parms):
6254         * emacs-icon.h (gnu_xpm_bits):
6255         * callint.c (callint_argfuns): Use const.
6257 2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
6259         * sysdep.c: Move include term.h last of includes (Bug#6812).
6261 2010-08-06  Eli Zaretskii  <eliz@gnu.org>
6263         * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6265         * msdos.c (IT_display_cursor): Log cursor position on termscript.
6267         * .gdbinit (pgx): Display the avoid_cursor_p flag.
6269 2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
6271         * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6273 2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
6275         * xterm.h (x_get_focus_frame): Declare.
6277         * keyboard.h (poll_for_input_1): Unconditionally declare.
6279         * nsterm.h (x_set_menu_bar_lines): Declare.
6281         * window.c: Don't include menu.h, it depends on lots of other .h-files.
6283         * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6285         * window.c: Include menu.h.
6287         * unexmacosx.c (print_region_list, print_regions)
6288         (build_region_list, find_emacs_zone_regions)
6289         (unexec_regions_merge, read_load_commands, dump_it)
6290         (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6292         * term.c: Check HAVE_SYS_IOCTL_H.
6294         * sysdep.c: Check HAVE_TERM_H.
6296         * process.c: Check HAVE_UTIL_H.  Include nsterm.h if HAVE_NS.
6298         * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6299         (ns_ring_bell, ns_defined_color, hide_hourglass)
6300         (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6301         Convert to ANSI C prototypes.
6302         (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6303         before code.
6305         * nsterm.h : Include sysselect.h.
6306         (x_sync, x_get_focus_frame, x_set_mouse_position)
6307         (x_set_mouse_pixel_position, x_make_frame_visible)
6308         (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6309         (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6310         (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6311         (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6312         Declare.
6314         * nsmenu.m (popup_activated, name_is_separator)
6315         (syms_of_nsmenu): Convert to ANSI C prototypes.
6316         (runMenuAt): Prototypes and move declarations before code.
6318         * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6320         * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6321         prototypes.
6323         * nsfns.m (have_menus_p, ns_display_info_for_name)
6324         (x_set_cursor_type, ns_appkit_version_str)
6325         (ns_appkit_version_int, ns_do_applescript)
6326         (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6327         (syms_of_nsfns): Convert to ANSI C prototypes.
6329         * menu.h (x_set_menu_bar_line): Declare.
6330         (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6332         * lisp.h (fmod_float): Declare.
6334         * image.c (xpm_scan, xpm_make_color_table_v)
6335         (xpm_put_color_table_v, xpm_get_color_table_v)
6336         (xpm_make_color_table_h, xpm_put_color_table_h)
6337         (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6338         (xpm_load): Convert to ANSI C prototypes.
6340         * emacs.c: Include nsterm.h if HAVE_NS.
6342         * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6344 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
6346         * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6347         subprocesses, only MSDOS does not define HAVE_SOCKETS.
6348         (socket_options): Use const char* for name.
6350 2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
6352         Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6354         * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6355         Don't declare xmalloc_widget_value and digest_single_submenu.
6357         * w32font.c (Qlatin): Remove declaration.
6359         * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6361         * dired.c (compile_pattern): Restore declaration.
6363 2010-08-05  Dan Nicolaescu  <dann@ics.uci.edu>
6365         Remove extern declarations in .c files, .h files have them.
6366         * data.c:
6367         * dired.c:
6368         * editfns.c:
6369         * filelock.c:
6370         * fns.c:
6371         * font.c:
6372         * fontset.c:
6373         * frame.c:
6374         * fringe.c:
6375         * ftfont.c:
6376         * gtkutil.c:
6377         * indent.c:
6378         * keyboard.c:
6379         * keymap.c:
6380         * lread.c:
6381         * menu.c:
6382         * print.c:
6383         * search.c:
6384         * sound.c:
6385         * window.c:
6386         * xdisp.c:
6387         * xfaces.c:
6388         * xfns.c:
6389         * xfont.c:
6390         * xftfont.c:
6391         * xmenu.c:
6392         * xterm.c: Remove declarations.
6394         Cleanup syssignal.h.
6395         * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6396         (main_thread): Move down to remove #ifdef.
6397         (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6398         Remove conditional definition following unconditional ones.
6400         * lisp.h: Remove HAVE_SHM code, unused.
6401         (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6402         (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6403         (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6404         (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6405         (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6406         (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6407         (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6408         (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6409         (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6410         (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6411         (Qwindow_scroll_functions, Vafter_load_alist)
6412         (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6413         (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6414         (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6415         (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6416         (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6417         (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6418         (initial_argv, last_nonmenu_event, load_in_progress)
6419         (noninteractive_need_newline, scroll_margin): Add declarations.
6421         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6422         Remove declarations, menu.h has them.
6423         (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6424         (Vinput_method_function, Qinput_method_function)
6425         (Qevent_symbol_element_mask, last_event_timestamp):
6426         * dispextern.h (Voverflow_newline_into_fringe):
6427         * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6428         (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6429         (syms_of_w32font, syms_of_nsfont):
6430         * fontset.h (find_font_encoding, Qlatin):
6431         * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6432         (Vtool_bar_mode, set_frame_menubar):
6433         * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6434         * xterm.h (Qx_gtk_map_stock):
6435         * keymap.h (meta_prefix_char): Add declarations.
6437         * term.c: Remove dead code.
6439         Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6440         * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6441         USG.  This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6442         which is what was there before BSD_PGRPS was removed.
6444 2010-08-05  Eli Zaretskii  <eliz@gnu.org>
6446         * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6448         * unexcoff.c: Renamed from unexec.c.
6450 2010-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
6452         * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6454 2010-08-03  Johan Bockgård  <bojohan@gnu.org>
6456         * data.c (Flocal_variable_p): Handle variable aliases correctly.
6457         (Bug#6744)
6459 2010-08-02  Jan Djärv  <jan.h.d@swipnet.se>
6461         * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6462         to TRUE if depth of screen is < 16.
6464         * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6465         USE_GTK_TOOLTIP.
6466         (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6467         (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6468         (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6469         USE_GTK_TOOLTIP.
6470         (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6472         * xterm.h (USE_GTK_TOOLTIP): New define.
6473         (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6475         * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6476         to Control-D (Bug#6771).
6478 2010-08-02  Juanma Barranquero  <lekktu@gmail.com>
6480         * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6481         Wording by Drew Adams <drew.adams@oracle.com>.
6483 2010-08-01  Jan Djärv  <jan.h.d@swipnet.se>
6485         * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6486         ttip_lbl.
6488         * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6489         calling gtk_widget_queue_draw.
6490         (x_free_frame_resources): Call xg_free_frame_widgets.
6492         * xfns.c (x_gtk_use_system_tooltips): New variable.
6493         (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6494         new gtkutil tooltip functions to show the tooltip.
6495         (Fx_hide_tip): Call xg_hide_tooltip.
6496         (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6498         * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6499         (xg_show_tooltip, xg_hide_tooltip): Declare.
6501         * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6502         (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6503         New functions.
6504         (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
6505         text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
6506         Remove code that is commented out.
6508 2010-08-01  Stefan Monnier  <monnier@iro.umontreal.ca>
6510         * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6512 2010-07-31  Chong Yidong  <cyd@stupidchicken.com>
6514         * xselect.c (x_own_selection): Use list4.
6516 2010-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
6518         * buffer.c (Qwindow): Do not define, already defined in data.c.
6519         (syms_of_buffer): Do not intern and staticpro Qwindow.  (Bug#6760)
6521 2010-07-29  Chad Brown  <yandros@mit.edu>
6523         Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6524         * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6525         * config.in: Undef HAVE_DIRENT_H.
6526         * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6527         * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6529 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
6531         Rename s/usg5-4.h -> s/usg5-4-common.h.
6532         * s/usg5-4.h: Rename file to ...
6533         * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6534         * s/unixware.h:
6535         * s/sol2-6.h:
6536         * s/irix6-5.h: Update includes accordingly.
6538 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
6540         * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6542         * xterm.h (struct x_output): Add toolbar_top_height,
6543         toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6544         Remove toolbar_height.
6545         If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6546         (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6547         (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6548         (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6550         * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6552         * xfns.c (x_set_tool_bar_position): New function.
6553         (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6554         (x_frame_parm_handlers): Add x_set_tool_bar_position.
6555         (syms_of_xfns): If USE_GTK, provide move-toolbar.
6557         * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6558         and FRAME_TOOLBAR_LEFT_WIDTH.
6560         * gtkutil.h (xg_change_toolbar_position): Declare.
6562         * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6563         (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6564         (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6565         (xg_create_frame_widgets): Create a hobox for placing widgets
6566         vertically.  Use gtk_box_pack_start.
6567         (xg_height_or_width_changed): Rename from xg_height_changed.
6568         (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6569         (xg_update_frame_menubar, free_frame_menubar): Change to
6570         xg_height_or_width_changed.
6571         (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6572         size correctly.  Remove hardcoded 4, instead use handlebox size -
6573         toolbar size.
6574         (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6575         size correctly.  Use handlebox size + toolbar size as additional size.
6576         (xg_pack_tool_bar): POS is a new parameter.
6577         Set orientation of tool bar based on pos.
6578         Only make handlebox_widget if NULL.
6579         Check if tool bar goes to vbox or hbox depending on pos.
6580         (xg_update_tool_bar_sizes): New function.
6581         (update_frame_tool_bar): Remove old_req, new_req.  Do not get tool bar
6582         height, call xg_update_tool_bar_sizes instead.
6583         (free_frame_tool_bar): Remove from hbox or vbox depending on
6584         toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6585         (xg_change_toolbar_position): New function.
6587         * frame.h (struct frame): Add tool_bar_position.
6588         (Qbottom): Declare.
6590         * frame.c (Qtool_bar_position): New variable.
6591         (make_frame): Set tool_bar_position to Qtop.
6592         (frame_parms): Add tool-bar-position.
6593         (x_report_frame_params): Store tool_bar_position.
6594         (x_set_fringe_width): Reset wm size hint after fringe changes.
6596 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
6598         Make lisp_time_argument declaration work on all systems.
6599         * lisp.h (lisp_time_argument): Move declaration ...
6600         * systime.h (lisp_time_argument): ... here
6601         * editfns.c (lisp_time_argument): Remove declaration.  (Bug#6751)
6603 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
6605         * vm-limit.c (POINTER): Add typedef for it.
6606         (start_of_data): Change return type from POINTER to char *.
6608         * frame.h (Qtty_color_mode): Move declaration out of ifdef
6609         HAVE_WINDOW_SYSTEM.
6611 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
6613         * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6614         Remove reference to __osf__, unused.
6616         * mem-limits.h: Remove duplicated includes.
6617         (NULL): Remove definition, unused.
6618         (POINTER): Remove definition.
6619         (start_of_data): Use char* in prototype, as the function
6620         definition does.
6622         Remove extern declarations from .c files, and them to .h files.
6623         * keyboard.h (Qhelp_echo, waiting_for_input)
6624         (input_available_clear_time, ignore_mouse_drag_p)
6625         (Vdouble_click_time, real_this_command, Vthis_original_command):
6626         * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6627         (Voverriding_local_map_menu_flag):
6628         * lisp.h (Qinteractive_form, use_file_dialog)
6629         (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6630         (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6631         (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6632         (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6633         (Qfunction, debug_on_next_call, Qfield)
6634         (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6635         (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6636         (Qfile_directory_p, Qinsert_file_contents)
6637         (Qcompletion_ignore_case, Qcompletion_ignore_case)
6638         (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6639         (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6640         (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6641         (Qminibuffer_prompt)
6642         (Vtemporary_file_directory,char_ins_del_vector, Qface):
6643         * xterm.h (gray_bitmap_width, gray_bitmap_height)
6644         (gray_bitmap_bits, xic_create_fontsetname):
6645         * coding.h (Vtranslation_table_for_input): Add extern declarations.
6647         * xsmfns.c (Vuser_login_name):
6648         * xrdb.c (Vdouble_click_time):
6649         * xfaces.c (xic_create_fontsetname):
6650         * w32select.c (waiting_for_input):
6651         * print.c (minibuffer_auto_raise):
6652         * msdos.c (Qhelp_echo):
6653         * macros.c (real_this_command):
6654         * keymap.c (Voverriding_local_map):
6655         * xterm.c (poll_for_input_1, gray_bitmap_width)
6656         (gray_bitmap_height, gray_bitmap_bits;
6657         * xmenu.c ( Voverriding_local_map)
6658         (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6659         (use_file_dialog, Xt_app_con):
6660         * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6661         (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6662         (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6663         (Qtool_bar_lines, ignore_mouse_drag_p):
6664         * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6665         (Qrear_nonsticky, nconc2):
6666         * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6667         (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6668         (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6669         * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6670         (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6671         * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6672         (gc_in_progress):
6673         * doc.c (Voverriding_local_map, Qremap):
6674         * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6675         (Vcompletion_regexp_list):
6676         * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6677         (Qcompletion_ignore_case):
6678         * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6679         (Vhistory_length, Vthis_original_command, real_this_command)
6680         (Qface, Qminibuffer_prompt, history_delete_duplicates):
6681         * image.c (Qrisky_local_variable):
6682         * fontset.c (QCname):
6683         * fns.c (minibuffer_auto_raise, QCname):
6684         * dispnew.c (char_ins_del_cost):
6685         * composite.c (font_fill_lglyph_metrics):
6686         * cmds.c (Qface, Vtranslation_table_for_input):
6687         * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6688         * ccl.c (charset_unicode):
6689         * callproc.c (Vtemporary_file_directory):
6690         * buffer.c (emacs_strerror): Remove extern declarations.
6692         * data.c (Qwindow): Make non-static, used from other files too.
6693         * frame.c (validate_x_resource_name): Remove shadow definition for i.
6695         * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6696         SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6697         * s/usg5-4.h (COFF):
6698         * s/template.h:
6699         * s/msdos.h (COFF, NO_REMAP):
6700         * s/ms-w32.h (NO_REMAP):
6701         * s/hpux10-20.h (NO_REMAP):
6702         * m/sparc.h (SEGMENT_MASK):
6703         * m/m68k.h (NO_REMAP):
6704         * m/intel386.h (SEGMENT_MASK):
6705         * m/arm.h (NO_REMAP):
6706         * m/alpha.h (COFF):
6707         * m/template.h: Remove references to unused defines.
6709 2010-07-28  Jan Djärv  <jan.h.d@swipnet.se>
6711         * xsettings.c (Ftool_bar_get_system_style): Also check for
6712         Qtext_image_horiz.
6714         * xdisp.c (Qtext_image_horiz): Define.
6715         (syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
6716         to documentation of tool-bar-style.
6718         * lisp.h (Qtext_image_horiz): Declare.
6720         * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6721         style text_image_horiz.
6723 2010-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
6725         * emacs.c (Fkill_emacs): Remove return statement.
6727         * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6728         (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6729         (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6730         Remove local extern declarations.
6732         * xmenu.c: Do not included lwlib.h, not needed.
6734         * m/iris4d.h (XUINT, XSET): Remove, not needed.
6736         * process.c: Move definitions earlier to minimize #ifdefs.
6738         * xterm.h (x_get_customization_string, x_load_resources)
6739         (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6740         (x_check_errors, x_property_data_to_lisp, defined_color)
6741         (xic_set_xfontset, x_defined_color): Use const.
6743         * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6744         (x_text_icon, x_check_errors, x_connection_closed): Use const.
6746         * xselect.c (selection_data_to_lisp_data)
6747         (x_property_data_to_lisp):
6748         * xrdb.c (x_get_string_resource, file_p)
6749         (x_get_customization_string, magic_file_p, search_magic_path)
6750         (get_system_app, get_user_app, x_load_resources, x_get_resource)
6751         (x_get_string_resource): Use const.
6753         * xfns.c: Include xlwmenu.h when USE_LUCID.
6754         (x_defined_color, xic_set_xfontset): Use const.
6755         (Fx_hide_tip): Remove local extern declaration.
6757         * xfaces.c (Qmouse_face): Remove declaration.
6758         (face_color_gray_p, tty_defined_color, defined_color)
6759         (face_color_gray_p, face_color_supported_p): Add const.
6761         * xdisp.c (do_mouse_tracking): Remove declaration.
6762         (add_to_log): Use const.
6764         * minibuf.c (Qmouse_face): Remove declaration.
6766         * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6768         * keyboard.h (do_mouse_tracking): Add declaration.
6770         * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6771         (QCdata, QCtype, Qcenter): Remove declarations.
6773         * frame.c (x_get_resource_string, x_get_string_resource)
6774         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6775         (x_default_parameter): Use const.
6777         * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6778         (QCheight, QCsize, QCname): Remove declarations.
6780         * emacs.c (main): Remove local extern declaration.
6782         * editfns.c (region_limit, syms_of_editfns): Remove local extern
6783         declarations.
6785         * dispnew.c: Remove duplicate #include <unistd.h>.
6786         (update_window, update_frame_1, init_display): Remove local extern
6787         declarations.
6789         * dispextern.h (add_to_log): Remove declaration.
6790         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6791         (x_frame_get_and_record_arg, x_default_parameter): Add const.
6793         * dired.c (scmp): Add const.
6794         (directory_files_internal): Remove local extern declaration.
6796         * data.c (Finteractive_form): Use const.
6798         * composite.c (syms_of_composite): Remove local extern declarations.
6800         * charset.c (add_to_log): Remove declaration.
6802         * character.c (strwidth, parse_str_to_multibyte): Add const.
6804         * character.h (strwidth, parse_str_to_multibyte): Likewise.
6806         * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6808         * lisp.h (Fkill_emacs): Mark as NO_RETURN.
6809         (Lisp_Subr): Make doc and intspec constant.
6810         (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6811         (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6812         (QCheight, QCsize, QCname, QCwidth, QCforeground)
6813         (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6814         (display_arg): Add declarations.
6816 2010-07-27  Christoph Scholtes  <cschol2112@gmail.com>
6818         * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6820         * window.c (Fwindow_height): Doc fix (bug#6518).
6822 2010-07-27  Juanma Barranquero  <lekktu@gmail.com>
6824         * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6826 2010-07-26  Dan Nicolaescu  <dann@ics.uci.edu>
6828         * keyboard.c (Ftop_level, Fexit_recursive_edit)
6829         (Fabort_recursive_edit): Remove return statements in NO_RETURN
6830         functions.
6832         * frame.h (Qtty_color_mode): Add declaration.
6834         * lisp.h (Ftop_level, Fexit_recursive_edit)
6835         (Fabort_recursive_edit): Mark as NO_RETURN.
6837 2010-07-26  Kenichi Handa  <handa@m17n.org>
6839         * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
6840         number of glyphs gets smaller than the original length.  (Bug#6621)
6842 2010-07-26  Juanma Barranquero  <lekktu@gmail.com>
6844         * lread.c (unreadpure, mapatoms_1): Make static.
6846 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
6848         * terminfo.c (tparam): Fix prototype of tparm.
6850 2010-07-25  Andreas Schwab  <schwab@linux-m68k.org>
6852         * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6853         find start of text segment.
6854         * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6855         is defined.
6857         * callproc.c (set_initial_environment): Avoid unbalanced braces.
6859 2010-07-25  Ken Brown  <kbrown@cornell.edu>
6861         * vm-limit.c (check_memory_limits): Fix previous change;
6862         accidentally reverted an earlier change.
6864 2010-07-25  Ken Brown  <kbrown@cornell.edu>
6866         * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6867         * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6869 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
6871         * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6872         * dired.c (opendir, readdir): Fix prototypes.
6873         * editfns.c (w32_get_internal_run_time): Fix prototypes.
6874         * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6875         * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6876         (telldir): Remove declaration.
6877         * ralloc.c (real_morecore, __morecore): Fix prototypes.
6878         * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6879         * syssignal.h (strsignal): Fix prototype.
6880         * term.c (tparam): Fix prototype.
6881         (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6882         (term_get_fkeys): Set inside "#ifndef DOS_NT".
6883         * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6884         and __morecore.
6885         * w32gui.h (XParseGeometry): Fix prototype.
6886         * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6887         * w32term.c (my_set_focus): Declare inside #if 0.
6888         * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6889         (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6890         (drain_message_queue, get_next_msg, post_msg, parse_button)
6891         (ClipboardSequence_Proc): Fix prototypes.
6892         (wait_for_sync): Remove declaration.
6894 2010-07-24  Juanma Barranquero  <lekktu@gmail.com>
6896         * w32fns.c (w32_to_x_color): Remove, unused.
6898 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
6900         * lisp.h: Remove leftover P_.
6902 2010-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
6904         * ecrt0.c, unexalpha.c: Remove files, unused.
6906 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
6908         * cmds.c (internal_self_insert): Make static.
6909         * lisp.h (internal_self_insert): Remove declaration.
6911 2010-07-23  Juanma Barranquero  <lekktu@gmail.com>
6913         * alloc.c (free_float):
6914         * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6915         * frame.c (delete_frame_handler):
6916         * ralloc.c (reorder_bloc):
6917         * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6918         Remove unused static functions.
6920         * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6921         it is called only from NS code.
6923         * w32term.c (my_set_focus): #ifdef away; it is called only from
6924         "#ifdef 0" code.
6926         * w32fns.c (x_edge_detection):
6927         * xfaces.c (may_use_scalable_font_p):
6928         Remove obsolete static declarations.
6930 2010-07-20  Juanma Barranquero  <lekktu@gmail.com>
6932         * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6933         (emacs_blocked_realloc, uninterrupt_malloc):
6934         * fringe.c (w32_reset_fringes):
6935         * image.c (convert_mono_to_color_image, lookup_rgb_color)
6936         (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6937         * sound.c (be2hs, do_play_sound):
6938         * vm-limit.c (get_lim_data, ret_lim_data):
6939         * w32term.c (x_free_frame_resources):
6940         * xfaces.c (x_create_gc, x_free_gc):
6941         Convert definitions to standard C.
6943 2010-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>
6945         * eval.c (Feval, Ffuncall): Use the new names.
6947         * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6948         (DEFUN): Add braces around the union initialisation and use ## to
6949         specify the right union alternative and avoid a cast.
6951 2010-07-18  Juanma Barranquero  <lekktu@gmail.com>
6953         * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6955 2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
6957         * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6959 2010-07-17  Jan Djärv  <jan.h.d@swipnet.se>
6961         * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6962         is related to the menu bar (Bug#6499).
6963         (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
6965 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
6967         * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6969         * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6971         * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6972         i.e. don't put back ButtonRelease (Bug#6608).
6974         * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6975         instead of Window.  Call xg_event_is_for_menubar when
6976         USE_GTK (Bug#6499).
6978         * gtkutil.h (xg_event_is_for_menubar): Declare.
6980         * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6982 2010-07-16  Eli Zaretskii  <eliz@gnu.org>
6984         * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6985         when it's the same as the old foreground.  (Bug#6609)
6987 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
6989         * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6990         widget is non-null (Bug#6645).
6992 2010-07-15  Andreas Schwab  <schwab@linux-m68k.org>
6994         * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6995         Convert old-style definition.
6997         * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6998         timestamp argument.
7000 2010-07-15  Eli Zaretskii  <eliz@gnu.org>
7002         * fringe.c (update_window_fringes): Restore mistakenly reverted
7003         code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7005 2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
7007         * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7008         (SET_SAVED_KEY_EVENT): Remove (not used).
7009         (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7010         remove size parameter.
7011         (handle_one_xevent): Check popup_activated () for menu for Xt also.
7012         Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7013         Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7014         ButtonRelease.
7015         (x_set_window_size_1): scroll_bar_actual_width is always
7016         SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7018         * xdisp.c (pending_menu_activation): Remove extern declaration.
7019         (prepare_menu_bars): Remove setting of pending_menu_activation.
7021         * xmenu.c (pending_menu_activation): Remove.
7022         (x_activate_menubar): Set popup_activated_flag for Xt also.
7023         Remove setting of pending_menu_activation.
7024         (set_frame_menubar): Remove check of pending_menu_activation.
7025         Declare menubar_size before code.  Correct spelling in comment.
7027 2010-07-14  Kenichi Handa  <handa@m17n.org>
7029         * font.c (font_open_entity): Cancel previous change.
7030         (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7032 2010-07-13  Eli Zaretskii  <eliz@gnu.org>
7034         Remove subprocesses #ifdefs.
7035         * process.c <inhibit_sentinels>: Move to the common part.
7036         (Fwaiting_for_user_input_p): Move to the common part; return nil
7037         if async subprocesses aren't supported.
7038         * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7039         MS-DOS.  Remove "#ifdef subprocesses".
7040         (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7041         (gettimeofday): Remove "#ifdef subprocesses".
7042         (wait_without_blocking): Remove function.
7043         (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7044         Remove "#ifdef subprocesses".
7045         (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7046         compiled on MS-DOS.
7047         * callproc.c (Fcall_process) [!MSDOS]: Don't call
7048         wait_for_termination on MS-DOS.
7049         * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7050         initialization of inhibit_sentinels.
7051         * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7052         subprocesses" conditional.
7053         * callproc.c (Fcall_process) [!subprocesses]: Don't call
7054         wait_for_termination, since `buffer' cannot be an integer when
7055         async subprocesses are not supported
7056         * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7057         for ifdefing away the call to Fprocess_status.
7059         * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7060         away the entire body of the function.
7062 2010-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
7064         Remove subprocesses #ifdefs from term.c.
7065         * process.c (add_keyboard_wait_descriptor)
7066         (delete_keyboard_wait_descriptor): Move to common section, do
7067         nothing when subprocesses is not defined.
7068         * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7069         Remove subprocesses #ifdefs.
7071         Convert maybe_fatal to standard C.
7072         * lisp.h (verror): Declare.
7073         * eval.c (verror): New function containing the code from ...
7074         (error): ... this.  Call verror.
7075         * term.c (vfatal): New function containing the code from ...
7076         (fatal): ... this.  Call vfatal.
7077         (maybe_fatal): Convert to standard C, use variable number of
7078         arguments.  Declare as non-return.
7079         (init_tty): Fix maybe_fatal call.
7081 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
7083         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7084         (_scroll_bar_note_movement): Convert definitions to standard C.
7085         * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7086         * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7088 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
7090         * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7091         (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7092         (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7093         (xaw_jump_callback, xaw_scroll_callback)
7094         (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7095         (x_wm_set_size_hint, x_activate_timeout_atimer):
7096         Convert definitions to standard C.
7097         * xmenu.c (menubar_id_to_frame, popup_get_selection)
7098         (popup_activate_callback, popup_deactivate_callback)
7099         (menu_highlight_callback, menubar_selection_callback)
7100         (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7101         (free_frame_menubar, popup_selection_callback, as)
7102         (create_and_show_popup_menu, dialog_selection_callback)
7103         (create_and_show_dialog):
7104         * xfns.c (hack_wm_protocols, x_window):
7105         * xfaces.c (x_update_menu_appearance):
7106         * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7107         (char_to_pixel_size, round_size_to_char, get_wm_shell)
7108         (set_frame_size, update_wm_hints, setup_frame_gcs)
7109         (update_various_frame_slots, update_from_various_frame_slots)
7110         (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7111         (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7112         (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7114 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
7116         * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7118 2010-07-12  Eli Zaretskii  <eliz@gnu.org>
7120         * process.c (setup_process_coding_systems): Move to the part
7121         shared by non-subprocesses systems, and make its body empty when
7122         subprocesses is not defined.
7123         (close_process_descs): Move to the part shared by non-subprocesses
7124         systems.
7125         (wait_reading_process_output) [!subprocesses]: Convert arg list to
7126         ANSI C.
7128 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
7130         * editfns.c (transpose_markers): Convert old-style definition.
7131         * emacs.c (abort, shut_down_emacs, fixup_locale)
7132         (synchronize_system_time_locale)
7133         (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7134         * floatfns.c (extract_float, matherr, init_floatfns)
7135         (syms_of_floatfns): Likewise.
7136         * fns.c (make_hash_table): Likewise.
7137         * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7138         (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7139         (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7140         (ftfont_variation_glyphs): Likewise.
7141         * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7142         * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7143         * lread.c (read_filtered_event): Likewise.
7144         * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7145         * process.c (wait_reading_process_output): Likewise.
7146         * scroll.c (do_line_insertion_deletion_costs): Likewise.
7147         * search.c (search_buffer, boyer_moore): Likewise.
7148         * syntax.c (scan_sexps_forward): Likewise.
7149         * xdisp.c (try_scrolling): Likewise.
7150         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7151         (face_at_string_position): Likewise.
7152         * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7153         * xselect.c (x_get_window_property, receive_incremental_selection)
7154         (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7155         Likewise.
7156         * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7158 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
7160         * callproc.c (child_setup): Remove subprocesses conditional.
7161         Remove code dealing with SET_EMACS_PRIORITY, unused.
7163         * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7164         * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7166         * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7167         (__do_global_dtors, __main): Use void in definition.
7168         (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7169         Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
7170         the only users from ...
7171         * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7172         * s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
7173         (HAVE_VOLATILE): Remove, unused.
7175         Convert more function definitions to standard C.
7176         * xdisp.c (window_box_edges, handle_single_display_spec)
7177         (display_string): Convert definition to standard C.
7178         * scroll.c (do_direct_scrolling, scrolling_1):
7179         * dispnew.c (allocate_matrices_for_frame_redisplay)
7180         (mirrored_line_dance):
7181         * coding.c (code_convert_string):
7182         * charset.c (map_charset_chars):
7183         * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7184         (Fregister_ccl_program, Fregister_code_conversion_map):
7185         * keyboard.c (kbd_buffer_nr_stored): Likewise.
7186         (head_table): Make static and const.
7188 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
7190         * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7191         (PROFILING_LDFLAGS): Set from substitution.
7192         (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7193         CFLAGS last.
7195 2010-07-12  Kenichi Handa  <handa@m17n.org>
7197         * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7198         (shortlisp): Likewise.
7200         * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7202         * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7203         of FONT_ENTITY_INDEX.
7204         (Ffont_get): If KEY is :otf and the font-object doesn't have the
7205         property, get the property value dynamically.
7206         (Ffont_put): Accept font-entity and font-object too.
7207         (Ffont_get_glyhphs): Rename from Fget_font_glyphs.  Arguments and
7208         return value changed.
7209         (syms_of_font): Adjust for the above change.
7211 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
7213         * blockinput.h: Remove obsolete comment.
7215         * lisp.h: Include <stddef.h>.
7216         (OFFSETOF): Don't define.
7217         (VECSIZE): Use offsetof instead of OFFSETOF.
7218         (PSEUDOVECSIZE): Likewise.
7219         * process.c (conv_sockaddr_to_lisp): Likewise.
7220         * alloc.c: Don't include <stddef.h>.
7221         * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7223         * process.c: Remove obsolete comment.
7225 2010-07-11  Chong Yidong  <cyd@stupidchicken.com>
7227         * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7229 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
7231         * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7232         index, rindex.
7233         * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7234         * editfns.c (Fuser_full_name, Fformat): Likewise.
7235         * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7236         * fileio.c (Ffile_symlink_p): Likewise.
7237         * filelock.c (current_lock_owner): Likewise.
7238         * font.c (font_parse_name, font_parse_family_registry): Likewise.
7239         * fontset.c (fontset_pattern_regexp): Likewise.
7240         * lread.c (read1): Likewise.
7241         * sysdep.c (init_system_name): Likewise.
7242         * xfns.c (select_visual): Likewise.
7243         * s/hpux10-20.h (index, rindex): Don't define.
7244         * s/ms-w32.h (index): Likewise.
7245         * s/usg5-4.h: Likewise.
7247         * callproc.c (relocate_fd): Use F_DUPFD if defined.
7249         * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7250         * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7251         (egetenv): Likewise.
7252         * doprnt.c (doprnt): Likewise.
7253         * editfns.c (set_time_zone_rule, format2): Likewise.
7254         * emacs.c (decode_env_path): Likewise.
7255         * eval.c (signal_error, error): Likewise.
7256         * insdel.c (replace_range_2): Likewise.
7257         * keyboard.c (cmd_error_internal): Likewise.
7258         * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7259         * print.c (write_string, write_string_1, print_error_message):
7260         Likewise.
7261         * vm-limit.c (warn_function, memory_warnings): Likewise.
7262         * xdisp.c (message1, message1_nolog, message_with_string)
7263         (vmessage, message, message_nolog): Likewise.
7264         * emacs.c: Remove duplicate declaration.
7265         * keyboard.h: Likewise.
7266         * lisp.h: Update prototypes.
7268         * eval.c: Fix indentation problem.
7270         * keyboard.c: Include "process.h".
7272         * eval.c: Remove obsolete noinline declaration.
7273         * fns.c: Likewise.
7275 2010-07-11  Ken Raeburn  <raeburn@raeburn.org>
7277         * doprnt.c (doprnt): Take a va_list argument instead of count and
7278         pointer.
7279         * eval.c (error): Change to a standard-C variadic function.
7280         * xdisp.c (vmessage): Rename from message, made static, and
7281         changed to take a va_list argument.
7282         (message): New variadic wrapper.
7283         (message_nolog): Now a variadic function, calling vmessage.
7284         * lisp.h: Include stdarg.h for va_list.
7285         (doprnt, error, message, message_nolog): Decls updated.
7287 2010-07-11  Eli Zaretskii  <eliz@gnu.org>
7289         * process.c (syms_of_process) <delete-exited-processes>: Define
7290         even if !subprocesses.
7291         (delete_exited_processes): Ditto.
7293         * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7294         (delete_exited_processes): Don't define.
7296 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
7298         * frame.c (make_frame): Initialize menu_bar_lines and
7299         tool_bar_lines members.
7300         (make_initial_frame, make_terminal_frame):
7301         Initialize menu_bar_lines using value of menu-bar-mode.
7303         * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7305 2010-07-10  Eli Zaretskii  <eliz@gnu.org>
7307         * process.c: Reshuffle #include's.  Condition some of the global
7308         and static variables on `subprocesses'.
7309         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7310         Leave only one implementation.
7311         (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7312         (kill_buffer_processes, Flist_system_processes)
7313         (Fprocess_attributes, init_process, syms_of_process): Unify the
7314         implementations for with subprocesses and without them.
7316 2010-07-09  Jan Djärv  <jan.h.d@swipnet.se>
7318         * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7319         correct size for Motif.
7320         (free_frame_menubar): Call x_set_window_size to update frame size.
7322         * xfns.c (x_window): Set borderWidth to 0 for pane and
7323         EmacsFrame.  Frame size calculation is wrong otherwise.
7325 2010-07-09  Michael Albinus  <michael.albinus@gmx.de>
7327         * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7328         allows to suppress errors when polling in Emacs' main loop.
7329         (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7330         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7331         (Fdbus_method_error_internal, Fdbus_send_signal)
7332         (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7333         (Fdbus_register_method): Use it.  (Bug#6579)
7335 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
7337         * alloc.c: Convert DEFUNs to standard C.
7338         * buffer.c:
7339         * bytecode.c:
7340         * callint.c:
7341         * callproc.c:
7342         * casefiddle.c:
7343         * casetab.c:
7344         * category.c:
7345         * character.c:
7346         * charset.c:
7347         * chartab.c:
7348         * cmds.c:
7349         * coding.c:
7350         * composite.c:
7351         * data.c:
7352         * dbusbind.c:
7353         * dired.c:
7354         * dispnew.c:
7355         * doc.c:
7356         * dosfns.c:
7357         * editfns.c:
7358         * emacs.c:
7359         * eval.c:
7360         * fileio.c:
7361         * filelock.c:
7362         * floatfns.c:
7363         * fns.c:
7364         * font.c:
7365         * fontset.c:
7366         * frame.c:
7367         * fringe.c:
7368         * image.c:
7369         * indent.c:
7370         * insdel.c:
7371         * keyboard.c:
7372         * keymap.c:
7373         * lread.c:
7374         * macros.c:
7375         * marker.c:
7376         * menu.c:
7377         * minibuf.c:
7378         * msdos.c:
7379         * nsfns.m:
7380         * nsmenu.m:
7381         * nsselect.m:
7382         * print.c:
7383         * process.c:
7384         * search.c:
7385         * sound.c:
7386         * syntax.c:
7387         * term.c:
7388         * terminal.c:
7389         * textprop.c:
7390         * undo.c:
7391         * w16select.c:
7392         * w32console.c:
7393         * w32fns.c:
7394         * w32font.c:
7395         * w32menu.c:
7396         * w32proc.c:
7397         * w32select.c:
7398         * window.c:
7399         * xdisp.c:
7400         * xfaces.c:
7401         * xfns.c:
7402         * xmenu.c:
7403         * xselect.c:
7404         * xsettings.c:
7405         * xsmfns.c: Likewise.
7407 2010-07-08  Eli Zaretskii  <eliz@gnu.org>
7409         * process.c (kbd_is_on_hold, hold_keyboard_input)
7410         (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7412 2010-07-08  Jan Djärv  <jan.h.d@swipnet.se>
7414         * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7415         (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7416         unless USE_LUCID.
7418 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
7420         * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7421         declaration.
7423         Clean up include guards.
7424         * tparam.c: Remove include guards for config.h, string.h and code
7425         that assumes #ifndef emacs.
7426         * termcap.c:
7427         * unexalpha.c:
7428         * sysdep.c:
7429         * filemode.c:
7430         * filelock.c:
7431         * bidi.c: Likewise.
7433         Remove prefix-args.c
7434         * prefix-args.c: Remove file.
7435         * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7436         * Makefile.in (temacs${EXEEXT}): Remove references to
7437         PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7438         (mostlyclean): Remove reference to prefix-args.
7439         (prefix-args): Remove.
7441         Simplify cstart_of_data, start_of_code and related code.
7442         * mem-limits.h: Remove !emacs and _LIBC conditional code.
7443         (start_of_data): Merge into start_of_data function.
7444         * sysdep.c (start_of_text): Remove.  Move simplified versions of
7445         it in the only users: unexaix.c and unexec.c.
7446         (read_input_waiting): Remove local declaration of quit_char.
7447         (start, etext): Remove declarations.
7448         (start_of_data): Merge with the version in mem-limits.h and move
7449         to vm-limits.c.
7450         * vm-limit.c (start_of_data): Merged and simplified version of the
7451         code formerly in mem-limits.h and sysdep.c.
7452         * unexec.c (start): New declaration, moved from sysdep.c.
7453         (start_of_text): Simplified version of the code formerly in sysdep.c.
7454         * unexaix.c (start_of_text): Simplified version of the code
7455         formerly in sysdep.c.
7456         * m/alpha.h (HAVE_TEXT_START): Remove.
7457         (TEXT_START): Move ...
7458         * unexalpha.c (TEXT_START): ... here.
7459         * s/hpux10-20.h (TEXT_START): Remove.
7460         * s/darwin.h (TEXT_START):
7461         * m/mips.h (TEXT_START):
7462         * m/macppc.h (HAVE_TEXT_START):
7463         * m/m68k.h (TEXT_START):
7464         * m/iris4d.h (TEXT_START):
7465         * m/intel386.h (TEXT_START):
7466         * m/ibmrs6000.h (TEXT_START):
7467         * m/ia64.h (HAVE_TEXT_START):
7468         * s/msdos.h (TEXT_START): Likewise.
7470 2010-07-07  Andreas Schwab  <schwab@linux-m68k.org>
7472         * alloc.c (overrun_check_malloc, overrun_check_realloc)
7473         (overrun_check_free, xstrdup, allocate_string)
7474         (allocate_string_data, compact_small_strings, Fmake_string)
7475         (make_unibyte_string, make_multibyte_string)
7476         (make_string_from_bytes, make_specified_string, make_float)
7477         (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7478         (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7479         memcpy, memmove, memset, memcmp.
7480         * atimer.c (start_atimer, set_alarm): Likewise.
7481         * buffer.c (clone_per_buffer_values, report_overlay_modification)
7482         (mmap_realloc, init_buffer_once): Likewise.
7483         * callint.c (Fcall_interactively): Likewise.
7484         * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7485         (getenv_internal_1): Likewise.
7486         * casefiddle.c (casify_object): Likewise.
7487         * ccl.c (ccl_driver): Likewise.
7488         * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7489         * charset.c (load_charset_map_from_file)
7490         (load_charset_map_from_file, load_charset_map_from_vector)
7491         (Fdefine_charset_internal): Likewise.
7492         * cm.c (Wcm_clear): Likewise.
7493         * coding.c (decode_eol, decode_coding_object)
7494         (Fset_coding_system_priority, make_subsidiaries): Likewise.
7495         * data.c (Faset): Likewise.
7496         * dired.c (directory_files_internal, file_name_completion_stat):
7497         Likewise.
7498         * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7499         (clear_glyph_row, copy_row_except_pointers)
7500         (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7501         (save_current_matrix, restore_current_matrix)
7502         (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7503         (mirror_line_dance, scrolling_window): Likewise.
7504         * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7505         Likewise.
7506         * doprnt.c (doprnt): Likewise.
7507         * editfns.c (Fuser_full_name, make_buffer_string_both)
7508         (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7509         * emacs.c (sort_args): Likewise.
7510         * eval.c (Fapply, Ffuncall): Likewise.
7511         * fileio.c (Ffile_name_directory, make_temp_name)
7512         (Fexpand_file_name, search_embedded_absfilename)
7513         (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7514         (auto_save_error): Likewise.
7515         * fns.c (Fstring_equal, Fcopy_sequence, concat)
7516         (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7517         (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7518         (Fmake_hash_table): Likewise.
7519         * fringe.c (Fdefine_fringe_bitmap): Likewise.
7520         * ftfont.c (ftfont_text_extents): Likewise.
7521         * getloadavg.c (getloadavg): Likewise.
7522         * image.c (define_image_type, make_image, make_image_cache)
7523         (x_create_x_image_and_pixmap, xbm_image_p)
7524         (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7525         (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7526         (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7527         (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7528         (tiff_image_p, tiff_read_from_memory, gif_image_p)
7529         (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7530         Likewise.
7531         * indent.c (scan_for_column, compute_motion): Likewise.
7532         * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7533         (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7534         * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7535         * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7536         (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7537         (store_user_signal_events, menu_bar_items, tool_bar_items)
7538         (process_tool_bar_item, append_tool_bar_item)
7539         (read_char_minibuf_menu_prompt, read_key_sequence)
7540         (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7541         Likewise.
7542         * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7543         Likewise.
7544         * lisp.h (STRING_COPYIN): Likewise.
7545         * lread.c (Fload, read1, oblookup): Likewise.
7546         * msdos.c (Frecent_doskeys): Likewise.
7547         * nsfns.m (Fx_create_frame): Likewise.
7548         * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7549         Likewise.
7550         * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7551         (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7552         Likewise.
7553         * nsmenu.m (ns_update_menubar): Likewise.
7554         * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7555         * print.c (print_unwind, printchar, strout, print_string)
7556         (print_error_message): Likewise.
7557         * process.c (conv_lisp_to_sockaddr, set_socket_option)
7558         (Fmake_network_process, Fnetwork_interface_list)
7559         (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7560         (init_process): Likewise.
7561         * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7562         * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7563         Likewise.
7564         * scroll.c (do_scrolling, do_direct_scrolling)
7565         (scrolling_max_lines_saved): Likewise.
7566         * search.c (search_buffer, wordify, Freplace_match): Likewise.
7567         * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7568         * syntax.c (skip_chars, skip_syntaxes): Likewise.
7569         * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7570         (emacs_set_tty): Likewise.
7571         * term.c (encode_terminal_code, calculate_costs)
7572         (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7573         Likewise.
7574         * termcap.c (tgetst1, gobble_line): Likewise.
7575         * termhooks.h (EVENT_INIT): Likewise.
7576         * tparam.c (tparam1): Likewise.
7577         * unexalpha.c (unexec): Likewise.
7578         * unexec.c (write_segment): Likewise.
7579         * unexmacosx.c (unexec_write_zero): Likewise.
7580         * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7581         (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7582         * w32font.c (w32font_list_family, w32font_text_extents)
7583         (w32font_list_internal, w32font_match_internal)
7584         (w32font_open_internal, compute_metrics, Fx_select_font):
7585         Likewise.
7586         * w32menu.c (set_frame_menubar, add_menu_item)
7587         (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7588         * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7589         * w32uniscribe.c (uniscribe_list_family): Likewise.
7590         * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7591         * window.c (make_window, replace_window, set_window_buffer)
7592         (Fsplit_window): Likewise.
7593         * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7594         (add_to_log, message3, x_consider_frame_title)
7595         (append_space_for_newline, extend_face_to_end_of_line)
7596         (decode_mode_spec_coding, init_glyph_string): Likewise.
7597         * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7598         (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7599         (face_attr_equal_p, make_realized_face, make_face_cache)
7600         (free_realized_faces, lookup_named_face, smaller_face)
7601         (face_with_height, lookup_derived_face)
7602         (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7603         (Finternal_set_font_selection_order, realize_default_face)
7604         (compute_char_face, face_at_buffer_position)
7605         (face_for_overlay_string, face_at_string_position, merge_faces):
7606         Likewise.
7607         * xfns.c (xic_create_fontsetname, Fx_create_frame)
7608         (Fx_window_property, x_create_tip_frame)
7609         (Fx_backspace_delete_keys_p): Likewise.
7610         * xfont.c (xfont_list, xfont_match, xfont_list_family)
7611         (xfont_text_extents): Likewise.
7612         * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7613         * xrdb.c (magic_file_p, x_get_resource): Likewise.
7614         * xselect.c (x_queue_event, x_get_window_property)
7615         (receive_incremental_selection): Likewise.
7616         * xsmfns.c (x_session_check_input): Likewise.
7617         * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7618         (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7619         Likewise.
7620         * character.h (BCOPY_SHORT): Removed.
7621         * config.in: Regenerate.
7622         * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7623         * emacs.c (main) [PROFILING]: Don't declare
7624         dump_opcode_frequencies.
7625         * lisp.h (safe_bcopy): Remove declaration.
7626         (memset) [!HAVE_MEMSET]: Declare.
7627         (memcpy) [!HAVE_MEMCPY]: Likewise.
7628         (memmove) [!HAVE_MEMMOVE]: Likewise.
7629         (memcmp) [!HAVE_MEMCMP]: Likewise.
7630         * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7631         (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7632         Don't define.
7633         (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7634         * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7635         (BCOPY_DOWNWARD_SAFE): Don't define.
7636         * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7637         (memcpy) [!HAVE_MEMCPY]: Define.
7638         (memmove) [!HAVE_MEMMOVE]: Define.
7639         (memcmp) [!HAVE_MEMCMP]: Define.
7641 2010-07-07  Jan Djärv  <jan.h.d@swipnet.se>
7643         * process.c (kbd_is_on_hold): New variable.
7644         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7645         New functions.
7646         (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7647         select on empty input mask.
7648         (init_process): Initialize kbd_is_on_hold to 0.
7650         * process.h (hold_keyboard_input, unhold_keyboard_input)
7651         (kbd_on_hold_p): Declare.
7653         * keyboard.c (input_available_signal): Declare.
7654         (kbd_buffer_nr_stored): New function.
7655         (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7656         more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7657         (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7658         returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7659         (tty_read_avail_input): If input is on hold, return.
7660         Don't read more that free slots in kbd_buffer (Bug#6571).
7662 2010-07-07  Eli Zaretskii  <eliz@gnu.org>
7664         * msdos.h:
7665         * msdos.c:
7666         * dosfns.c:
7667         * w16select.c: Convert function definitions to ANSI C.
7669         * msdos.h (ctrl_break_func, install_ctrl_break_check):
7670         Remove unused prototypes.
7672 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
7674         * coding.c, sysdep.c: Convert some more functions to standard C.
7676 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
7678         * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7679         (encode_coding_object): Use SPECPDL_INDEX.
7680         (syms_of_coding): Use DOS_NT.
7682 2010-07-07  Dan Nicolaescu  <dann@ics.uci.edu>
7684         * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7686         Make the function member of Lisp_Subr use standard C prototypes.
7687         * lisp.h (struct Lisp_Subr): Use a union for the function member.
7688         (DECL_ALIGN): Add a cast for the function.
7689         * eval.c (Feval, Ffuncall): Use the proper type for each type
7690         function call.
7692 2010-07-06  Chong Yidong  <cyd@stupidchicken.com>
7694         * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7695         fringe face id, so face-remapping-alist works (Bug#6091).
7697 2010-07-06  Juanma Barranquero  <lekktu@gmail.com>
7699         * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7700         * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7701         * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7703 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
7705         * xterm.c (x_get_keysym_name): Change type of parameter to int.
7706         * lisp.h: Declare x_get_keysym_name.
7707         * keyboard.c (modify_event_symbol): Don't declare
7708         x_get_keysym_name here.
7710 2010-07-06  Dan Nicolaescu  <dann@ics.uci.edu>
7712         * ecrt0.c: Revert conversion to standard C.
7714 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
7716         * vm-limit.c (memory_warnings):
7717         * keyboard.c (modify_event_symbol):
7718         * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7719         (round2, emacs_rint):
7720         * process.c (send_process, old_sigpipe): Convert function
7721         definitions and declarations to standard C.
7723 2010-07-05  Juanma Barranquero  <lekktu@gmail.com>
7725         * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7726         * xdisp.c: Convert function definitions to standard C.
7728         * cm.c (cmputc): Arg C is now int, not char.
7729         * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7731 2010-07-05  James Cloos  <cloos@jhcloos.com>
7733         * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7735         * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7736         _NET_WM_ICON_NAME atoms.
7738         * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7739         and _NET_WM_ICON_NAME properties, too, matching what is
7740         done in the Gtk+ case.
7742 2010-07-05  Jan Djärv  <jan.h.d@swipnet.se>
7744         * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7746         * xsmfns.c (SSDATA): New macro.
7747         (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7748         passed to strlen/strcpy/strcat.
7749         (create_client_leader_window): Surround with #ifndef USE_GTK.
7750         Cast 7:th arg to XChangeProperty to (unsigned char *).
7752         * xsettings.c (something_changedCB, parse_settings)
7753         (apply_xft_settings): Reformat prototype.
7754         (something_changedCB, init_gconf): Remove unused variable i.
7755         (read_settings): Remove unused variable long_len.
7757         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7758         (xg_get_image_for_pixmap, create_dialog)
7759         (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7760         (menuitem_highlight_callback, make_menu_item)
7761         (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7762         (xg_create_scroll_bar, xg_update_scrollbar_pos)
7763         (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7764         (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7765         (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7766         (xg_tool_bar_item_expose_callback): Reformat prototype.
7767         (xg_update_menubar): GList *group => GSList *group.
7768         (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7769         before use.
7770         (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7771         to GTK_IMAGE (wimage).
7773 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
7775         * atimer.c: Use "" instead of <> for local includes for
7776         consistency with the rest of the code.
7778         * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7779         * xrdb.c (get_system_name):
7780         * window.c (shrink_windows):
7781         * syntax.c (forw_comment):
7782         * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7783         (ins_del_costs):
7784         * mem-limits.h (start_of_data):
7785         * lread.c (readevalloop):
7786         * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7787         (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7788         * frame.c (x_get_focus_frame):
7789         * floatfns.c (fmod_float):
7790         * fileio.c (choose_write_coding_system):
7791         * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7792         (malloc_initialize_hook, sort_args, synchronize_locale):
7793         * doprnt.c (doprnt):
7794         * dired.c (compile_pattern):
7795         * data.c (fmod_float):
7796         * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7797         (map_char_table_for_charset):
7798         * charset.c (define_charset_internal):
7799         * alloc.c (Fgarbage_collect): Convert declarations or definitions
7800         to standard C.
7802 2010-07-04  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
7803             Stefan Monnier  <monnier@iro.umontreal.ca>
7805         * lread.c (read1): Fix up last change to not mess up `c'.
7807 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
7809         * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7811 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
7813         Fix prototypes.
7815         * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
7816         * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7817         * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7818         arg, as required by internal_condition_case_1.
7819         * print.c (strout): Use const char* for arg PTR.
7820         * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7821         (analyse_first): Fix "const const".
7822         * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
7823         * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
7824         * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
7826 2010-07-04  Dan Nicolaescu  <dann@ics.uci.edu>
7828         * alloc.c: Convert function definitions to standard C.
7829         * atimer.c:
7830         * bidi.c:
7831         * bytecode.c:
7832         * callint.c:
7833         * callproc.c:
7834         * casefiddle.c:
7835         * casetab.c:
7836         * category.c:
7837         * ccl.c:
7838         * character.c:
7839         * charset.c:
7840         * chartab.c:
7841         * cmds.c:
7842         * coding.c:
7843         * composite.c:
7844         * data.c:
7845         * dbusbind.c:
7846         * dired.c:
7847         * dispnew.c:
7848         * doc.c:
7849         * doprnt.c:
7850         * ecrt0.c:
7851         * editfns.c:
7852         * fileio.c:
7853         * filelock.c:
7854         * filemode.c:
7855         * fns.c:
7856         * font.c:
7857         * fontset.c:
7858         * frame.c:
7859         * fringe.c:
7860         * ftfont.c:
7861         * ftxfont.c:
7862         * gtkutil.c:
7863         * indent.c:
7864         * insdel.c:
7865         * intervals.c:
7866         * keymap.c:
7867         * lread.c:
7868         * macros.c:
7869         * marker.c:
7870         * md5.c:
7871         * menu.c:
7872         * minibuf.c:
7873         * prefix-args.c:
7874         * print.c:
7875         * ralloc.c:
7876         * regex.c:
7877         * region-cache.c:
7878         * scroll.c:
7879         * search.c:
7880         * sound.c:
7881         * strftime.c:
7882         * syntax.c:
7883         * sysdep.c:
7884         * termcap.c:
7885         * terminal.c:
7886         * terminfo.c:
7887         * textprop.c:
7888         * tparam.c:
7889         * undo.c:
7890         * unexelf.c:
7891         * window.c:
7892         * xfaces.c:
7893         * xfns.c:
7894         * xfont.c:
7895         * xftfont.c:
7896         * xgselect.c:
7897         * xmenu.c:
7898         * xrdb.c:
7899         * xselect.c:
7900         * xsettings.c:
7901         * xsmfns.c:
7902         * xterm.c: Likewise.
7904 2010-07-03  Eli Zaretskii  <eliz@gnu.org>
7906         * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7907         frames other than the initial one.  Fix reversal of colors when
7908         `reverse' is specified in the frame parameters.
7909         Call update_face_from_frame_parameter instead of
7910         internal-set-lisp-face-attribute.  Initialize screen colors from
7911         initial_screen_colors[] when f->default_face_done_p is zero,
7912         instead of depending on being called with default-frame-alist as
7913         the alist argument.
7915         * xfaces.c (update_face_from_frame_parameter): Move out of
7916         HAVE_WINDOW_SYSTEM portion.  Condition window-system only parts
7917         with HAVE_WINDOW_SYSTEM.
7919         * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7920         to menu-bar-mode, if not set in the frame parameters or in
7921         default-frame-alist.
7923         * w32console.c (sys_tputs): Adjust argument list to prototype in
7924         term.c.
7926 2010-07-03  Juanma Barranquero  <lekktu@gmail.com>
7928         * lisp.h (memory_warnings): Fix prototype.
7930         * cm.h (evalcost): Fix prototype.
7932         * cm.c (evalcost): Fix arg type.
7934 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
7936         * term.c (term_clear_mouse_face, Fidentity):
7937         * syssignal.h (signal_handler_t):
7938         * lisp.h (memory_warnings):
7939         * coding.h (preferred_coding_system):
7940         * cm.h (evalcost):
7941         * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7943 2010-07-02  Eli Zaretskii  <eliz@gnu.org>
7945         * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7946         from prototypes.
7948         * msdos.h (load_pixmap): Don't define away.
7950 2010-07-02  Jan Djärv  <jan.h.d@swipnet.se>
7952         * lisp.h:
7953         * atimer.h: Remove define for P_.
7955         * alloc.c: Remove __P and P_ from .c and .m files.
7956         * atimer.c:
7957         * buffer.c:
7958         * callint.c:
7959         * category.c:
7960         * charset.c:
7961         * chartab.c:
7962         * cm.c:
7963         * coding.c:
7964         * composite.c:
7965         * data.c:
7966         * dired.c:
7967         * dispnew.c:
7968         * doc.c:
7969         * editfns.c:
7970         * emacs.c:
7971         * eval.c:
7972         * fileio.c:
7973         * filelock.c:
7974         * fns.c:
7975         * font.c:
7976         * fontset.c:
7977         * frame.c:
7978         * ftfont.c:
7979         * ftxfont.c:
7980         * gmalloc.c:
7981         * gtkutil.c:
7982         * image.c:
7983         * indent.c:
7984         * intervals.c:
7985         * keyboard.c:
7986         * keymap.c:
7987         * lread.c:
7988         * marker.c:
7989         * menu.c:
7990         * minibuf.c:
7991         * print.c:
7992         * process.c:
7993         * scroll.c:
7994         * search.c:
7995         * sound.c:
7996         * strftime.c:
7997         * syntax.c:
7998         * sysdep.c:
7999         * term.c:
8000         * terminal.c:
8001         * textprop.c:
8002         * unexalpha.c:
8003         * w32console.c:
8004         * w32fns.c:
8005         * w32font.c:
8006         * w32menu.c:
8007         * w32term.c:
8008         * w32uniscribe.c:
8009         * window.c:
8010         * xdisp.c:
8011         * xfaces.c:
8012         * xfns.c:
8013         * xfont.c:
8014         * xftfont.c:
8015         * xmenu.c:
8016         * xselect.c:
8017         * xterm.c: Likewise.
8019         Remove P_ and __P macros.
8020         * atimer.h: Remove P_ and __P macros.
8021         * buffer.h:
8022         * category.h:
8023         * ccl.h:
8024         * character.h:
8025         * charset.h:
8026         * cm.h:
8027         * coding.h:
8028         * composite.h:
8029         * dispextern.h:
8030         * disptab.h:
8031         * dosfns.h:
8032         * font.h:
8033         * fontset.h:
8034         * frame.h:
8035         * gtkutil.h:
8036         * indent.h:
8037         * intervals.h:
8038         * keyboard.h:
8039         * keymap.h:
8040         * lisp.h:
8041         * macros.h:
8042         * md5.h:
8043         * menu.h:
8044         * msdos.h:
8045         * nsterm.h:
8046         * puresize.h:
8047         * region-cache.h:
8048         * syntax.h:
8049         * syssignal.h:
8050         * systime.h:
8051         * termhooks.h:
8052         * w32font.h:
8053         * w32term.h:
8054         * widget.h:
8055         * window.h:
8056         * xgselect.h:
8057         * xsettings.h:
8058         * xterm.h: Likewise.
8060 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
8062         * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8064         Cleanup old code.
8065         * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8066         * syssignal.h: Remove code for Lynx, not supported anymore.
8067         * vm-limit.c: Remove unused code the depends on emacs not being
8068         defined and NO_LIM_DATA being defined.
8069         * mem-limits.h: Remove dead code.
8071 2010-07-01  Jan Djärv  <jan.h.d@swipnet.se>
8073         * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8075         * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8076         (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8078         * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8079         parameters, they are already absolute.
8081         * nsterm.m (x_set_window_size, initFrameFromEmacs):
8082         Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8084         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8086         * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8087         Update FRAME_TOOLBAR_HEIGHT.
8089         * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8090         Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8092 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
8094         * frame.c (get_future_frame_param, Fmake_terminal_frame):
8095         Don't check default-frame-alist.
8097 2010-06-30  Andreas Schwab  <schwab@linux-m68k.org>
8099         * process.c (create_process): Avoid using invalid file descriptors.
8101         * callproc.c (child_setup): Avoid closing a file descriptor twice.
8103 2010-06-30  Jan Djärv  <jan.h.d@swipnet.se>
8105         * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8106         Improve documentation.  Return font regardless of use_system_font.
8107         (syms_of_xsettings): Improve documentation for font-use-system-font.
8109 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
8111         * xfaces.c (realize_face): Garbage the frame if a face is removed
8112         (Bug#6593).
8114 2010-07-05  Andreas Schwab  <schwab@linux-m68k.org>
8116         * keyboard.c: Remove duplicate <setjmp.h>.
8117         (read_key_sequence): Remove volatile qualifiers.
8119 2010-07-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8121         * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8122         (struct glyph_row): New members left_fringe_offset and
8123         right_fringe_offset.
8125         * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8126         specially.
8127         * w32term.c (w32_draw_fringe_bitmap): Likewise.
8128         * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8130         * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8131         Take account of bitmap offset.
8132         (draw_window_fringes): Take account of window vscroll.
8133         (update_window_fringes): Likewise.  Extend top-aligned top indicator
8134         or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8135         in one row.  Don't set redraw_fringe_bitmaps_p outside row comparison.
8136         Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8138 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
8140         * w32fns.c (Qtooltip): Declare.
8141         Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8143 2010-07-03  Jan Djärv  <jan.h.d@swipnet.se>
8145         * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8146         grab on just Press (Bug#6499).
8148 2010-07-02  Chong Yidong  <cyd@stupidchicken.com>
8150         * frame.c (Qtooltip): New var.
8151         (delete_frame): Use it.  Fix faulty if statement.  Don't update
8152         mode line for tooltip frames.  Suggested by Martin Rudalics.
8154         * xfns.c (x_create_tip_frame):
8155         * w32fns.c (x_create_tip_frame): Use it.
8157 2010-06-17  Naohiro Aota  <naota@elisp.net>  (tiny change)
8159         * xftfont.c (xftfont_open): Check font width one by one also when
8160         spacing is dual.
8162         * ftfont.c (ftfont_open): Ditto.
8164 2010-06-30  Glenn Morris  <rgm@gnu.org>
8166         * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8168         * Makefile.in (CANNOT_DUMP): Update for configure name change.
8170         * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8171         * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8172         * s/darwin.h (SYSTEM_MALLOC):
8173         * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8175 2010-06-29  Jan Djärv  <jan.h.d@swipnet.se>
8177         * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8178         (ns_get_screen): Don't assign integer to f.
8179         (Fx_display_color_cells): Declarations before statements.
8181 2010-06-28  Jan Djärv  <jan.h.d@swipnet.se>
8183         * xfns.c (x_default_font_parameter): Remove got_from_system
8184         (Bug#6526).
8186         * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8187         (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8188         New defines based on what configure finds.
8190         * xterm.c (XTflash): Use gtk_widget_get_window.
8191         (xg_scroll_callback): Use gtk_adjustment_get_upper and
8192         gtk_adjustment_get_page_size.
8193         (handle_one_xevent): Use gtk_widget_get_mapped.
8194         (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8195         messages.
8197         * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8199         * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8200         HAVE_GTK_FILE_SELECTION_NEW.
8202         * gtkutil.c (xg_display_open, xg_display_close):
8203         Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8204         (xg_display_open): Return type is void.
8205         (gtk_widget_set_has_window)
8206         (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8207         (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8208         (gtk_adjustment_set_page_increment)
8209         (gtk_adjustment_get_step_increment): #define these if not found
8210         by configure.
8211         (remove_submenu): New define based on Gtk+ version.
8212         (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8213         Use gtk_widget_get_window.
8214         (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8215         (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8216         (create_dialog): Use gtk_dialog_get_action_area and
8217         gtk_dialog_get_content_area.
8218         (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8219         and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
8220         available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8221         (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8222         Use g_object_ref and g_object_unref.
8223         (xg_update_menu_item, xg_tool_bar_menu_proxy):
8224         Use gtk_widget_get_sensitive.
8225         (xg_update_submenu): Use remove_submenu.
8226         (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8227         properties instead to get old x and y position.
8228         (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8229         gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8230         gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8231         (xg_get_tool_bar_widgets): New function.
8232         (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8233         (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8234         (toolbar_set_orientation): New #define based on if configure
8235         finds gtk_orientable_set_orientation.
8236         (xg_create_tool_bar): Call toolbar_set_orientation.
8237         (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8238         instead of gtk_box_pack_start_defaults.
8240 2010-06-28  Chong Yidong  <cyd@stupidchicken.com>
8242         * cmds.c (Fdelete_backward_char): Move into Lisp.
8244 2010-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
8246         * s/freebsd.h (BSD4_2): Remove redundant definition.
8247         bsd-common.h defines it already.
8249 2010-06-27  Chong Yidong  <cyd@stupidchicken.com>
8251         * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8252         menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
8253         tool-bar-mode, which are now set using these X resources at
8254         startup, to determine the defaults (Bug#2249).
8256         * w32fns.c (Fx_create_frame):
8257         * nsfns.m (Fx_create_frame): Likewise.
8259         * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8261 2010-06-24  Juanma Barranquero  <lekktu@gmail.com>
8263         * gtkutil.c (xg_update_scrollbar_pos):
8264         Avoid C99 mid-block variable declaration.
8266 2010-06-22  Jan Djärv  <jan.h.d@swipnet.se>
8268         * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8270         * gtkutil.h (xg_show_scroll_bar): Remove.
8272         * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8273         if height is less than scroll bar min size.
8274         (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8276         * xfns.c (x_default_font_parameter): Try to open font from system
8277         before using it (bug#6478).  Rename got_from_gconf to got_from_system.
8279 2010-06-22  Keith Packard  <keithp@keithp.com>  (tiny change)
8281         * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8283 2010-06-20  Eli Zaretskii  <eliz@gnu.org>
8285         * xdisp.c (try_scrolling): When scroll-conservatively is set to
8286         most-positive-fixnum, be extra accurate when scrolling window
8287         start, to avoid missing the cursor line.
8289 2010-06-19  Eli Zaretskii  <eliz@gnu.org>
8291         * xdisp.c (try_scrolling): Compute the limit for searching point
8292         in forward scroll from scroll_max, instead of an arbitrary limit
8293         of 10 screen lines.
8294         See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8295         and
8296         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8297         for details.
8299 2010-06-16  Glenn Morris  <rgm@gnu.org>
8301         * editfns.c (Fbyte_to_string): Pacify compiler.
8303 2010-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8305         * lread.c (read1): Phase out old-style backquotes a bit more.
8307 2010-06-12  Eli Zaretskii  <eliz@gnu.org>
8309         * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8310         bidimirror.h.
8312         * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8314         * bidi.c (bidi_initialize): Remove explicit initialization of
8315         bidi_type_table; include biditype.h instead.  Don't support
8316         entries whose second codepoint is zero.  Initialize bidi_mirror_table.
8317         (bidi_mirror_char): Use bidi_mirror_table.
8319         * biditype.h: New file.
8321         * bidimirror.h: New file.
8323         * window.c (syms_of_window): Doc fix (bug#6409).
8325 2010-06-12  Romain Francoise  <romain@orebokech.com>
8327         * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8328         ediff-hook.
8330 2010-06-10  Glenn Morris  <rgm@gnu.org>
8332         * editfns.c (Fbyte_to_string): Pacify compiler.
8334         * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8336 2010-06-26  Andreas Schwab  <schwab@linux-m68k.org>
8338         * alloc.c (Fmake_byte_code): Don't access undefined argument
8339         (Bug#6517).
8341 2010-06-25  Chong Yidong  <cyd@stupidchicken.com>
8343         * xdisp.c (next_element_from_image): Ensure that after-strings are
8344         read the next time we hit handle_stop (Bug#1336).
8346 2010-06-23  Andreas Schwab  <schwab@linux-m68k.org>
8348         * lread.c (read1): Signal error if #s is not followed by paren.
8350 2010-06-19  Chong Yidong  <cyd@stupidchicken.com>
8352         * image.c (free_image): Mark frame as garbaged (Bug#6426).
8354         * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8356 2010-06-15  Glenn Morris  <rgm@gnu.org>
8358         * editfns.c (Fbyte_to_string): Pacify compiler.
8360 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
8362         * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8363         Check `object's type before accessing its guts.
8365 2010-06-09  Dan Nicolaescu  <dann@ics.uci.edu>
8367         * s/usg5-4.h: Fix previous change.
8368         Suggested by Lawrence Mitchell <wence@gmx.li>
8370 2010-06-08  Andreas Schwab  <schwab@linux-m68k.org>
8372         * minibuf.c (Fall_completions): Add more checks.
8374 2010-06-08  Juanma Barranquero  <lekktu@gmail.com>
8376         * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8378 2010-06-08  Dan Nicolaescu  <dann@ics.uci.edu>
8380         * lread.c (X_OK): Remove, unused.
8382         * dispnew.c: Remove obsolete comment.
8384         Remove INCLUDED_FCNTL.
8385         * xterm.c (INCLUDED_FCNTL):
8386         * callproc.c (INCLUDED_FCNTL):
8387         * alloc.c (INCLUDED_FCNTL):
8388         * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8389         (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8391 2010-06-07  Martin Rudalics  <rudalics@gmx.at>
8393         * window.c (Fselect_window): Move `record_buffer' up to the
8394         beginning of this function, so the buffer gets recorded
8395         even if the selected window does not change.
8396         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8398 2010-06-07  Juanma Barranquero  <lekktu@gmail.com>
8400         * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8401         (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8403 2010-06-06  Dan Nicolaescu  <dann@ics.uci.edu>
8405         Remove BSTRING related code, all platforms define it.
8406         * s/usg5-4.h (BSTRING): Remove definition.
8407         * s/template.h (BSTRING):
8408         * s/msdos.h (BSTRING):
8409         * s/ms-w32.h (BSTRING):
8410         * s/hpux10-20.h (BSTRING):
8411         * s/gnu-linux.h (BSTRING):
8412         * s/darwin.h (BSTRING):
8413         * s/cygwin.h (BSTRING):
8414         * s/bsd-common.h (BSTRING):
8415         * s/aix4-2.h (BSTRING): Likewise.
8416         * sysdep.c: Remove code depending on BSTRING not being defined.
8418 2010-06-05  Juanma Barranquero  <lekktu@gmail.com>
8420         Remove obsolete macro BASE_LEADING_CODE_P.
8421         * character.h (BASE_LEADING_CODE_P): Remove.
8422         * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8423         * buffer.c (Fset_buffer_multibyte):
8424         * indent.c (scan_for_column, compute_motion):
8425         * insdel.c (count_combining_before, count_combining_after):
8426         Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8428 2010-06-04  Juanma Barranquero  <lekktu@gmail.com>
8430         Turn `directory-sep-char' into a noop.
8432         * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8433         (DIRECTORY_SEP): Define unconditionally.
8435         * s/ms-w32.h (DIRECTORY_SEP): Remove.
8437         * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8438         call dostounix_filename directly.
8440         * fileio.c (CORRECT_DIR_SEPS): Remove.
8441         (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8442         (Fsubstitute_in_file_name): Use dostounix_filename instead.
8443         (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8444         (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8446         * w32proc.c (CORRECT_DIR_SEPS): Remove.
8447         (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8449 2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
8451         * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8452         (Bug#6346)
8454 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
8456         * ccl.c (Fccl_program_p): Fix typo in docstring.
8458 2010-06-03  Dan Nicolaescu  <dann@ics.uci.edu>
8460         Move UNEXEC definition to autoconf.
8461         * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8462         * s/sol2-10.h (UNEXEC):
8463         * s/irix6-5.h (UNEXEC):
8464         * s/hpux10-20.h (UNEXEC):
8465         * s/gnu-linux.h (UNEXEC):
8466         * s/darwin.h (UNEXEC):
8467         * s/cygwin.h (UNEXEC):
8468         * s/bsd-common.h (UNEXEC):
8469         * s/aix4-2.h (UNEXEC):
8470         * m/alpha.h (UNEXEC): Likewise.
8471         * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8473 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
8475         Remove obsolete pre-unicode2 macros.
8476         * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8477         * composite.c (composition_reseat_it):
8478         * data.c (Faset):
8479         * fns.c (Ffillarray):
8480         * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8481         [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8483 2010-06-03  Juri Linkov  <juri@jurta.org>
8485         * buffer.c (Fother_buffer): Add CHECK_FRAME.
8486         (Fswitch_to_buffer): Remove unused variable `err'.
8488 2010-06-03  Glenn Morris  <rgm@gnu.org>
8490         * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8492         * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8493         now that AH_BOTTOM does it.
8495         * m/hp800.h (HAVE_ALLOCA):
8496         * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8498         * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8499         Remove NOT_C_CODE tests, it is always true now.
8501 2010-06-02  Dan Nicolaescu  <dann@ics.uci.edu>
8503         Fix config.h includes.
8504         * xsettings.c:
8505         * xgselect.c:
8506         * nsterm.m:
8507         * nsselect.m:
8508         * nsimage.m:
8509         * nsfont.m:
8510         * nsfns.m:
8511         * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8512         other files do.
8514         * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8516         * s/sol2-6.h: Remove obsolete comments.
8518         Remove unnecessary alloca.h includes.
8519         * keymap.c: Do not include alloca.h, config.h does that.
8520         * sysdep.c: Likewise.  Do not define fwrite, not used.
8522 2010-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
8524         * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8525         the HAVE_TERMIO where it belongs (bug#6149).
8527 2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
8529         * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8530         of bug#6305).
8532 2010-05-30  Eli Zaretskii  <eliz@gnu.org>
8534         * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8535         state is always cached (bug#6306).
8537 2010-05-29  Eli Zaretskii  <eliz@gnu.org>
8539         Fix cursor motion in bidi-reordered continued lines.
8540         * xdisp.c (try_cursor_movement): Backup to non-continuation line
8541         only after finding point's row.  Fix the logic.  Rewrite the loop
8542         over continuation lines in bidi-reordered buffers.
8543         Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8544         rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8546 2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
8548         * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8550 2010-05-28  Kenichi Handa  <handa@m17n.org>
8552         * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8553         Don't sheck SPEC if it is nil.
8554         (font_list_entities): Call font_delete_unmatched if
8555         Vface_ignored_fonts is non-nil.  (Bug#6287)
8557 2010-05-28  Glenn Morris  <rgm@gnu.org>
8559         * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8561 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
8563         * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8564         whether to trash.
8565         (internal_delete_file, Frename_file): Callers changed.
8566         (delete_by_moving_to_trash): Doc fix.
8567         (Fdelete_directory_internal): Don't move to trash.
8569         * callproc.c (delete_temp_file):
8570         * buffer.c (Fkill_buffer): Callers changed.
8572         * lisp.h: Update prototype.
8574 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
8576         * xdisp.c (redisplay_window): After redisplay, check if point is
8577         still valid before setting it (Bug#6177).
8579 2010-05-27  Glenn Morris  <rgm@gnu.org>
8581         * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8582         Convert comments to Makefile format.
8584         * Makefile.in (bootstrap-clean): No more Makefile.c.
8586 2010-05-26  Glenn Morris  <rgm@gnu.org>
8588         * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8589         (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8591         * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8592         Remove.
8593         (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8595 2010-05-26  Kenichi Handa  <handa@m17n.org>
8597         * composite.c (composition_compute_stop_pos): Fix condition for
8598         backward scanning.
8600 2010-05-25  Glenn Morris  <rgm@gnu.org>
8602         * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8603         Move before TEMACS_LDFLAGS.
8604         (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8605         (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8607         * Makefile.in (NOT_C_CODE): No longer define.
8608         (config.h): No longer include.
8610         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8611         variables it may reference.
8613         * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8614         (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8616 2010-05-25  Kenichi Handa  <handa@m17n.org>
8618         * dispextern.h (struct composition_it): New members rule_idx and
8619         charpos.
8621         * xdisp.c (set_iterator_to_next): While scanning backward, assume
8622         that the character positions of IT point the last character of the
8623         current grapheme cluster.
8624         (next_element_from_composition): Don't change character positions
8625         of IT.
8626         (append_composite_glyph): Set glyph->charpos to
8627         it->cmp_it.charpos.
8629         * composite.c (autocmp_chars): Change the first argument to RULE,
8630         and try composition with RULE only.
8631         (composition_compute_stop_pos): Record the index number of the
8632         composition rule in CMP_IT->rule_idx.
8633         (composition_reseat_it): Call autocmp_chars repeatedly until the
8634         correct rule of the composition is found.
8635         (composition_update_it): Set CMP_IT->charpos.  Assume the CHARPOS
8636         is at the last character of the current grapheme cluster when
8637         CMP_IT->reversed_p is nonzero.
8639 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8641         * editfns.c (Fbyte_to_string): New function.
8643 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8645         * process.c (Fmake_network_process): Set :host to nil if it's not used.
8646         Suggested by Masatake YAMATO <yamato@redhat.com>.
8648 2010-05-23  Eli Zaretskii  <eliz@gnu.org>
8650         * dispextern.h (init_iterator): Sync prototype with changed definition.
8652 2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
8654         * s/netbsd.h: If terminfo is found, use it in preference to
8655         termcap.  (Bug#6190)  [Backport from trunk]
8657 2010-05-19  Eli Zaretskii  <eliz@gnu.org>
8659         Redesign and reimplement bidi-aware edge positions of glyph rows.
8661         * dispextern.h (struct glyph_row): New members minpos and maxpos.
8662         (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8663         (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8664         and maxpos members instead of start.pos and end.pos, respectively.
8666         * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8667         row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8668         (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8669         (try_window_reusing_current_matrix, try_window_id):
8670         Use ROW->minpos rather than ROW->start.pos.
8671         (init_from_display_pos, init_iterator): Use EMACS_INT for
8672         character and byte positions.
8673         (find_row_edges): Rename from find_row_end.  Accept additional
8674         arguments for minimum and maximum buffer positions seen by
8675         display_line for this row.  Don't use iterator to find the
8676         position following the maximum one; instead, increment the
8677         position found by display_line directly.  Fix logic; eol_pos
8678         should be tested before the rest.  Handle the case of characters
8679         delivered from display vector (bug#6036).  Fix tests related to
8680         it->method.  Handle the truncated_on_right_p rows.
8681         (RECORD_MAX_MIN_POS): New macro.
8682         (display_line): Use it to record the minimum and maximum buffer
8683         positions for glyphs in the row being assembled.  Record the
8684         position of the newline that terminates the line.  If word wrap is
8685         in effect, restore minimum and maximum positions seen up to the
8686         wrap point, when iterator returns to it.
8687         (try_window_reusing_current_matrix): Give up if in bidi-reordered
8688         row and cursor not already at point.  Restore original pre-bidi
8689         code for unidirectional buffers.
8691         * dispnew.c (increment_row_positions, check_matrix_invariants):
8692         Increment and check row->start.pos and row->end.pos, in addition
8693         to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8695         * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8696         Display truncated_on_left_p and truncated_on_right_p flags.
8697         Formatting fixes.
8698         (pmtxrows): Display the ordinal number of each row.  Don't display
8699         rows beyond the last one.
8701         * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8702         it is not copied by bidi_copy_it.
8704 2010-05-22  Eli Zaretskii  <eliz@gnu.org>
8706         * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8707         (Bug#6237)
8709 2010-05-22  Chong Yidong  <cyd@stupidchicken.com>
8711         * image.c (Fimage_flush): Rename from image-refresh.
8713 2010-05-21  Chong Yidong  <cyd@stupidchicken.com>
8715         * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8716         just one window.
8718         * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8719         (clear_image_cache): If the number of cached images is unusually
8720         large, decrease the cache eviction delay (Bug#6230).
8722 2010-05-21  Glenn Morris  <rgm@gnu.org>
8724         * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8725         Move these rules to ns.mk.
8726         * ns.mk: New file.
8728         * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8730         * Makefile.in (CANNOT_DUMP): New, set by configure.
8731         (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8733 2010-05-20  Juri Linkov  <juri@jurta.org>
8735         * fileio.c (Fdelete_file): Change interative spec to use
8736         `read-file-name' like in `find-file-read-args' where the default
8737         value is `default-directory' instead of `buffer-file-name'.
8738         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8740 2010-05-20  Kevin Ryde  <user42@zip.com.au>
8742         * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8743         (Voverriding_terminal_local_map, Vsystem_key_alist)
8744         (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8746 2010-05-20  Glenn Morris  <rgm@gnu.org>
8748         * Makefile.in (DEPDIR): New constant.
8749         (DEPFLAGS): Set with configure, not cpp.
8750         (MKDEPDIR): New, set by configure.
8751         (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8752         (clean): Use $DEPDIR.
8753         (deps_frag): Include from configure.
8754         Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8755         * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8757         * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8758         Fix reallocation of the cache.  (Bug#6210)
8760 2010-05-19  Glenn Morris  <rgm@gnu.org>
8762         * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8764         * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8765         (GNULIB_VAR): Remove.
8766         (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8768         * m/ibms390x.h (LINKER):
8769         * m/macppc.h (LINKER) [GNU_LINUX]:
8770         * s/aix4-2.h (ORDINARY_LINK):
8771         * s/cygwin.h (LINKER):
8772         * s/darwin.h (ORDINARY_LINK):
8773         * s/gnu.h (ORDINARY_LINK):
8774         * s/netbsd.h (LINKER):
8775         * s/usg5-4.h (ORDINARY_LINK):
8776         Move to configure.
8778         * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8780 2010-05-18  Chong Yidong  <cyd@stupidchicken.com>
8782         * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8783         prevent stack overflow if number of arguments is too large
8784         (Bug#6214).
8786 2010-05-18  Juanma Barranquero  <lekktu@gmail.com>
8788         * charset.c (load_charset_map_from_file): Don't call close after fclose.
8790 2010-05-18  Glenn Morris  <rgm@gnu.org>
8792         * s/gnu-linux.h: Combine two conditionals.
8794         * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
8795         $(POST_ALLOC_OBJ).
8797         * Makefile.in (RALLOC_OBJ): New, set by configure.
8798         (rallocobj): Replace with the previous variable.
8799         (otherobj): Use $RALLOC_OBJ.
8801         * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8802         * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8804         * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8805         (gmallocobj, vmlimitobj): Replace with previous two variables.
8806         (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8808 2010-05-17  Glenn Morris  <rgm@gnu.org>
8810         * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8811         (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8813 2010-05-16  Glenn Morris  <rgm@gnu.org>
8815         * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8817         * Makefile.in (clean): Get rid of HAVE_NS conditional.
8819         * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8820         trailing "/".
8822         * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8823         (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8825         * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8826         (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8827         (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8828         (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8829         Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8831         * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8832         Remove ${STARTFLAGS}, nothing ever sets it.
8834 2010-05-16  Dan Nicolaescu  <dann@ics.uci.edu>
8836         * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8838 2010-05-16  Glenn Morris  <rgm@gnu.org>
8840         * Makefile.in (LIBX_BASE): Always define.
8842         * Makefile.in (LIBX_OTHER): Move out of cpp section.
8844         * Makefile.in (LIBXT): Always define.
8846 2010-05-15  Glenn Morris  <rgm@gnu.org>
8848         * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
8850         * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8851         (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8853 2010-05-15  Ken Raeburn  <raeburn@raeburn.org>
8855         * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue.  (Bug#5916)
8856         (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8858         * emacs.c (main): Initialize initial-environment and
8859         process-environment before generating from env, not after.
8861         Handle --version reasonably in CANNOT_DUMP configuration.
8862         * emacs.c (emacs_version, emacs_copyright): New string variables.
8863         (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8864         (syms_of_emacs): Defvar them, and initialize them from the C
8865         string variables.
8866         (main): If initialization hasn't been done, print initial version
8867         info from the C strings, instead of starting an interactive session.
8869 2010-05-15  Eli Zaretskii  <eliz@gnu.org>
8871         * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8872         of bidi_it->paragraph_dir.  Call bidi_initialize if needed.
8873         (bidi_paragraph_init): Remove redundant assertion that we are at
8874         the beginning of a line after call to bidi_find_paragraph_start.
8876         * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8877         (syms_of_xdisp): Defsubr it.
8879         * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8881         * Makefile.in: Fix MSDOS-related comments.
8883 2010-05-15  Glenn Morris  <rgm@gnu.org>
8885         * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8886         (really-lwlib, really-oldXMenu): Always define.
8887         ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8889         * Makefile.in: Simplify cpp conditional.
8891         * Makefile.in (${ns_appdir}): Simplify using umask.
8893         * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8895 2010-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
8897         * eval.c (specbind): Remove left-over duplicate test.
8898         Disallow let-binding frame-local vars.  Add comment.
8900 2010-05-14  Eli Zaretskii  <eliz@gnu.org>
8902         Make the cache of bidi iterator states dynamically allocated.
8903         * bidi.c (bidi_cache_shrink): New function.
8904         (bidi_init_it): Call it.
8905         (bidi_cache_iterator_state): Enlarge the cache if needed.
8907         * bidi.c (bidi_move_to_visually_next): Rename from
8908         bidi_get_next_char_visually.  All callers changed.
8910 2010-05-14  Kenichi Handa  <handa@m17n.org>
8912         * dispextern.h (struct composition_it): New member reversed_p.
8914         * composite.c (composition_compute_stop_pos): Search backward if
8915         ENDPOS < CHARPOS.
8916         (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8917         Set CMP_IT->reversed_p.
8918         (composition_update_it): Pay attention to CMP_IT->reversed_p.
8920         * xdisp.c (set_iterator_to_next):
8921         Call composition_compute_stop_pos with negative ENDPOS if we are
8922         scanning backward.  Call composition_compute_stop_pos if scan
8923         direction is changed.
8924         (next_element_from_buffer): Call composition_compute_stop_pos with
8925         negative ENDPOS if we are scanning backward.
8926         (next_element_from_composition): Pay attention to
8927         IT->cmp_it.reversed_p.
8929 2010-05-14  Kenichi Handa  <handa@m17n.org>
8931         * font.c (font_range): Return the range for the font found at first.
8933 2010-05-14  Glenn Morris  <rgm@gnu.org>
8935         * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8937         * Makefile.in (mktime, X11, register): Move undefs to configure.
8939         * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8940         (MSDOS_X_OBJ): New variable.
8941         (MSDOS_SUPPORT_REAL): New constant.
8942         (MSDOS_SUPPORT): Set as a variable, not with cpp.
8943         (obj): Use MSDOS_X_OBJ.
8944         (lisp): Use MSDOS_SUPPORT as a variable.
8946         * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8947         (GPM_MOUSE_SUPPORT): Now it's a constant.
8948         (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8949         not cpp.
8951         * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
8952         (ns_appresdir): Remove, unused.
8954         * Makefile.in (SHELL): Move outside cpp section.
8956         * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8958 2010-05-13  Glenn Morris  <rgm@gnu.org>
8960         * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8961         (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8963         * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8964         HAVE_WINDOW_SYSTEM must be too.
8966         * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8967         (lisp): Remove WINNT_SUPPORT.
8969         * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8970         Let configure set these variables (to empty) in this case as well.
8972         * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8973         (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8975         * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8976         (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8977         (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8978         (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8979         (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
8980         the values output by configure.
8981         (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8983 2010-05-12  Glenn Morris  <rgm@gnu.org>
8985         * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8986         (LINKER_WAS_SPECIFIED): Remove.
8988         * Makefile.in (LIB_GCC): Set using configure, not cpp.
8989         (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8990         * m/arm.h (LIB_GCC) [GNU_LINUX]:
8991         * s/cygwin.h (LIB_GCC):
8992         * s/freebsd.h (LIB_GCC):
8993         * s/gnu-linux.h (LIB_GCC):
8994         * s/msdos.h (LIB_GCC):
8995         * s/netbsd.h (LIB_GCC):
8996         Move to configure.
8998 2010-05-11  Karel Klíč  <kklic@redhat.com>
9000         * ftfont.c: Fix incorrect parentheses of #if condition for
9001         definining M17N_FLT_USE_NEW_FEATURE.
9003 2010-05-11  Glenn Morris  <rgm@gnu.org>
9005         * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9006         * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9008 2010-05-10  Eli Zaretskii  <eliz@gnu.org>
9010         * xdisp.c (init_iterator): Don't turn on bidi reordering in
9011         unibyte buffers.  See
9012         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9014 2010-05-10  Glenn Morris  <rgm@gnu.org>
9016         * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9017         (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9018         (LIBES): Use LIBS_SYSTEM as a variable.
9019         * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM.  Always define.
9020         * s/aix4-2.h (LIBS_SYSTEM):
9021         * s/freebsd.h (LIBS_SYSTEM):
9022         * s/hpux10-20.h (LIBS_SYSTEM):
9023         * s/sol2-6.h (LIBS_SYSTEM):
9024         * s/unixware.h (LIBS_SYSTEM):
9025         Move to configure.
9027         * s/aix4-2.h (MAIL_USE_LOCKF):
9028         * s/bsd-common.h (MAIL_USE_FLOCK):
9029         * s/darwin.h (MAIL_USE_FLOCK):
9030         * s/gnu-linux.h (MAIL_USE_FLOCK):
9031         * s/irix6-5.h (MAIL_USE_FLOCK):
9032         * s/template.h (MAIL_USE_FLOCK):
9033         Move to configure.
9035 2010-05-08  Chong Yidong  <cyd@stupidchicken.com>
9037         * Version 23.2 released.
9039 2010-05-08  Andreas Schwab  <schwab@linux-m68k.org>
9041         * composite.c (autocmp_chars): Save point as marker before calling
9042         auto-composition-function (Bug#5984).
9044         * lisp.h (restore_point_unwind): Add prototype.
9046         * fileio.c (restore_point_unwind): Remove static attribute.
9048 2010-05-08  Kenichi Handa  <handa@m17n.org>
9050         * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9051         new feature of libotf and m17n-flt.
9052         (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9053         Call OTF_check_features even if no specific feature is given.
9054         (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9055         (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9056         that OUT is NULL.  Use OTF_drive_gsub_with_log and
9057         OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9058         OTF_drive_gpos.
9059         (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9060         (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9061         Setup mflt_enable_new_feature and mflt_try_otf.
9063 2010-05-08  Jan Djärv  <jan.h.d@swipnet.se>
9065         * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9067         * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9068         box and toolbar (Bug #6139).
9069         (xg_create_tool_bar): Remove comment (Bug #6139).
9070         (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9071         (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9073 2010-05-08  Juanma Barranquero  <lekktu@gmail.com>
9075         * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9076         Update dependencies.
9078 2010-05-08  Eli Zaretskii  <eliz@gnu.org>
9080         * fringe.c (update_window_fringes): Set up truncation bitmaps for
9081         R2L lines.
9083 2010-05-08  Glenn Morris  <rgm@gnu.org>
9085         * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9087         * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9088         (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9089         (termcapobj): Replace with TERMCAP_OBJ.
9090         (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9091         (LIBES): Use LIBS_TERMCAP as a variable.
9093         * s/freebsd.h (osreldate.h): No longer include, since this file
9094         does not use __FreeBSD_version any more.
9096         * s/aix4-2.h (TERMINFO):
9097         * s/cygwin.h (TERMINFO):
9098         * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9099         * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9100         * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9101         * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9102         * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9103         * s/irix6-5.h (TERMINFO):
9104         * s/netbsd.h (LIBS_TERMCAP):
9105         * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9106         * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9107         * s/usg5-4.h (TERMINFO):
9108         Move to configure.
9110 2010-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
9112         * eval.c (unbind_to): Don't unbind a local binding into the global
9113         binding when the local binding disappeared.  Inversely, don't unbind
9114         a global binding into a newly created local binding.
9115         * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9116         can specify the frame to use, when applicable.  Adjust callers.
9118 2010-05-07  Vincent Belaïche  <vincent.belaiche@gmail.com>
9119             Stefan Monnier  <monnier@iro.umontreal.ca>
9121         * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9123 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
9125         * w32fns.c: Include w32.h.
9126         (Fw32_shell_execute): Decode the error message before passing it
9127         to `error'.  (Bug#6126)
9129         * msdos.c (dos_set_window_size):
9130         * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9131         instead of `XSYMBOL (foo)->value'.
9133 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
9135         Fix the MS-DOS build, broken by autoconfiscation.
9137         * Makefile.in: Don't use Make-style comments past the "start of
9138         cpp stuff" line.
9139         (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9141         * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9142         edited directly by msdos/sed1v2.inp).
9144 2010-05-07  Glenn Morris  <rgm@gnu.org>
9146         * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9147         (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9148         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9149         move out of cpp section.
9150         * s/freebsd.h (LD_SWITCH_SYSTEM):
9151         * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9152         * s/netbsd.h (LD_SWITCH_SYSTEM):
9153         * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9155 2010-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
9157         Define LIB_STANDARD and START_FILES using autoconf.
9158         * s/usg5-4.h (LIB_STANDARD):
9159         * s/netbsd.h (START_FILES):
9160         * s/irix6-5.h (LIB_STANDARD):
9161         * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9162         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9163         * s/freebsd.h (START_FILES):
9164         * s/darwin.h (START_FILES):
9165         * s/cygwin.h (START_FILES):
9166         * s/aix4-2.h (LIB_STANDARD):
9167         * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9168         * Makefile.in (STARTFILES): Rename to START_FILES, define using
9169         autoconf, not cpp.
9171 2010-05-06  Dan Nicolaescu  <dann@ics.uci.edu>
9173         Remove NEED_BSDTTY and NEED_UNISTD_H.
9174         * s/hpux10-20.h (NEED_BSDTTY): Remove.
9175         * s/aix4-2.h (NEED_UNISTD_H): Remove.
9176         * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9177         <sys/ptyio.h> and <unistd.h>.
9179         * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9181         * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9182         * s/gnu.h (START_FILES): Remove empty definition.
9184 2010-05-06  Jan Djärv  <jan.h.d@swipnet.se>
9186         * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9188 2010-05-06  Glenn Morris  <rgm@gnu.org>
9190         * Makefile.in (CPP, LN_S): Remove unused variables.
9192 2010-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
9194         * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9196 2010-05-05  Lawrence Mitchell  <wence@gmx.li>
9198         * m/sparc.h: Fix typo in earlier change.
9200 2010-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
9202         Misc tweaks.
9203         * eval.c (Fdefvaralias): Remove unintended nested if.
9204         (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9206 2010-05-04  Bernhard Herzog  <bh@intevation.de>  (tiny change)
9208         * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9210 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
9212         Remove BSD_PGRPS.
9213         * s/bsd-common.h (BSD_PGRPS): Remove undef.
9214         * s/gnu-linux.h (BSD_PGRPS): Remove.
9215         * term.c (dissociate_if_controlling_tty):
9216         * sysdep.c (narrow_foreground_group, widen_foreground_group)
9217         (init_sys_modes, reset_sys_modes):
9218         * emacs.c (main):
9219         * callproc.c (Fcall_process, child_setup): Remove code depending
9220         on BSD_PGRPS.
9222         Remove POSIX_SIGNALS.
9223         * s/usg5-4.h (POSIX_SIGNALS):
9224         * s/netbsd.h (POSIX_SIGNALS):
9225         * s/msdos.h (POSIX_SIGNALS):
9226         * s/ms-w32.h (POSIX_SIGNALS):
9227         * s/hpux11.h (POSIX_SIGNALS):
9228         * s/gnu.h (POSIX_SIGNALS):
9229         * s/gnu-linux.h (POSIX_SIGNALS):
9230         * s/freebsd.h (POSIX_SIGNALS):
9231         * s/darwin.h (POSIX_SIGNALS):
9232         * s/cygwin.h (POSIX_SIGNALS):
9233         * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9234         * s/unixware.h:
9235         * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9236         * process.c (create_process):
9237         * syssignal.h:
9238         * sysdep.c (wait_for_termination, init_signals):
9239         * process.c (create_process):
9240         * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9241         remove all code that assumes the contrary.
9243 2010-05-04  Glenn Morris  <rgm@gnu.org>
9245         * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9246         variable.
9247         * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9248         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9249         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9250         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9251         LD_SWITCH_SYSTEM_tmp.
9252         * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9253         New variables, set by configure.
9255         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9256         * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9257         (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9258         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9259         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9261         * s/aix4-2.h (C_SWITCH_SYSTEM):
9262         * m/alpha.h (C_SWITCH_MACHINE):
9263         Move to configure.in.
9264         * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9265         New variables, set by configure.
9266         (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9267         $c_switch_machine and $c_switch_system.
9269 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
9271         * s/hpux10-20.h (LIB_STANDARD): New definition.
9272         * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9273         on it, not used anymore.
9275 2010-05-03  Chong Yidong  <cyd@stupidchicken.com>
9277         * eval.c (internal_condition_case_n): Rename from
9278         internal_condition_case_2.
9279         (internal_condition_case_2): New function.
9281         * xdisp.c (safe_call): Use internal_condition_case_n.
9283         * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9284         (internal_delete_file, Frename_file): Callers changed.
9286         * buffer.c (Fkill_buffer):
9287         * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9289         * lisp.h: Update prototypes.
9291 2010-05-03  Glenn Morris  <rgm@gnu.org>
9293         * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9294         (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9295         (LIBXT): Set with configure, not cpp.
9296         (LIBX): Remove.
9297         (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9299 2010-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
9301         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9302         The FreeBSD is not needed, the default works, Solaris version is
9303         not needed, and the remaining case is not supported by configure.
9305 2010-05-02  Jan Djärv  <jan.h.d@swipnet.se>
9307         * xsmfns.c (CHDIR_OPT): New define.
9308         (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9309         restarting emacs.
9311         * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9312         shut_down_emacs.
9314         * emacs.c (USAGE1): Mention --chdir.
9315         (main): Handle --chdir.
9316         (standard_args): Add --chdir.
9317         (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9318         #5552).
9320 2010-05-01  Dan Nicolaescu  <dann@ics.uci.edu>
9322         Remove LD_SWITCH_MACHINE.
9323         * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9324         (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9326         Clean up IRIX code.
9327         * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9328         * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9330         Clean up AIX code.
9331         * m/ibmrs6000.inp: Remove file, unused.
9332         * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9333         (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9334         definition ...
9335         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9337         * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9338         unused.
9340 2010-05-01  Eli Zaretskii  <eliz@gnu.org>
9342         Emulate POSIX_SIGNALS on MS-Windows.
9344         * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9345         (SIG_SETMASK, SIG_UNBLOCK): Define.
9347         * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9348         (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9349         from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9351         * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9352         New stubs.
9354         Miscellaneous fixes of bidi display.
9356         * xdisp.c (find_row_end): New function, refactored from display_line.
9357         (display_line): Use it.
9358         (extend_face_to_end_of_line): In almost-filled rows, extend only
9359         if the row is R2L and not continued.
9360         (display_line): Fix prepending of truncation glyphs to R2L rows.
9361         Preserve overlay and string info in row->end.
9362         (insert_left_trunc_glyphs): Support addition of left truncation
9363         glyphs to R2L rows.
9364         (set_cursor_from_row): Don't place cursor on the vertical border
9365         glyph between adjacent windows.  Fix a crash when a display string
9366         is continued to the next line.  Don't return zero if cursor was
9367         found by `cursor' property of a display string.
9368         (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9369         test for that explicitly.
9371 2010-05-01  Glenn Morris  <rgm@gnu.org>
9373         * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9374         for clarity.
9375         (OTHER_OBJ): Remove.
9376         (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9377         (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9379 2010-05-01  Karel Klíč  <kklic@redhat.com>
9381         * fileio.c (Ffile_selinux_context): Context functions may return null.
9383 2010-04-30  Dan Nicolaescu  <dann@ics.uci.edu>
9385         * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9387 2010-04-30  Glenn Morris  <rgm@gnu.org>
9389         * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable.  (Bug#6065)
9390         (OTHER_OBJ): Define as a separate variable, for clarity.
9392 2010-04-30  Jan Djärv  <jan.h.d@swipnet.se>
9394         * xsettings.c: Include limits.h and update file comment.
9396 2010-04-30  Glenn Morris  <rgm@gnu.org>
9398         * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9399         Set with configure, not cpp.
9400         (LIBW): Remove, replace with $TOOLKIT_LIBW.
9402         * Makefile.in (mallocobj): Remove.
9403         (otherobj): Simplify using @OTHER_OBJ@.
9405         * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9406         (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9407         Don't bother making nsgui.h dependency platform-specific.
9409         * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9411 2010-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
9413         * process.c (read_process_output, exec_sentinel): Don't burp if the
9414         sentinel/filter kills the current buffer (bug#6060).
9416         Fix wrong-docstring problem introduced with hash-consing.  (Bug#6008)
9417         * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9418         Remove unused var `args'.
9419         * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9420         (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9421         * doc.c (store_function_docstring): Use XSETCAR.
9423 2010-04-28  Glenn Morris  <rgm@gnu.org>
9425         * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9426         (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9428         * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9430         * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9431         (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9433         * Makefile.in (FONT_OBJ): New, set by configure.
9434         (FONT_DRIVERS): Use $FONT_OBJ.
9436         * Makefile.in (LIBXMU): Set with configure, not cpp.
9437         * s/aix4-2.h (LIBXMU):
9438         * s/hpux10-20.h (LIBXMU):
9439         Remove definition, now set in configure.
9441         * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9443         * m/amdx86-64.h [i386]: Move this test to configure.in.
9445 2010-04-27  Glenn Morris  <rgm@gnu.org>
9447         * Makefile.in (LIBXTR6): Set with configure, not cpp.
9448         * s/unixware.h (NEED_LIBW): Remove definition.
9450         * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9451         (TOOLKIT_LIBW): New, set by configure.
9452         (@X_TOOLKIT_TYPE@): No longer define it.
9454         * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9455         (MOTIF_LIBW): Set with configure, not cpp.
9456         * s/aix4-2.h (LIB_MOTIF):
9457         * s/gnu-linux.h (LIB_MOTIF):
9458         * s/unixware.h (LIB_MOTIF): Move to configure.in.
9460 2010-04-27  Dan Nicolaescu  <dann@ics.uci.edu>
9462         Reduce CPP usage.
9463         * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9464         (obj): Use autoconf for unexec instead of cpp.
9465         (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9466         Remove definitions and undefs.  Inline definitions in the only user.
9467         (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9469 2010-04-27  Glenn Morris  <rgm@gnu.org>
9471         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9472         since the defaults (set by the system file) are fine in most cases.
9473         [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9474         * m/ibms390x.h (START_FILES, LIB_STANDARD):
9475         * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9476         * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9477         Remove definitions, since they are set correctly in s/gnu-linux.h.
9478         * s/freebsd.h (START_FILES, LIB_STANDARD):
9479         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9480         * s/hpux10-20.h (START_FILES):
9481         * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9482         Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9484         * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9485         (MOTIF_LIBW): Use $LIBXP.
9486         (otherobj): Use $WIDGET_OBJ.
9488 2010-04-26  Dan Nicolaescu  <dann@ics.uci.edu>
9490         * Makefile.in (LIBS_MACHINE): Remove, unused.
9492         Use autoconf instead of cpp for LIB_MATH.
9493         * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9494         * s/cygwin.h (LIB_MATH): Likewise.
9495         * Makefile.in (LIB_MATH): Do not define with cpp.
9496         (LIBES): Use autoconf for LIB_MATH.
9498 2010-04-26  Kenichi Handa  <handa@m17n.org>
9500         * composite.c (Ffind_composition_internal): Fix the return value
9501         for an automatic composition.
9503 2010-04-25  Dan Nicolaescu  <dann@ics.uci.edu>
9505         Remove all NO_ARG_ARRAY uses.
9506         * fns.c (concat2, concat3, nconc2):
9507         * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9508         (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9509         * m/xtensa.h (NO_ARG_ARRAY):
9510         * m/template.h (NO_ARG_ARRAY):
9511         * m/sparc.h (NO_ARG_ARRAY):
9512         * m/sh3.h (NO_ARG_ARRAY):
9513         * m/mips.h (NO_ARG_ARRAY):
9514         * m/macppc.h (NO_ARG_ARRAY):
9515         * m/iris4d.h (NO_ARG_ARRAY):
9516         * m/intel386.h (NO_ARG_ARRAY):
9517         * m/ibms390x.h (NO_ARG_ARRAY):
9518         * m/ibms390.h (NO_ARG_ARRAY):
9519         * m/ibmrs6000.h (NO_ARG_ARRAY):
9520         * m/ia64.h (NO_ARG_ARRAY):
9521         * m/hp800.h (NO_ARG_ARRAY):
9522         * m/arm.h (NO_ARG_ARRAY):
9523         * m/amdx86-64.h (NO_ARG_ARRAY):
9524         * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9526 2010-04-25  Eli Zaretskii  <eliz@gnu.org>
9528         * xdisp.c (display_line): Don't assume 2nd call to
9529         get_next_display_element cannot return zero.  (Bug#6030)
9530         (iterate_out_of_display_property): New function, body from pop_it.
9531         (pop_it): Use it.
9533 2010-04-24  Glenn Morris  <rgm@gnu.org>
9535         * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9536         For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9537         (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9538         since CRT_DIR defaults to /usr/lib.  Suggested by Dan Nicolaescu.
9540 2010-04-24  Eli Zaretskii  <eliz@gnu.org>
9542         * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9543         use `get_next_display_element' and `set_iterator_to_next' to
9544         advance to the next character, when looking for the character that
9545         begins the next row.
9547         * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9548         definition of "struct Lisp_Symbol".
9550 2010-04-24  Glenn Morris  <rgm@gnu.org>
9552         * Makefile.in (CRT_DIR): New variable, set by configure.
9553         * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9554         Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)
9556 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
9558         * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9560         * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9562         Remove redundant flags.
9563         * s/freebsd.h (C_SWITCH_SYSTEM):
9564         * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9565         * s/netbsd.h (C_SWITCH_SYSTEM):
9566         * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9567         of these.
9569         Simplify m/intel386.h.
9570         * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9571         user: ecrt0.c.
9572         (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9573         (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9574         the only user: s/unixware.h.
9575         * ecrt0.c: Remove #ifndef static.  Inline CRT0_DUMMIES definition
9576         from m/intel386.h.
9577         * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9578         Definitions moved here from m/intel386.h.
9580         * m/mips.h: Remove #if 0 code.
9582 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
9584         Fix display of composed characters from L2R scripts in bidi buffers.
9585         * xdisp.c (set_iterator_to_next, next_element_from_composition):
9586         After advancing IT past the composition, resync the bidi iterator
9587         with IT's position.  (Bug#5977)
9589 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
9591         * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9592         (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9594 2010-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
9596         * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9598 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
9600         Support `display' text properties and overlay strings in bidi buffers.
9601         * xdisp.c (pop_it): When the stack is popped after displaying
9602         from a string, bidi-iterate to exit from the text portion covered
9603         by the `display' property or overlay.  (Bug#5988, bug#5920)
9605 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
9607         * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9608         (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9610         * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9611         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9613         Simplify STARTFILES definition.
9614         * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9615         relying on Makefile.in to define it.
9616         * s/cygwin.h (START_FILES): Likewise.
9617         * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9619         Clean up Solaris code.
9620         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9621         (LIB_MOTIF): Remove, configure takes care of this.
9622         (NOT_USING_MOTIF): Remove, unused.
9623         * xrdb.c: Remove #if 0-ed #include.
9624         (SYSV): Remove conditional for old SysV.
9625         * sysdep.c (closedir): Remove conditional code for Solaris,
9626         Solaris has closedir.
9628 2010-04-22  Jan Djärv  <jan.h.d@swipnet.se>
9630         * xsettings.c (read_and_apply_settings): Check if current_font is
9631         NULL before strcmp (Bug#6001).
9633 2010-04-21  Dan Nicolaescu  <dann@ics.uci.edu>
9635         Clean up HP-UX files.
9636         * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9637         (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9638         (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9639         * s/hpux10-20.h: ... to the only user, here.
9641 2010-04-21  Eli Zaretskii  <eliz@gnu.org>
9643         * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9644         use buffer-local values of paragraph-start and paragraph-separate.
9645         <paragraph_start_re, paragraph_separate_re>: Rename from
9646         fallback_paragraph_start_re and fallback_paragraph_separate_re.
9647         (Bug#5992)
9649 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
9651         * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9652         current_tool_bar_style are new.
9653         (store_config_changed_event): Rename from store_font_changed_event.
9654         (XSETTINGS_TOOL_BAR_STYLE): New define.
9655         (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9656         (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9657         HAVE_XFT.
9658         (something_changedCB): store_font_changed_event is now
9659         store_config_changed_event.
9660         (parse_settings): Rename from parse_xft_settings.
9661         Read non-xft xsettings outside #ifdef HAVE_XFT.
9662         (read_settings): Rename from read_xft_settings.
9663         (apply_xft_settings): Take current settings as parameter.  Do not
9664         call read_(xft)_settings.
9665         (read_and_apply_settings): New function.
9666         (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9667         Call read_and_apply_settings if there are settings to be read.
9668         (init_xsettings): Rename from init_xfd_settings.
9669         Call read_and_apply_settings unconditionally.
9670         (xsettings_initialize): Call init_xsettings.
9671         (Ftool_bar_get_system_style): New function.
9672         (syms_of_xsettings): Define Qmonospace_font_name and
9673         Qtool_bar_style.  Initialize current_tool_bar_style to nil.
9674         defsubr Stool_bar_get_system_style.  Fprovide on
9675         dynamic-setting.
9676         Move misplaced HAVE_GCONF.
9678         * xsettings.h (Ftool_bar_get_system_style): Declare.
9680         * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9681         Qtext, Qboth, Qboth_horiz are new.
9682         (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9683         Vtool_bar_style, tool_bar_max_label_size.
9685         * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9687         * keyboard.c: QClabel is new.
9688         (parse_tool_bar_item): Take out QClabel from tool bar items.
9689         Try to construct a label if ther is no QClabel.
9690         (syms_of_keyboard): Intern :label as QClabel.
9692         * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9693         (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9694         New.
9696         * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9697         dynamic-setting.el.
9699         * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9700         (xg_make_tool_item, xg_show_toolbar_item): New function.
9701         (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9702         Call xg_make_tool_item to make a tool bar item.
9703         Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
9705         * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9706         into account for toolbars.
9708 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
9710         * data.c (make_blv): Declarations before code (Bug#5993).
9712 2010-04-21  Glenn Morris  <rgm@gnu.org>
9714         * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9715         Define using autoconf, not cpp.
9716         (LIBXSM): New variable, set by autoconf.
9717         (LIBXT): Use $LIBXSM.
9719 2010-04-21  Dan Nicolaescu  <local_user@dannlt>
9721         Remove NOMULTIPLEJOBS, unused.
9722         * s/template.h (NOMULTIPLEJOBS):
9723         * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9725         Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9726         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9727         * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9728         detects -znocombreloc and passes it to the linker
9729         * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9731 2010-04-21  Glenn Morris  <rgm@gnu.org>
9733         * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9735 2010-04-21  Karel Klíč  <kklic@redhat.com>
9737         * Makefile.in (LIBSELINUX_LIBS): New.
9738         (LIBES): Add $LIBSELINUX_LIBS.
9739         * eval.c, lisp.h (call7): New function.
9740         * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9741         (Ffile_selinux_context, Fset_file_selinux_context):
9742         New functions.
9743         (Fcopy_file): New parameter preserve-selinux-context.
9744         (Frename_file): Preserve selinux context when renaming by copy-file.
9746 2010-04-21  Juanma Barranquero  <lekktu@gmail.com>
9747             Eli Zaretskii  <eliz@gnu.org>
9749         Don't depend on cm.c or termcap.c on Windows, use stubs.
9750         * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9751         ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9752         * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9753         (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9754         (sys_tputs, sys_tgetstr): New stubs.
9755         * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9756         (tputs, tgetstr): New; define to sys_*.
9758 2010-04-20  Juanma Barranquero  <lekktu@gmail.com>
9760         * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9762 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
9764         * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9765         Just signal a warning rather than an error when inside a let.
9766         (Fmake_variable_frame_local): Add the same test.
9768         * font.c (syms_of_font): Make the style table vars read-only.
9770         * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9771         * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9773         * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9775 2010-04-20  Eli Zaretskii  <eliz@gnu.org>
9777         Fix R2L paragraph display on TTY.
9779         * xdisp.c (unproduce_glyphs): New function.
9780         (display_line): Use it when produced glyphs are discarded from R2L
9781         glyph rows.
9782         (append_composite_glyph): In R2L rows, prepend the glyph rather
9783         than appending it.
9785         * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9786         rather than append it.  Set up the resolved_level and bidi_type
9787         attributes of the appended glyph.
9788         (produce_special_glyphs): Mirror the backslash continuation
9789         character in R2L lines.
9791         Implement display of R2L paragraphs in GUI sessions.
9793         * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9794         append_stretch_glyph.
9795         (set_cursor_from_row) <cursor_x>: Remove unused variable.
9796         Fix off-by-one error in computing x at end of text in the row.
9797         (append_stretch_glyph): In reversed row, prepend the glyph rather
9798         than append it.  Set resolved_level and bidi_type of the glyph.
9799         (extend_face_to_end_of_line): If the row is reversed, prepend a
9800         stretch glyph whose width is such that the rightmost glyph will be
9801         drawn at the right margin of the window.  Fix off-by-one error on
9802         TTY frames in testing whether a line needs face extension.
9803         Fix face extension at ZV.  If this is the last glyph row, use
9804         DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9805         region face.
9806         (set_cursor_from_row, display_line):
9807         Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
9808         row->continuation_lines_width.
9809         (next_element_from_buffer): Don't call bidi_paragraph_init if we
9810         are at ZV.  Fixes a crash when reseated to ZV by
9811         try_window_reusing_current_matrix.
9812         (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9813         which happens with R2L glyph rows.  Fixes a crash when inserting a
9814         character at end of an R2L line.
9815         (set_cursor_from_row): Don't be fooled by truncated rows: don't
9816         treat them as having zero-width characters.  Improve comments.
9817         Don't reverse pos_before and pos_after for reversed glyph rows.
9818         Set cursor.x to negative value when the cursor might be on the
9819         left fringe.
9820         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9821         left fringe, not the right one.
9822         (notice_overwritten_cursor, draw_phys_cursor_glyph)
9823         (erase_phys_cursor): For reversed cursor_row, support cursor on
9824         the left fringe.
9826         * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9827         of continuation indicators on the fringes.
9828         (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9829         left fringe.
9831         * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9832         draw cursor on the left fringe.
9834         * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9835         cursor on the left fringe.
9837         * dispnew.c (update_text_area): Handle reversed desired rows when
9838         the cursor is on the left fringe.
9839         (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9840         below, not by 0, for when the cursor is on the left fringe.
9842 2010-04-20  Jan Djärv  <jan.h.d@swipnet.se>
9844         * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9845         widget is a scrollbar.
9847 2010-04-20  Kenichi Handa  <handa@m17n.org>
9849         * charset.c (char_charset): Consider Vcharset_non_preferred_head
9850         only when the arg CHARSET_LIST is nil.
9852 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
9854         Make variable forwarding explicit rather the using special values.
9855         Basically, this makes the structure of buffer-local values and object
9856         forwarding explicit in the type of Lisp_Symbols rather than use
9857         special Lisp_Objects for that.  This tends to lead to slightly more
9858         verbose code, but is more C-like, simpler, and makes it easier to make
9859         sure we handled all cases, among other things by letting the compiler
9860         help us check it.
9861         * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9862         Removing forwarding objects.
9863         (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9864         (struct Lisp_Symbol): Make the various forms of variable-forwarding
9865         explicit rather than hiding them inside Lisp_Object "values".
9866         (XFWDTYPE): New macro.
9867         (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9868         (XBUFFER_LOCAL_VALUE): Remove.
9869         (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9870         (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9871         (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9872         (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9873         (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9874         Remove the Lisp_Misc_* header.
9875         (struct Lisp_Buffer_Local_Value): Redefine.
9876         (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9877         (struct Lisp_Misc_Any): Add filler to get the right size.
9878         (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9879         Lisp_Intfwd.
9880         (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9881         (DEFVAR_KBOARD): Allocate a forwarding object.
9882         * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9883         (let_shadows_global_binding_p): New function.
9884         (union Lisp_Val_Fwd): New type.
9885         (make_blv): New function.
9886         (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9887         (store_symval_forwarding, swap_in_global_binding, Fboundp)
9888         (swap_in_symval_forwarding, find_symbol_value, Fset)
9889         (let_shadows_buffer_binding_p, set_internal, default_value)
9890         (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9891         (Fkill_local_variable, Fmake_variable_frame_local)
9892         (Flocal_variable_p, Flocal_variable_if_set_p)
9893         (Fvariable_binding_locus):
9894         * xdisp.c (select_frame_for_redisplay):
9895         * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9896         (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9897         * frame.c (store_frame_param):
9898         * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9899         * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9900         value structure.
9901         * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9902         (clone_per_buffer_values): Only adjust markers into the current buffer.
9903         (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9904         (Fbuffer_local_value, set_buffer_internal_1)
9905         (swap_out_buffer_local_variables):
9906         Adapt to the new symbol value structure.
9907         (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9908         (defvar_per_buffer): Take a new arg for the fwd object.
9909         (buffer_lisp_local_variables): Return a proper alist (different fix
9910         for bug#4138).
9911         * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9912         (Fgarbage_collect): Don't handle buffer_defaults specially.
9913         (mark_object): Handle new symbol value structure rather than the old
9914         special Lisp_Misc_* objects.
9915         (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9916         * term.c (set_tty_color_mode):
9917         * bidi.c (bidi_initialize): Don't access the ->value field directly.
9918         * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9919         a buffer_local_flags.
9920         * print.c (print_object): Get rid of impossible forwarding objects.
9922 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
9924         * bidi.c (bidi_get_type, bidi_get_category)
9925         (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
9926         (bidi_type_of_next_char, bidi_level_of_next_char):
9927         Declare static.  Use `INLINE' rather than `inline'.
9929 2010-04-19  Juanma Barranquero  <lekktu@gmail.com>
9931         * dired.c (Ffile_attributes): Fix typo in docstring.
9933 2010-04-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
9935         * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9936         NSInteger (Bug#5811).
9938 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9940         * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9941         (PTY_OPEN): New defines.  Use openpty (Bug#726, Bug#5819).
9943 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9945         * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9947 2010-04-19  Chong Yidong  <cyd@stupidchicken.com>
9949         * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9950         terminal frames (Bug#5837).
9952 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
9954         * .gdbinit (xsubchartable): New command.
9956 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
9958         * xdisp.c (display_line): Don't write beyond the last glyph row in
9959         the desired matrix.  Fixes a crash in "emacs -nw" (bug#5972), see
9960         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9961         and
9962         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9964 2010-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9966         * alloc.c (Fpurecopy): Hash-cons if requested.
9967         (syms_of_alloc): Update purify-flag docstring.
9969 2010-04-18  Jan Djärv  <jan.h.d@swipnet.se>
9971         * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9972         (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9974 2010-04-17  Eli Zaretskii  <eliz@gnu.org>
9976         Fix a crash when an NSM character is inserted at BEGV.
9978         * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9979         (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9980         NEUTRAL_B or UNKNOWN_BT.
9982 2010-04-16  Eli Zaretskii  <eliz@gnu.org>
9984         * xdisp.c (set_cursor_from_row): Don't consider possibility of
9985         other rows with cursor unless they are different from this row and
9986         this row is part of a continued line.  (Bug#5943)
9988 2010-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
9990         * s/freebsd.h: Restore osreldate.h include.
9991         Suggested by Naohiro Aota.
9993 2010-04-16  Jan Djärv  <jan.h.d@swipnet.se>
9995         * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9997 2010-04-16  Ken Brown  <kbrown@cornell.edu>  (tiny change)
9999         * s/cygwin.h: Avoid linking against static libgcc.
10001 2010-04-15  Juri Linkov  <juri@jurta.org>
10003         * window.c: Add Qscroll_command.
10004         Remove Vscroll_preserve_screen_position_commands.
10005         (window_scroll_pixel_based, window_scroll_line_based): Check the
10006         `scroll-command' property on the last command instead of searching
10007         the last command in Vscroll_preserve_screen_position_commands.
10008         (syms_of_window): Initialize and staticpro `Qscroll_command'.
10009         Put Qscroll_command property on Qscroll_up and Qscroll_down.
10010         (scroll-preserve-screen-position): Doc fix.
10011         (Vscroll_preserve_screen_position_commands): Remove variable.
10013 2010-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
10015         * xdisp.c (message): Do not use NO_ARG_ARRAY.
10017 2010-04-14  Dan Nicolaescu  <dann@ics.uci.edu>
10019         Reduce cpp use in Makefile.in.
10020         * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10021         (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10022         (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10023         (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10024         (CRT0_COMPILE): Remove, inline it in the only user.
10026 2010-04-14  Juri Linkov  <juri@jurta.org>
10028         * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10029         `scroll-up-command' and `M-v' from `scroll-down' to
10030         `scroll-down-command'.
10032 2010-04-14  Juri Linkov  <juri@jurta.org>
10034         * window.c (Vscroll_preserve_screen_position_commands): New variable
10035         with the default value as the list of Qscroll_down and Qscroll_up.
10036         (window_scroll_pixel_based, window_scroll_line_based): Search the
10037         last command in the list Vscroll_preserve_screen_position_commands
10038         instead of comparing with Qscroll_up and Qscroll_down.
10040 2010-04-13  Jan Djärv  <jan.h.d@swipnet.se>
10042         * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10043         (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10044         does that.
10046         * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10047         to zero.
10049 2010-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
10051         * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10053         Try to solve the problem of spurious EOF chars in long lines of text
10054         sent to interactive subprocesses.
10055         * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10056         (system_process_attributes): Remove unused var `ttotal'.
10057         * process.c (send_process): Don't bother breaking long line with EOF
10058         chars when talking to ttys any more.
10059         (wait_reading_process_output): Output a warning when called in such
10060         a way that it could block without being interruptible.
10062         Try to detect file modification within the same second.
10063         * buffer.h (struct buffer): New field modtime_size.
10064         * buffer.c (reset_buffer): Initialize it.
10065         * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10066         (Fverify_visited_file_modtime): Check it.
10067         (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10068         (Fset_visited_file_modtime): Set (or clear) it.
10070 2010-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10072         * process.c (status_notify): Remove unused var `ro'.
10074 2010-04-12  Jan Djärv  <jan.h.d@swipnet.se>
10076         * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10077         more than one visual (Bug#5938).
10079 2010-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
10081         * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10082         Undefine.
10084 2010-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
10086         Remove C_SWITCH_SYSTEM_TEMACS.
10087         * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10088         (malloc, realloc, free): Use emacs, not temacs for conditional
10089         definition.
10091         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10092         (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10094         Use autoconf, not cpp for some variables.
10095         * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10096         (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10097         (ALL_CFLAGS): Use them as make variables.
10098         (really-lwlib, really-oldXMenu): Do not pass them.
10100 2010-04-11  Jan Djärv  <jan.h.d@swipnet.se>
10102         * xmenu.c (apply_systemfont_to_dialog): New.
10103         (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10105 2010-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10107         * process.c (exec_sentinel): Preserve current-buffer.
10109         * process.c (read_process_output): Move the save-current-buffer to
10110         apply to both the filter and the non-filter branches.
10112 2010-04-10  Dan Nicolaescu  <dann@ics.uci.edu>
10114         * s/msdos.h (UNEXEC): New definition.
10116 2010-04-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10118         * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10119         (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10121         * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10122         Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10123         set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
10124         TRY_WINDOW_CHECK_MARGINS.
10126         * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
10127         TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).  Subtract last glyph's
10128         width only when it is for padding.
10130 2010-04-09  Jan Djärv  <jan.h.d@swipnet.se>
10132         * xfns.c (Fx_show_tip): Call try_window in a loop until
10133         fonts_changed_p is zero (Bug#2423).
10135 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
10137         * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10138         the end of TEXT_AREA.  (Bug#5856)
10140 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
10142         * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10143         HAVE_GCONF.
10145 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
10147         * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10148         prev.orig_type, for resolving type of NSM.  (Bug#5858)
10150 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
10152         * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10153         (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10154         in current_font.
10155         (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10156         (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10157         New functions.
10158         (syms_of_xsettings): Initialize current_font.
10159         defsubr Sfont_get_system_normal_font.
10161         * xsettings.h (Ffont_get_system_normal_font)
10162         (xsettings_get_system_normal_font): Declare.
10164         * xfns.c (extern xlwmenu_default_font): Remove.
10165         (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10166         to xlwmenu.c.
10168         * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10169         menu items in UTF-8.
10171         * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10172         (apply_systemfont_to_menu): New function.
10173         (set_frame_menubar, create_and_show_popup_menu):
10174         Call apply_systemfont_to_menu.
10176 2010-04-07  Jan Djärv  <jan.h.d@swipnet.se>
10178         * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10179         FRAME_LINE_TO_PIXEL_Y.
10181         * xterm.c (x_set_window_size_1): Don't add border_width/height to
10182         pixelwidth/height.
10184 2010-04-07  Dan Nicolaescu  <dann@ics.uci.edu>
10186         Simplify code for HP machines.
10187         * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10188         for GNU_LINUX, not needed.
10189         (UNEXEC, NEED_BSDTTY): Move definitions...
10190         * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10192         * m/iris4d.h (UNEXEC): Move definition ...
10193         * s/irix6-5.h (UNEXEC): ... here.
10195 2010-04-04  Jan Djärv  <jan.h.d@swipnet.se>
10197         * xfns.c (set_machine_and_pid_properties): New function.
10198         (Fx_create_frame): Call set_machine_and_pid_properties.
10200 2010-04-03  Eli Zaretskii  <eliz@gnu.org>
10202         * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10203         Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10204         BIDI_EOB.  Fixes infloop with vertical cursor motion at ZV.
10206         * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10207         in this function.  (Bug#5703)
10209 2010-04-03  Chong Yidong  <cyd@stupidchicken.com>
10211         * nsterm.h: Fix last change.
10213 2010-04-03  Dan Nicolaescu  <dann@ics.uci.edu>
10215         * m/intel386.h (NO_REMAP): Move definition ...
10216         * s/msdos.h (NO_REMAP): ... here.
10218         * m/vax.h (CRT0_DUMMIES): Remove, unused.
10220         * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10221         used on those platforms.
10223 2010-04-02  Dan Nicolaescu  <dann@ics.uci.edu>
10225         Remove extern errno declarations.
10226         * xterm.c:
10227         * xrdb.c:
10228         * w32term.c:
10229         * unexec.c:
10230         * unexaix.c:
10231         * sysdep.c:
10232         * process.c:
10233         * lread.c:
10234         * keyboard.c:
10235         * floatfns.c:
10236         * filelock.c:
10237         * fileio.c:
10238         * emacs.c (main):
10239         * ecrt0.c:
10240         * dispnew.c:
10241         * callproc.c:
10242         * buffer.c: Remove errno extern declarations.
10243         * s/netbsd.h (NEED_ERRNO): Remove.
10245 2010-04-01  Dan Nicolaescu  <dann@ics.uci.edu>
10247         Remove all uses of LIBX11_SYSTEM.
10248         * Makefile.in (LIBX11_SYSTEM): Remove.
10249         * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10250         instead.
10252 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
10254         Remove support for DJGPP v1.x (bug#5813).
10256         * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10257         * s/msdos.h:
10258         * unexec.c (make_hdr, copy_text_and_data):
10259         * sysdep.c (wait_for_termination, sys_subshell):
10260         * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10261         (IT_set_terminal_modes, __write, _rename, gethostname)
10262         (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10263         (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10264         the value of __DJGPP__.
10265         (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10266         compatibility code.
10267         * lread.c:
10268         * gmalloc.c (memalign):
10269         * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10270         * emacs.c (main):
10271         * dosfns.c (init_dosfns):
10272         * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10274 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
10276         * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10277         string with `cursor' property comes from an `after-string'
10278         overlay.  (Bug#5816)
10280 2010-04-01  Glenn Morris  <rgm@gnu.org>
10282         * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10283         Define as Makefile variables.
10284         (LIBX): Use above variables rather than directly using autoconf.
10286 2010-03-31  Dan Nicolaescu  <dann@ics.uci.edu>
10288         Clean up BSD_SYSTEM use.
10289         * xterm.c:
10290         * process.c:
10291         * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10292         for including <sys/ioctl.h>.
10293         * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10294         code is only used for MSDOS.
10296 2010-03-31  Juri Linkov  <juri@jurta.org>
10298         * image.c: Add `Qextension_data'.
10299         (syms_of_image): Initialize and staticpro `Qextension_data'.
10300         (Fimage_metadata): Rename from `Fimage_extension_data'.
10301         (gif_load): Put GIF extension data to the property
10302         `Qextension_data'.
10304 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
10306         * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10307         * nsterm.h: Fix prototype.
10309 2010-03-31  Eli Zaretskii  <eliz@gnu.org>
10311         * xdisp.c (highlight_trailing_whitespace): Support highlight of
10312         trailing whitespace in right-to-left rows.
10314 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
10316         Get rid of the direct_output optimizations.
10317         * keyboard.c (nonundocount): Remove extern declaration.
10318         (command_loop_1): Remove brittle optimisation for cheap and
10319         common operations.
10320         * xdisp.c (redisplay_internal): Don't bother checking
10321         redisplay_performed_directly_p any more.
10322         * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10323         any more.
10324         * dispnew.c (redisplay_performed_directly_p)
10325         (direct_output_for_insert, direct_output_forward_char):
10326         * dispextern.h (redisplay_performed_directly_p)
10327         (direct_output_for_insert, direct_output_forward_char): Remove.
10328         * cmds.c (nonundocount): Make it static.
10330 2010-03-31  Bernhard Herzog  <bh@intevation.de>  (tiny change)
10332         * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10334 2010-03-31  Jan Djärv  <jan.h.d@swipnet.se>
10336         * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10337         invisible (Bug#5766).
10339 2010-03-31  Adrian Robert  <adrian.b.robert@gmail.com>
10341         * xdisp.c (x_consider_frame_title, update_window_cursor):
10342         Remove HAVE_NS conditionals.
10343         (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10345         * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10346         filename for the title.
10347         (ns_set_doc_edited): Do nothing if the selected window is a
10348         minibuffer window.
10350         * nsterm.h: Add prototypes for ns_set_name_as_filename and
10351         ns_set_doc_edited.
10353         * nsterm.m: Remove unneeded prototype.
10355 2010-03-31  Glenn Morris  <rgm@gnu.org>
10357         * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10358         in the DOC file.  (Bug#5336)
10360 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
10362         * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10364 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
10366         * window.c (keys_of_window): Remove redundant/overridden bindings.
10368 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
10370         * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10371         Restore original behavior when the iterator is not bidi_p.
10373 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
10375         * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10377 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
10379         * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10380         are outside the range of cached character positions.
10382 2010-03-30  Juanma Barranquero  <lekktu@gmail.com>
10384         * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10386 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
10388         Initial support for bidirectional editing.
10390         * Makefile.in (obj): Include bidi.o.
10391         (bidi.o): New target.
10393         * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10394         ($(BLD)/bidi.$(O)): New target.
10396         * bidi.c: New file.
10398         * buffer.h (struct buffer): New members bidi_display_reordering
10399         and bidi_paragraph_direction.
10401         * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10402         and bidi_paragraph_direction.
10403         (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10404         and bidi-paragraph-direction.
10405         (Fbuffer_swap_text): Swap the values of
10406         bidi_display_reordering and bidi_paragraph_direction.
10408         * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10409         (bidi_type_t, bidi_dir_t): New types.
10410         (bidi_saved_info, bidi_stack, bidi_it): New structures.
10411         (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10412         prev_stop, base_level_stop, and eol_pos.
10413         (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10414         (IT_STACK_SIZE): Enlarge to 5.
10415         (struct glyph_row): New member reversed_p.
10416         <string_buffer_position>: Update prototype.
10417         (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10418         glyph_row if bidi_it.paragraph_dir == R2L.
10419         (struct glyph): New members resolved_level and bidi_type.
10421         * dispnew.c (direct_output_forward_char): Give up if we need bidi
10422         processing or buffer's direction is right-to-left.
10423         (prepare_desired_row): Preserve the reversed_p flag.
10424         (row_equal_p): Compare the reversed_p attributes as well.
10426         * xdisp.c (init_iterator): Initialize it->bidi_p.
10427         Call bidi_init_it and set it->paragraph_embedding from the current
10428         buffer's value of bidi_paragraph_direction.
10429         (reseat_1): Initialize bidi_it.first_elt.
10430         (set_iterator_to_next, next_element_from_buffer): Use the value of
10431         paragraph_embedding to determine the paragraph direction.
10432         (set_iterator_to_next): Under bidi reordering, call
10433         bidi_get_next_char_visually.  Call bidi_paragraph_init if the
10434         new_paragraph flag is set in the bidi iterator.
10435         (next_element_from_buffer): If bidi_it.first_elt is set,
10436         initialize paragraph direction and find the first character to
10437         display in the visual order.  If reseated to a middle of a line,
10438         prime the bidi iterator starting at the line's beginning.
10439         Handle the situation where we overstepped stop_charpos due to
10440         non-linearity of the bidi iteration.  Likewise for when we back up
10441         beyond the previous stop_charpos.  When moving across stop_charpos,
10442         record it in prev_stop.
10443         (display_line): Set row->end and it->start for the next row to the
10444         next character in logical order.  Always extend reversed_p rows to
10445         the end of line, even if they end at ZV.  Copy the reversed_p flag
10446         to the next glyph row.  Keep calling set_cursor_from_row for
10447         bidi-reordered rows even if we already have a possible candidate
10448         for cursor position.  Set row_end after all the row's glyphs have
10449         been produced, by looping over the glyphs.  Record the position
10450         after EOL in it->eol_pos, and use it to set end_pos of the last
10451         row produced for a continued line.
10452         <Qright_to_left, Qleft_to_right>: New variables.
10453         (syms_of_xdisp): Initialize and staticpro them.
10454         (string_buffer_position_lim): New function.
10455         (string_buffer_position): Most of code moved to
10456         string_buffer_position_lim.  Last argument and return value are
10457         now EMACS_INT; all callers changed.
10458         (set_cursor_from_row): Rewritten to support bidirectional text and
10459         reversed glyph rows.
10460         (text_outside_line_unchanged_p, try_window_id):
10461         Disable optimizations if we are reordering bidirectional text and the
10462         paragraph direction can be affected by the change.
10463         (append_glyph, append_composite_glyph)
10464         (produce_image_glyph, append_stretch_glyph): Set the
10465         resolved_level and bidi_type members of each glyph.
10466         (append_glyph): If the glyph row is reversed, prepend the glyph
10467         rather than appending it.
10468         (handle_stop_backwards): New function.
10469         (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10470         (reseat): Call handle_stop_backwards to recompute prev_stop and
10471         base_level_stop for the new position.
10472         (handle_invisible_prop): Under bidi iteration, skip invisible text
10473         using bidi_get_next_char_visually.  If we are `reseat'ed, init the
10474         paragraph direction.  Update IT->prev_stop after skipping
10475         invisible text.
10476         (move_it_in_display_line_to): New variables prev_method
10477         and prev_pos.  Compare for strict equality in
10478         BUFFER_POS_REACHED_P.
10479         (try_cursor_movement): Examine all the candidate rows that occlude
10480         point, to return the best match.  If rows are bidi-reordered
10481         and point moved backwards, back up to the row that is not a
10482         continuation line, and start looking for a suitable row from
10483         there.
10485         * term.c (append_glyph): Reverse glyphs by pre-pending them,
10486         rather than appending, if the glyph_row's reversed_p flag is set.
10487         Set the resolved_level and bidi_type members of each glyph.
10489         * .gdbinit (pbiditype): New command.
10490         (pgx): Use it to display bidi level and type of the glyph.
10491         (pitx): Display some bidi information about the iterator.
10492         (prowlims, pmtxrows): New commands.
10494 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
10496         Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10497         * s/usg5-4.h (LIBS_DEBUG):
10498         * s/irix6-5.h (C_DEBUG_SWITCH):
10499         * s/gnu-linux.h (LIBS_DEBUG):
10500         * s/darwin.h (LIBS_DEBUG):
10501         * s/bsd-common.h (LIBS_DEBUG):
10502         * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10503         * m/iris4d.h (LIBS_DEBUG):
10504         * m/hp800.h (LIBS_DEBUG): Remove definitions.
10506         * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10507         (LIBS_DEBUG): Remove definition.
10509 2010-03-27  Chong Yidong  <cyd@stupidchicken.com>
10511         * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10512         Windows.
10514 2010-03-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10516         * process.c (Fmake_network_process): Don't call turn_on_atimers around
10517         `connect' (Bug#5723).
10519 2010-03-25  Helmut Eller  <eller.helmut@gmail.com>
10521         * process.c (Fmake_network_process): Call `select' for interrupted
10522         `connect' rather than creating new socket (Bug#5173).
10524 2010-03-24  Jan Djärv  <jan.h.d@swipnet.se>
10526         * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10528         * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10530         * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10532 2010-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10534         * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10535         XLoadQueryFont.
10537 2010-03-24  Kenichi Handa  <handa@m17n.org>
10539         * coding.c (decode_coding_ccl): Fix previous change for the
10540         multibyte case.
10541         (encode_coding_ccl): Don't setup ccl program here.  Fix for the
10542         case that the output buffer is fullfilled.
10543         (encode_coding): Setup ccl program here.
10545 2010-03-23  Dan Nicolaescu  <dann@ics.uci.edu>
10547         * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10549         Simplify LIBS_MACHINE definitions.
10550         * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10551         * m/iris4d.h (LIBS_MACHINE): Likewise.
10552         * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10553         * s/aix4-2.h (LIBS_SYSTEM): ... here.
10554         * s/netbsd.h: Remove commented out code.
10556 2010-03-22  Dan Nicolaescu  <dann@ics.uci.edu>
10558         Remove dead code dealing with POSIX_SIGNALS.
10559         * atimer.c (set_alarm): Remove dead code, all USG systems define
10560         POSIX_SIGNALS.
10561         * data.c (arith_error): Likewise.
10562         * keyboard.c (input_available_signal, handle_user_signal)
10563         (interrupt_signal): Likewise.
10564         * process.c (sigchld_handler): Likewise.
10565         (create_process): Remove if 0 code.  Remove HPUX conditional when
10566         !defined (POSIX_SIGNALS), it cannot be true.
10567         * syssignal.h: Remove USG5_4 and USG conditionals when
10568         !POSIX_SIGNALS, they cannot be true.
10570         * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10571         NO_SOCK_SIGIO, not used anymore.
10573 2010-03-21  Dan Nicolaescu  <dann@ics.uci.edu>
10575         * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10576         support vax on BSDs.
10578         * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10579         * s/aix4-2.h (ORDINARY_LINK): ... here.
10581 2010-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10583         * Makefile.in (abs_builddir): Define.
10584         (bootstrap_exe): Use it.
10585         (VPATH): Use $(srcdir) instead of @srcdir@.
10587 2010-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10589         * Makefile.in (bootstrap_exe): Use an absolute name.
10591 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
10593         Remove support for old GNU/Linux using libc version 5.
10594         * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10595         * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10597         Consolidate redundant definitions in s/bsd-common.h.
10598         * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10599         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10600         (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10601         doing it in all files that include this one.
10602         * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10603         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10604         (LDAV_SYMBOL, KERNEL_FILE): Remove.
10605         * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10606         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10607         (LDAV_SYMBOL, KERNEL_FILE): Remove.
10608         * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10609         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10610         (LDAV_SYMBOL, KERNEL_FILE): Remove.
10612         Consolidate redundant definitions.
10613         * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10614         it's undefined in all files that include this one.
10615         (POSIX_SIGNALS): Define here instead of doing it in all files that
10616         include this one.
10617         * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10618         (POSIX_SIGNALS): Do not define.
10619         * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10620         (POSIX_SIGNALS): Do not define.
10621         * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10622         (POSIX_SIGNALS): Do not define.
10624         Remove support for old UNIX System V systems.
10625         * s/unixware.h: Add the contents of s/usg5-4-2.h.
10626         * s/usg5-4-2.h: Remove.
10628         Remove support for Solaris on PPC and for old versions.
10629         * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10630         (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10631         that cancel each other.
10632         * s/sol2-3.h:
10633         * s/sol2-4.h:
10634         * s/sol2-5.h: Remove.
10635         * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10636         (NO_REMAP): Remove, unused.
10637         (UNEXEC): Move definition ...
10638         * s/aix4-2.h (UNEXEC): ... here.
10640         * s/openbsd.h: Remove support for non-ELF and for systems that do
10641         not support shared libraries.
10642         * s/netbsd.h:
10643         * s/freebsd.h: Likewise.
10645 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
10647         Remove non-working support for lynxos 3.0.
10648         * s/lynxos.h: Remove file.
10650         * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10651         COFF_BSD_SYMBOLS, nothing defines it anymore.
10653 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
10655         Remove obsolete uses of HAVE_SHM.
10656         * emacs.c (standard_args):
10657         (Fdump_emacs):
10658         (syms_of_emacs): Remove code depending on HAVE_SHM.
10660         * alloc.c: Remove HAVE_SHM dependent definition.
10662         * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10664 2010-03-18  Glenn Morris  <rgm@gnu.org>
10666         * emacs.c (USAGE4): Hard-code bug address.
10667         (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10668         (bug_reporting_address): Remove.
10669         (main): Don't call bug_reporting_address.
10671         * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10672         (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10674 2010-03-15  Chong Yidong  <cyd@stupidchicken.com>
10676         * xfns.c (Fx_create_frame):
10677         * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10678         on left.
10680 2010-03-13  Andreas Politz  <politza@fh-trier.de>  (tiny change)
10682         * editfns.c (Fformat): Account for string precision when computing
10683         field width (Bug#5710).
10685 2010-03-12  Chong Yidong  <cyd@stupidchicken.com>
10687         * xfns.c (Fx_create_frame): Set default to Qright.
10689         * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10690         all window systems.
10692 2010-03-12  Eli Zaretskii  <eliz@gnu.org>
10694         These changes remove termcap.c from the build on Posix platforms.
10695         * Makefile.in (termcapobj): Move termcap.o from here...
10696         (MSDOS_OBJ): ...to here.
10697         (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10698         now identical to when LIBS_TERMCAP is defined.
10700         * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10702         * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10704         * config.in: Regenerated.  (See top-level ChangeLog.)
10706 2010-03-10  Chong Yidong  <cyd@stupidchicken.com>
10708         * Branch for 23.2.
10710 2010-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10712         Cleanup setup of gl_state in various parts of the code.
10713         * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10714         (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10715         * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10716         (skip_chars):
10717         * regex.c (regex_compile): Use it.
10718         (re_compile_pattern): Don't set gl_state.current_syntax_table since
10719         it's now set in regex_compile when/if we need it.
10721 2010-03-05  Stefan Monnier  <monnier@iro.umontreal.ca>
10723         Make it possible to C-g in a tight bytecode loop again (bug#5680).
10724         * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10725         (QUIT): Use it to consolidate code and remove redundancy.
10726         * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10728         * regex.c (regex_compile): Setup gl_state as well.
10730         * syntax.c (skip_chars): Setup gl_state (bug#3823).
10731         (in_classes): Use CONSP before XCAR/XCDR.
10733 2010-03-03  Chong Yidong  <cyd@stupidchicken.com>
10735         * keymap.c (Fwhere_is_internal): Use Fequal to compare
10736         definitions, so that keyboard macros are correctly handled
10737         (Bug#5481).
10739 2010-03-02  Eli Zaretskii  <eliz@gnu.org>
10741         * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10742         text that could be relocated inside the call to emacs_mule_char.
10743         (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10744         (CODING_DECODE_CHAR): Add a comment describing its purpose.
10746 2010-03-02  Kenichi Handa  <handa@m17n.org>
10748         * character.c (parse_str_as_multibyte): Fix handling of the
10749         multibyte form of raw-bytes.
10750         (str_as_multibyte): Likewise.
10752         * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10753         form of raw-bytes.
10755 2010-02-28  Chong Yidong  <cyd@stupidchicken.com>
10757         * charset.c (load_charset_map_from_file)
10758         (load_charset_map_from_vector): Zero out allocated
10759         charset_map_entries before using them.
10761 2010-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10763         * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10765 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
10767         * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10768         "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10770 2010-02-26  Kenichi Handa  <handa@m17n.org>
10772         * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10774         * xdisp.c (reseat_to_string): Fix previous change.
10776 2010-02-26  David Reitter  <david.reitter@gmail.com>
10778         * nsfont.m (nsfont_draw): ns_antialias_text should be a
10779         Lisp_Object (Bug#4736).
10781 2010-02-25  Kenichi Handa  <handa@m17n.org>
10783         * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10785 2010-02-24  Jan Djärv  <jan.h.d@swipnet.se>
10787         * xterm.c (XTflash): Move declarations before statements.
10789         * gtkutil.c (xg_get_gdk_display): Remove (unused).
10790         (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10791         (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10792         (xg_create_tool_bar): Remove unused variables.
10793         (x_wm_set_size_hint): Move declarations before statements.
10794         (xg_create_frame_widgets): Remove variable grav.
10796 2010-02-21  Chong Yidong  <cyd@stupidchicken.com>
10798         * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10800 2010-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
10802         * term.c (fatal): Add a final \n if needed (bug#5596).
10804 2010-02-18  Chong Yidong  <cyd@stupidchicken.com>
10806         * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10808 2010-02-18  Glenn Morris  <rgm@gnu.org>
10810         * callint.c (Finteractive): Doc fix.
10812 2010-02-18  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
10814         * coding.c (record_conversion_result):
10815         Handle CODING_RESULT_INSUFFICIENT_DST.
10816         (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10817         memory allocation error.
10819 2010-02-17  Kenichi Handa  <handa@m17n.org>
10821         * coding.c (decode_coding_ccl): Don't setup ccl program here.
10822         Fix for the case that the output buffer is fullfilled.
10823         (decode_coding): Setup ccl program here.  Keep looping when the
10824         decoder stopped because the output buffer is
10825         fullfilled (bug#5534).
10827         * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10829 2010-02-13  Jan Djärv  <jan.h.d@swipnet.se>
10831         * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
10832         bug #5571.
10833         (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
10834         overdrawn.
10836 2010-02-10  Jan Djärv  <jan.h.d@swipnet.se>
10838         * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10839         doing_interact here.
10840         (ice_connection_closed): New function.
10841         (x_session_check_input, smc_die_CB, ice_io_error_handler)
10842         (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10843         (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10844         returns I/O error.
10845         (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10846         bug #5512.
10848 2010-02-08  Francis Devereux  <francis@devrx.org>  (tiny change)
10850         * nsfont.m (nsfont_open): The system's value for the font descent
10851         is negative, so round it down to avoid clipping.
10853 2010-02-06  Chong Yidong  <cyd@stupidchicken.com>
10855         * charset.c (load_charset_map_from_file)
10856         (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
10857         instead of xmalloc (Bug#5526).  Suggested by Vivek Dasmohapatra.
10859 2010-02-05  Chong Yidong  <cyd@stupidchicken.com>
10861         * charset.c (load_charset_map_from_file): Allocate large
10862         charset_map_entries structure on the heap rather than the stack.
10863         (Bug#5526).
10865 2010-01-31  Kenichi Handa  <handa@m17n.org>
10867         * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
10868         size in NAME is invalid, return -1 (Bug#5396).
10870 2010-01-31  Chong Yidong  <cyd@stupidchicken.com>
10872         * nsterm.m (ns_defined_color): Block input.  Suggested by Mike
10873         <deactivated@gmail.com> (Bug#3605).
10875 2010-01-31  David De La Harpe Golden  <david@harpegolden.net>
10877         * fileio.c (Frename_file): Correctly rename symlinks to
10878         directories (Bug#5496).
10880 2010-01-31  Filipe Cabecinhas  <filcab@gmail.com>  (tiny change)
10882         * nsterm.m (ns_ring_bell): Handle visible bell like X.
10884 2010-01-30  Andreas Schwab  <schwab@linux-m68k.org>
10886         * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10888 2010-01-29  Chong Yidong  <cyd@stupidchicken.com>
10890         * frame.c (DEFAULT_ROWS): Change default to 35.
10892         * xfns.c (x_default_font_parameter): Change default XFT font to
10893         monospace-10 (Bug#3643).
10895 2010-01-29  Eli Zaretskii  <eliz@gnu.org>
10897         * w32inevt.c (key_event): Remove unnecessary comparison of
10898         event->uChar.AsciiChar with 128.
10900 2010-01-28  Chong Yidong  <cyd@stupidchicken.com>
10902         * fileio.c (Frename_file): Fix last change (Bug#5487).
10904         * m/mips.h: Remove DATA_START.  Suggested by Dan Nicolaescu.
10906         * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10908 2010-01-28  Jan Djärv  <jan.h.d@swipnet.se>
10910         * xfns.c (Fx_create_frame): Remove window size matching code from
10911         2010-01-15.
10912         (x_get_current_desktop, x_get_desktop_workarea): Remove.
10914 2010-01-27  Jason Rumney  <jasonr@gnu.org>
10916         * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
10917         (key_event): Use unicode for characters 128 and higher (Bug#4567).
10919 2010-01-27  Kenichi Handa  <handa@m17n.org>
10921         * regex.c (analyse_first): Fix setting of fastmap for unibyte
10922         pattern string (Bug#4209).
10924 2010-01-27  David De La Harpe Golden  <david@harpegolden.net>
10926         * fileio.c (Frename_file): Call copy-directory and
10927         delete-directory for directories, in order to handle cross-device
10928         renaming (Bug#3353).
10930 2010-01-25  Jan Djärv  <jan.h.d@swipnet.se>
10932         * xfns.c (Fx_create_frame): If frame height is too big, try
10933         sizes 24 and 10.  Bug #3643.
10935 2010-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
10937         Try and fix bug#788, hopefully for real this time.
10938         * keymap.c (shadow_lookup): Add `remap' arg.
10939         (describe_map, describe_vector): Update calls to shadow_lookup.
10940         (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10941         `remapped' so this flag is applicable to `sequence'.  Be careful to
10942         perform remapping during shadow_lookup check of remapped_sequences.
10944 2010-01-24  Eric Bélanger  <snowmaniscool@gmail.com>  (tiny change)
10946         * image.c (png_load): Use png_sig_cmp instead of the obsolete
10947         png_check_sig, which has been removed in libpng 1.4.
10949 2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
10951         * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10952         lacks this header file).
10954 2010-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10956         * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10957         as in Emacs 22.
10959 2010-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10961         * lisp.h (make_pure_string): String pointer arg now points to const.
10963         * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10964         args now point to const.
10966 2010-01-22  Eli Zaretskii  <eliz@gnu.org>
10968         * lread.c (Fload): Don't treat files without .elc extension as
10969         byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10970         them.  (bug#5303)
10972 2010-01-20  Kenichi Handa  <handa@m17n.org>
10974         * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10975         treat the source as actual byte sequence.
10977 2010-01-19  Alan Mackenzie  <acm@muc.de>
10979         Fix spurious before-change-functions invocation from (insert ?\n).
10980         * textprop.c (set_text_properties): Rename parameter
10981         `signal_after_change_p' to `coherent_change_p', and make the
10982         invocation of `modify_region' conditional on it.
10984 2010-01-19  Jan Djärv  <jan.h.d@swipnet.se>
10986         * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10987         for debug purpose.
10988         (syms_of_xsettings): Declare xft-settings.
10990 2010-01-18  Chong Yidong  <cyd@stupidchicken.com>
10992         * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10994 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
10996         * xterm.c (event_handler_gdk): Block input (Bug#5037).
10998 2010-01-16  Chong Yidong  <cyd@stupidchicken.com>
11000         * emacs.c (standard_args): Adjust arg priorities to reflect how
11001         they are processed in startup.el.
11003 2010-01-16  Andreas Schwab  <schwab@linux-m68k.org>
11005         * Makefile.in (lisp, shortlisp): Update.
11007 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11009         * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11010         code, link the new kboard into all_kboard before running Lisp code,
11011         and protect the new terminal with GCPRO (Bug#5365).
11012         (x_term_init): Remove unused var `atom'.
11013         (x_delete_display, x_delete_terminal): Remove unused var `i'.
11015 2010-01-15  Jan Djärv  <jan.h.d@swipnet.se>
11017         * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11018         (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11019         to find out usable size of the desktop.  Don't make frames larger than
11020         this.  Bug #3643.
11022 2010-01-15  Kenichi Handa  <handa@m17n.org>
11024         * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS.  Callers changed.
11026 2010-01-15  Chong Yidong  <cyd@stupidchicken.com>
11028         * nsterm.m (Qnone): Define.
11030         * nsfns.m (Qnone): Move definition to nsterm.m.
11032 2010-01-14  Kenichi Handa  <handa@m17n.org>
11034         * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11035         systems.
11037 2010-01-14  Kenichi Handa  <handa@m17n.org>
11039         Make auto-composition work on all buffers even if they are
11040         fundamental mode.
11042         * composite.c (Vauto_composition_mode): New variable.
11043         (composition_compute_stop_pos): Check Vauto_composition_mode
11044         instead of Vauto_composition_function.
11045         (composition_adjust_point, Ffind_composition_internal): Likewise.
11046         (syms_of_composite): Declare Lisp variable
11047         "auto-composition-mode" here.
11049 2010-01-13  Chong Yidong  <cyd@stupidchicken.com>
11051         * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11052         during call to vendor-specific-keysyms (Bug#5365).
11054 2010-01-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11056         * keyboard.c (input_available_signal) [SYNC_INPUT]:
11057         Call SIGNAL_THREAD_CHECK (Bug#5333).
11059         * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11060         Call SIGNAL_THREAD_CHECK.
11062 2010-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11064         Try to fix bug#5314.  This is probably not the final word, tho.
11065         * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11066         recent-auto-save-p as a side-effect.
11067         * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11068         * buffer.c (Fkill_buffer, reset_buffer):
11069         * editfns.c (Fsubst_char_in_region):
11070         * fileio.c (Finsert_file_contents, Fdo_auto_save)
11071         (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11073 2010-01-13  Kenichi Handa  <handa@m17n.org>
11075         Display buffer name, etc. in mode line by composing correctly.
11077         * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11078         STRING is not nil.
11079         (display_mode_element): Adjust for the change of
11080         decode_mode_spec and display_line.
11081         (decode_mode_spec): Change arg MULTIBYTE to STRING.
11082         (display_string): Handle the case that STRING is non-null and
11083         LISP_STRING is not nil.
11085         * xterm.c (x_draw_composite_glyph_string_foreground):
11086         Pay attention to s->face->overstrike.
11088         * composite.c (composition_reseat_it): Don't check PT if STRING is
11089         non nil.
11091 2010-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11093         * keyboard.c (read_char): Don't apply previous change when current
11094         buffer is unchanged by command execution.
11096 2010-01-12  Jan Djärv  <jan.h.d@swipnet.se>
11098         * keyboard.c (read_char): Return after executing from special map.
11100 2010-01-12  Glenn Morris  <rgm@gnu.org>
11102         * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11103         bug-gnu-emacs rather than emacs-pretest-bug.
11105 2010-01-11  Chong Yidong  <cyd@stupidchicken.com>
11107         * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11108         initializing the Lisp variables that depend on them.
11110 2010-01-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11112         * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11113         Clear areas that will not be updated after change of menu bar lines.
11114         Clear the menu bar window's current matrix when the window gets empty.
11116 2010-01-09  Chong Yidong  <cyd@stupidchicken.com>
11118         * intervals.h, textprop.c (extend_property_ranges): Return value
11119         and args changed.  Discard properties that begin at or after the
11120         new end (Bug#5306).
11122         * editfns.c (Fformat): Caller changed.
11124         * nsterm.m (ns_set_default_prefs): Delete function.
11125         (syms_of_nsterm): Initialize ns_command_modifier,
11126         ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11127         ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11129         * xdisp.c (pos_visible_p): Check for invisible text at the correct
11130         position (Bug#4040).
11132 2010-01-09  Eli Zaretskii  <eliz@gnu.org>
11134         * editfns.c (Ffloat_time): Doc fix.
11136 2010-01-09  Jan Djärv  <jan.h.d@swipnet.se>
11138         * xfns.c (Fx_create_frame): Don't create frame larger than display
11139         by default bug#3643.
11141 2010-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11143         * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11144         (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11145         windows above internal border.
11147         * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11148         (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11149         windows above internal border.
11151         * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11152         tool bar windows specially.
11154         * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11156         * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11157         specially.
11158         (XTflash): Take account of menu bar height.
11160         * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11161         specially.
11163 2010-01-08  Jan Djärv  <jan.h.d@swipnet.se>
11165         * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11166         also be true before we can return early (bug #5339).
11168 2010-01-06  David Reitter  <david.reitter@gmail.com>
11170         * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11171         (Fns_display_usable_bounds): Rewrite, computing bounds properly
11172         (Bug#3233).
11174 2010-01-06  Jan Djärv  <jan.h.d@swipnet.se>
11176         * font.c (font_open_entity): Enable chache and call cached_font_ok
11177         for the driver if defined.
11178         (QCuser_spec): New symbol.
11179         (font_spec_from_name): Save name as user-spec.
11180         (font_load_for_lface): Keep user-spec instead of name.
11181         (font_open_by_name): Save name as user-spec.
11182         (syms_of_font): Initialize QCuser_spec.
11183         (font_clear_prop): Clear name if it exists in font (bug#5157).
11185         * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11186         (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11187         (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11189         * font.h (struct font_driver): Add cached_font_ok.
11191         * xterm.c (x_clear_frame): Queue draw for scroll bars.
11193 2010-01-05  Jan Djärv  <jan.h.d@swipnet.se>
11195         * xterm.c (x_new_font): Move code for setting rows/cols before
11196         resizing ...
11197         (x_set_window_size): ... to here.  Bug #2568.
11199         * gtkutil.c (xg_clear_under_internal_border): New function.
11200         (xg_frame_resized, xg_frame_set_char_size):
11201         Call xg_clear_under_internal_border.
11202         (xg_update_scrollbar_pos): Clear under old scroll bar position.
11204 2010-01-05  Chong Yidong  <cyd@stupidchicken.com>
11206         * keyboard.c (read_key_sequence): Catch keyboard switch after
11207         making a new tty frame (Bug#5095).
11209 2010-01-05  Kenichi Handa  <handa@m17n.org>
11211         * fontset.c (fontset_find_font): Fix getting the frame pointer.
11213 2010-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
11215         * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11216         Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11217         (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11219 2010-01-03  Michael Albinus  <michael.albinus@gmx.de>
11221         * dbusbind.c (xd_add_watch): Improve debug message.
11222         (xd_remove_watch): Improve debug message.  If DATA is the session
11223         bus, unset D-Bus session environment.
11224         (Fdbus_init_bus): Pass the bus as argument to
11225         dbus_connection_set_watch_functions.  (Bug#5283)
11227 2010-01-01  Chong Yidong  <cyd@stupidchicken.com>
11229         * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11231         * lread.c (syms_of_lread): Make it clearer that these are the
11232         names of loaded files (Bug#5068).
11234         * eval.c (run_hook_with_args): Handle the case where the global
11235         value has the obsolete single-function form (Bug#5026).
11237 2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
11239         * minibuf.c (Fall_completions): Minor optimization.
11241 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
11243         * .gdbinit (pgx): Fix display of composite glyphs.
11244         Display cmp.from and cmp.to as well.
11245         (pitx): Fix last change.
11247 2009-12-25  Kenichi Handa  <handa@m17n.org>
11249         * composite.h (composition_adjust_point): Update prototype.
11251         * composite.c (composition_reseat_it): Don't make a composition
11252         spanning over point.
11253         (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11254         composable characters.
11255         (composition_adjust_point): New arg NEW_PT.  Callers changed.
11257         * keyboard.c (command_loop_1): Force redisplay if the last point
11258         was within a composition.
11259         (adjust_point_for_property): Don't adjust point for automatic
11260         composition when called after buffer modification.
11262 2009-12-19  Eli Zaretskii  <eliz@gnu.org>
11264         * .gdbinit (pitx): Don't use enum names, use their values.
11265         Remove reference to non-existing value GET_FROM_COMPOSITION.
11266         (pgx): Don't use enum names, use their values.
11267         (pitmethod): New helper command.
11268         (pitx): Use it to display iteration method.
11269         (pgrowit): New command.
11271         * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11273         Update dependencies in Makefile.in.
11275         * Makefile.in (alloc.o): Depend on termhooks.h.
11276         (atimer.o): Depend on blockinput.h.
11277         (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11278         and frame.h.
11279         (callint.o): Depend on systime.h, coding.h, and composite.h.
11280         (callproc.o): Depend on buffer.h.
11281         (casefiddle.o): Don't depend on charset.h.
11282         (casetab.o): Depend on character.h.
11283         (ccl.o): Depend on composite.h.
11284         (chartab.o): Depend on ccl.h.
11285         (cm.o): Depend on dispextern.h.
11286         (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11287         (coding.o): Don't depend on $(INTERVALS_H).
11288         (composite.o): Don't depend on dispextern.h explicitly (it's in
11289         $(INTERVALS_H)).  Depend on ccl.h.
11290         (data.o): Depend on systime.h, coding.h, composite.h,
11291         dispextern.h, font.h, and ccl.h.
11292         (dired.o): Depend on composite.h.
11293         (dispnew.o): Depend on coding.h.  Don't depend explicitly on
11294         composite.h (it's in $(INTERVALS_H)).
11295         (doc.o): Depend on systime.h, coding.h, and composite.h.
11296         (editfns.o): Don't depend explicitly on dispextern.h.
11297         (emacs.o): Depend on frame.h and coding.h.
11298         (eval.o): Depend on coding.h, composite.h, and xterm.h.
11299         (fileio.o): Depend on frame.h and commands.h.  Don't depend
11300         explicitly on dispextern.h.
11301         (filelock.o): Don't depend on epaths.h and charset.h.  Depend on
11302         composite.h.
11303         (fns.o): Don't depend on termhooks.h.
11304         (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11305         (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11306         coding.h, $(INTERVALS_H), window.h, xterm.h.
11307         (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11308         (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11309         (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11310         fontset.h, ccl.h, and ftfont.h.
11311         (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11312         (gtkutil.o): Depend on dispextern.h and composite.h.
11313         (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11314         termhooks.h, and ccl.h.
11315         (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11316         (intervals.o): Depend on systime.h and coding.h.
11317         (keyboard.o): Depend on composite.h and coding.h.
11318         (keymap.o): Depend on coding.h and frame.h.
11319         (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11320         (macros.o): Depend on systime.h, coding.h, and composite.h.
11321         (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11322         and atimer.h.
11323         (minibuf.o): Depend on systime.h and coding.h.  Don't depend on
11324         dispextern.h explicitly.
11325         (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11326         Don't depend explicitly on dispextern.h and composite.h.
11327         (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11328         (regex.o): Don't depend on charset.h.
11329         (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11330         (search.o): Don't depend explicitly on composite.h.
11331         (sound.o): Depend on atimer.h and systime.h.
11332         (syntax.o): Don't depend explicitly on composite.h.
11333         (sysdep.o): Depend on coding.h and composite.h.
11334         (term.o): Depend on xterm.h and buffer.h.
11335         (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11336         (textprop.o): Don't depend on dispextern.h explicitly.
11337         (undo.o): Depend on dispextern.h.
11338         (window.o): Depend on coding.h and termhooks.h.  Don't depend on
11339         dispextern.h and composite.h explicitly.
11340         (xdisp.o): Depend on ccl.h.
11341         (xfaces.o): Depend on coding.h and ccl.h.
11342         (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11343         (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11344         (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11345         ftfont.h.
11346         (xgselect.o): New dependency.
11347         (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11348         (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11349         (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11350         coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11351         (xsmfns.o): Depend on frame.h and dispextern.h.
11352         (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11353         sysselect.h.
11355 2009-12-19  Andreas Schwab  <schwab@linux-m68k.org>
11357         * font.c (Fclear_font_cache): Pass correct cache argument to
11358         font_clear_cache.
11360 2009-12-16  Andreas Schwab  <schwab@linux-m68k.org>
11362         * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11363         twice.
11365 2009-12-15  Chong Yidong  <cyd@stupidchicken.com>
11367         * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11368         calling file-remote-p.  Reported by Jim Meyering.
11370 2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
11372         * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11373         avoid compiler warnings.  (Bug #5217)
11375 2009-12-14  Kenichi Handa  <handa@m17n.org>
11377         * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11378         in 8-bit encoding.
11380 2009-12-13  Pat Thoyts  <patthoyts@users.sourceforge.net>  (tiny change)
11382         * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11383         tooltip windows.
11385 2009-12-13  Jan Djärv  <jan.h.d@swipnet.se>
11387         * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11388         Xatom_net_window_type.
11390         * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11391         Xatom_net_window_type.
11393         * xterm.c (my_log_handler): New function.
11394         (x_term_init): Set my_log_handler as log handler during gtk_init
11395         so we can filter out buggy messages.  (Bug #5120).
11397         * xterm.c (xg_scroll_callback): Parameter list changed,
11398         use parameter GtkScrollType to determine scroll/line/page.
11399         Only allow dragging if a button < 4 is grabbed (bug #5177).
11400         (xg_end_scroll_callback): New function.
11401         (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11402         xg_create_scroll_bar.
11404         * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11405         (scroll_end_callback): Remove.
11406         (xg_create_scroll_bar): Add parameter end_callback, bind it to
11407         button-release-event.  Replace value-changed event with change-value,
11408         bug #5177.
11409         (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11410         bug #5177.
11412         * gtkutil.h (XG_LAST_SB_DATA): Remove.
11413         (xg_create_scroll_bar): Add GCallback end_callback.
11415         * xftfont.c (QClcdfilter): New variable.
11416         (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11417         (syms_of_xftfont): Initialize QClcdfilter.
11419 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
11421         * xsettings.c (struct xsettings): Add member seen.
11422         (parse_xft_settings): Update member seen with what we have read.
11423         Return non-zero if Xft-settings have been parsed, 0 otherwise.
11424         (apply_xft_settings): Only update Xft settings with what member seen
11425         indicates as new.
11427 2009-12-12  Eli Zaretskii  <eliz@gnu.org>
11429         * dispextern.h (struct text_pos): Use EMACS_INT.
11430         (struct glyph): Use EMACS_INT for charpos.
11431         (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11432         region_beg_charpos, region_end_charpos,
11433         redisplay_end_trigger_charpos, and also for
11434         iterator_stack_entry.end_charpos and
11435         iterator_stack_entry.stop_charpos.
11437 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
11439         * gtkutil.c (scroll_end_callback): New function (bug #5177).
11440         (xg_create_scroll_bar): Call scroll_end_callback on button release
11441         event (bug #5177).
11442         (xg_event_is_for_scrollbar): != replaced with ==.
11444 2009-12-12  Kenichi Handa  <handa@m17n.org>
11446         * ftfont.c (struct ftfont_info): New member matrix.
11447         (ftfont_open): Setup xftfont_info->matrix.
11448         (MFLTFontFT): New member matrix.
11449         (FLOOR, CEIL, ROUND): New macros.
11450         (ftfont_get_metrics): Handle matrix transformation.
11451         (ftfont_shape_by_flt): New arg matrix.  Callers changed.
11453         * xftfont.c (struct xftfont_info): New member matrix.
11454         (xftfont_open): Setup xftfont_info->matrix.
11456 2009-12-10  Kenichi Handa  <handa@m17n.org>
11458         * xdisp.c (append_space_for_newline): Consider face-remapping.
11460 2009-12-09  Andreas Schwab  <schwab@linux-m68k.org>
11462         * xsettings.c: Include "keyboard.h".
11464         * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11466         Fix implicit function declarations.
11467         * cmds.c: Include "frame.h".
11468         * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11469         * frame.h: Move declaration of delete_frame outside of
11470         HAVE_WINDOW_SYSTEM.
11472 2009-12-09  Ken Brown  <kbrown@cornell.edu>  (tiny change)
11474         * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11476         * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11477         GTK builds.
11479 2009-12-07  Andreas Schwab  <schwab@linux-m68k.org>
11481         * unexelf.c (unexec): Don't search for .data twice.
11483 2009-12-05  Chong Yidong  <cyd@stupidchicken.com>
11485         * xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
11486         if push failed.
11487         (handle_line_prefix): Set avoid_cursor_p here.  Check return value
11488         of push_display_prop (Bug#5000).
11490         * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11491         value of font_list_entities (Bug#5085).
11493 2009-12-04  Juanma Barranquero  <lekktu@gmail.com>
11495         Fix `string-to-number' to deal consistently with integers and floats.
11496         * lread.c (isfloat_string): New argument ignore_trailing to accept all
11497         trailing characters, not just whitespace.
11498         (read1): Pass new arg 0 to keep old behavior.
11499         * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11500         trailing chars, as it is already done for integers.  Doc fixes.
11501         * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11503 2009-12-04  Eli Zaretskii  <eliz@gnu.org>
11505         * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11506         Delete unused enumeration value.
11508 2009-12-03  Eli Zaretskii  <eliz@gnu.org>
11510         * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11512 2009-12-03  Daniel Hackney  <dan@haxney.org>  (tiny change)
11514         * process.c (Fmake_network_process): Fix up the tests for
11515         "connectionless socket", so they DTRT for seqpacket sockets as well.
11517 2009-12-03  Stefan Monnier  <monnier@iro.umontreal.ca>
11519         * process.c (Qseqpacket): New symbol.
11520         (HAVE_SEQPACKET): New macro.
11521         (Fmake_network_process): Accept new :type `seqpacket'.
11522         (init_process): Add `seqpacket' feature when applicable.
11523         (syms_of_process): Initialize Qseqpacket.
11525 2009-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11527         * font.c (font_load_for_lface, font_open_by_name): Don't store name
11528         if entity is Qnil.
11530 2009-11-30  Stefan Monnier  <monnier@iro.umontreal.ca>
11532         * print.c (print_preprocess): Preprocess the key_and_value table of
11533         hashtables, even tho they're "hidden" (bug#5082).
11535 2009-11-29  Jan Djärv  <jan.h.d@swipnet.se>
11537         * frame.c (frame_make_pointer_invisible)
11538         (frame_make_pointer_visible): Declare f before statements.
11540 2009-11-28  Eli Zaretskii  <eliz@gnu.org>
11542         * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11543         omitted dependencies on lisp.h.
11545 2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
11547         * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11548         is NULL.
11550         * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11552         * frame.c (frame_make_pointer_invisible)
11553         (frame_make_pointer_visible): Just return if there isn't any selected
11554         frame.
11556         * search.c (simple_search): Remove warning by making *p const.
11558 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
11560         * xdisp.c (power_letter): Remove duplicate const.
11562 2009-11-25  Jan Djärv  <jan.h.d@swipnet.se>
11564         * term.c (delete_tty): Remove check for last terminal (bug#4970).
11566         * xsettings.c: Revert changes from 2009-11-23.  Just use Xft
11567         defaults (bug #5025).
11569 2009-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
11571         * insdel.c (adjust_markers_for_delete): Move it in the
11572         right direction!  (bug#4803)
11574 2009-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11576         * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11578         * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11580 2009-11-24  Glenn Morris  <rgm@gnu.org>
11582         * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11584 2009-11-23  Jan Djärv  <jan.h.d@swipnet.se>
11586         * Makefile.in: Must create deps for ecrt0.o in its rule.
11588         * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11589         because that is what Gtk+ font dialog understands.
11591         * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11592         of Fcopy_sequence.
11593         (font_open_by_name): Put name given into QCname for font-object returned.
11595         * frame.c (x_set_font): Save original font name as frame parameter
11596         font-parameter.
11598         * xsettings.c (set_default_xft_settings): New function.
11599         (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11600         is found.
11602 2009-11-22  Andreas Schwab  <schwab@linux-m68k.org>
11604         * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11605         searching backwards through multibyte buffer.
11607 2009-11-21  Jan Djärv  <jan.h.d@swipnet.se>
11609         * xterm.c: #include xgselect.h.
11610         (x_initialize): Call xgselect_initialize.
11612         * xsettings.c (something_changedCB): C++ comments => C comments.
11613         (init_gconf): Do not deal with any GLib file descriptors, xg_select
11614         does that now.
11616         * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11617         (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11618         (scroll_bar_button_cb): Remove.
11619         (create_menus): C++ comments => C comments.  Don't bind grab-notify
11620         event.
11621         (xg_create_scroll_bar): Don't bind button-press-event and
11622         button-release-event.
11624         * process.c: Include xgselect.h if defined (USE_GTK) ||
11625         defined (HAVE_GCONF).
11626         (wait_reading_process_output): Call xg_select for the same condition.
11628         * xgselect.c (xg_select): New function to better integrate with
11629         GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
11631         * xgselect.h: New file, declare xg_select, xgselect_initialize.
11633         * Makefile.in (XOBJ): Add xgselect.o.
11635 2009-11-21  Andreas Schwab  <schwab@linux-m68k.org>
11637         * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11638         Remove ignored second argument.  All callers changed.
11639         * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11640         (RE_STRING_CHAR_AND_LENGTH): Likewise.
11641         * xdisp.c (string_char_and_length): Likewise.
11643 2009-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
11645         * xterm.c (x_new_font):
11646         * print.c (print_object):
11647         * cmds.c (Fself_insert_command): Move declarations before statements.
11649 2009-11-20  Ken Brown  <kbrown@cornell.edu>  (tiny change)
11651         * s/cygwin.h: Remove unneeded linker flags.
11653 2009-11-20  Jan Djärv  <jan.h.d@swipnet.se>
11655         * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11657         * xsettings.h: Declare xsettings_get_system_font.
11659         * xsettings.c (xsettings_get_system_font): New function.
11660         (init_gconf): No use initiating gconf unless we have Xft also.
11661         (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11662         HAVE_GCONF.
11664         * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11665         add a blank entry so it doesn't collapse into nothing.
11667 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11669         * lread.c (Funintern): Comment out last change.
11671 2009-11-19  Richard Stallman  <rms@gnu.org>
11673         * lread.c (Funintern): Error if symbol is t or nil.
11675 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11677         * insdel.c (make_gap_larger): Don't make as many assumptions about the
11678         representation of Lisp integers.
11679         Reported by MJ Chan <mjchan.inbox@gmail.com>.
11681 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
11683         * lisp.h: Remove declaration of Ffont_get_system_font.
11684         * xfns.c: Move include of "xsettings.h".
11685         * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11687 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
11689         * xsettings.c (something_changedCB, Ffont_get_system_font):
11690         Check use_system_font.
11691         (syms_of_xsettings): DEFVAR font-use-system-font.
11693 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
11695         * xfns.c (x_default_font_parameter): Remove dead assignment.
11697         * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11699 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
11701         * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11702         not have FC_LCD_*.  #define them if not there.
11704         * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11706         * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11708         * xterm.c (handle_one_xevent): Call xft_settings_event for
11709         ClientMessage, PropertyNotify and DestroyNotify.
11710         (x_term_init): If we have XFT, get DPI from Xft.dpi.
11711         Call xsettings_initialize.
11713         * xftfont.c (xftfont_fix_match): New function.
11714         (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11715         Call xftfont_fix_match after XftFontMatch.
11717         * xfont.c (xfont_driver): Initialize all members.
11719         * xfns.c (x_default_font_parameter):
11720         Try font from Ffont_get_system_font.
11721         Do not get font from x_default_parameter if we got one from
11722         Ffont_get_system_font.
11723         (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11725         * w32font.c (w32font_driver): Initialize all members.
11727         * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11729         * lisp.h: Declare syms_of_xsettings.
11731         * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11732         Handle CONFIG_CHANGED_EVENT.
11734         * ftfont.c (ftfont_filter_properties): New function.
11736         * frame.c (x_set_font): Remove unused variable lval.
11738         * font.h (struct font_driver): Add filter_properties.
11740         * font.c (font_put_extra): Don't return if val is nil, it means
11741         boolean option is off.
11742         (font_parse_fcname): Collect all extra properties in extra_props
11743         and call filter_properties for all drivers with extra_props and
11744         font as parameter.
11745         (font_open_entity): Do not use cache, it does not pick up new
11746         fontconfig settings like hinting.
11747         (font_load_for_lface): If spec had a name in it, store it in entity.
11749         * emacs.c (main): Call syms_of_xsettings.
11751         * config.in: HAVE_GCONF is new.
11753         * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11754         xsettings.o is new.
11756 2009-11-17  Kenichi Handa  <handa@m17n.org>
11758         * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11759         back to the default font in case that no suitable font is found.
11761 2009-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
11763         * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11764         Suggested by Chad Brown <yandros@mit.edu>.
11765         (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11767 2009-11-16  Jan Djärv  <jan.h.d@swipnet.se>
11769         * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11771 2009-11-14  Andreas Schwab  <schwab@linux-m68k.org>
11773         * Makefile.in: Ignore errors from mkdir when creating deps directory.
11775 2009-11-14  Jan Djärv  <jan.h.d@swipnet.se>
11777         * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11778         has a parent.
11780         * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11781         dependency files in deps/.  Include those files into Makefile.
11783         * config.in: Generated (AUTO_DEPEND).
11785 2009-11-13  Michael Albinus  <michael.albinus@gmx.de>
11787         * dbusbind.c (Vdbus_registered_objects_table): Rename from
11788         Vdbus_registered_functions_table, because it contains also
11789         properties.  Fix docstring.
11790         (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
11792 2009-11-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11794         * alloc.c (mark_object): Don't reprocess marked strings.
11795         Check vector's markbit earlier.  Adjust calls to mark_vectorlike.
11796         (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11798 2009-11-13  Kenichi Handa  <handa@m17n.org>
11800         * category.c (word_boundary_p): Adjust for the change of the
11801         semantics of Vword_combining_categories.
11802         (Vword_combining_categories): Describe the slight change of the
11803         semantics.
11805 2009-11-13  Eli Zaretskii  <eliz@gnu.org>
11807         * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11809         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11811 2009-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
11813         * xdisp.c (syms_of_xdisp): Fix typo in last change.
11815 2009-11-12  Juanma Barranquero  <lekktu@gmail.com>
11817         * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11819 2009-11-11  David Reitter  <david.reitter@gmail.com>
11821         * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11822         variables to fix 2009-11-09 change.
11824 2009-11-11  Dan Nicolaescu  <dann@ics.uci.edu>
11826         * process.c (ifflag_def): Make flag_sym constant.
11827         (Fnetwork_interface_info): Use a constant pointer.
11828         (ifflag_table):
11829         * xfns.c (cursor_bits):
11830         * xdisp.c (power_letter):
11831         * termcap.c (speeds, esctab):
11832         * sysdep.c (baud_convert):
11833         * keyboard.c (lispy_accent_codes, modifier_names):
11834         * image.c (xbm_format, xpm_format, pbm_format, png_format)
11835         (jpeg_format, tiff_format, gif_format, svg_format)
11836         (interlace_start, interlace_increment, gs_format):
11837         * gtkutil.c (separator_names):
11838         * fringe.c (swap_nibble):
11839         * fns.c (base64_value_to_char, base64_char_to_value):
11840         * fileio.c (make_temp_name_tbl):
11841         * coding.c (suffixes): Make constant.
11843         * frame.c (make_initial_frame):
11844         * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11845         build_string.
11846         * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11848         * s/freebsd.h:
11849         * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11851         * Makefile.in: Add dependencies to lisp.h.  Remove dependencies
11852         for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11854         * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11855         * xterm.c (syms_of_xterm):
11856         * xfaces.c (syms_of_xfaces):
11857         * xdisp.c (syms_of_xdisp):
11858         * lread.c (syms_of_lread):
11859         * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11860         build_string.
11862         * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11864 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11866         * fns.c (Fplist_get): Merge the active and the commented out code.
11868 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
11870         * keyboard.h: Declare timer_check.
11872         * keyboard.c (timer_check_2): New function that does what the old
11873         timer_check did.
11874         (timer_check): Call timer_check_2 until -1 or a non-zero time is
11875         returned, i.e. don't return -1 with timers pending.
11877         * process.c: Remove extern declaration of timer_check.
11879         * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11880         even if timer_check returned -1.
11882         * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11883         xg_dialog_data.
11884         (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11885         the event loop.
11886         (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11887         (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11888         Destroy the dialog after xg_dialog_run.
11890 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11892         * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11894 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
11896         * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11898 2009-11-09  Juanma Barranquero  <lekktu@gmail.com>
11900         * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11902 2009-11-09  Stefan Monnier  <monnier@iro.umontreal.ca>
11904         * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11905         w32menu.c, and nsmenu.m.
11906         Simplify the obsolete case where position is nil.
11907         (cleanup_popup_menu): New function, moved from nsmenu.m.
11908         (struct skp): Remove slot `notreal'.
11909         (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11910         adjust callers.
11911         (single_menu_item): Adjust call to parse_menu_item.
11912         (syms_of_menu): Defsubr x-popup-menu.
11913         * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11914         (keymap_panes): Don't export any more.
11915         (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11916         (xmenu_show): Declare.
11917         * keyboard.c (parse_menu_item): Remove arg `notreal'.
11918         (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11919         * keyboard.h (parse_menu_item): Update declaration.
11920         * xmenu.c (Fx_popup_menu): Remove.
11921         (syms_of_xmenu): Don't defsubr x-popup-menu.
11922         * w32menu.c (Fx_popup_menu): Remove.
11923         (syms_of_w32menu): Don't defsubr x-popup-menu.
11924         * nsmenu.m (cleanup_popup_menu): Remove.
11925         (ns_menu_show): Rename from ns_popup_menu and remove all the code
11926         moved to menu.c's Fx_popup_menu.
11927         (Fx_popup_menu): Remove.
11928         (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11929         menu_items (it's done in menu.c already).
11931 2009-11-08  Stefan Monnier  <monnier@iro.umontreal.ca>
11933         * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11934         Use `tem' less.  Make sure KEYEQ holds a string or nil (bug#4879).
11936 2009-11-08  Chong Yidong  <cyd@stupidchicken.com>
11938         * xmenu.c (Fx_popup_menu): Extract event timestamp.  Pass it to
11939         xmenu_show.  Hide any tooltip before opening a menu.
11940         (xmenu_show): New arg.  Pass it to create_and_show_popup_menu.
11941         (create_and_show_popup_menu): New arg.  Pass it to gtk_menu_popup.
11943 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
11945         Let integers use up 2 tags to give them one extra bit and thus double
11946         their range.
11947         * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11948         (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11949         New macros.
11950         (enum Lisp_Type): Use them.  Give explicit values.
11951         (Lisp_Type_Limit): Remove.
11952         (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11953         (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11954         Pay attention to USE_2_TAGS_FOR_INTS.
11955         (INTEGERP): Use LISP_INT_TAG_P.
11956         * fns.c (internal_equal): Simplify the default case.
11957         (sxhash): Use case_Lisp_Int.
11958         * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11959         any more.
11960         (Ftype_of): Use case_Lisp_Int.
11961         (store_symval_forwarding): Take into account the fact that Ints can
11962         now have more than one tag.
11963         * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
11964         (buffer_slot_type_mismatch):
11965         * xfaces.c (face_attr_equal_p):
11966         * print.c (print_object):
11967         * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11968         Use case_Lisp_Int.
11970 2009-11-06  Eli Zaretskii  <eliz@gnu.org>
11972         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11974         * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11975         warning.
11977 2009-11-06  Jan Djärv  <jan.h.d@swipnet.se>
11979         * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11981         * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11983         * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11984         ButtonPressRelease and MotionNotify (bug#4870).
11986 2009-11-06  Dan Nicolaescu  <dann@ics.uci.edu>
11988         * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11990         * xterm.c (syms_of_xterm):
11991         * xselect.c (syms_of_xselect):
11992         * xmenu.c (syms_of_xmenu):
11993         * xfns.c (syms_of_xfns):
11994         * xfaces.c (syms_of_xfaces):
11995         * xdisp.c (syms_of_xdisp):
11996         * window.c (syms_of_window):
11997         * w32fns.c (syms_of_w32fns):
11998         * undo.c (syms_of_undo):
11999         * textprop.c (syms_of_textprop):
12000         * terminal.c (syms_of_terminal):
12001         * syntax.c (syms_of_syntax):
12002         * sound.c (syms_of_sound):
12003         * search.c (syms_of_search):
12004         * print.c (syms_of_print):
12005         * minibuf.c (syms_of_minibuf):
12006         * macros.c (syms_of_macros):
12007         * keymap.c (syms_of_keymap, initial_define_key)
12008         (initial_define_lispy_key):
12009         * keyboard.c (syms_of_keyboard):
12010         * insdel.c (syms_of_insdel):
12011         * image.c (syms_of_image):
12012         * fringe.c (syms_of_fringe):
12013         * frame.c (syms_of_frame):
12014         * fontset.c (syms_of_fontset):
12015         * fns.c (syms_of_fns):
12016         * fns.c (syms_of_fns):
12017         * fileio.c (syms_of_fileio):
12018         * fileio.c (syms_of_fileio):
12019         * eval.c (syms_of_eval):
12020         * doc.c (syms_of_doc):
12021         * dispnew.c (syms_of_display):
12022         * dired.c (syms_of_dired):
12023         * dbusbind.c (syms_of_dbusbind):
12024         * data.c (syms_of_data):
12025         * composite.c (syms_of_composite):
12026         * coding.c (syms_of_coding):
12027         * cmds.c (syms_of_cmds):
12028         * charset.c (define_charset_internal, syms_of_character):
12029         * ccl.c (syms_of_ccl):
12030         * category.c (syms_of_category, init_category_once):
12031         * casetab.c (syms_of_casetab):
12032         * casefiddle.c (syms_of_casefiddle):
12033         * callint.c (syms_of_callint):
12034         * bytecode.c (syms_of_bytecode):
12035         * buffer.c (keys_of_buffer, syms_of_buffer):
12036         * alloc.c (syms_of_alloc):
12037         * process.c (syms_of_process, init_process):
12038         * lread.c (syms_of_lread, init_obarray):
12039         * font.c (build_style_table):
12040         * emacs.c (syms_of_emacs, main): Replace calls to intern with
12041         intern_c_string, calls to make_pure_string with
12042         make_pure_c_string.  Use pure_cons instead of Fcons.
12044         * process.c (socket_options): Make it const.
12045         (set_socket_option, init_process): Use a const pointer.
12047         * lread.c (intern_c_string): New function.
12048         (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12049         (defvar_int): Uset it.  Make the name const char*.
12051         * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12052         (defvar_int): Update prototypes.
12053         (DEFUN, EXFUN): Support for prototypes is now required.
12054         (intern_c_string): New prototype.
12055         (struct Lisp_Subr): Make symbol_name constant.
12057         * font.c (struct table_entry): Remove unused member.  Make NAMES
12058         constant.
12059         (weight_table, slant_table, width_table): Make constant.
12061         * emacs.c (struct standard_args): Make name and longname constant.
12063         * character.h (DEFSYM): Use intern_c_string.
12065 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
12067         * alloc.c (make_pure_c_string): New function.
12069         * eval.c (Fautoload): Purecopy all arguments.
12071 2009-11-05  Kenichi Handa  <handa@m17n.org>
12073         * fileio.c (Finsert_file_contents): Be sure set coding-system of
12074         the buffer in case of replace.
12076 2009-11-04  Dan Nicolaescu  <dann@ics.uci.edu>
12078         * puresize.h (BASE_PURESIZE): Increase to 1620000.
12080 2009-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
12082         * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12083         when applicable (bug#4851).
12085         * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12086         (P_): Support for prototypes is now required.
12088 2009-10-31  Chong Yidong  <cyd@stupidchicken.com>
12090         * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12091         (Bug#4827).
12093 2009-10-30  Eli Zaretskii  <eliz@gnu.org>
12095         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12097 2009-10-30  Dan Nicolaescu  <dann@ics.uci.edu>
12099         * puresize.h (BASE_PURESIZE): Increase to 1470000.
12101         * lread.c (Fload): Purecopy the file name when building
12102         Vpreloaded_file_list.
12104 2009-10-29  Jason Rumney  <jasonr@wanchan.jasonrumney.net>
12106         * w32fns.c (syms_of_w32fns): Change default value of
12107         w32-scroll-lock-modifier to nil.  (Bug#2827)
12109 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
12111         * minibuf.c (Fall_completions): Fix typos in docstring.
12113 2009-10-26  Andreas Schwab  <schwab@redhat.com>
12115         * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12117 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
12119         * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12120         For delta < 0, skip check that only makes sense when the mini-window
12121         is going to be enlarged.  (Bug#4534)
12123 2009-10-25  Chong Yidong  <cyd@stupidchicken.com>
12125         * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12126         string in menu maps (Bug#4471).
12128 2009-10-24  Chong Yidong  <cyd@stupidchicken.com>
12130         * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12131         FRAME_NS_VIEW on terminal frames (Bug#4765).
12133 2009-10-24  Andreas Schwab  <schwab@linux-m68k.org>
12135         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12136         DBUS_TYPE_UINTnn separately to get proper sign extension.
12138         * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12139         can properly handle unsigned types.
12140         (make_uid, make_gid): Remove.
12142         * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12143         types again.
12145         * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12146         (system_process_attributes): Likewise.
12148 2009-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
12150         * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12152         * eval.c (Fautoload): Purecopy the filename.  Simplify.
12154         * category.c (Fdefine_category): Purecopy docstring.
12156 2009-10-23  Andreas Schwab  <schwab@linux-m68k.org>
12158         * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12160         * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12162 2009-10-23  Chong Yidong  <cyd@stupidchicken.com>
12164         * window.c (Fwindow_edges, Fwindow_pixel_edges)
12165         (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12166         (Bug#4775).
12168 2009-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
12170         * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12171         (init_fileio_once):
12172         * lisp.h (init_fileio_once): Remove.
12173         * emacs.c (main): Don't call init_fileio_once.
12175 2009-10-23  Dan Nicolaescu  <dann@ics.uci.edu>
12177         * puresize.h (BASE_PURESIZE): Increase to 1430000.
12179 2009-10-21  Andreas Schwab  <schwab@linux-m68k.org>
12181         * doprnt.c (doprnt): Fix overflow check.
12183 2009-10-21  Jan Djärv  <jan.h.d@swipnet.se>
12185         * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12187         * xterm.h (x_wait_for_event): Declare it.
12189         * xterm.c (pending_event_wait): New variable.
12190         (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12191         see pending_event_wait.eventtype.
12192         (handle_one_xevent): Don't change gravity when parent changes.
12193         (x_new_font): Call change_frame_size with new rows/columns before we
12194         try to resize the frame.
12195         (x_wait_for_event): New function.
12196         (x_set_window_size_1): Don't change gravity unless change_gravity
12197         is set.
12198         Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
12199         don't change frame size, instead wait for the ConfigureNotify.
12200         (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12201         (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12202         (x_initialize): Initialize pending_event_wait.
12204         * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12205         size.
12207         * widget.c (EmacsFrameSetValues): Add comment.
12208         (EmacsFrameSetCharSize): Just call x_set_window_size.
12210         * gtkutil.c (xg_frame_set_char_size): Flush events and call
12211         x_wait_for_event.
12212         (flush_and_sync): Remove again.
12213         (xg_get_font_name): Suggest monospace if no previous font is known.
12215 2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
12217         * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12218         8th bit, since that only made sense in the ASCII world (bug#4751).
12220 2009-10-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12222         * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12223         processing pending events when event is filtered for input method.
12224         (Bug#3681)
12226 2009-10-20  Juanma Barranquero  <lekktu@gmail.com>
12228         * fns.c: Add #endif accidentally removed in previous change.
12230 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
12232         * fns.c: Remove code for unsupported system: MAC_OS.
12233         * image.c: Likewise.  Include setjmp.h.
12235 2009-10-19  Jan Djärv  <jan.h.d@swipnet.se>
12237         * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12238         pixel -1 (bug #4742).
12240 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
12242         * process.c (create_pty): Remove conditionals for no longer
12243         supported systems: UNIPLUS and RTU.
12245         * xterm.c:
12246         * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12248         * alloc.c: Do not define struct catchtag.
12249         * eval.c: Move struct catchtag definition ...
12250         * lisp.h: ... here.
12252         * image.c: Move png.h #include earlier to avoid warnings.
12254         * xterm.c:
12255         * xsmfns.c:
12256         * xselect.c:
12257         * xrdb.c:
12258         * xmenu.c:
12259         * xftfont.c:
12260         * xfont.c:
12261         * xfns.c:
12262         * xfaces.c:
12263         * xdisp.c:
12264         * window.c:
12265         * widget.c:
12266         * w32xfns.c:
12267         * w32uniscribe.c:
12268         * w32term.c:
12269         * w32select.c:
12270         * w32reg.c:
12271         * w32proc.c:
12272         * w32menu.c:
12273         * w32inevt.c:
12274         * w32heap.c:
12275         * w32font.c:
12276         * w32fns.c:
12277         * w32console.c:
12278         * w32.c:
12279         * w16select.c:
12280         * vm-limit.c:
12281         * unexsol.c:
12282         * unexec.c:
12283         * unexcw.c:
12284         * unexaix.c:
12285         * undo.c:
12286         * tparam.c:
12287         * textprop.c:
12288         * terminfo.c:
12289         * terminal.c:
12290         * termcap.c:
12291         * term.c:
12292         * syntax.c:
12293         * sound.c:
12294         * sheap.c:
12295         * search.c:
12296         * scroll.c:
12297         * region-cache.c:
12298         * regex.c:
12299         * ralloc.c:
12300         * process.c:
12301         * print.c:
12302         * nsterm.m:
12303         * nsselect.m:
12304         * nsmenu.m:
12305         * nsimage.m:
12306         * nsfont.m:
12307         * nsfns.m:
12308         * msdos.c:
12309         * minibuf.c:
12310         * menu.c:
12311         * marker.c:
12312         * macros.c:
12313         * keymap.c:
12314         * keyboard.c:
12315         * intervals.c:
12316         * insdel.c:
12317         * indent.c:
12318         * gtkutil.c:
12319         * ftxfont.c:
12320         * ftfont.c:
12321         * fringe.c:
12322         * frame.c:
12323         * fontset.c:
12324         * font.c:
12325         * fns.c:
12326         * floatfns.c:
12327         * filelock.c:
12328         * fileio.c:
12329         * emacs.c:
12330         * editfns.c:
12331         * dosfns.c:
12332         * doprnt.c:
12333         * doc.c:
12334         * dispnew.c:
12335         * dired.c:
12336         * dbusbind.c:
12337         * data.c:
12338         * composite.c:
12339         * coding.c:
12340         * cmds.c:
12341         * cm.c:
12342         * chartab.c:
12343         * charset.c:
12344         * character.c:
12345         * ccl.c:
12346         * category.c:
12347         * casetab.c:
12348         * casefiddle.c:
12349         * callproc.c:
12350         * callint.c:
12351         * bytecode.c:
12352         * buffer.c:
12353         * atimer.c: Include setjmp.h.  (Bug#4643)
12355 2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
12357         Remove leftover table unibyte_to_multibyte_table.
12358         * character.c (unibyte_to_multibyte_table): Remove.
12359         (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12360         * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12361         * character.h (UNIBYTE_TO_CHAR): New macro.
12362         (MAKE_CHAR_MULTIBYTE): Use it.
12363         (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12364         * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12365         (message_dolog, set_message_1):
12366         * search.c (Freplace_match):
12367         * editfns.c (Fcompare_buffer_substrings):
12368         * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12369         (concat):
12370         * insdel.c (copy_text, count_size_as_multibyte):
12371         Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12372         * term.c (produce_glyphs):
12373         * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12374         * regex.c (RE_CHAR_TO_MULTIBYTE):
12375         * cmds.c (internal_self_insert):
12376         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12378         * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12380 2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
12382         * puresize.h (BASE_PURESIZE): Increase to 1310000.
12384 2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
12386         * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
12388 2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
12390         * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12391         still needed under Tiger.
12393         * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12395         * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12396         __Apple__.
12398         * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12400 2009-10-15  Kenichi Handa  <handa@m17n.org>
12402         * print.c (print_object): Escape a symbol like "2E10" too.
12404 2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
12406         Cleanups and changes for 64-bit compile under Snow Leopard.
12407         Based on suggestions by Erik Charlebois.
12409         * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12411         * nsfont.m (ns_char_width): Replace deprecated call.
12412         (ns_findfonts, nsfont_list_family): Use long format in printf, and
12413         cast argument.
12414         (nsfont_open): Use ns_char_width() everywhere.
12415         (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12417         * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12419         * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12420         where appropriate.
12422         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12423         where appropriate.
12424         (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12425         Use stringWithUTF8String.
12426         (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12428         * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12429         Add formal protocol mention to inheritance.
12430         [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12432         * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12433         Fix printf format.
12434         (ns_query_color): Use CGFloat where appropriate.
12435         (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12436         (EmacsScroller-mouseDown:): Use long format in printf, and cast
12437         argument.
12439         * config.in (NS_HAVE_NSINTEGER): Drop.
12441         * dbusbind.c (dbus-method-return-internal)
12442         (dbus-method-error-internal): Use long format in printf, and cast
12443         argument.
12445         * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12446         in printf, and cast argument.
12448         * process.c (list_processes_1): Use long format in printf, and
12449         cast argument.
12451 2009-10-11  Glenn Morris  <rgm@gnu.org>
12453         * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
12455 2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
12457         * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12458         menu bar with a small width so it doesn't enlarge the frame.
12460 2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
12462         * fontset.c (Fset_fontset_font): Fix typos in error messages.
12464 2009-10-06  Glenn Morris  <rgm@gnu.org>
12466         * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12467         SOME_MACHINE_LISP (this enters indirectly via DOC).
12469 2009-10-05  Eli Zaretskii  <eliz@gnu.org>
12471         * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
12473 2009-10-04  Eli Zaretskii  <eliz@gnu.org>
12475         * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12476         Doc fix.
12478 2009-10-03  Martin Rudalics  <rudalics@gmx.at>
12480         * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
12482 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
12484         * lisp.h (Qdelete_directory_internal): Remove, because it is not
12485         used anymore outside fileio.c.
12487         * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12489 2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
12491         * lisp.h (Qdelete_directory_internal):
12492         Declare, instead of Qdelete_directory.
12494         * w32fns.c (Fsystem_move_file_to_trash): Use it.
12496 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
12498         * eval.c (Fcalled_interactively_p): Add `kind' argument.
12500 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
12502         * fileio.c (Fdelete_directory_internal): Rename from
12503         Fdelete_directory.  It is not a command anymore.  It has no file
12504         name handler.
12506 2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
12508         * xdisp.c (get_next_display_element): Use an enum in last change.
12510 2009-09-28  Kenichi Handa  <handa@m17n.org>
12512         * xdisp.c (get_next_display_element): Pay attention to
12513         unibyte_display_via_language_environment in handling
12514         Vnobreak_char_display.
12516 2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
12518         * nsterm.h (ns_app_name): New extern variable.
12520         * nsterm.m (ns_app_name): New variable.
12521         (ns_term_init): Set and use it.
12522         (ns_term_shutdown): Use it.
12524         * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
12525         (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12527         * nsfns.m (ns_set_name_iconic, ns_set_name)
12528         (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12529         (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12531         * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12532         Remove double-casting in client_data comparison.
12534 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12536         * keyboard.c (make_lispy_event): Remember last wheel direction.
12537         (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12539 2009-09-26  Glenn Morris  <rgm@gnu.org>
12541         * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12542         internal.elc.  Add term/pc-win.elc.
12543         (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12544         term/x-win.elc.
12545         (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12546         term/w32-win.elc.
12547         (NS_SUPPORT): New.
12548         (lisp): Add NS_SUPPORT.
12549         (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12551 2009-09-25  David Reitter  <david.reitter@gmail.com>
12553         * nsmenu.m (EmacsMenu-clear): Recognize application menu
12554         on Mac OS X 10.6+ (bug#4513).
12556 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
12558         * frame.c (xrdb_get_resource): Return nil for empty string resources;
12559         some parts of Emacs code (like font selection) don't grok them.
12560         See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12562 2009-09-24  Andreas Schwab  <schwab@redhat.com>
12564         * coding.c (decode_coding_iso_2022): Fix operator precedence.
12566 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
12568         * dired.c (Fdirectory_files): Fix typo in docstring.
12570 2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
12572         * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12573         (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12574         (EmacsScroller-setPosition:portion:whole:): Remove -display call
12575         under GNUstep.
12576         (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12578         * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12579         glyph advancement.
12581 2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
12583         * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12584         (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12586         * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12587         deleted (bug #4492).
12589         * nsfont.m (Vns_reg_to_script): New lisp variable.
12590         (syms_of_nsfont): Declare it.
12591         (ns_registry_to_script): New function.
12592         (ns_get_req_script): Call it.
12593         (ns_findfonts): Don't give up on non-unicode registry.
12595         * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12597 2009-09-20  Tom Tromey  <tromey@redhat.com>
12599         * eval.c (find_handler_clause): Make stack-trace-on-error work in
12600         batch mode (bug#4228).
12602 2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
12604         * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12605         carefully.  (Bug #4339)
12607 2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
12609         * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12611 2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
12613         * emacs.c (inhibit_x_resources): Update doc string for NS.
12614         (main) [HAVE_NS]: Don't process --no-init-file option.
12615         Remove legacy code for -NXHost.  Fix error printf in daemon case.
12617         * nsterm.h (ns_no_defaults): Remove.
12619         * nsterm.m (ns_no_defaults): Remove.
12620         (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12621         (ns_use_qd_smoothing): Remove legacy variable.
12622         (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12623         don't update the NSWindow itself.
12624         (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12625         Improve state detection and store user rect ourselves.  (Bug #3581)
12627         * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12628         ns_use_qd_smoothing.
12630         * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12631         platform versions.  Drop support for emacs-20-style face specs.
12632         (x-close-connection): Drop PSFlush() under OS X.
12633         (x-focus-frame): Activate the app first.  (Bug #4180)
12635 2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
12637         * emacs.c (inhibit_x_resources): New variable.
12638         (main) [HAVE_NS]: Don't process --quick command line option.
12639         (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12641         * lisp.h (inhibit_x_resources): Declare it extern.
12643         * w32reg.c (x_get_string_resource):
12644         * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12646 2009-09-17  Eli Zaretskii  <eliz@gnu.org>
12648         * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12649         Add lisp/term/internal.elc.
12651 2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
12653         * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12654         (bug#4461).
12656 2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
12658         * puresize.h (BASE_PURESIZE): Increase to 1290000.
12660         * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12661         (OBJECTS_MACHINE): Remove, unused.
12663 2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
12665         * frame.c (x_get_resource_string): Remove unused.
12667 2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
12669         * xterm.c (x_new_font): Call change_frame_size before calling
12670         x_set_window_size, in case frame size won't change.
12672         * frame.c (x_set_font): Remove dead code.
12674 2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
12676         * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12678 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
12680         * lread.c (Fload): Don't output a message after loading an obsolete
12681         package any more (done in Lisp now).
12683 2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
12685         * fns.c (syms_of_fns): Doc fix (Bug#4227).
12687 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
12689         * keymap.c (Fwhere_is_internal): Use nconc2.
12691 2009-09-11  Alan Mackenzie  <acm@muc.de>
12693         * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12694         batch mode.
12696 2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
12698         * xdisp.c (display_mode_element): Detect cycles.
12700 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
12702         * keymap.c (where_is_internal): Don't erroneously return nil right after
12703         filling the cache.
12704         (where_is_internal_1): Fix up typo.
12706 2009-09-11  Glenn Morris  <rgm@gnu.org>
12708         * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12709         share a common doc-string.
12711 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
12713         * keymap.c (get_keymap): Return the actual keymap symbol rather than
12714         t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12716         * keymap.c (QCadvertised_binding): New constant.
12717         (syms_of_keymap): Initialize it.
12718         (Fwhere_is_internal): Try and use bindings from :advertised-binding
12719         if applicable.
12721 2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
12723         * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12724         (parse_menu_item): Streamline since bindings are recomputed all the
12725         time anyway.  Don't bother checking Vdefine_key_rebound_commands any
12726         more and don't support lmenu's menu-alias any more either.
12728         * keymap.c (where_is_internal_data): Make noindirect a boolean.
12729         (where_is_internal): Strip it down to only traverse the keymaps.
12730         Move the cache handling from Fwhere_is_internal to here.
12731         (Fwhere_is_internal): Move the handling of remapping and the choice of
12732         the best binding from where_is_internal to here.
12733         Unify the cached/noncached paths, so remapping is also handled
12734         correctly when the cache is used, and so the cache can be used to
12735         speed up remap-handling when applicable.
12736         Give preference to non-remapped bindings.
12737         * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12738         non-remapped bindings.
12739         * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12740         command remapping.
12742         * xdisp.c (display_mode_element): Move list length limit from 50 to
12743         5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12745 2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
12747         * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12749 2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
12751         * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12752         (Bug#4334)
12754         * keymap.c (where_is_internal): Filter out shadowed remappings.
12755         Assume that where_is_internal returns unshadowed bindings to simplify
12756         the code and get rid of the gotos.  Use ASIZE.
12758 2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
12760         * xterm.c (x_focus_changed): If we get a focusout and pointer
12761         is invisible, make it visible.
12763         * xterm.h: Remove condition for declaration of
12764         x_*_window_to_frame.
12766 2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
12768         * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12769         initial terminal as well.
12771 2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
12773         * xterm.h: Rename x_non_menubar_window_to_frame to
12774         x_menubar_window_to_frame.
12776         * xterm.c: Remove declarations also in xterm.h.
12777         (XTmouse_position): Do not return valid positions
12778         for clicks in the menubar and the toolbar for Gtk+.
12780         * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12781         if the widget for the event has the same top level as a frame,
12782         return the frame.
12783         (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12784         internal windows, bug #4122.
12785         (x_non_menubar_window_to_frame): Remove.
12787 2009-09-02  Glenn Morris  <rgm@gnu.org>
12789         * buffer.c (default-major-mode): Move most of the doc from here...
12790         (major-mode): ... to here.
12792 2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
12794         * process.c (wait_reading_process_output): Keep the descriptor
12795         when pty is used by a non-child process, e.g., in I/O buffer of
12796         GDB this allows inferior to be restarted.
12798 2009-08-29  Eli Zaretskii  <eliz@gnu.org>
12800         * xdisp.c (redisplay_internal): Remove redundant test and collapse
12801         both branches into one.
12803 2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
12805         * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12806         (main): Use enable-multibyte-characters rather than
12807         default-enable-multibyte-characters.  Output a warning message when
12808         running a unibyte session.
12810 2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12812         * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12813         LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12814         (copy_data_segment): Also copy __program_vars section.
12815         (copy_dyld_info) [LC_DYLD_INFO]: New function.
12816         (dump_it) [LC_DYLD_INFO]: Use it.
12818         * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12820 2009-08-28  Eli Zaretskii  <eliz@gnu.org>
12822         * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12823         $(SRC)/buildobj.h.
12824         (buildobj.h): Rename from $(SRC)/buildobj.h.
12825         (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12826         $(SRC)/buildobj.h.
12827         (clean): Add buildobj.h.
12829 2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
12831         * print.c (print_object): Set escapeflag to 1 when printing
12832         hashtable keys and values.
12834 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
12836         * lread.c (read_integer): Use doubles (and potentially return a float
12837         number) as we do in string-to-number.
12838         (read1): Use strtol to read integers, signal errors on strtol's
12839         overflow and use floats if strtol's output is too large for
12840         Elisp integers.
12842 2009-08-27  Eli Zaretskii  <eliz@gnu.org>
12844         * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12845         (make-buildobj-SH): Fix last change.
12846         (SRC): Move to before where it's first used.
12848 2009-08-27  Kenichi Handa  <handa@m17n.org>
12850         * process.c (send_process): Use encode_coding_object instead of
12851         encode_coding_string to perform eol-conversion even if the string
12852         is unibyte.
12854         * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12855         character.
12857         * cmds.c (Fself_insert_command): Avoid unnecessay
12858         unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
12860 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>
12862         * callproc.c (Fcall_process): Remove always true #if.
12864         * lisp.h: Replace #if 0 code for checking with text pointing to
12865         the --enable-checking configure flag.
12867         * emacs.c (main): Mention the --enable-profiling configure flag
12868         instead of using CFLAGS.
12870 2009-08-26  Ken Raeburn  <raeburn@raeburn.org>
12872         * Makefile.in (buildobj.h): New target.
12873         (doc.o): Depend on it.
12874         (temacs${EXEEXT}): Don't generate buildobj.lst.
12875         (mostlyclean): Delete buildobj.h, not buildobj.lst.
12876         * makefile.w32-in ($(SRC)/buildobj.h): New target.
12877         ($(BLD)/doc.$(O)): Depend on it.
12878         (make-buildobj-CMD, make-buildobj-SH): New targets.  (Syntax help
12879         provided by Eli Zaretskii.)
12880         ($(TEMACS)): Don't generate buildobj.lst.
12881         * doc.c: Include buildobj.h.
12882         (buildobj): New static variable.
12883         (Fsnarf_documentation): Use it, instead of opening and reading
12884         buildobj.lst.
12886 2009-08-25  Michael Albinus  <michael.albinus@gmx.de>
12888         * dbusbind.c (Fdbus_call_method)
12889         (Fdbus_call_method_asynchronously): Use English numeric format for
12890         timeout values in doc string.
12892 2009-08-25  Kenichi Handa  <handa@m17n.org>
12894         * alloc.c (mark_char_table): New function.
12895         (mark_object): Use mark_char_table for a char-table.
12897         * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12898         (CHAR_TABLE_REF): Use it.
12900 2009-08-23  Ken Raeburn  <raeburn@raeburn.org>
12902         * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12903         before invoking the newly build emacs to check for load-path
12904         shadowing.
12906 2009-08-22  Glenn Morris  <rgm@gnu.org>
12908         * Makefile.in (bootstrap_exe): New variable.
12909         (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12910         Use ${bootstrap_exe}.
12912 2009-08-22  Eli Zaretskii  <eliz@gnu.org>
12914         * coding.h (encode_coding_string): Don't encode unibyte strings.
12915         (Bug#4047)
12917 2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
12919         * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12921         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
12922         intended as hotfix only.
12923         (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12925 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
12927         * nsterm.m (ns_get_color): Update documentation properly for last
12928         change, and clean up loose ends in the code left by it.
12929         Fix longstanding bug with 16-bit hex parsing, and add support for
12930         yet another X11 format (rgb:r/g/b) for compatibility.
12931         * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12932         timer_check() to avoid crash on Leopard/PPC.  Bug #2154.
12934 2009-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12936         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12938 2009-08-20  Michael Albinus  <michael.albinus@gmx.de>
12940         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12941         (xd_add_watch, xd_remove_watch): Use it.  Print debug messages.
12942         (xd_initialize, xd_pending_messages): Check, whether
12943         $DBUS_SESSION_BUS_ADDRESS is set.
12945 2009-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12947         * nsfns.m (Fxw_color_values): Return 3-element list.  Doc fix.
12949         * nsterm.m (ns_get_color): Remove incompatible color formats again.
12951 2009-08-20  Glenn Morris  <rgm@gnu.org>
12953         * emacs.c (system-type): Doc fix.
12955 2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
12957         * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12958         enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
12960 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
12962         * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12963         New functions.
12964         (xd_initialize): Revert change from 2009-08-16.
12966 2009-08-18  Kenichi Handa  <handa@m17n.org>
12968         * fontset.c (Ffontset_font): If a nil element is found in a
12969         font-group vector, return nil.
12971 2009-08-17  Chong Yidong  <cyd@stupidchicken.com>
12973         * process.c (status_notify): Don't perform redisplay.
12974         (Fdelete_process, list_processes_1, process_send_signal):
12975         Expliticly perform redisplay.
12976         (wait_reading_process_output): Always check process status, but
12977         don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12979 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
12981         * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
12982         (XFLOAT_INIT): New macro for storing a float value.
12983         * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12984         * fns.c (sxhash): Copy out the value of a float in order to
12985         examine its bytes.
12986         * dbusbind.c (xd_append_arg): Likewise.
12988         * emacs.c (main): Don't call syms_of_data twice.
12990 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
12992         * dbusbind.c (xd_initialize): Add connection file descriptor to
12993         input_wait_mask, in order to let select() detect, whether a new
12994         message has been arrived.
12995         (Fdbus_call_method_asynchronously): Allow nil HANDLER.
12997 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
12999         * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13000         New functions.
13002         * lisp.h (xd_pending_messages): Declare.
13004         * keyboard.c (readable_events): Call xd_pending_messages.
13006 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
13008         * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13010         * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13012         * buffer.c (set_buffer_internal_1)
13013         (swap_out_buffer_local_variables): Check for unbound local
13014         variables (Bug#4138).
13016 2009-08-14  Eli Zaretskii  <eliz@gnu.org>
13018         * process.c (create_pty): Fix last change.
13020 2009-08-13  Chong Yidong  <cyd@stupidchicken.com>
13022         * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13023         (xbm_load_image): Caller changed.
13024         (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13026 2009-08-13  Nick Roberts  <nickrob@snap.net.nz>
13028         * process.c (create_pty): New function.
13029         (Fstart_process): Use it to allow Emacs to just associate a pty
13030         with the buffer.  See associated change in gdb-mi.el.
13031         (list_processes_1): Deal with no program name.
13032         (start_process_unwind): Use pid == -2 to mean no process.
13034 2009-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
13036         * cmds.c (nonundocount): New global variable.
13037         (keys_of_cmds): Initialize it.
13038         (Fself_insert_command): Use it to combine upto 20 sequential chars
13039         into a single undo entry, just like the Qself_insert_command code in
13040         keyboard.c does.
13041         Call frame_make_pointer_invisible, also like the Qself_insert_command
13042         code in keyboard.c does.
13043         * keyboard.c (command_loop_1): Use the new global nonundocount rather
13044         than its own local replacement for it.
13046 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
13048         * fns.c (concat): Don't re-set string length to its current value.
13050         * coding.h (decode_coding_string, encode_coding_string):
13051         Use SBYTES macro.
13053         * doprnt.c (doprnt_lisp): Delete unused function.
13054         (doprnt): Merge with doprnt1, discarding lispstrings code.
13055         * lisp.h (doprnt_lisp): Don't declare.
13057 2009-08-07  Juri Linkov  <juri@jurta.org>
13059         * puresize.h (BASE_PURESIZE): Increase to 1270000.
13061 2009-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
13063         * print.c (syms_of_print): Undo previous change.
13065 2009-08-05  Teodor Zlatanov  <tzz@lifelogs.com>
13067         * lread.c (read1, syms_of_lread): Read hashtables back from the
13068         readable format.
13070         * print.c (print_preprocess, print_object): Print hashtables fully
13071         and readably.
13072         (syms_of_print): Provide 'hashtable-print-readable.
13074 2009-08-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
13076         * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13077         no family set.
13078         (nsfont_open): Handle case when entity has no family.
13080 2009-07-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
13082         * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13083         element, not a list, for match case.
13085 2009-07-28  Kenichi Handa  <handa@m17n.org>
13087         * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13088         rigidly.
13090         * xfont.c (xfont_list_pattern): Don't ignore the return value of
13091         font_parse_xlfd.  Check font properties more rigidly.
13093 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
13095         * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13096         bsd-common.h.
13098 2009-07-27  Kenichi Handa  <handa@m17n.org>
13100         * xfaces.c (face_with_height): Call font_clear_prop.
13102 2009-07-26  Chong Yidong  <cyd@stupidchicken.com>
13104         * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13106         * xterm.c (x_term_init): Use Qx.
13108         * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13110         * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13111         (ns_get_color): Revert 2009-07-16 change.
13113 2009-07-25  Eli Zaretskii  <eliz@gnu.org>
13115         * lread.c (syms_of_lread) <force_load_messages>: New variable.
13116         (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13118 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
13120         * coding.h (decode_coding_string, encode_coding_string):
13121         Use SCHARS macro.
13123         * lread.c: Rewrite 2009-07-21 changes.
13124         (load_depth): Delete.
13125         (Qload_in_progress): New variable.
13126         (load_unwind): Don't reference load_depth or load_in_progress.
13127         (Fload): Likewise; specbind Qload_in_progress instead.
13128         (init_lread): Don't initialize load_depth.
13129         (syms_of_lread): Initialize and protect Qload_in_progress.
13131 2009-07-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
13133         * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13135 2009-07-23  Yavor Doganov  <yavor@gnu.org>
13137         * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13139 2009-07-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
13141         * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13142         Bugs 3792, 3720, 2402.
13143         (ns_lookup_indexed_color): Check for bad index.
13144         (ns_index_color): Init unused slot to 0.
13145         (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13146         Bug 3714, possibly 3082.
13148 2009-07-22  Jason Rumney  <jasonr@gnu.org>
13150         * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13151         Position IME window at cursor (Bug#2570).
13152         (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13153         (globals_of_w32fns): Dynamically load functions required above.
13155         * w32term.c (w32_draw_window_cursor): Send message to reposition
13156         any IME window.
13158 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
13160         * fileio.c: Revert 2009-07-16 changes.
13161         (Vauto_save_include_big_deletions): New variable.
13162         (Fdo_auto_save): Disable auto-save only if
13163         auto-save-include-big-deletions is nil.
13165 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
13167         * xdisp.c (move_it_to): For continued lines ending in a tab, take
13168         the overflowed pixels into account (Bug#3879).
13170 2009-07-21  Ken Raeburn  <raeburn@raeburn.org>
13172         * lread.c (load_depth): New variable.
13173         (Fload, load_unwind, init_lread): Set it to the load recursion
13174         depth; set load_in_progress as a simple boolean based on the
13175         current load_depth.  (Bug#3892)
13177 2009-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
13179         * nsfont.m (ns_has_attribute): Remove.
13180         (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13182 2009-07-18  Juri Linkov  <juri@jurta.org>
13184         * process.c (Fset_process_query_on_exit_flag): Mention killing
13185         a buffer in docstring.
13187 2009-07-17  Kenichi Handa  <handa@m17n.org>
13189         * casetab.c (shuffle): Fix the logic of setting up the cycle.
13191 2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13193         * nsfns.m (Fns_set_alpha): Remove function.
13194         (syms_of_nsfns): Don't defsubr it.
13196         * nsterm.m (ns_get_color): Remove incompatible color formats.
13197         (ns_color_to_lisp): Generate #rrggbb color format string.
13199 2009-07-16  Richard Stallman  <rms@gnu.org>
13201         * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13202         (Fset_buffer_auto_saved): Handle save_length = -2.
13204 2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
13206         * xterm.c (Qx_gtk_map_stock): New var.
13208         * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13209         of calling intern each time.
13211 2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13213         * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13214         does tiling.
13216         * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13218 2009-07-14  Kenichi Handa  <handa@m17n.org>
13220         * font.c (font_vconcat_entity_vectors): New function.
13221         (struct font_sort_data): New member font_driver_preference.
13222         (font_compare): Check font_driver_preference.
13223         (font_sort_entities): The format of the first argument changed.
13224         (font_delete_unmatched): Likewise.
13225         (font_list_entities): The return type changed.
13226         (font_select_entity): The format of the second argument changed.
13227         (font_find_for_lface): Adjuste for the above changes.
13228         Don't suppress the checking of C even if the repertory supports it.
13229         (Flist_fonts): Adjust for the above changes.
13231         * ftfont.c (ftfont_spec_pattern): New arg langname.  Change caller.
13232         (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13233         Reject a font who has adstyle property that is different from a
13234         langname derived from registry property.
13235         (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13237 2009-07-13  Eli Zaretskii  <eliz@gnu.org>
13239         * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13240         local copy of dirfilename.
13242 2009-07-13  Kenichi Handa  <handa@m17n.org>
13244         * chartab.c (sub_char_table_ref_and_range): Fix the range check
13245         against max_char.
13247         * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13248         calling XSYMBOL (sym).
13250 2009-07-11  Eli Zaretskii  <eliz@gnu.org>
13252         * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13253         New function.
13254         (directory_files_internal) [WINDOWSNT]:
13255         Bind w32-get-true-file-attributes to either t or nil, depending whether
13256         the filesystem of the directory is fast or slow.
13258         * w32.c (logon_network_drive): Don't assume PATH is an absolute
13259         file name.
13260         (is_slow_fs): New function.
13261         (stat): Use it to determine whether to issue more system calls to
13262         get accurate file attributes, when w32-get-true-file-attributes is
13263         `local'.
13265 2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
13267         * xfns.c (Fx_select_font): Remember last font selected in
13268         x_last_font_name and use that the next time.  Also try the frame
13269         parameter font-parameter as default to the font dialog.
13271 2009-07-10  Kenichi Handa  <handa@m17n.org>
13273         * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13275 2009-07-09  Eli Zaretskii  <eliz@gnu.org>
13277         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13279         * w32.c (stat): Treat UNC file names as residing on remote
13280         drives.  (Bug#3542)
13282 2009-07-09  Kenichi Handa  <handa@m17n.org>
13284         * fontset.c (fontset_find_font): Fix previous change.
13286 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
13288         * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13289         (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13290         error flag.
13292 2009-07-08  Kenichi Handa  <handa@m17n.org>
13294         * fontset.c (fontset_find_font): Fix the logic of handling
13295         charset_matched.
13296         (font_for_char): Delete unused var.
13297         (generate_ascii_font_name): Delete it.
13299         * coding.h (JIS_TO_SJIS2): Fix the code range check.
13301         * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13302         (encode_coding_sjis): Fix the code range check.
13304 2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
13306         * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13307         (Fexpand_file_name): Copy string data properly (Bug#3772).
13309 2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
13311         * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13312         first MapNotify.
13314 2009-07-07  Kenichi Handa  <handa@m17n.org>
13316         * character.h (unibyte_has_multibyte_table): Delete extern.
13317         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13319         * charset.c (Fset_charset_priority): Update charset_unibyte.
13320         (syms_of_charset): Initialize charset_unibyte.
13322         * character.c (unibyte_has_multibyte_table): Delete it.
13323         (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13324         charset_unibyte.
13325         (multibyte_char_to_unibyte_safe): Likewise.
13326         (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13328         * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13329         (x_produce_glyphs): Likewise.
13331         * .gdbinit (xcharset): Fix the treating $arg0.
13333 2009-07-04  Eli Zaretskii  <eliz@gnu.org>
13335         Emulation of `getloadavg' on MS-Windows.
13336         * w32.c: Include float.h.
13337         (g_b_init_get_native_system_info, g_b_init_get_system_times)
13338         (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13339         (get_native_system_info, get_system_times): New functions.
13340         (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13341         (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13342         (globals_of_w32): Initialize g_b_init_get_native_system_info,
13343         g_b_init_get_system_times, and num_of_processors.
13345 2009-07-03  Jason Rumney  <jasonr@gnu.org>
13347         * w32term.c (w32_initialize): Use standard types.
13349 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
13351         * dired.c (Ffile_attributes): Decode user and group names by the
13352         locale's encoding.  (Bug#3443)
13354 2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
13356         * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13357         (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13359         * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13361         * term.c (init_tty): Remove spurious #ifdef.
13363         * m/mips.h: Mention this file is also used for netbsd.
13364         * m/pmax.h: Remove file.
13366 2009-07-03  Jan Djärv  <jan.h.d@swipnet.se>
13368         * xterm.h (struct x_display_info): Add invisible_cursor.
13369         (struct x_output): Add current_cursor.
13371         * xterm.c (XTtoggle_invisible_pointer): New function.
13372         (x_define_frame_cursor): Don't define cursor if invisible or the
13373         same as before.  Set current_cursor.
13374         (x_create_terminal): Set toggle_invisible_pointer_hook.
13376         * xfns.c (make_invisible_cursor): New function.
13377         (x_set_mouse_color): Call make_invisible_cursor.
13378         Set current_cursor.
13379         (x_window): Set current_cursor.
13381         * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13383         * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13384         inserting a character.
13385         (read_avail_input): Call frame_make_pointer_visible.
13387         * frame.c (Vmake_pointer_invisible): New variable.
13388         (frame_make_pointer_invisible, frame_make_pointer_visible):
13389         New functions.
13390         (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13392         * frame.h: Declare frame_make_pointer_invisible and
13393         frame_make_pointer_visible.
13394         (struct frame): Add pointer_invisible.
13396 2009-07-02  Jan Djärv  <jan.h.d@swipnet.se>
13398         * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13399         frame isn't visible.
13400         (xg_frame_resized): If width/height is -1, get size of window
13401         from X server.
13403         * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13404         for MapNotify.
13406         * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13407         here or call change_frame_size.  Just call flush_and_sync.
13408         (flush_and_sync): Reintroduce.
13410 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
13412         * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13414         * xterm.c (x_handle_net_wm_state): Also look for sticky.
13415         (x_term_init): Initialize Xatom_net_wm_state_sticky.
13417         * frame.h: Declare Qsticky.
13419         * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13421         * nsfns.m (ns_frame_parm_handlers): Ditto.
13423         * frame.c: Declare Qsticky.
13424         (frame_parms): Add sticky.
13426         * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13428         * xterm.h: Declare x_set_sticky.
13430         * xterm.c (x_set_sticky): New function.
13432         * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13433         (xg_tool_bar_menu_proxy): Attach enter/leave events to
13434         xg_tool_bar_proxy_help_callback.
13436         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13438         * frame.c: Qmaximized is new.
13439         (x_set_frame_parameters): Do not handle fullscreen specially.
13440         Only set width and height if explicitly set.
13441         (x_set_fullscreen): Handle Qmaximized.
13442         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13443         (syms_of_frame): Initialize Qmaximized.
13445         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13446         Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13448         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13449         for Expose event.  Add call to x_check_fullscreen for MapNotify event.
13450         Remove all code w.r.t. fullscreen from ConfigureNotify event.  Do not
13451         set gravity to NorthWestGravity when USE_GTK.
13452         (set_wm_state): New function.
13453         (do_ewmh_fullscreen): Use set_wm_state.  Also handle FULLSCREEN_MAXIMIZED.
13454         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13455         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13456         or the case when no window manager is running.  That means remove calls
13457         to x_real_positions and x_fullscreen_adjust.
13459         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13460         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13461         flush_and_sync.
13462         (xg_height_changed): New function.
13463         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13464         and gtk_window_set_policy.  Set frame gravity after parsing the
13465         geometry string.
13466         (xg_update_frame_menubar, free_frame_menubar)
13467         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13468         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13469         Remove calls to xg_frame_set_char_size.
13471 2009-07-01  Kenichi Handa  <handa@m17n.org>
13473         * keyboard.c (decode_keyboard_code): New function.
13474         (tty_read_avail_input): Decode the input bytes if necessary.
13476         * coding.c (setup_coding_system):
13477         Initialize coding->carryover_bytes to 0.
13478         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13479         use Qno_conversion.
13481 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13483         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13485 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
13487         * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13489 2009-06-30  Jason Rumney  <jasonr@gnu.org>
13491         * w32term.c (w32_initialize): Use GetModuleHandle for library that
13492         is already loaded.
13493         Set user model ID if supported (bug#1849).
13495 2009-06-29  Jim Meyering  <meyering@redhat.com>
13497         Remove useless if-before-xfree test.
13498         * nsfont.m (nsfont_close): Remove useless test.
13499         * term.c (delete_tty): Likewise.
13500         * w32.c (system_process_attributes): Likewise.
13501         * w32font.c (w32font_close): Likewise.
13502         * xfaces.c (x_free_gc): Likewise.
13503         * xselect.c (buffer): Likewise.
13505 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
13507         * process.c (send_process): Keep decoded string in a local
13508         variable and protect it from GC.  (Bug#3521)
13510 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
13512         * term.c (create_tty_output) [MSDOS]: #ifdef away.
13513         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13515 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
13517         * xdisp.c (start_display, handle_face_prop)
13518         (move_it_vertically_backward, cursor_row_fully_visible_p)
13519         (redisplay_window, try_window_id, produce_image_glyph):
13520         Delete some #ifdef-ed out code chunks that are now obsolete.
13522         * xterm.c (x_update_window_begin, x_new_focus_frame)
13523         (x_scroll_bar_handle_click, handle_one_xevent)
13524         (handle_one_xevent, XTread_socket, x_focus_on_frame)
13525         (x_make_frame_visible, x_make_frame_invisible)
13526         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13527         code chunks that are now obsolete.
13529 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
13531         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13532         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
13533         for hours, when optimzation is enabled.
13534         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13535         (xd_read_message): Make them static.
13537 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
13539         * term.c (turn_on_face): Allow simultaneously bold and dim
13540         terminal faces (Bug#3530).
13542 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
13544         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13546         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13547         truncation glyphs (Bug#3686).
13549 2009-06-27  Glenn Morris  <rgm@gnu.org>
13551         * m/pmax.h: Restore file, with only netbsd portions.
13553 2009-06-26  David Reitter  <david.reitter@gmail.com>
13555         * nsterm.m (keydown): Avoid infinite loop.
13557 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
13559         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13560         the arg FORCE_SYMBOL.
13562 2009-06-25  Kenichi Handa  <handa@m17n.org>
13564         * fontset.c (fontset_find_font): When a usable rfont_def is found
13565         in a fallback font-group, make it the first element of the group.
13567 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
13569         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13571 2009-06-24  Kenichi Handa  <handa@m17n.org>
13573         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13574         set for C.
13575         (fontset_font): Record the availability of a font for C both in
13576         the realized fontsets of the current one and the default one.
13578 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
13580         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13581         conditional, it is always defined on AIX.
13583 2009-06-23  Miles Bader  <miles@gnu.org>
13585         * window.c (Vrecenter_redisplay): New variable.
13586         (syms_of_window): Initialize it.
13587         (Qtty): New extern declaration.
13588         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13590 2009-06-23  Jim Meyering  <meyering@redhat.com>
13592         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13593         Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13594         pointer dereferences are guaranteed to be valid.
13596 2009-06-23  Kenichi Handa  <handa@m17n.org>
13598         * emacs.c (main): Call init_font ().
13600         * font.h (Vfont_log): Extern it.
13601         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13603         * font.c (font_sort_entities, font_list_entities)
13604         (font_matching_entity, font_open_entity)
13605         (font_close_object): Change font_add_log to FONT_ADD_LOG.
13606         (Vfont_log): Delete static.
13607         (font_log_env_checked): Delete this variable.
13608         (font_add_log): Don't check font_log_env_checked.
13609         (font_deferred_log): Check Vfont_log.
13610         (init_font): New function.
13612         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13614         * w32font.c: Change font_add_log to FONT_ADD_LOG.
13616         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13618         * xfont.c: Change font_add_log to FONT_ADD_LOG.
13620         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13621         (face_for_char): Don't call font_deferred_log here.
13622         (font_for_char): Likewise.
13624 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
13626         * w32term.c (x_draw_glyph_string): Use the glyph string's width
13627         rather than its background_width for drawing the overline and
13628         underline (Bug#489).
13630         * xterm.c (x_draw_glyph_string): Use the glyph string's width
13631         rather than its background_width for drawing the overline and
13632         underline (Bug#489).
13633         (xg_default_icon_file): New variable.
13634         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13635         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13637         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13638         (load_overlay_strings): Remove externs.
13639         (fast_find_position): Function deleted.
13640         (mouse_face_from_buffer_pos): New function, based on
13641         fast_find_position.  Correctly handle before-strings,
13642         display-strings, and after-strings (Bug#1220).
13643         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13645 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
13647         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13648         (move_it_in_display_line_to, move_it_in_display_line_to)
13649         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13651 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
13653         * Branch for 23.1.
13655 2009-06-21  Jason Rumney  <jasonr@gnu.org>
13657         * w32term.c (keyboard_codepage): New static variable.
13658         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13659         (w32_read_socket) [WM_CHAR]: Use it to decode character
13660         input (bug#3237).
13661         (w32_initialize): Initialize it.
13662         (codepage_for_locale): New function.
13664 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
13666         * process.c (status_message): Pass Faset index argument as a lisp
13667         object, so as to work with USE_LISP_UNION_TYPE.
13669 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13671         * coding.c (Ffind_coding_systems_region_internal):
13672         Cache checked characters.
13674 2009-06-18  Kenichi Handa  <handa@m17n.org>
13676         * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13678 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
13680         * xdisp.c (redisplay_internal): Check that the frame is still
13681         live after redisplay of its windows.
13682         (redisplay_windows): Check that the window is still live.
13684 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
13686         * coding.c (detect_coding_utf_16): Fix previous change.
13688 2009-06-16  Kenichi Handa  <handa@m17n.org>
13690         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13691         UTF-16 by checking the dispersion of Eth and Oth bytes.
13693 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
13695         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13697 2009-06-15  Kenichi Handa  <handa@m17n.org>
13699         * process.c (status_message): Fix previous change.  Be sure to
13700         decode a localized string.
13702 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13704         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13705         add comment explaining why.
13707 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
13709         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13711 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
13713         * nsfont.m (ns_attribute_value): Remove.
13714         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13715         (ns_has_attribute): Shrink the normal range.
13716         (ns_findfonts): Don't worry about requested spec in determining
13717         need for synthItal.
13718         (ns_get_covering_families): Retain scriptToFamilies.
13720 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
13722         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13724 2009-06-11  Kenichi Handa  <handa@m17n.org>
13726         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13727         overhang for the static composition case.
13729 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13731         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13732         overhang for the automatic composition case.
13734         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13735         composition case.
13737 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
13739         * xdisp.c (get_next_display_element): When handling wrap-prefix
13740         and line-prefix, treat \n as a control character (bug#3502).
13742 2009-06-10  Kenichi Handa  <handa@m17n.org>
13744         * font.c (font_parse_family_registry): Fix for one-char foundry.
13745         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13747 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
13749         * process.c (status_message): Fix handling of multibyte signal
13750         string (Bug#3499).
13752 2009-06-09  Jim Meyering  <meyering@redhat.com>
13754         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13755         color name is missing.
13757 2009-06-09  Kenichi Handa  <handa@m17n.org>
13759         * charset.c (Fmap_charset_chars): In docstring, state clearly that
13760         FROM-CODE and TO-CODE are codepoints of CHARSET.
13762 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
13764         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13766 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
13768         Changes to support :script/:lang/:otf in NS font driver.
13769         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13770         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13771         indicate not part of font driver interface, and change callers.
13772         (ns_get_family): Remove pointless null check.
13773         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13774         ns_spec_to_descriptor, ns_descriptor_to_entity.
13775         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13776         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13777         (ns_spec_to_descriptor, ns_descriptor_to_entity)
13778         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13779         (ns_get_req_script, ns_accumulate_script_ranges)
13780         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13781         New functions.
13782         (nsfont_list, nsfont_match): Use ns_findfonts.
13783         (nsfont_open): Use font descriptor instead of traits.
13784         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13785         (dump_glyphstring): Rename to ns_dump_glyphstring.
13787         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13789         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13791         * fontset.c (fontset_from_font): Remove NS-specific code.
13793 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
13795         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13796         nonactive windows.
13798 2009-06-08  Felix Mueller  <felix@enqueue.eu>  (tiny change)
13800         * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
13802 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
13804         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13806 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
13808         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13809         account for the overflowing of newlines into the last glyph on the
13810         display line (Bug#3482).
13812 2009-06-05  David Reitter  <david.reitter@gmail.com>
13814         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13815         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
13816         Fns_selection_exists_p, Fns_selection_owner_p.
13818 2009-06-03  Jason Rumney  <jasonr@gnu.org>
13820         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13821         available.  (Bug#3379)
13823 2009-05-29  Kenichi Handa  <handa@m17n.org>
13825         * coding.c (get_translation_table):
13826         Check Venable_character_translation.
13828 2009-05-26  David Reitter  <david.reitter@gmail.com>
13830         * nsterm.m (ns_raise_frame): Only raise frame if visible.
13831         (x_make_frame_visible): Move frame to front rather than calling
13832         ns_raise_frame().
13833         (keyDown:): Do not swallow events that aren't re-sent if frame
13834         isn't key window.
13835         (drawRect:): Do not set visibility/iconified flags because
13836         drawRect may be called by NSView even if the frame is hidden.
13838         * nsfns.m (Fx_create_frame): Follow other ports in
13839         determining visibility; default to t.  Ensure async_visible is set.
13841 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
13843         * dired.c (Ffile_attributes): Doc fix.
13845 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
13847         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13849 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13851         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13852         and xfont_scratch_props.
13853         (syms_of_xfont): Do it here instead.
13854         (xfont_find_ccl_program): Delete, unused.
13855         (xfont_open): Delete unused var `i'.
13857 2009-05-21  Kenichi Handa  <handa@m17n.org>
13859         * fontset.c (Qlatin): Don't make it static.
13861         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13862         New functions.
13863         (xfont_scripts_cache, xfont_scratch_props): New variables.
13864         (Qlatin, Vscalable_fonts_allowed): Extern it.
13865         (xfont_list_pattern): Argument changed.  Callers changed.
13866         Check Vscalable_fonts_allowed.  Check the support of a script.
13867         (xfont_list): Don't reject a font spec with :script property.
13868         (xfont_has_char): Fix setting of encoding.
13869         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13870         xfont_scratch_props.
13872 2009-05-19  Kenichi Handa  <handa@m17n.org>
13874         * font.c (font_sort_entities): Rename from font_sort_entites.
13875         Callers changed.
13877 2009-05-18  Kenichi Handa  <handa@m17n.org>
13879         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13881 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
13883         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13884         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13886 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13888         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13889         (x_delete_terminal): Dissociate resource database from display and
13890         then call XrmDestroyDatabase before closing display.
13892 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
13894         * nsterm.m (ns_read_socket): Remove unused variable.
13895         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13896         whether selected frame is viable before raising it (based on patch
13897         by David Reitter), and improve commentary.
13898         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
13900 2009-05-15  Kenichi Handa  <handa@m17n.org>
13902         * font.c (Ffont_spec): Check arguments.
13904 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
13906         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13907         weight when testing attributes (Bug#3282).
13909 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13911         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13912         what we expect to get in the next ConfigureNotify event.
13914         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13915         before Xft one (Bug#1696).
13917 2009-05-07  David Reitter  <david.reitter@gmail.com>
13919         * nsfns.m (Fx_display_planes): Compute bitplanes using
13920         NSBitsPerPixelFromDepth (Bug#3207).
13922 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
13924         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13926 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
13928         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13930 2009-05-07  David Reitter  <david.reitter@gmail.com>
13932         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13933         Respect mouse face background.
13935 2009-05-07  David Reitter  <david.reitter@gmail.com>
13937         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13938         Mouse movement/highlight: bracket drawing operations
13939         in ns_update_begin and ns_update_end.
13941 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
13943         * nsfns.m (ns_get_screen): Rewrite.
13944         Don't presume selected-frame is of type `ns'.
13946         * font.c (font_update_drivers): Sanity fallback to avoid disabling
13947         all drivers.
13949         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13951 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13953         * keyboard.h (add_user_signal): Fix typo in extern.
13955         * lisp.h (add_user_signal): Remove extern.
13957         * unexelf.c (unexec): Consider a section to precede the .bss section
13958         if its addresses overlap that of .bss.
13959         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13960         instead of dumping process.
13962 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
13964         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13966 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
13968         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13970 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
13972         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13973         any statements.
13975 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
13977         * process.c (read_process_output): Make sure the current buffer is
13978         always restored.
13980         * coding.c (record_conversion_result): Don't modify
13981         Vlast_code_conversion_error for successful result.
13982         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
13984 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
13986         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
13987         (load_charset_map): Remove unnecessary code.
13989 2009-04-30  David Reitter  <david.reitter@gmail.com>
13991         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
13992         through f24.
13994 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
13996         * xfaces.c (face_at_buffer_position): New arg base_face_id.
13998         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13999         face_at_buffer_position.
14000         (face_before_or_after_it_pos, get_next_display_element)
14001         (note_mouse_highlight): Update face_at_buffer_position call.
14003         * term.c (term_mouse_highlight):
14004         * msdos.c (IT_note_mouse_highlight):
14005         * fontset.c (Finternal_char_font):
14006         * font.c (font_at, font_range): Update face_at_buffer_position call.
14008         * dispextern.h (face_at_buffer_position): Update prototype.
14010 2009-04-30  Kenichi Handa  <handa@m17n.org>
14012         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14014 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
14016         * callproc.c (Fcall_process): Fix GC protection.  Make sure
14017         current buffer is always restored.
14019 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14021         * atimer.c (init_atimer): Also clear stopped_atimers.
14023         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14025         * process.c (create_process): Clean up merger residues of
14026         2008-07-17 change.
14028 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
14030         * lread.c (Vread_circle): New variable.
14031         (read1): Disable recursive read if Vread_circle is nil.
14033 2009-04-29  Kenichi Handa  <handa@m17n.org>
14035         * fontset.h (set_default_ascii_font): Delete extern.
14037         * fontset.c (set_default_ascii_font): Delete this unused function.
14039         * frame.c (x_set_font): When ARG is a font-object, check if the
14040         font-object matches with the ASCII font-spec of the frame's
14041         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
14043 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
14045         * fns.c (Flocale_info): Protect vector from GC during decoding.
14047         * process.c (Fstart_process): Protect argv strings from GC during
14048         encoding.
14050 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
14052         * sysdep.c: Include <ctype.h>.
14054 2009-04-27  David Reitter  <david.reitter@gmail.com>
14056         * nsfont.m (nsfont_open): Remove unused variable shrink.
14057         Remove commented-out code.
14059 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
14061         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14063 2009-04-25  Jason Rumney  <jasonr@gnu.org>
14065         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14067 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14069         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14070         Swap bytes in short integer if fringe bitmap width > 8.
14072 2009-04-23  Kenichi Handa  <handa@m17n.org>
14074         * xfaces.c (Fx_list_fonts): If a font size is specified in
14075         PATTERN, set it in returned scalable fonts.
14077 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
14079         * keyboard.c (Fset_input_meta_mode): Doc fix.
14081         * dispnew.c (Fsend_string_to_terminal): Doc fix.
14083         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14085         * coding.c (Fterminal_coding_system): Doc fix.
14087         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14088         (Fx_display_pixel_height, Fx_display_planes)
14089         (Fx_display_color_cells, Fx_server_max_request_size)
14090         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14091         (Fx_display_mm_height, Fx_display_mm_width)
14092         (Fx_display_backing_store, Fx_display_visual_class)
14093         (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14094         Doc fixes, replacing "terminal id" with "terminal object".
14095         (check_x_display_info): Handle terminal objects instead of
14096         terminal ids.
14098         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14099         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14100         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14101         Doc fixes, replacing "terminal id" with "terminal object".
14103 2009-04-21  Kenichi Handa  <handa@m17n.org>
14105         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14106         (font_score): Check AVGWIDTH too.
14108         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14109         worst case.
14110         (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14111         (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14113 2009-04-19  Jason Rumney  <jasonr@gnu.org>
14115         The following changes fix Bug#3005 for wide glyphs on each platform,
14116         without reintroducing Bug#1258 for stretch glyphs.
14118         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14119         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
14120         get_phys_cursor_geometry.
14122         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14123         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
14124         using get_phys_cursor_geometry.
14126         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14127         correctly calculated.
14129 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
14131         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14132         Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14133         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14134         is deprecated.
14136 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
14138         * font.c (font_put_frame_data): Use xfree instead of free.
14140 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
14142         * w32font.c (Qja, Qko): Remove declarations.
14143         (syms_of_w32font): Don't DEFSYM them.
14145 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
14147         * font.c (Qja, Qko): Move definitions here from ftfont.c.
14149         * font.h (Qja, Qko): Extern them.
14151         * ftfont.c (Qja, Qko): Remove declarations.
14153         * xfont.c (Qja, Qko): Remove declarations.
14155 2009-04-17  Kenichi Handa  <handa@m17n.org>
14157         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14158         string from a vector to handle Latin-1 characters correctly.
14160         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14161         entity even if the cache hits.
14163 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
14165         * search.c (boyer_moore): Use zero as marker value for a possible
14166         match instead of depending on overflow behavior.  (Bug#2844)
14168         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
14169         * lisp.h: Adjust prototypes.
14171 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
14173         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14174         change (Bug#3003).
14176 2009-04-16  Kenichi Handa  <handa@m17n.org>
14178         * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14180         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14181         adstyle.
14183         * ftfont.c (Qja, Qko): Don't make them static.
14184         (enum ftfont_cache_for): New enum.
14185         (fc_charset_table): Undo the previous change.
14186         (ftfont_get_latin1_charset): Delete it.
14187         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14188         Set FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
14189         non-scarable font, try to get AVERAGE_WIDTH.
14190         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14191         Change ft_face_cache from a list of a hash-table.  Don't check
14192         `ja' and `ko' adstyle here.
14193         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14194         FTFONT_CACHE_FOR_CHARET.
14195         (ftfont_get_charset): Undo the previous change.
14196         (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14197         (ftfont_close): Likewise.
14198         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14200         * font.c (font_sort_entites): Change the meaning of the arg
14201         BEST-ONLY.  Don't optimize for VEC of lenght 1.
14202         (font_select_entity): Just return the value of font_sort_entites.
14204         * xfaces.c (merge_face_vectors): Reflect font properties in
14205         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
14206         font_clear_prop if a face attribute doesn't change.
14208         * charset.h (charset_ksc5601): Extern it.
14210         * charset.c (charset_ksc5601): New variable.
14211         (Fdefine_charset_internal): Set charset_ksc5601.
14212         (init_charset_once): Initialize charset_ksc5601 to -1.
14214 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
14216         * fileio.c (history_delete_duplicates): Remove unused declaration.
14218         * callint.c (history_delete_duplicates): New declaration.
14219         (Fcall_interactively): Remove command history duplicates when
14220         history_delete_duplicates is true.
14222 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
14224         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14226 2009-04-14  Kenichi Handa  <handa@m17n.org>
14228         * font.c (Ffont_info): Fix docstring.  Fix the second element of
14229         the returned value (bug#2949).
14231 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
14233         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14235 2009-04-14  Kenichi Handa  <handa@m17n.org>
14237         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14238         encoding charset is ascii_compatible.
14240         * charset.c (Fdefine_charset_internal): Make charset
14241         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14242         code_offset is 0, and covers all ASCII characters.
14244 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
14246         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14247         (ns_string_to_pasteboard_internal):
14248         * nsmenu.m (process_dialog):
14249         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14250         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14251         * lisp.h (Fx_load_color_file): Declare.
14253 2009-04-13  Kenichi Handa  <handa@m17n.org>
14255         * font.c (font_delete_unmatched): Preserve the order of list elements.
14256         (font_select_entity): Suppress the code to optimize for the same
14257         kind of fonts.
14258         (font_load_for_lface): Get a font that supports at least ASCII
14259         characters.
14261         * ftfont.c (Qja, Qko): New variables.
14262         (fc_charset_table): Delete uniquifier data for iso8859-1.
14263         (ftfont_get_latin1_charset): New function.
14264         (get_adstyle_property): New function.
14265         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14266         bitmap fonts.
14267         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14268         Delete iso-8859-1 range from the charset of fonts whose adstyle is
14269         `ko' or `ja'.
14270         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14271         (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14272         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14273         property.
14274         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14275         (syms_of_ftfont): DEFSYM Qja and Qko.
14277 2009-04-09  Kenichi Handa  <handa@m17n.org>
14279         * charset.c (map_charset_chars): For a charset of `superset'
14280         method, fix calculation of code range.
14282         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14283         from the list of extra properties.
14284         (font_clear_prop): Be sure to delete `:name' font property.
14286 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14288         * dispnew.c (redraw_overlapping_rows): Fix detection of
14289         overlapping for topmost and bottommost rows.
14291         * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14293 2009-04-06  Jason Rumney  <jasonr@gnu.org>
14295         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14297 2009-04-06  Kenichi Handa  <handa@m17n.org>
14299         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14301         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14303 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14305         * ftfont.c (ftfont_open): Fix checking of the return value of
14306         FT_Load_Char.  Fix setting font->underline_thickness.
14308 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
14310         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14311         (Fterminal_parameters, Fterminal_parameter)
14312         (Fset_terminal_parameter): In doc string, refer to terminal
14313         objects rather than terminal ids.
14315 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
14317         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14318         ret_lim_data.  (Bug#2867)
14320 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
14322         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14323         so they don't get wider than the window, matching 2006-01-23
14324         change to the partner function in xdisp.c (Bug#2800).
14326 2009-04-03  Kenichi Handa  <handa@m17n.org>
14328         * print.c (print_object): Make each lowest sub_char_table start a
14329         new line (Bug#2866).
14331 2009-04-02  Kenichi Handa  <handa@m17n.org>
14333         * fontset.c (fontset_font): Record no-font when a fontset
14334         explicitly tells not to try another font-specs.
14336 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
14338         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14340 2009-03-30  Kenichi Handa  <handa@m17n.org>
14342         * fontset.c (fontset_from_font): Specify only registry in a
14343         font-spec for all characters supported by that registry.
14345         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
14346         even if HAVE_M17N_FLT is not defined.
14348 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
14350         * ftfont.c: Conditionalize prototyping and use of
14351         ftfont_variation_glyphs.
14353 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
14355         * frame.c (delete_frame): Work around compiler bug.
14357         * editfns.c (general_insert_function): Adjust to insdel.c changes.
14358         * insdel.c (prepare_to_modify_buffer, signal_before_change):
14359         Some more EMACS_INT.
14360         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14362         * xdisp.c (dump_glyph): Fix typo.
14364         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14365         (adjust_markers_gap_motion, adjust_markers_for_delete)
14366         (adjust_markers_for_insert, adjust_point)
14367         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14368         (make_gap, copy_text, count_size_as_multibyte, insert)
14369         (insert_and_inherit, insert_before_markers)
14370         (insert_before_markers_and_inherit, insert_1)
14371         (count_combining_before, count_combining_after, insert_1_both)
14372         (insert_from_string, insert_from_string_before_markers)
14373         (insert_from_string_1, insert_from_gap, insert_from_buffer)
14374         (insert_from_buffer_1, adjust_after_replace)
14375         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14376         (replace_range_2, del_range, del_range_1, del_range_byte)
14377         (del_range_both, del_range_2, modify_region)
14378         (prepare_to_modify_buffer, signal_before_change)
14379         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14380         for buffer positions and sizes.
14381         * lisp.h: Adjust prototypes accordingly.
14383         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14384         (non_regular_inserted, non_regular_nbytes, read_non_regular)
14385         (Finsert_file_contents): Use EMACS_INT for buffer positions.
14387         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14389 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
14391         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14392         lines and columns so we keep the same pixel height and width.
14394         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14395         the property _NET_WM_STATE has changed.
14396         (x_handle_net_wm_state): New function to update frame parameter
14397         fullscreen.
14398         (x_term_init): Initialize atoms for _NET_WM_STATE.
14400         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14402 2009-03-27  Kevin Ryde  <user42@zip.com.au>
14404         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14405         Gpm_GetEvent as an error that justifies closing the filedescriptor.
14406         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14407         (Fgpm_mouse_stop): Pass that new parameter.
14408         * termhooks.h (close_gpm): Adjust prototype.
14410 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
14412         * lisp.h (Fx_focus_frame): Declare.
14414         * callint.c (Fcall_interactively): For '^' just delegate the work to
14415         handle-shift-selection.
14416         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14418 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
14420         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14422         * data.c (Qinteractive_form): New variable.
14423         (Finteractive_form): Use it.
14425         * eval.c (Fcommandp): Use Qinteractive_form.
14427 2009-03-24  Jason Rumney  <jasonr@gnu.org>
14429         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14430         Calculate total size precisely.  Decode environment variables
14431         before substituting.  (Bug#38)
14433 2009-03-24  Kenichi Handa  <handa@m17n.org>
14435         * font.c (find_font_encoding): Return Qnil for unsupported
14436         encoding (Bug#2722).
14438 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
14440         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14441         that gdpy is set.
14443 2009-03-22  Alan Mackenzie  <acm@muc.de>
14445         * callint.c (Finteractive): Clarify the doc string - even
14446         promptless elements need \n separators.
14448 2009-03-22  Jason Rumney  <jasonr@gnu.org>
14450         * w32term.c (syms_of_w32term): Doc fix for
14451         x-use-underline-position-properties.
14453 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
14455         * w32.c (getpwuid): Change argument type to unsigned.
14456         (struct w32_id): Change type of `rid' member to unsigned.
14457         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14458         argument ID to unsigned.  All callers changed.
14459         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14461 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
14463         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14464         negative, produce a float value.
14466         * dired.c (make_uid, make_gid): New functions.
14467         (Ffile_attributes): Use them to avoid negative UID and GID.
14469 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
14471         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14472         (syms_of_keyboard) <command-hook-internal, input-method-function>:
14473         Fix typos in docstrings.
14475 2009-03-19  Kenichi Handa  <handa@m17n.org>
14477         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14478         changed, use font_load_for_lface to get a new font object.
14479         Call free_realized_fontset after handling ASCII font change.
14481         * frame.c (x_set_font): Handle the case that ARG is a cons.
14483 2009-03-19  Glenn Morris  <rgm@gnu.org>
14485         * fileio.c (Fsubstitute_in_file_name): Doc fix.
14487 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
14489         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14491 2009-03-19  Kenichi Handa  <handa@m17n.org>
14493         * charset.c (load_charset_map_from_file): When a mapfile can't be
14494         loaded, signal an error.
14496 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
14498         * dired.c (Ffile_attributes): Make sure UID and GID are always
14499         positive, even if the value is too large for a positive EMACS_INT.
14500         Doc fix.
14502         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
14504 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14506         * xmenu.c (xdialog_show): Move Fredisplay call ...
14507         (Fx_popup_dialog): ... here.
14509 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
14511         * dired.c (file_name_completion): Disable the first optimization just
14512         installed, since it is not implemented correctly.
14514 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
14516         * dired.c (file_name_completion): Check completion-ignored-extensions
14517         only if the entry can affect bestmatch.
14518         Stop the search early, as Ftry_completion already does.
14520 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
14522         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14524 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
14526         * keyboard.c (parse_menu_item): Don't display remappings as menu
14527         equivalent bindings (Bug#788).
14529 2009-03-15  Jason Rumney  <jasonr@gnu.org>
14531         * w32term.h (WM_EMACS_PAINT): New message.
14532         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14533         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14534         before passing to lisp thread.  (Bug#950)
14536 2009-03-14  David Reitter  <david.reitter@gmail.com>
14538         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14539         variable as it was never reset.
14540         (ns_term_init): Remove initialization of Lisp-settable defaults
14541         and ns_expand_space.
14542         (-setPanelFromDefaultValues): Remove ns_expand_space.
14543         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14544         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14545         i.e. no additional spacing, similar to Carbon port.
14547         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14548         * nsfns.m (ns-popup-prefs-panel): Remove.
14550 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
14552         * sound.c (alsa_configure): Remove call to deprecated
14553         snd_pcm_sw_params_set_xfer_align.
14555 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
14557         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14558         after clicking in a detached tool bar.
14559         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14561 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
14563         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14564         int/Lisp_Object mixup).
14566 2009-03-13  Kenichi Handa  <handa@m17n.org>
14568         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14569         Handle NAME nil and t correctly.  Callers changed.
14570         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14571         (set_fontset_font): Change ARG to a vector.  Handle range_list in
14572         ARG correctly.
14573         (Fset_fontset_font): Fix the case that TARGET is both a script
14574         name and charset name.  Adjust the arg to set_fontset_font for
14575         the above change.
14576         (fontset_from_font): Fix previous change.
14577         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14578         entry.  If FONTSET is the default fontset, don't set the extra
14579         slot of the returning char-table.
14581 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
14583         * nsfns.m (Fx_close_connection): Doc fix.
14584         (Fns_do_applescript): Reflow docstring.
14585         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14586         (Fx_display_pixel_width, Fx_display_pixel_height)
14587         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14588         Fix typos in docstrings.
14589         (Fns_set_alpha): Fix typos in error messages.
14591 2009-03-12  David Reitter  <david.reitter@gmail.com>
14593         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14594         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
14595         were used for such events.
14597         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14598         (toggleToolbar, performDragOperation, runHelp): Use it.
14600         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14601         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14603 2009-03-11  Kenichi Handa  <handa@m17n.org>
14605         * font.h (font_open_by_spec): Extern it.
14607         * font.c (font_open_by_spec): New function.
14608         (font_open_by_name): Use font_open_by_spec.
14610         * frame.c (x_set_font): When ARG is a font-object, don't alter the
14611         fontset of the frame.
14613         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14614         modify the default font of frames that use this fontset.
14615         (num_auto_fontsets): New variable.
14616         (fontset_from_font): Use num_auto_fontsets to decide a fontset
14617         name.  Be sure to set FONTSET_ASCII to the correct font name.
14618         (update_auto_fontset_alist): New function.
14620 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
14622         * makefile.w32-in: Update dependencies.
14624 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
14626         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14628 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
14630         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14632 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
14634         * lread.c (Feval_buffer): Doc fix.
14636 2009-03-09  Kenichi Handa  <handa@m17n.org>
14638         * charset.c (Qfile_name_handler_alist): Extern it.
14639         (load_charset_map_from_file): Temporarily bind
14640         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
14642 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
14644         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14645         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
14647 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
14649         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14650         (x_set_window_size): Change back to calculated method of setting
14651         toolbar height under Cocoa.  (Bug#2546)
14652         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14653         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14655         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14657         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14658         accelerator in parens under GNUstep.
14660 2009-03-06  Kenichi Handa  <handa@m17n.org>
14662         These changes are to detect incorrect composition sequence without
14663         looking ahead the source.  (Bug#2370)
14665         * coding.h: Include "composite.h".
14666         (enum compisition_state): New enum.
14667         (struct compisition_status): New struct.
14668         (struct iso_2022_spec): New member cmp_status.
14669         (struct emacs_mule_spec): New struct.
14670         (struct coding_system): New members ctext_extended_segment_len and
14671         embedded_utf_8.  Change the union member
14672         spec.emacs_mule_full_support to spec.emacs_mule.
14674         * coding.c (CODING_ISO_CMP_STATUS): New macro.
14675         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14676         (MAX_ANNOTATION_LENGTH): Define to 5.
14677         (ADD_COMPOSITION_DATA): New arg nbytes.
14678         (emacs_mule_char): New arg cmp_status.
14679         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14680         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14681         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14682         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14683         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14684         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14685         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14686         (EMACS_MULE_COMPOSITION_END): New macro.
14687         (emacs_mule_finish_composition): New function.
14688         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14689         (decode_coding_emacs_mule): Avoid long looking ahead while
14690         handling composition.
14691         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14692         (ENCODE_COMPOSITION_RULE): New macro.
14693         (finish_composition): New function.
14694         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14695         (DECODE_COMPOSITION_START): New implementation.
14696         (DECODE_COMPOSITION_END): Likewise.
14697         (STORE_COMPOSITION_RULE): New macro.
14698         (decode_coding_iso_2022): Avoid long looking ahead while handling
14699         composition, CTEXT extended segment, and embedded UTF-8.
14700         (setup_coding_system): For a coding of type iso-2022, reset
14701         CODING_ISO_EXTSEGMENT_LEN (coding) and
14702         CODING_ISO_EMBEDDED_UTF_8 (coding).
14703         (get_translation): Delete arguments last_block, from_nchars,
14704         to_nchars.  Callers changed.
14705         (produce_chars): Don't modify charbuf.  Adjusted for the change of
14706         get_translation.
14707         (produce_composition): Adjust for the new annotation sequence.
14708         (handle_composition_annotation): Likewise.
14709         (consume_chars): Adjust for the change of get_translation.
14711 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
14713         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
14715 2009-03-05  Kenichi Handa  <handa@m17n.org>
14717         * font.c (font_select_entity): New function.
14718         (font_find_for_lface): Use font_select_entity to select a font.
14720         * fontset.c (fontset_find_font): If a font found without
14721         restricting to the characters C doesn't support C, try to find a
14722         font with C restriction.
14724 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
14726         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14728 2009-03-04  Jason Rumney  <jasonr@gnu.org>
14730         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14731         characters that have already been read.  (Bug#2569)
14733         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14734         Log an error message if check_image_size failed.
14735         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14736         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
14738 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
14740         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14741         when decoding process output.
14743 2009-03-01  Richard M Stallman  <rms@gnu.org>
14745         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14747         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14749 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
14751         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14752         (decode_coding_emacs_mule, decode_coding_iso_2022)
14753         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14754         (decode_coding_raw_text, decode_coding_charset)
14755         (setup_coding_system, decode_eol, decode_coding, consume_chars):
14756         Honor inhibit-eol-conversion.  (Bug #2186)
14758 2009-02-28  Jason Rumney  <jasonr@gnu.org>
14760         * coding.c (detect_coding_charset): If not checking latin extra,
14761         fail on characters between 0x80 and 0xA0.  (Bug#2354)
14763 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
14765         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14766         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
14768 2009-02-27  Glenn Morris  <rgm@gnu.org>
14770         * callint.c (Finteractive): Doc fix.
14772 2009-02-27  Kenichi Handa  <handa@m17n.org>
14774         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14776 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
14778         * font.c (font_style_to_value): Set value for unknown symbols to
14779         100 instead of 255.
14780         (weight_table, slant_table, width_table): Treat "unspecified" as
14781         the default value.
14783 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
14785         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14787 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
14789         * lread.c (Fload): Stop checking Vloads_in_progress and signal
14790         error as soon as a recursive load is detected.
14792 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
14794         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14795         before caching.
14797 2009-02-24  Kenichi Handa  <handa@m17n.org>
14799         * fontset.c (fontset_find_font): Fix the condition for checking
14800         unavailable font.
14802 2009-02-24  Glenn Morris  <rgm@gnu.org>
14804         * xfaces.c (Finternal_set_font_selection_order): Remove leading
14805         whitespace that confuses documentation.
14807 2009-02-23  Miles Bader  <miles@gnu.org>
14809         * process.c (Flist_system_processes, Fprocess_attributes)
14810         (syms_of_process): Rename `system-process-attributes' to
14811         `process-attributes'.
14813 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
14815         * coding.h (struct coding_system): Make safe_charsets a pointer to
14816         unsigned char.
14817         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14818         being 255.
14819         (SAFE_CHARSET_P): Likewise.
14820         (setup_iso_safe_charsets): Properly setup safe_charsets.
14821         (Fdefine_coding_system_internal): Likewise.
14822         (setup_coding_system): Likewise.  Remove unneeded casts.
14823         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
14824         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14825         Remove unneeded casts.
14827         * insdel.c (del_range_2): Don't modify gap contents when called
14828         from decode_coding_object.  (Bug#1809)
14830 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
14832         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14833         Qfont_object.
14834         (Ftype_of): Recognize font objects.
14836         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14838         * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14839         Definitions moved to data.c.
14841 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
14843         * nsterm.m (x_make_frame_invisible): Unset async_visible,
14844         async_iconified.  Based on a patch by Christian Lynbech
14845         <christian.lynbech@tieto.com>.
14846         (EmacsView-windowDidMiniaturize:): Unset async_visible.
14848 2009-02-20  Glenn Morris  <rgm@gnu.org>
14850         * syntax.c (Fskip_chars_forward): Fix doc typo.
14852 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
14854         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14856 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
14858         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14860 2009-02-19  Kenichi Handa  <handa@m17n.org>
14862         * coding.c (detect_coding): Preserve coding->mode.
14863         Don't overflow coding->carryover.  (Bug#2370)
14865 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
14867         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14869 2009-02-18  Kenichi Handa  <handa@m17n.org>
14871         * font.c (font_check_otf_features): Fix handling of `nil' element.
14872         (Ffont_spec): Describe :lang and :otf in the docstring.
14874 2009-02-16  Andreas Schwab  <schwab@suse.de>
14876         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14877         string.
14879 2009-02-16  Kenichi Handa  <handa@m17n.org>
14881         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
14882         (Bug#1723)
14884 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
14886         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
14888         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14889         (handle_line_prefix): Suppress wrapping of wrap prefixes.
14891 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
14893         * msdos.c (MAX_SCREEN_BUF): New macro.
14894         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14895         Encode the entire run of glyphs sharing the same face, instead of
14896         doing that one glyph at a time (fixes a bug with displaying
14897         double-size characters).
14899 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
14901         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14903         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14904         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
14905         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
14907         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
14908         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
14910 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
14912         * keyboard.c (adjust_point_for_property): Allow stopping between two
14913         invisible areas.
14915 2009-02-12  Jason Rumney  <jasonr@gnu.org>
14917         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
14918         (add_font_entity_to_list): Call check_face_name even when family
14919         is unspecified.
14921         * w32term.c (x_display_pixel_height, x_display_pixel_width):
14922         Release DC when finished.  Use NULL window to refer to desktop.
14923         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
14925         * w32font.c (add_font_entity_to_list): Fix check for substituted
14926         raster fonts.  (Bug#2219)
14928 2009-02-12  Kenichi Handa  <handa@m17n.org>
14930         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14931         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14932         (autocmp_chars): Use fast_looking_at.  Don't compose more
14933         characters than MAX_COMPOSITION_COMPONENTS.
14934         (find_automatic_composition): While looking forward and backward,
14935         check static composition.  Fix where to stop looking forward.
14936         (composition_adjust_point): Fix checking of static composition.
14937         (Fcomposition_get_gstring): Pay attention to
14938         MAX_COMPOSITION_COMPONENTS.
14940         * lisp.h (fast_looking_at): Extern it.
14942         * search.c (fast_looking_at): New function.
14944         * term.c (encode_terminal_code): Adjust for the change of
14945         <struct glyph>.u.cmp.to.
14946         (append_composite_glyph): Likewise.
14948         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
14949         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
14950         composition.
14951         (append_composite_glyph): Adjust for the change of
14952         <strcut glyph>.u.cmp.to.
14954 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
14956         * casetab.c (init_casetab_once):
14957         * coding.c (ALLOC_CONVERSION_WORK_AREA):
14958         * font.c (font_update_lface):
14959         * fontset.c (Fnew_fontset):
14960         * ftfont.c (ftfont_drive_otf):
14961         * xfont.c (xfont_open):
14962         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14964 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
14966         * fileio.c (Fwrite_region): !NILP -> CONSP.
14968 2009-02-10  Andreas Schwab  <schwab@suse.de>
14970         * process.c (send_process): Properly relocate pointer into data
14971         when using encoded data.  (Bug#2272)
14973 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
14975         * coding.c (detect_coding_charset): Fix previous change.
14977 2009-02-08  Jason Rumney  <jasonr@gnu.org>
14979         * w32fns.c (w32_hide_hourglass): Handle case where frame
14980         disappeared while hourglass was displayed.  (Bug #2193)
14982 2009-02-07  Andreas Schwab  <schwab@suse.de>
14984         * unexelf.c (unexec): Fix error message.
14986 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
14988         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
14989         when modal window is active.  (Bug #2152)
14990         (applicationShouldTerminate:): Remove now-unneeded while loop
14991         around NSRunAlertPanel.
14993         * nsmenu.m (popupSession): New file-global variable.
14994         (pop_down_menu): End the popupSession before closing dialog.
14995         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14996         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14997         don't query NSApp for events (just sleep instead).
14999 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
15001         * coding.c (syms_of_coding) <translation-table-for-input>:
15002         Modify doc string to discourage use for character code unification.
15004 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15006         * atimer.c (run_timers): Update pending_atimers.
15008 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
15010         * image.c (svg_load_image): Fix last change.
15012         * xfns.c (Fx_create_frame): Signal an error if no font is
15013         found (Bug#2147).
15015 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
15017         * character.c (syms_of_character) <script-representative-chars>:
15018         Fix typo in docstring.
15020 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
15022         * nsmenu.m (pop_down_menu): New function.
15023         (ns_popup_dialog): Call it on unwind.
15024         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15025         call timer_check() (Bug#2154).
15026         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15027         handling_signal is set.
15028         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15030         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15032         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15034         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15036         * keyboard.c (poll_for_input_1, handle_async_input):
15037         Set handling_signal under HAVE_NS.
15039 2009-02-04  Glenn Morris  <rgm@gnu.org>
15041         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15043 2009-02-04  Kenichi Handa  <handa@m17n.org>
15045         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15047         * charset.c (Fchar_charset): New optional arg restriction.
15049         * coding.h (coding_system_charset_list): Extern it.
15051         * coding.c (coding_system_charset_list): New function.
15053         * composite.c: Include coding.h and termhooks.h.
15054         (composition_gstring_p): Fix for the terminal case.
15055         (composition_gstring_width): Likewise.
15056         (fill_gstring_body): Likewise.
15057         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15058         the frame.
15059         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15060         is within a composition.
15061         (Fcomposition_get_gstring): Fix the terminal case.
15063         * term.c (encode_terminal_code): Fix handling of composition.
15064         (produce_composite_glyph): For static composition, get pixel_width
15065         from struct composition.
15067 2009-02-02  Andreas Schwab  <schwab@suse.de>
15069         * unexelf.c (unexec): Handle unaligned bss offset.
15071 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
15073         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15074         XT,w32read_socket changes to ns_read_socket.
15076         * keyboard.c (handle_interrupt): Don't call
15077         quit_throw_to_read_char() under NS.
15079         * blockinput.h: Remove NS-specific code.
15081 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
15083         * dispnew.c (window_change_signal): Don't try to get the size of a
15084         suspended tty frame.
15085         * term.c (Fresume_tty): Resize if the size has changed while the
15086         tty was suspended.
15088         * alloc.c (mark_stack): Properly conditionalize previous change.
15090 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
15092         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15093         * w32term.c (w32_read_socket) [SYNC_INPUT]:
15094         Remove; this code is not used on Windows.
15096 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
15098         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15099         EOLs that also has stray ^M characters.
15101 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
15103         * atimer.c (run_timers, alarm_signal_handler):
15104         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15105         * w32inevt.c (w32_console_read_socket):
15106         * w32term.c (w32_read_socket):
15107         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15109 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
15111         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15112         Initialize it as a relative filename pattern.
15113         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15114         (Fcall_process_region): Simplify temp file creation using
15115         temporary-file-directory.
15117 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
15119         * msdos.c: Rename pending_signals to msdos_pending_signals.
15120         (sig_suspender, sigprocmask): Adjust.
15122 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
15124         * keyboard.c (pending_signals): New var.
15125         (poll_for_input, input_available_signal, init_keyboard): Set it.
15126         (process_pending_signals): New function.
15128         * lisp.h (QUIT): Check pending_signals instead of
15129         interrupt_input_pending.  Use process_pending_signals.
15131         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15133         * process.c (wait_reading_process_output): Use process_pending_signals.
15135         * sysdep.c (emacs_write): Use process_pending_signals.
15137         * xterm.c (XTread_socket): Update pending_signals.
15139         * w32term.c (w32_read_socket): Update pending_signals.
15141         * w32inevt.c (w32_console_read_socket): Update pending_signals.
15143 2009-01-29  Kenichi Handa  <handa@m17n.org>
15145         * xftfont.c (xftfont_has_char): New function.
15146         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15148 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
15150         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15151         under GNUstep.
15152         (ns_query_color): New declaration.
15154         * nsterm.m (ns_confirm_quit): New variable.
15155         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15156         (EmacsApp-applicationShouldTerminate:): Use it.
15157         (EmacsPrefsController): Let user set it.
15158         (ns_query_color): New function.
15159         (ns_defined_color): Use it.
15160         (ns_initialize): Drop.
15161         (ns_term_init): Add two lines from ns_initialize(), and set
15162         input_interrupt_mode to nil.
15164         * image.c (svg_load_image): Don't right-shift background RGB when
15165         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
15167 2009-01-28  Kenichi Handa  <handa@m17n.org>
15169         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15170         (fontset_get_font_group): Remember that no font-group is specified
15171         for C.
15173 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
15175         * fns.c (concat): Check for string overflow (bug#1787).
15177         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15178         Quadruple undo limits (bug#1501).
15180 2009-01-27  Kenichi Handa  <handa@m17n.org>
15182         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15183         directly use GT_Get_Char_index.
15185         * xftfont.c (struct xftfont_info): New member `index'.
15187         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15188         (Ffontset_font): Adjust for the change of fontset entry.
15190 2009-01-26  Kenichi Handa  <handa@m17n.org>
15192         * fontset.c (fontset_find_font): Fix handling of non-cons return
15193         value of fontset_get_font_group.
15194         (fontset_font): Revert last change.
15196 2009-01-26  Jason Rumney  <jasonr@gnu.org>
15198         * w32font.c (w32font_list_internal): Return quickly if registry is
15199         unknown.  Simplify final return.
15200         (add_font_entity_to_list): Break complex logic down into more
15201         manageable chunks.  Move unknown registry check to
15202         w32font_list_internal.
15204 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
15206         Changes to remove Feval calls from GUI under NS.
15208         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15209         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15210         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15212         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15213         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15214         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15215         instead of NON_ASCII_KEYSTROKE_EVENT.
15216         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15217         (EmacsApp-applicationShouldTerminate:): Query user.
15218         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15219         instead of Feval.
15221         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15223         * keyboard.c (kbd_buffer_get_event): Check for it.
15224         (keys_of_keyboard): Define lispy keys for
15225         ns-put/unput-working-text.
15227         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15228         versions.
15229         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15231 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
15233         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15234         setting current_buffer directly.  (Bug#2044)
15236 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
15238         * fontset.c (fontset_font): If we know there is no font, don't do
15239         any work.  (Bug#1952, bug#1990).
15241         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
15243 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
15245         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15246         (ns_no_defaults): New declaration.
15247         (main): Use it.
15249         * nsterm.h (ns_no_defaults): New declaration.
15251         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15253         * nsterm.m (ns_no_defaults): New variable.
15254         (ns_initialize): Don't read defaults when ns_no_defaults.
15255         (EmacsView-readSelectionFromPasteboard:)
15256         (writeSelectionToPasteboard:types:): New stubbed-out methods for
15257         NSServicesRequests protocol.  (Bug#1435)
15258         (ns_dumpglyphs_stretch): New function.
15259         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15260         of 2008-11-15 to other terms.  (Bug#615)
15262         * nsimage.m (setPixmapData:): Set to ignore image DPI.
15264 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
15266         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15267         call for Sparc64.
15269 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
15271         * nsfns.m:
15272         * nsgui.h:
15273         * nsmenu.m:
15274         * nsselect.m:
15275         * nsterm.h:
15276         * nsterm.m: Remove '23' comments that indicated code added during
15277         update from emacs-20 -> emacs-23.
15279 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
15281         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15282         ns_alternate_modifier.  (Bug#1217)
15284         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15285         Display all shortcuts, including those w/o super modifier.
15287         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15289 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
15291         * fileio.c (Vwrite_region_post_annotation_function)
15292         (Vwrite_region_annotation_buffers): New vars.
15293         (build_annotations_unwind): Just reset
15294         Vwrite_region_annotation_buffers.
15295         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15296         Call write-region-post-annotation-function.
15297         (build_annotations): Add to Vwrite_region_annotation_buffers if
15298         buffer changes.
15300 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
15302         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15303         Tiger.
15304         * nsfns.m (ns_do_applescript):
15305         Conditionalize typeUTF16ExternalRepresentation on Tiger.
15307 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
15309         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15311 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
15313         * nsmenu.m (NSMENUPROFILE): Change #if style.
15315         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15317         * nsterm.m (x_set_frame_alpha): Add prototype.
15318         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15319         handle Ctrl-tab.  (Bug#1841)
15320         (ns_get_color): Use unsigned long long for scanned hex string value.
15321         (ns_term_shutdown): Abort on non SIGTERM signals.
15322         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15323         (EmacsPrefsController-setPanelFromDefaultValues): New function.
15324         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
15325         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15326         (ns_defined_color): Fix settings of the XColor variable fields:
15327         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
15329         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15330         DPI.  (Bug#1316)
15331         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15332         values in onTiger section.
15334 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
15336         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15337         Check return value of font_spec_from_name.
15338         (Fx_list_fonts): Doc fix.  (Bug#1951)
15340         * font.c (font_spec_from_name): Return Qnil if font name could not
15341         be parsed.
15342         (font_parse_name): Treat a `?' character as part of an XLFD.
15344         * fns.c (Fsubstring): Doc fix.
15346 2009-01-19  Kenichi Handa  <handa@m17n.org>
15348         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15349         (ftfont_list): Likewise.
15351 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
15353         * dbusbind.c (Fdbus_register_signal):
15354         * process.c (conv_sockaddr_to_lisp):
15355         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15357         * callproc.c (Fgetenv_internal): Doc fix.
15359 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
15361         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15362         it is not even used.
15364 2009-01-16  Glenn Morris  <rgm@gnu.org>
15366         * font.c (Ffont_variation_glyphs): Silence compiler.
15368 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
15370         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15371         Reported by David Robinow <drobinow@gmail.com>.
15373 2009-01-15  Kenichi Handa  <handa@m17n.org>
15375         * coding.c (detect_coding_system): Fix handling of null_byte_found.
15377 2009-01-14  Jason Rumney  <jasonr@gnu.org>
15379         * frame.c (x_set_font): Always store a font to the font parameter,
15380         never a fontset.  (Bug#1562)
15382 2009-01-14  Kenichi Handa  <handa@m17n.org>
15384         * coding.c (TWO_MORE_BYTES): New macro.
15385         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15387 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
15389         * font.c (font_clear_prop): If clearing the family, clear the font
15390         width index too.
15392         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15394 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
15396         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15397         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
15398         functions, use sizeof.
15400 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
15402         * keyboard.c (read_char): Fix case where last_nonmenu_event
15403         returned a bad value with submenus.  (Bug#447)
15405 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
15407         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15408         family, clear the font width index too.
15410 2009-01-11  Jason Rumney  <jasonr@gnu.org>
15412         * keyboard.c (cmd_error_internal): Exit when errors occur before
15413         frame creation and not in daemon mode.  (Bug#1836)
15415 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
15417         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15418         of a display vector, backtrack.
15419         (try_window_reusing_current_matrix): Check glyph type before
15420         referencing charpos member.
15422 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
15424         Fix Bug #876:
15426         * coding.c (inhibit_null_byte_detection): New variable.
15427         (detect_coding, detect_coding_system): Don't pay attention to null
15428         bytes if inhibit_null_byte_detection is non-zero.
15429         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15430         <inhibit-iso-escape-detection>: Doc fix.
15432 2009-01-09  Jason Rumney  <jasonr@gnu.org>
15434         * w32font.c (add_font_entity_to_list): Don't report unknown
15435         Windows charset as any unrecognized registry.  (Bug#1548)
15436         Only report Unicode Plane 2 fonts as unicode-sip.
15438 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
15440         * xfaces.c (Fx_font_family_list): Delete function.
15441         Move compatibility version to faces.el.
15443         * font.c (Ffont_family_list): Return a list of strings, not symbols.
15445 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
15447         * frame.c (x_set_frame_parameters): Remember requested value for
15448         fullscreen before it's reset by the parameter handler.
15450 2009-01-09  Glenn Morris  <rgm@gnu.org>
15452         * keyboard.c (last_command_char): For clarity, rename to...
15453         (last_command_event): ... and update all users.
15454         (last_input_char): For clarity, rename to...
15455         (last_input_event): ... and update all users.
15456         (last-command-char, last-input-char): Move to subr.el as aliases.
15457         * cmds.c, commands.h: Update for last_command_char rename.
15459 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
15461         * font.c (font_open_for_lface): Handle unspecified height attribute.
15463 2009-01-08  Jason Rumney  <jasonr@gnu.org>
15465         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15466         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15467         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15468         Don't declare.
15469         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
15470         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15472 2009-01-07  Kenichi Handa  <handa@m17n.org>
15474         * fileio.c (Finsert_file_contents): In the case of replace,
15475         remember the coding system used for decoding in
15476         coding_system (Bug#1039).
15478         * coding.c (decode_coding_utf_8): Check byte_after_cr before
15479         breaking the loop.  (Bug#870)
15480         (decode_coding_utf_16, decode_coding_emacs_mule)
15481         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15482         (decode_coding_charset): Likewise.
15484 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
15486         * frame.c (x_set_frame_parameters): Make sure height (width) get
15487         applied when fullwidth (fullheight) is set.  (Bug#1522)
15489 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
15491         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
15492         (utc_base): Declare as ULONGLONG, not long double.
15493         (convert_time_raw): Delete.
15494         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15495         (initialize_utc_base): New function.
15496         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15497         (convert_from_time_t): Use initialize_utc_base; compute result with
15498         64-bit arithmetic.
15499         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15501 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
15503         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15504         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15505         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15506         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15507         [!subprocesses]: Define.
15508         (syms_of_process) [!subprocesses]: Intern and staticpro them.
15509         (Flist_system_processes, Fsystem_process_attributes)
15510         [!subprocesses]: Call list_system_processes and
15511         system_process_attributes instead of returning Qnil.
15513         * dosfns.c (system_process_attributes, list_system_processes):
15514         New functions.
15516         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15518         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15519         Don't use the default (no-op) implementation.
15521 2009-01-03  Jason Rumney  <jasonr@gnu.org>
15523         * keyboard.c (parse_modifiers_uncached): Wheel events are
15524         clicks (bug#687).
15526         * w32term.c (x_query_colors, x_query_color): New functions.
15528         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15529         (svg_load_image): Cast returned pointers from dynamically loaded
15530         functions.  Eliminate W32 specific code.
15532 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
15534         * nsfns.m (x_set_foreground_color, x_set_background_color)
15535         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15536         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15537         x_ prefix instead of ns_.  Update references.
15538         (syms_of_nsfns): Add a FIXME comment.
15540         * nsterm.m (x_set_cursor_type): New prototype.
15541         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15543         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15544         for Solaris instead of incorrectly providing Qutime and Qcutime.
15546 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
15548         * w32.c (process_times): Compute sum of utime and stime.
15549         (system_process_attributes): Add Qtime to the alist.
15551         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15552         and add them to the alist.
15554         * process.c (top level) <Qtime, Qctime>: New variables.
15555         (syms_of_process): staticpro them.
15556         (Fsystem_process_attributes): Add their documentation to the doc
15557         string.
15559         * process.h: Declare Qtime and Qctime.
15561 2009-01-02  Jason Rumney  <jasonr@gnu.org>
15563         * image.c (Qgobject): New symbol.
15564         (syms_of_image): Initialize it.
15565         (init_svg_functions): Load some functions from gobject library.
15567 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
15569         * frame.c (make_terminal_frame): Remove redundant code and useless
15570         block.
15572 2009-01-01  Andreas Schwab  <schwab@suse.de>
15574         * process.c (conv_sockaddr_to_lisp): Add workaround for
15575         getsockname bug on BSD.
15577 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
15579         * xfns.c (x_create_tip_frame): Set border width of the X window.
15581         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15583 2009-01-01  Jason Rumney  <jasonr@gnu.org>
15585         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
15586         Don't block input, as per earlier xterm.c changes.
15588 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
15590         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15591         (ns_appkit_version_int): New function.
15592         (x-server-version): Use ns_appkit_version_int and follow 21+
15593         convention of returning 3 integers.
15595 2008-12-30  Kenichi Handa  <handa@m17n.org>
15597         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15598         (CHAR_SURROGATE_PAIR_P): New macro.
15600         * font.h (struct font_driver): New member get_variation_glyphs.
15602         * font.c (font_range): Don't require a font for a variation selector.
15603         (Ffont_variation_glyphs): New function.
15604         (syms_of_font): Defsubr it.
15606         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15607         ftfont_variation_glyphs.
15608         (setup_otf_gstring): New function.
15609         (ftfont_drive_otf): Use it.
15610         (ftfont_shape_by_flt): Handle variation selector.
15611         (ftfont_variation_glyphs): New function.
15613 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
15615         * frame.c (Vemacs_iconified): Remove.
15617 2008-12-30  Jason Rumney  <jasonr@gnu.org>
15619         * frame.c (store_frame_param, x_get_arg): Enable newer code on
15620         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
15622 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
15624         * indent.c (Fvertical_motion): Don't advance iterator if we have
15625         reseated to the desired position.
15627         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15628         checking for pos match.
15630 2008-12-30  Kenichi Handa  <handa@m17n.org>
15632         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15633         just get the low 8-bit of the code.
15635         * font.c (font_intern_prop): Validate str as multibyte.
15637 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
15639         * dispextern.h (struct face): Move lface and hash from the middle
15640         of bitfields.
15642         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15644 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
15646         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15647         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15648         instead of intervals.h.
15650 2008-12-26  Andreas Schwab  <schwab@suse.de>
15652         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15653         cons.
15655 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
15657         * textprop.c (Qminibuffer_prompt): New variable.
15658         (syms_of_textprop): Initialize it.
15659         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15660         in minibuffer-prompt face.  (Bug#1662)
15662 2008-12-25  Jason Rumney  <jasonr@gnu.org>
15664         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15666 2008-12-24  Jason Rumney  <jasonr@gnu.org>
15668         * ralloc.c (r_alloc_reset_variable): New function.
15670         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15671         record of what points where.  (Bug#716)
15673 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
15675         * minibuf.c (read_minibuf): Follow the non-interactive case when
15676         running as a daemon, before detaching.
15678 2008-12-22  Andreas Schwab  <schwab@suse.de>
15680         * buffer.c (init_buffer): Use realloc instead of xrealloc.
15681         * gtkutil.c (free_widget_value): Use xfree instead of free.
15683 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
15685         * frame.c (delete_frame): New function derived from
15686         Fdelete_frame to handle Qnoelisp value for FORCE argument.
15687         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
15688         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
15689         saying that FORCE non-nil doesn't run `delete-frame-functions'.
15690         * frame.h: Extern delete_frame.
15691         * window.c (window_loop):
15692         * terminal.c (delete_terminal):
15693         * xterm.c (x_connection_closed):
15694         * xfns.c (Fx_hide_tip):
15695         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15697 2008-12-21  Jason Rumney  <jasonr@gnu.org>
15699         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15700         when character maps to .notdef character.
15702 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15704         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15706 2008-12-20  Jason Rumney  <jasonr@gnu.org>
15708         * frame.c (Fmake_terminal_frame): Raise an error when called from
15709         a graphical frame on Windows.  (Bug#1325)
15711 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
15713         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15715 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
15717         * minibuf.c (Fread_buffer): Doc fix.
15719 2008-12-20  Jason Rumney  <jasonr@gnu.org>
15721         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15722         server name in UNC paths.  (Bug#719)
15724         * coding.c (decode_coding): Clear chars_at_source flag when using
15725         charbuf.  (Bug#1035)
15727 2008-12-19  Daniel Engeler  <engeler@gmail.com>
15729         * sysdep.c (serial_configure): Fix typo.
15731 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
15733         * sysdep.c: Include alloca.h.
15734         (system_process_attributes): Add implementation for Solaris.
15736         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15738 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
15740         Reorganize implementation of Flist_system_processes and
15741         Fsystem_process_attributes.  No functional changes.
15742         * process.c: Don't #include pwd.h, grp.h and limits.h.
15743         (Flist_system_processes): Just call list_system_processes.
15744         (Fsystem_process_attributes): Just call system_process_attributes.
15745         (procfs_list_system_processes, time_from_jiffies)
15746         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15747         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15749         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
15750         (list_system_processes): Rename from
15751         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
15752         Provide a do nothing implementation.
15753         (system_process_attributes): Rename from
15754         procfs_list_system_processes.
15755         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15756         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15758         * w32.c (list_system_processes): Rename from
15759         w32_list_system_processes.
15760         (system_process_attributes): Rename from
15761         w32_system_process_attributes.
15763         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15765         * process.h (w32_list_system_processes)
15766         (w32_system_process_attributes): Remove.
15767         (list_system_processes, system_process_attributes):
15768         New prototypes.
15770 2008-12-19  Kenichi Handa  <handa@m17n.org>
15772         * xfont.c (xfont_decode_coding_xlfd): New function.
15773         (xfont_encode_coding_xlfd): New function.
15774         (xfont_list_pattern): Decode XLFD by iso-8859-1.
15775         (xfont_list): Decode and encode XLFD by iso-8859-1.
15776         (xfont_match): Likewise.
15777         (xfont_list_family): Likewise.
15778         (xfont_open): Likewise.
15780         * ftfont.c (ftfont_open): Generate a multibyte string if given
15781         names are utf-8.
15783         * xftfont.c (xftfont_open): Generate a multibyte string if given
15784         names are utf-8.
15786 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
15788         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15789         changed.
15790         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15791         clicked on a detached tool bar button.
15793 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
15795         * emacs.c (main): Print and error and exit when no data is read
15796         from the pipe.
15798 2008-12-17  Jason Rumney  <jasonr@gnu.org>
15800         * w32font.c (w32font_has_char): Always return -1.
15802 2008-12-16  Kenichi Handa  <handa@m17n.org>
15804         * font.c (font_open_entity): Fix previous change.
15806 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
15808         * process.c: Include <limits.h>.
15810 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
15812         * font.c (font_update_drivers): Fix mistake in reconstructing the
15813         driver list.
15815 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
15817         * font.c (font_clear_cache): Fix format of font cache data.
15819 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
15821         * xftfont.c (xftfont_open): Free Xft font pattern if
15822         XftFontOpenPattern fails.
15824         * xterm.c (x_free_frame_resources): Remove extraneous call to
15825         free_frame_faces.
15827 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
15829         * xterm.c (x_delete_display): Move xim_close_dpy call to
15830         x_delete_terminal.
15831         (x_delete_terminal): Call xim_close_dpy.
15833 2008-12-13  Jason Rumney  <jasonr@gnu.org>
15835         * w32font.c (intern_font_name): New function.
15836         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15837         (w32font_open_internal, Fx_select_font): Decode font name.
15838         (fill_in_logfont, list_all_matching_fonts): Encode font name.
15840         * w32font.h (intern_font_name): Declare new function.
15842         * w32uniscribe.c (add_opentype_font_name_to_list):
15843         Use intern_font_name.
15845 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
15847         * frame.c (Fdelete_frame): Call free_font_driver_list.
15849         * font.c (free_font_driver_list): Implement missing function.
15851         * w32term.c (w32_term_init): Don't initialize the image cache
15852         here; it will be done in init_frame_faces.
15854         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
15855         (struct x_display_info): Remove unused member null_pixel.
15856         New member xim_callback_data.
15858         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15859         (xim_initialize): Save pointer to callback function data.
15860         (xim_close_dpy): Free callback function data.  Call XCloseIM,
15861         reverting 2008-11-04 change by David Smith.
15862         (x_term_init): Don't initialize the image cache here; it will be
15863         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
15864         (x_delete_display): Free x_dnd_atoms member.
15866 2008-12-13  Kenichi Handa  <handa@m17n.org>
15868         * font.c (font_rescale_ratio): Move from xfaces.c.
15869         Argument type changed.  Handle a font-spec too.
15870         (font_score): Check Vface_font_rescale_alist.
15871         (font_open_entity): Likewise.  (Bug#1547)
15873         * xfaces.c (font_rescale_ratio): Move to font.c.
15875 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
15877         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15879 2008-12-12  Jason Rumney  <jasonr@gnu.org>
15881         * w32fns.c (x_display_info_for_name, Fx_open_connection):
15882         Set Vwindow_system_version to the real w32 major version.
15884 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
15886         * term.c (init_tty): Move setting the terminal name before the
15887         potential user: maybe_fatal.
15889 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
15891         * term.c (tty_free_frame_resources): Rename from delete_tty_output;
15892         all callers changed.  Call free_frame_faces to free the face cache.
15894 2008-12-11  Jason Rumney  <jasonr@gnu.org>
15896         * w32font.c (fill_in_logfont): Don't assume symbol script means
15897         SYMBOL_CHARSET.  (Bug#547)
15899         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
15900         size for surrogates.  (Bug#1096, bug#872)
15902 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
15904         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15906 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
15908         * process.c (Fsystem_process_attributes, syms_of_process):
15909         Fix typo in name of Ssystem_process_attributes.
15910         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15912 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
15914         * syntax.c (Fmodify_syntax_entry): Doc fix.
15916 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
15918         * font.c (Ffont_spec): Move usage to end of docstring.
15920 2008-12-10  Jason Rumney  <jasonr@gnu.org>
15922         * w32font.c (Qcham): New symbol.
15923         (font_supported_scripts): Add cham, and comments for other new
15924         scripts in bitfield from OpenType spec.
15925         (add_font_entity_to_list): Limit unicode-sip fonts to those that
15926         contain characters beyond the bmp.
15928 2008-12-10  Kenichi Handa  <handa@m17n.org>
15930         * ftfont.c (fc_charset_table): Add "unicode-sip".
15931         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
15932         Qunicode_sip.
15934 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
15936         * coding.c (QCdefault_char): Rename from QCdefalut_char.
15937         (Fcoding_system_put): Use QCdefault_char.
15938         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15940 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
15942         * xftfont.c (syms_of_xftfont): Fix typo.
15944         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
15946 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
15948         * emacs.c (main): Close daemon_pipe on exec.
15950 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
15952         * termchar.h (struct tty): New members termcap_term_buffer and
15953         termcap_strings_buffer.
15955         * term.c (encode_terminal_code): Free any previous memory blocks
15956         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
15957         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
15958         All callers changed.
15959         (init_tty): Store termcap data and string buffers in new struct
15960         tty members termcap_term_buffer and termcap_strings_buffer.
15961         (delete_tty): Free them.
15962         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
15964 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
15966         * nsfns.m (ns_set_background_color): Remove code duplication.
15967         It was a substitute for face-transparency on OS X 10.3.
15969 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
15971         * coding.c (make_conversion_work_buffer): Disable buffer
15972         modification hooks in the work buffer.
15974 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
15976         * process.c (procfs_system_process_attributes): If `nread' has a
15977         negative value, assign zero to it.
15979 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
15981         * eval.c (Vdebug_on_error): Doc fix.
15983 2008-12-05  Kenichi Handa  <handa@m17n.org>
15985         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15986         second character is a combining character.
15988 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
15990         * process.c (procfs_system_process_attributes): Don't use cmd,
15991         cmdsize, and q without initializing them first.
15993 2008-12-04  Jason Rumney  <jasonr@gnu.org>
15995         * w32font.c (w32font_draw): Initialize orig_clip before getting
15996         it, and delete it when finished.
15998 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
16000         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16001         case when running as a daemon before detaching.
16003 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
16005         * w32.c (init_environment): Don't unload library shell32.dll.
16007 2008-12-03  Kenichi Handa  <handa@m17n.org>
16009         * font.c (font_at): Set `multibyte' at first.
16011         * coding.c (decode_coding_charset): Check type of an element of
16012         vector VALIDS.
16013         (encode_coding_emacs_mule): Be sure to set `code'.
16015         * fontset.c (face_for_char): Handle invalid charset property correctly.
16016         (font_for_char): Likewise.
16018 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
16020         * font.c (Fopen_font): Compute pixel size correctly.
16021         (font_update_lface): Handle fonts with corrupted size specs,
16022         i.e. non-int and non-float.
16024         * ftfont.c (ftfont_match): Initialize entity variable.
16025         (ftfont_resolve_generic_family): Avoid using uninitialized var.
16026         (ftfont_list_family): Initialize list var earlier.
16028         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16030         * xterm.c (x_draw_glyph_string): Fall back on
16031         underline_minimum_offset for underline position.
16033 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
16035         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16037         * character.c (c_string_width): Specify the type for LEN.
16039 2008-12-03  Kenichi Handa  <handa@m17n.org>
16041         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16042         (decode_coding_utf_8): Likewise.
16043         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16044         (produce_chars): Initialize consumed_chars to 0.
16046 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
16048         * keyboard.c (make_lispy_position): Only use PT if the selected
16049         window is current.
16051 2008-12-02  Andreas Schwab  <schwab@suse.de>
16053         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16055         * doprnt.c (doprnt1): Fix size of charbuf.
16057 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
16059         * keyboard.c (timer_check): Revert last change.
16061 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
16063         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16065 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
16067         * makefile.w32-in: Update dependencies.
16068         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16070 2008-12-01  Andreas Schwab  <schwab@suse.de>
16072         * font.c (register_font_driver): Use xmalloc.
16073         (font_put_frame_data): Likewise.
16075 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
16077         * xfaces.c (realize_x_face): Make abort condition clearer.
16079         * gtkutil.c (update_frame_tool_bar): Initialize variable.
16081 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
16083         * keyboard.c (timer_check): After a timer runs, ensure that the
16084         selected window's buffer is current.
16086 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
16088         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16089         It was accidentally restored by the Unicode merge.
16091         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16093 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
16095         * w32proc.c: Include "coding.h".
16096         (Fw32_short_file_name): Encode filename passed to Windows API.
16097         (Fw32_long_file_name): Encode filename passed to Windows API and
16098         decode back the result.  (Bug#1433)
16100 2008-11-29  Kenichi Handa  <handa@m17n.org>
16102         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16103         not before accessing it.
16105         * charset.c (Fdefine_charset_internal): After calculating
16106         min_char, max_char, and fastmap, copy the charset structure again.
16107         (encode_char): Fix the previous change.
16109 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
16111         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16113         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16115         * nsterm.m (x_set_frame_alpha): New function.
16117 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
16119         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16121 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
16123         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16124         pointer to check_face_name.
16126 2008-11-27  Kenichi Handa  <handa@m17n.org>
16128         * category.h (SET_CATEGORY_SET): Call set_category_set.
16129         (set_category_set): Extern it.
16131         * category.c (hash_get_category_set): New function.
16132         (Fmodify_category_entry): Adjust for the change of
16133         char_table_ref_and_range.  Call hash_get_category_set to get a
16134         category set to store in the table.
16136         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16137         Funify_charset.
16139         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16140         (DECODE_CHAR): Check if the decoder vector is ready.
16141         (ENCODE_CHAR): Check if the encoder char-table is ready.
16142         (maybe_unify_char): Extern it.
16144         * charset.c (Vchar_unified_charset_table): Delete it.
16145         (inhibit_load_charset_map): New variable.
16146         (temp_charset_work): New variable.
16147         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16148         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16149         New macros.
16150         (load_charset_map): Meaning of control_flag changed.
16151         If inhibit_load_charset_map is nonzero, setup a table in
16152         temp_charset_work.
16153         (load_charset): New argument control_flag.
16154         (map_charset_for_dump): New function.
16155         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16156         map_charset_for_dump.
16157         (Fdefine_charset_internal): If the charset method is MAP, load
16158         mapping tables by calling load_charset.
16159         (Funify_charset): Don't load a mapping table but directly set
16160         Vchar_unify_table.
16161         (maybe_unify_char): New function.
16162         (decode_char): Don't handle the deleted method MAP_DEFERRED.
16163         Handle the case of inhibit_load_charset_map being nonzero.
16164         (encode_char): Don't handle the deleted method MAP_DEFERRED.
16165         Handle the case of inhibit_load_charset_map being nonzero.
16166         (Fclear_charset_maps): Just free temp_charset_work.
16167         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16168         variable.
16170         * chartab.c (sub_char_table_ref_and_range): Adjust for the
16171         change of char_table_ref_and_range.
16172         (char_table_ref_and_range): Change the meaning of argument FROM
16173         and TO.  Now the caller must provide initial values for *FROM
16174         and *TO.
16176         * fontset.c (fontset_add): Adjust for the change of
16177         char_table_ref_and_range.
16178         (fontset_get_font_group): Likewise.
16179         (Ffontset_info): Likewise.
16181         * keymap.c (describe_vector): Adjust for the change of
16182         char_table_ref_and_range.  For char-table, put boundary between
16183         non-ASCII and 8-bit characters.
16185         * print.c (print_object): For bool-vector, delete unnecessary
16186         check of ASCII_BYTE_P.
16188 2008-11-26  Jason Rumney  <jasonr@gnu.org>
16190         * w32font.c (w32font_open_internal): Don't include external
16191         leading in font height.  (Bug#879)
16193 2008-11-26  Glenn Morris  <rgm@gnu.org>
16195         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16196         redefinition with ifdef.  (Bug#1383)
16198 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
16200         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16202 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
16204         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16205         New EmacsView methods.
16206         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16207         Fixes bug #1048,1357,1414.
16209 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
16211         Fix bug #1362.
16212         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16213         is not an indexed color.
16214         * nsterm.m (free_indexed_color): Add argument checking.
16215         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16217 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
16219         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16220         Document confirm-after-completion value for
16221         minibuffer-completion-confirm.
16223 2008-11-24  Jason Rumney  <jasonr@gnu.org>
16225         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
16226         warning.
16228 2008-11-23  Jason Rumney  <jasonr@gnu.org>
16230         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16231         restored before returning.
16233         * w32font.c (check_face_name): New function.
16234         (add_font_entity_to_list): Use it to filter out common substituted
16235         fonts.  (Bug#642)
16237 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
16239         * buffer.c (Fswitch_to_buffer): Reword and mention new option
16240         confirm-nonexistent-file-or-buffer in doc-string.
16242 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
16244         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16245         Fix copy/paste typo.  Add checks.
16247 2008-11-21  Kenichi Handa  <handa@m17n.org>
16249         * coding.c (detect_coding_iso_2022): Reject invalid composition
16250         sequence.
16251         (DECODE_COMPOSITION_START): If the current source is the last
16252         block, and the current composition doesn't end, regard this
16253         sequence as invalid.
16254         (decode_coding_iso_2022): Handle invalid composition sequence.
16256 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
16258         * window.c (coordinates_in_window): Don't return
16259         ON_VERTICAL_BORDER for the rightmost position of a mode/header
16260         line when the window is not the rightmost one.  (Bug#1372)
16262 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
16264         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16266 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
16268         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16269         and bright_bg if noninteractive is non-zero.
16271 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16273         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16274         x_draw_glyph_string_background.
16276         * w32term.c (x_draw_glyph_string): Likewise.
16278 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
16280         * xterm.c (x_draw_glyph_string): Stop drawing the background of
16281         the next glyph string once past the overhang width.
16283         * nsterm.m (ns_draw_glyph_string): Likewise.
16285         * w32term.c (x_draw_glyph_string): Likewise.
16287 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
16289         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16290         double file close.
16292 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
16294         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16295         dedicated status of window before attempting to display another
16296         buffer in it.
16298 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
16300         * msdos.c (Fmsdos_long_file_names):
16301         (syms_of_msdos) <dos-unsupported-char-glyph>:
16302         * dosfns.c (Fint86): Fix typos in docstrings.
16304 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
16306         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16308 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
16310         * puresize.h (BASE_PURESIZE): Increase to 1260000.
16312 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
16314         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16316         * frame.h: Negative alpha means "don't touch".
16318         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16320         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16322 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
16324         * hftctl.c:
16325         * chpdef.h:
16326         * acldef.h: Remove files used only for systems no longer supported.
16328         * Makefile.in: Fix .o alphabetical ordering.
16329         (hftctl.o): Remove dependency, file removed.
16330         (keymap.o, print.o): Depend on charset.h.
16332 2008-11-10  Kenichi Handa  <handa@m17n.org>
16334         * character.c (Fget_byte): Fix and make it faster for unibyte target.
16336 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
16338         * dired.c (file_name_completion): If completion_ignore_case is
16339         enabled, ignore case when checking completion-regexp-list.
16341 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
16343         * vm-limit.c (get_lim_data): Fix last change.
16345 2008-11-08  Kenichi Handa  <handa@m17n.org>
16347         * character.c (Fget_byte): New function.
16348         (syms_of_character): Defsubr Fget_byte.
16350 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
16352         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16353         cursor position is valid after scrolling.
16355 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
16357         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16359 2008-11-06  Glenn Morris  <rgm@gnu.org>
16361         * xterm.c (handle_one_xevent): Don't let popup menus cause
16362         mouse-autoselect-window related window switching.  (Bug#1261)
16364 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
16366         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16368 2008-11-04  Andreas Schwab  <schwab@suse.de>
16370         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16372 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
16374         * xfns.c (Fx_wm_set_size_hint): New function.
16376 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
16378         * textprop.c (Fprevious_single_char_property_change): Return 0
16379         when there's no change in a string.  (Bug#1301)
16381 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
16383         * frame.c (do_switch_frame): New argument NORECORD passed to
16384         Fselect_window.
16385         (Fselect_frame): New argument NORECORD passed to
16386         do_switch_frame.
16387         (Fset_frame_selected_window): New argument NORECORD passed to
16388         Fselect_frame.
16389         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16390         in call of do_switch_frame.
16391         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16392         Handle NORECORD argument in call of Fselect_frame.
16393         * lisp.h (do_switch_frame, Fselect_frame)
16394         (Fset_frame_selected_window): Adjust declarations.
16395         * window.c (select_frame_norecord): New function.
16396         (run_window_configuration_change_hook): Use it and call
16397         Fselect_frame with NORECORD set.
16398         (Fselect_window): Pass NORECORD to Fselect_frame.
16399         (Fset_window_configuration): Handle NORECORD argument in call of
16400         do_switch_frame.
16401         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16402         Fset_frame_selected_window.
16403         * keyboard.c (command_loop_1): Handle NORECORD in call of
16404         Fselect_frame (currently ifdefd).
16406 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
16408         * emacs.c (USAGE2): Untabify.
16410 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
16412         * composite.c (fill_gstring_header): Fix copy/paste typo.
16414 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
16416         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16417         (Fother_window): Rename argument and rewrite doc-string.
16418         (select_window_norecord): Fix return value.  (Bug#1276)
16420 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
16422         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16423         new frames overriding foreground for tooltips.  Based on similar patch
16424         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
16426 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
16428         * emacs.c (Fdaemon_initialized): Initialize nfd.
16430 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
16432         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16433         (Fwindow_text_height): Clarify doc-strings.
16434         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16435         doc-string of window-scroll-functions.
16437 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
16439         * category.c (syms_of_category): Fix typo in docstring.
16441 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
16443         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16444         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16445         Fix typos in docstrings.
16447 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
16449         * emacs.c (daemon_pipe): Make non-static.
16450         (IS_DAEMON): Move definition ...
16451         * lisp.h (IS_DAEMON): ... here.
16452         (daemon_pipe): Declare.
16453         (is_daemon): Remove.
16454         * dispnew.c (init_display): Use IS_DAEMON.
16456 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
16458         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16459         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16461         * emacs.c (is_daemon): Remove.
16462         (main): Don't set is_daemon.
16463         (IS_DAEMON): New macro.
16464         (Fdaemonp, Fdaemon_initialized): Use it.
16465         (Fdaemon_initialized): Write a char into the pipe to make sure the
16466         parent exits.
16467         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16469 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
16471         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16472         over-sized glyph, draw it with the default glyph width.
16474         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16475         glyph, draw it with the default glyph width.
16477         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16478         glyph, draw it with the default glyph width.
16480         * xdisp.c (try_scrolling): When computing the distance from the
16481         scroll margin to PT, try moving some distance past the window
16482         bottom before giving up.
16484 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
16486         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16487         (Fset_window_buffer): Explain in doc-string that a window can be
16488         "strongly" dedicated to its buffer.
16490 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
16492         * emacs.c (daemon_name): New variable.
16493         (main): Deal with --daemon=SERVER_NAME.
16494         (Fdaemonp): Return a name if one was passed to --daemon.
16496 2008-10-26  Romain Francoise  <romain@orebokech.com>
16498         * emacs.c (daemon_pipe): New variable.
16499         (main): Create a pipe before forking, make the parent exit only after
16500         the child has closed its end of the pipe.  Move closing the
16501         descriptors ...
16502         (Fdaemon_initialized): ... here.  New function.
16504 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
16506         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16507         the previous unoptimized table.
16509         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16510         the distinction between non-nil and non-t value of `dedicated'.
16512 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
16514         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16515         read_char_minibuf_menu_text is large enough to hold the menu string.
16517 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
16519         * window.c (Fget_buffer_window, Fdelete_windows_on)
16520         (Freplace_buffer_in_windows): Make buffer argument optional and
16521         rename to buffer_or_name.
16523 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
16525         * xdisp.c (handle_single_display_spec, handle_display_prop):
16526         Undo 2005-05-16 change.
16527         (handle_stop): Pop iterator if it's loaded with an empty string.
16528         (get_overlay_strings_1): Don't save iterator if it's loaded with
16529         an empty string (bug#1201).
16531 2008-10-24  Kenichi Handa  <handa@m17n.org>
16533         * ftfont.c (ftfont_otf_features): Fix previous change.
16534         (ftfont_otf_capability): Check FeatureList.FeatureCount before
16535         calling ftfont_otf_features.
16537 2008-10-24  Kenichi Handa  <handa@m17n.org>
16539         * font.c (font_match_p): Fix for the case that a vector of
16540         characters is in script-representative-chars.
16542 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
16544         * dbusbind.c (xd_in_read_queued_messages): New variable.
16545         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
16546         (xd_read_queued_messages): Catch Qdbus_error from the macros.
16547         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16548         macro.  (Bug#1186)
16550 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
16552         * s/sol2-10.h: New file.
16554 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
16556         * xdisp.c (fill_glyph_string): Fix typo in source (though the
16557         poor beast has survived 9+ years and the jump from xterm.c!).
16559 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
16561         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16562         Reword doc-string.
16563         (Fbury_buffer): In doc-string say what happens to the buffer's window.
16565 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
16567         * character.c (syms_of_character) <script-representative-chars>:
16568         <unicode-category-table>: Doc fixes.
16570 2008-10-23  Noah Friedman  <friedman@splode.com>
16572         * coding.c (make_conversion_work_buffer): Check that
16573         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16574         Fget_buffer_create.
16576 2008-10-23  Kenichi Handa  <handa@m17n.org>
16578         * font.c (font_add_log): Check the values of extra properties.
16580 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
16582         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16583         Reword doc-string.
16584         (Fset_window_parameter): Use NILP.
16585         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16586         (Frecenter): Use "selected" instead of "current" window in doc-strings.
16588 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
16590         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16592 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
16594         * nsfns.m (ns_appkit_version): New function.
16595         (x-server-version): Use it.
16596         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16597         (x-server-vendor): Don't check_ns().
16599         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16601 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
16603         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16604         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16606 2008-10-22  Kenichi Handa  <handa@m17n.org>
16608         * syntax.c (scan_words): Call word_boundary_p instead of comparing
16609         scripts.
16611         * category.c (word_boundary_p): Check scripts instead of charset.
16612         Handle nil value in word-separating-categories and
16613         word-combining-categories.
16614         (syms_of_category): Fix docstrings of word-separating-categories
16615         and word-combining-categories.
16617 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
16619         * coding.c (Fencode_coding_region, Fdecode_coding_region)
16620         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16622 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
16624         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16625         Rename arg "buffer" to "buffer_or_name".
16626         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16627         it optional.
16628         (no_switch_window): Remove since the return value is not used.
16629         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16630         Consider window as dedicated when Fwindow_dedicated_p returns a
16631         non-nil value.
16632         * lisp.h: Remove prototype for no_switch_window.
16634 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
16636         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16637         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16639 2008-10-21  Kenichi Handa  <handa@m17n.org>
16641         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16642         check Vlatin_extra_code_table.
16644 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
16646         * fileio.c (Fset_file_modes): Doc fix.
16648 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
16650         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16651         in arrays.
16653 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
16655         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16656         Mention kill-buffer in doc-string.
16657         (Fset_window_buffer): Reinsert tem check removed in last commit.
16658         (Fenlarge_window, Fshrink_window): Have argument names and
16659         doc-string follow Elisp manual more closely.
16661 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
16663         * fileio.c (Fset_file_modes): Doc fix.
16665 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
16667         * window.c (Fwindow_width, Fset_window_start)
16668         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16669         (Fdelete_windows_on, Freplace_buffer_in_windows):
16670         Make doc-strings follow code and Elisp manual more closely.
16671         (Fwindow_dedicated_p): Make window argument optional.
16672         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16673         (Fset_window_buffer): Respect any non-nil dedicated value for
16674         window.  Rename "buffer" argument to "buffer_or_name".
16676 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
16678         * m/sh3.h: New file, machine description for SuperH.
16680 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
16682         * window.c (Fsplit_window): Rename arg horflag to horizontal.
16684 2008-10-17  Kenichi Handa  <handa@m17n.org>
16686         * ftfont.c (ftfont_otf_features): Fix indexing
16687         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
16689 2008-10-16  Magnus Henoch  <mange@freemail.hu>
16691         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16692         (Fdbus_call_method_asynchronously): Ditto.
16693         This change makes C-h f display the argument list.
16695 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
16697         * fileio.c (Fexpand_file_name): Doc fix.
16699         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16700         of :foreground and :background equivalent to unspecified (20.x
16701         compatibility).
16703 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
16705         * buffer.c (syms_of_buffer): Doc fix.
16707 2008-10-14  Kenichi Handa  <handa@m17n.org>
16709         * font.c (font_clear_prop): When clearing font width, clear the
16710         average width field too.
16712 2008-10-12  Andreas Schwab  <schwab@suse.de>
16714         * ftfont.c (ftfont_shape_by_flt): Make static.
16715         * ftfont.h (ftfont_shape_by_flt): Don't declare.
16717         * font.c: Don't include <m17n-flt.h>.
16719 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
16721         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16723 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
16725         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16726         away code.
16728 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
16730         * dispnew.c (update_text_area): Avoid looping due to large glyph
16731         overhangs (bug#1070).
16733 2008-10-09  Kenichi Handa  <handa@m17n.org>
16735         * fontset.c (face_for_char): If face->fontset is negative, just
16736         return ascii_face.
16738         * font.c (font_delete_unmatched): Fix previous change.
16739         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16741 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
16743         * frame.c (Fraise_frame): On text-only terminals select frame in
16744         order to make it visible.  (Bug#1061)
16746 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
16748         * fontset.c (fontset_find_font): Check frame validity.
16750 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
16752         * gtkutil.c (xg_display_open): Reset default display if none exists.
16753         (xg_display_close): Allow Emacs to close all displays (bug#985).
16755 2008-10-06  Andreas Schwab  <schwab@suse.de>
16757         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16759 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
16761         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16763         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16765         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16766         during initialization.
16768 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
16770         * xdisp.c (redisplay_internal): If frame switched, redisplay the
16771         whole thing on MSDOS frames as well as on a TTY.
16773         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16774         well as for TTY.
16775         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16776         well as on a TTY.
16778         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16779         as well as for TTY.
16781         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16783         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16784         MSDOS frames as well.
16786 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
16788         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16789         correct arguments.
16790         * menu.c (find_and_return_menu_selection): Add cast.
16792 2008-10-03  Glenn Morris  <rgm@gnu.org>
16794         * emacs.c (USAGE1): Add --daemon.
16796 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
16798         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16799         100, so it's in percents as advertised.
16801 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
16803         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16804         (ns_output.current_cursor, ns_output.desired_cursor)
16805         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16806         (FRAME_NEW_CURSOR_COLOR): Remove.
16808         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
16809         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
16810         enumeration (HOLLOW_BOX_CURSOR, etc.).
16812         * nsterm.m (ns_frame_rehighlight): Remove commented code.
16813         (draw_window_cursor): Simplify code.
16814         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16815         Don't change cursor type.  In latter, call rehighlight instead of doing
16816         updates manually.
16817         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16818         Use core Emacs cursor types.
16820         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
16822 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
16824         * process.c (Faccept_process_output): Fix doc-string.
16826 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
16828         * gmalloc.c (__sbrk): Also define for uClibc.
16830         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16831         for uClibc.
16833 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
16835         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16836         styles.
16837         (nsfont_open): Reenable the cache.
16839 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
16841         * font.c (font_matching_entity): Reflect ATTRS in font selection.
16842         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16844 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
16846         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16847         a suspended terminal.
16849 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
16851         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16853 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
16855         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16857 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
16859         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16860         in a continued line coincides with a line beginning.
16862 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
16864         * nsfont.m (nsfont_trait_distance): Fix bug.
16865         (nsfont_list): Return a list rather than a vector (syncs with Handa
16866         changes of 2008-05-14).
16867         (nsfont_open): Improve logging.
16869 2008-09-29  Andreas Schwab  <schwab@suse.de>
16871         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16873 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
16875         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16876         name as char-resolve-modifiers.
16877         Reported by: Markus Triska <markus.triska@gmx.at>
16879 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
16881         * dispnew.c (init_display): Return earlier when running as a daemon.
16883 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
16885         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16887 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
16889         * composite.c (Fcomposition_get_gstring)
16890         (Fcompose_region_internal, Fcompose_string_internal)
16891         (Ffind_composition_internal): Doc fix.
16892         (syms_of_composite) <compose-chars-after-function>: Doc fix.
16893         (syms_of_composite) <auto-composition-function>: Doc fix.
16894         (syms_of_composite) <composition-function-table>: Doc fix.
16896 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
16898         * search.c (wordify): New argument for lax word-ends.
16899         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16901 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
16903         * lisp.h (is_daemon): Declare.
16904         * dispnew.c (init_display): Do not try to initialize the terminal
16905         when running as a daemon.
16907 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
16909         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16910         x_display_pixel_height.
16912 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
16914         * undo.c (record_point): Don't call Fundo_boundary for first
16915         change.  (Bug#731)
16917 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
16919         * emacs.c (Fdaemonp): Doc fix.
16921 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
16923         * emacs.c (main): Place #ifdef in the proper place.
16925 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
16927         * emacs.c (standard_args): Add --daemon.
16928         (main): Disconnect from the terminal when --daemon is passed.
16929         (is_daemon): New variable.
16930         (Fdaemonp): New function.
16931         (syms_of_emacs): Defsubr it.
16933 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
16935         * xdisp.c (get_next_display_element): Handle string display
16936         correctly when checking for the end of a box run.
16938 2008-09-20  Glenn Morris  <rgm@gnu.org>
16940         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16941         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16942         (Frename_file): Avoid copying to trash if a rename involves
16943         a delete.  (Bug#964).
16945 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
16947         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16948         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16949         frames as well as termcap frames.
16950         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16951         get_named_tty.
16953 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
16955         * process.c (procfs_system_process_attributes): Fix cmdline in
16956         case /proc/PID/cmdline is empty.
16958         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16959         x_display_pixel_height.
16961 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
16963         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16965         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16966         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16968 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
16970         * dispextern.h (struct it): Move line_wrap away from the middle of
16971         bitfields.  Move voffset in struct iterator_stack_entry after the
16972         bitfields.  Move tab_width near after another short.
16974 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
16976         * frame.h (struct frame): Move alpha from the middle of bitfields.
16978         * window.h (struct window): Move frozen_window_start_p after the
16979         rest of the bitfields to reduce padding.
16981 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
16983         * xterm.h (x_display_info): Remove `height' and `width' members.
16985         * nsterm.h (ns_display_info): Remove `height' and `width' members.
16987         * w32term.h (w32_display_info): Remove `height', `width',
16988         `height_in', and `width_in' members.
16990         * xterm.c (x_display_pixel_height, x_display_pixel_width):
16991         New functions.
16992         (x_calc_absolute_position): Use them.
16993         (x_term_init): Omit removed `height' and `width' members.
16995         * w32term.c (x_display_pixel_height, x_display_pixel_width):
16996         New functions.
16997         (w32_read_socket, x_calc_absolute_position): Use them.
16998         (w32_initialize_display_info, w32_term_init): Omit removed members
16999         of w32_display_info.
17001         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17002         New functions.
17003         (ns_initialize_display_info): Omit removed members of ns_display_info.
17005         * xterm.c (x_display_pixel_height, x_display_pixel_width):
17006         New functions.
17007         (x_calc_absolute_position): Use them.
17008         (x_term_init): Omit removed `height' and `width' members.
17010         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17011         (compute_tip_xy):
17012         * frame.c (x_fullscreen_adjust):
17013         * xmenu.c (menu_position_func): Use x_display_pixel_height and
17014         x_display_pixel_width.
17016 2008-09-18  Kenichi Handa  <handa@m17n.org>
17018         * composite.c (fill_gstring_header): Don't check FROM and TO here.
17019         (composition_compute_stop_pos): Fix handling of static composition.
17020         (Fcomposition_get_gstring): Check FROM and TO at first.
17022 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
17024         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17025         mixup (YAILOM).
17027 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
17029         * indent.c (Fvertical_motion): Use position reported by iterator
17030         instead of PT for determining screen motion (bug#943).
17032 2008-09-17  Romain Francoise  <romain@orebokech.com>
17034         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17036 2008-09-17  Kenichi Handa  <handa@m17n.org>
17038         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17040         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17041         if necessary.
17043 2008-09-16  Kenichi Handa  <handa@m17n.org>
17045         * coding.c (make_conversion_work_buffer): Avoid calling
17046         Fget_buffer_create if it is not necessary.
17048 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
17050         * window.c (Fselect_window): Don't update window_select_count and
17051         use_time when norecord is not nil.
17053 2008-09-14  Kenichi Handa  <handa@m17n.org>
17055         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17056         specpdl_ptr.
17058 2008-09-12  Kenichi Handa  <handa@m17n.org>
17060         * indent.c (scan_for_column): Don't handle automatic composition
17061         if the current buffer is not associated with a window.
17063         * composite.c (composition_reseat_it): If the current buffer is
17064         not associated with a window, ignore the automatic composition.
17065         (find_automatic_composition): Likewise.
17067 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
17069         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17070         (Fgpm_mouse_stop): Use it.
17071         * termhooks.h (close_gpm): Declare.
17072         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17073         connection if Gpm_GetEvent fails.
17075         * window.c (set_window_buffer): Always preserve current-buffer.
17077 2008-09-12  Glenn Morris  <rgm@gnu.org>
17079         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
17081 2008-09-11  Glenn Morris  <rgm@gnu.org>
17083         * charset.c (charset-map-path): Doc fix.
17085 2008-09-10  Kenichi Handa  <handa@m17n.org>
17087         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17089         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17090         compose a grapheme cluster with the preceding base glyph.
17092         * composite.c (composition_compute_stop_pos): Fix previous change.
17093         Reset cmp_it->id to -1 at first.
17095 2008-09-10  Glenn Morris  <rgm@gnu.org>
17097         * Makefile.in (character.o, chartab.o): Fix config.h typo.
17099 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
17101         * keyboard.c (read_key_sequence): Reapply translation maps when
17102         switching keyboards.
17104 2008-09-09  Kenichi Handa  <handa@m17n.org>
17106         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17107         characters.
17109         * composite.c (FORWARD_CHAR): Fix calculation
17110         of (POSITION).pos_byte.
17111         (composition_compute_stop_pos): Limit the search of composition to
17112         at most 500 characters ahead.  If we reach the limit or find a
17113         newline, set cmp_it->ch to -2 and return 0.
17114         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17116 2008-09-08  Kenichi Handa  <handa@m17n.org>
17118         * indent.c (Fvertical_motion): Be sure to set
17119         it_overshoot_expected if it.cmp_it.id is non-negative.
17121 2008-09-07  Andreas Schwab  <schwab@suse.de>
17123         * callproc.c (Fcall_process): Don't hold references to string data
17124         across garbage collection.  Move initialisation of new_argv down
17125         to avoid compiler bug.
17127 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
17129         * process.c (Fsystem_process_attributes): Doc fix.
17131 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
17133         * callproc.c (Fcall_process): Canonicalize current directory name.
17135         * xdisp.c (move_it_to): When moving by vpos, ensure that the
17136         iterator advances to the next line if the current line ends in a
17137         continued tab.
17139 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
17141         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17142         member to point to cmp_from.
17144         * xdisp.c: Doc fix for references to gidx data member.
17146 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
17148         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17150 2008-09-07  Kenichi Handa  <handa@m17n.org>
17152         * composite.c (FORWARD_CHAR): Check STOP after
17153         incrementing (POSITION).pos.
17155 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
17157         * process.c (Fsystem_process_attributes): Doc fix.
17159 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
17161         * keyboard.c (Ftop_level): Doc fix.
17163 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
17165         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17166         minibuffer, don't let lower part of menu invade the echo area.
17168         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17169         "char *q" to access menu text and advance through it.  Revert the
17170         change that displayed ">" instead of ASCII character 0x10.
17172 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
17174         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17175         toggle boxes and radio buttons on MS-DOS as well.
17177 2008-09-05  Kenichi Handa  <handa@m17n.org>
17179         * composite.c (autocmp_chars): Check lookback count.
17180         (composition_compute_stop_pos): Set cmp_it->lookback.
17181         (composition_reseat_it): Check lookback count.
17182         (struct position_record): New struct.
17183         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17184         (find_automatic_composition): New function.
17185         (composition_adjust_point): Use find_automatic_composition.
17187         * dispextern.h (struct composition_it): New member lookback.
17189 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
17191         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17192         if moving by a single line.
17194 2008-09-02  Andreas Schwab  <schwab@suse.de>
17196         * xterm.c (x_delete_display): Fix merge error.
17198         * fileio.c (Fexpand_file_name): Remove unused variables.
17200 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
17202         * fileio.c (Fexpand_file_name): Copy argument `name' into local
17203         storage on all platforms, not just on DOS_NT.
17205 2008-09-02  Jason Rumney  <jasonr@gnu.org>
17207         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17208         Ensure mouse is not grabbed after menu is finished.
17210 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
17212         * xfaces.c (Finternal_set_alternative_font_family_alist)
17213         (Finternal_set_alternative_font_registry_alist): Properly copy
17214         entire alist structure.
17216 2008-09-01  Kenichi Handa  <handa@m17n.org>
17218         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17219         representative chars of the script is a vector.
17220         (ftfont_list): Handle the case where the representative chars of
17221         the script is a vector.
17223         * character.c (syms_of_character): Docstring of
17224         script-representative-chars fixed.
17226 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
17228         * msdos.c (BUILD_CHAR_GLYPH): New macro.
17229         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17230         the menu.  Allocate larger buffer for `text', to account for
17231         possible ^C characters.
17233 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
17235         * xdisp.c (prepare_menu_bars): Don't call
17236         Vwindow_size_change_functions with arg Qt.
17238 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
17240         * font.h (font_range):
17241         * fileio.c (report_file_error):
17242         * composite.c (composition_update_it): Yet another int/Lisp_Object
17243         mixup (YAILOM).
17245 2008-08-30  Glenn Morris  <rgm@gnu.org>
17247         * data.c (Fmake_variable_frame_local): Doc fix.
17249         * frame.c (Fmodify_frame_parameters): Doc fix.
17251 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
17253         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17254         needed by GetTokenInformation.
17255         (w32_system_process_attributes): Check return values of all system
17256         APIs.
17258         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17259         only when the state changes.
17260         (IT_update_begin, IT_update_end): Add termscript trace.
17262         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17263         clipboard is unavailable.  Set dst to NULL if it doesn't point to
17264         malloc'ed data.
17265         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17266         passing random values to xfree.
17268         * dispnew.c (init_display): Set `tty's association in frame's
17269         parameters alist to the name of the terminal device, if that is known.
17271 2008-08-29  Jason Rumney  <jasonr@gnu.org>
17273         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17275 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
17277         * composite.c (fill_gstring_body): Avoid compiler warnings.
17279         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17280         LGLYPH_SET_CODE to avoid compiler warnings.
17282         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17284         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17286         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17287         LGLYPH_SET_CODE.
17289 2008-08-29  Kenichi Handa  <handa@m17n.org>
17291         * fileio.c (report_file_error): Don't downcase the first character
17292         of errstring if it is still unibyte.
17294 2008-08-29  Kenichi Handa  <handa@m17n.org>
17296         These changes are to re-implement the automatic composition so
17297         that it doesn't use text properties.
17299         * Makefile.in (ftfont.o): Depend on composite.h.
17300         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17302         * character.h (Vunicode_category_table): Extern it.
17304         * character.c (Vunicode_category_table): New variable.
17305         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17307         * chartab.c (optimize_sub_char_table): Perform more greedy
17308         optimization.
17310         * composite.h (enum composition_method):
17311         Delete COMPOSITION_WITH_GLYPH_STRING.
17312         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17313         (Vcomposition_function_table): Extern it.
17314         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17315         (composition_gstring_put_cache, composition_gstring_from_id)
17316         (composition_gstring_p, composition_gstring_width)
17317         (composition_compute_stop_pos, composition_reseat_it)
17318         (composition_update_it, composition_adjust_point): Extern them.
17319         (Fcomposition_get_gstring): EXFUN it.
17321         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17322         (Vcomposition_function_table)
17323         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17324         (gstring_hash_table, gstring_work, gstring_work_headers):
17325         New variables.
17326         (gstring_lookup_cache, composition_gstring_put_cache)
17327         (composition_gstring_from_id, composition_gstring_p)
17328         (composition_gstring_width, fill_gstring_header)
17329         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17330         (composition_reseat_it, composition_update_it)
17331         (composition_adjust_point, Fcomposition_get_gstring): New functions.
17332         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17333         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
17334         Defsubr composition_get_gstring.
17336         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
17337         cmp_id.
17338         (struct glyph_string): Delete the member gidx.  New members
17339         cmp_id, cmp_from, and cmp_to.
17340         (enum it_method): Delete GET_FROM_COMPOSITION.
17341         (struct composition_it): New struct.
17342         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17343         Delete c, len, cmp_id, cmp_len in u.comp.
17345         * font.h (enum lgstring_indices): Delete it.
17346         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17347         (enum lglyph_indices): Likewise.
17348         (font_range): Adjust extern.
17349         (font_fill_lglyph_metrics): Extern it.
17351         * font.c (QCf): New variable.
17352         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17353         (font_prepare_composition): Delete this function.
17354         (font_range): Type and arguments changed.
17355         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17356         (font_fill_lglyph_metrics): New function.
17357         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17358         (syms_of_font): DEFSYM QCf.  Delete defsubr for
17359         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17360         Defsubr Sfont_shape_gstring.
17362         * fontset.h (font_for_char): Extern it.
17364         * fontset.c (font_for_char): New function.
17366         * ftfont.c: Include composite.h.
17367         (ftfont_resolve_generic_family): Add langset "en" to pattern.
17368         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17370         * indent.c: Include composite.h and dispextern.h.
17371         (check_composition): Delete this function.
17372         (scan_for_column): Handle composition by
17373         composition_compute_stop_pos, composition_reseat_it, and
17374         composition_update_it.
17375         (compute_motion): Likewise.
17376         (Fvertical_motion): Fix checking of composition.
17378         * keyboard.c (adjust_point_for_property): Check composition by
17379         composition_adjust_point.
17381         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17382         struct glyph_string.
17384         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17385         (append_composite_glyph): Adjust for the change of struct it and
17386         struct glyph.
17387         (produce_composite_glyph): Likewise.
17389         * w32term.c (x_draw_composite_glyph_string_foreground):
17390         Adjust for the change of struct glyph_string.
17391         (x_draw_glyph_string): Likewise.
17393         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17394         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17396         * xdisp.c: Include font.h.
17397         (it_props): Delete the entry for Qauto_composed.
17398         (init_iterator): Initialize it->cmp_it.id to -1.
17399         (compute_stop_pos): Call composition_compute_stop_pos.
17400         (face_before_or_after_it_pos): Adjust for the change of struct it.
17401         (handle_auto_composed_prop): Delete it.
17402         (handle_composition_prop): Handle only static composition.
17403         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17404         from xassert.  Initialize it->cmp_it.stop_pos.
17405         (push_it): Adjust for the change of struct it.
17406         (pop_it): Likewise.
17407         (get_next_element): Delete next_element_from_composition.
17408         (CHAR_COMPOSED_P): New macro.
17409         (get_next_display_element): For automatic composition, get a face
17410         from the font in the glyph-string.
17411         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17412         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
17413         (next_element_from_string): Check if the character at the current
17414         position is composed by CHAR_COMPOSED_P.
17415         (next_element_from_buffer): Likewise.
17416         (next_element_from_composition): Adjust for the change of struct it.
17417         Update it->cmp_it.
17418         (dump_glyph): Adjust for the change of struct glyph.
17419         (fill_composite_glyph_string): Adjust for the change of struct
17420         it and struct glyph.  Don't handle automatic composition here.
17421         (fill_gstring_glyph_string): New function.
17422         (x_get_glyph_overhangs): Handle automatic composition.
17423         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17424         (BUILD_GSTRING_GLYPH_STRING): New macro.
17425         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17426         automatic composition.
17427         (append_composite_glyph): Adjust for the change of struct it and
17428         struct glyph.
17429         (x_produce_glyphs): Adjust for the change of struct it.
17431         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17432         the change of struct glyph_string.
17433         (x_draw_glyph_string): Likewise.
17435 2008-08-29  Glenn Morris  <rgm@gnu.org>
17437         * buffer.c (word-wrap): Doc fix.
17438         * xdisp.c (truncate-partial-width-windows): Doc fix.
17439         Increase default to 50.
17441 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
17443         * xdisp.c (update_tool_bar_unwind): New function.
17444         (update_tool_bar): Temporarily set selected frame before building
17445         tool-bar items.
17447 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
17449         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17450         snprintf, respectively.
17451         (xd_append_arg): Convert strings with Fstring_make_unibyte.
17453 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
17455         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17456         LDFLAGS to GNUstep CC invocation.
17458 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
17460         * indent.c (Fvertical_motion): Revert last change.  Handle the
17461         general case where we are moving forward, and PT spans multiple
17462         screen lines.
17464         * eval.c (find_handler_clause): Temporarily increase
17465         max-lisp-eval-depth while printing the backtrace buffer, to
17466         guarantee that help-mode code can run.
17468 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
17470         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17471         colors under -rv.
17472         (IT_set_frame_parameters): Don't swap foreground and background
17473         colors if `(reverse . t)' is present in the frame properties.
17474         (internal_terminal_init): Call init_frame_faces only for the
17475         initial frame.
17477 2008-08-27  Andreas Schwab  <schwab@suse.de>
17479         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17481 2008-08-27  Andreas Schwab  <schwab@suse.de>
17483         * search.c (search_buffer): Set char_base to zero only at the end.
17485 2008-08-27  Kenichi Handa  <handa@m17n.org>
17487         * fileio.c (report_file_error): Fix handling of multibyte error string.
17489 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
17491         * xterm.c (x_term_init): Temporarily hide the partially
17492         initialized terminal while calling vendor-specific-keysyms.
17494 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
17496         * msdos.c (internal_terminal_init): Most initializations done only
17497         once, especially initial_screen_colors[] and termscript open.
17499 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
17501         * eval.c (Fcondition_case): Doc fix.
17503         * widgetprv.h (EmacsFramePart): Change font member to the new font
17504         struct.
17506         * widget.c: Include character.h and font.h for XSETFONT.
17507         (setup_frame_gcs): Compute X font id from font struct, just once.
17509 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
17511         * term.c (get_named_tty): Fix last change.
17513 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
17515         * indent.c (Fvertical_motion): If moving forward starting from a
17516         multi-line string, move the iterator to the last line of that string.
17518 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
17520         * frame.c (do_switch_frame): Mark previously displayed frame as
17521         obscured for FRAME_MSDOS_P frames as well.
17523 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
17525         * frame.c (make_terminal_frame): Initialize f->terminal,
17526         f->terminal->reference_count, and scroll bars on MS-DOS as well.
17527         Set the top frame to newly created frame.
17528         (Fmake_terminal_frame): Reuse the_only_display_info.
17530         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17531         estimating available memory.
17533 2008-08-23  David Reitter  <david.reitter@gmail.com>
17535         * nsterm.m (ns_draw_window_cursor): Don't call
17536         NSDisableScreenUpdates and NSEnableScreenUpdates on
17537         non-NS_IMPL_COCOA systems.
17539 2008-08-23  Andreas Schwab  <schwab@suse.de>
17541         * process.c (procfs_system_process_attributes): Fix use of
17542         uninitialized variables.
17544 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
17546         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17548         * dispnew.c (init_display): Remove MS-DOS specific conditions for
17549         calling tty-set-up-initial-frame-faces.
17551         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17552         Allow MSDOS frames along with X frames.
17554         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17555         addition to output_termcap.
17557         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17559         * termchar.h (FRAME_TTY): Support output_msdos_raw.
17560         (struct tty_display_info) [MSDOS]: Add fields related to mouse
17561         highlight.
17563         * process.c [!subprocesses]: Define QCname.
17564         (syms_of_process): Intern and staticpro it.
17566         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17567         Adjust for changes in encoding/decoding routines.
17568         Use encode_coding_object and decode_coding_object instead of
17569         encode_coding and decode_coding.
17571         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17573         * dosfns.c: Include frame.h before termhooks.h.
17574         (dos_cleanup): Use CURTTY ()->termscript instead of a global
17575         variable termscript.
17577         * s/msdos.h (USER_FULL_NAME): Define.
17578         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17580         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17581         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17582         pw->pw_gecos.
17584         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17585         SELECTED_FRAME as additional (1st) argument.
17586         (tty_read_avail_input): Handle output_msdos_raw in
17587         addition to output_termcap.
17589         * msdos.c: Include frame.h before termhooks.h.
17590         (mouse_on, mouse_off, mouse_moveto, mouse_init)
17591         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17592         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17593         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17594         (IT_set_terminal_modes, IT_reset_terminal_modes)
17595         (IT_set_frame_parameters): Use tty->termscript instead of a global
17596         variable termscript.
17597         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17598         global variable terminal_coding.  Don't refer to
17599         Vnonascii_translation_table.
17600         (internal_terminal_init): Set Vwindow_system in current_kboard.
17601         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
17602         Announce date and time of session start, if termscript is open.
17603         Don't zero out the_only_display_info (it is done in
17604         term.c:init_tty).  Open termscript only of not already open.
17605         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
17606         here instead of dos_ttraw.  Don't initialize display if this is an
17607         initial tty.  Don't set FRAME_FONT.
17608         (Vwindow_system_version): Bump to 23.
17609         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
17610         is available, set up mouse_position_hook.
17611         (dos_ttraw, IT_set_terminal_modes): If called with initial
17612         terminal, do nothing.
17613         (IT_set_frame_parameters): Handle the Qtty_type frame
17614         parameter by calling internal_terminal_init.
17615         (dos_set_window_size, show_mouse_face)
17616         (clear_mouse_face, IT_note_mode_line_highlight)
17617         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17618         (dos_rawgetc): Use tty_display_info instead of x_display_info.
17619         (initialize_msdos_display): New function.
17620         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17621         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17622         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17623         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17624         Accept additional argument: a pointer to a frame.  Update all callers.
17625         (request_sigio, unrequest_sigio): Don't define, now defined on
17626         sysdep.c.
17627         (IT_write_glyphs): Rewrite to use encode_terminal_code.
17629         * term.c [MSDOS]: Include msdos.h.
17630         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
17631         conditional to DOS_NT.  Allow only one call to this function in a
17632         session.  Don't allocate a new struct tty_display_info; instead,
17633         reuse the_only_display_info.  Call get_tty_size to get screen
17634         dimensions.  Call init_baud_rate to set bad_rate.
17635         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17636         (Fsuspend_tty) [MSDOS]: Don't close input and output.
17637         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17638         (get_tty_terminal, get_named_tty, Ftty_type)
17639         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17640         output_termcap.
17641         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17642         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17643         only when subprocesses are supported.
17645         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17646         f->output_data.x.
17647         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17648         terminal devices.
17650         * msdos.h: Remove definition of struct x_display_info and struct
17651         x_output.
17652         (FRAME_FONT): Use output_data.tty.
17653         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17654         (struct x_display_info): Rename from display_info.  Update all users in
17655         msdos.c.
17656         (struct x_output): Remove background_pixel and foreground_pixel.
17657         (the_only_display_info): Rename from the_only_x_display.
17658         (dos_ttraw): Update prototype.
17660         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17661         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17663 2008-08-23  Jason Rumney  <jasonr@gnu.org>
17665         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17666         (fn_TIFFSetDirectory): New library function used.
17667         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17668         (tiff_load): Use :index to select among multiple images.  Set count
17669         property when multiple images exist.
17670         (gif_format): Use :index, not :image.
17672 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
17674         * xdisp.c (try_scrolling): Check INT_MAX instead of
17675         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
17676         to obtain INT_MAX.
17678 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
17680         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17682 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
17684         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17685         GNUstep library location.
17687 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
17689         * xfaces.c (x_update_menu_appearance): Check validity of menu font
17690         before using it.
17692         * puresize.h (BASE_PURESIZE): Increase to 1250000.
17694 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
17696         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17697         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17698         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17699         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17700         (EmacsApp-cursor_blink_handler): Remove declaration.
17701         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17702         match 01 Feb 2008 changes in xterm.c.
17703         (ns_read_socket): Add cast to avoid warning.
17704         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17705         GNUstep.
17707 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
17709         * xselect.c (x_get_foreign_selection): Return nil if desired
17710         selection could not be obtained, instead of signalling an error.
17712 2008-08-20  David Reitter  <david.reitter@gmail.com>
17714         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17715         * nsterm.m: Remove ns-specific code for cursor blinking.
17716         (ns_draw_window_cursor): Clear cursor properly rather than
17717         redrawing the area.  Respect width of bar cursors.
17718         These changes enable the use of generic blink-cursor-mode and
17719         generic cursor types in NS and support smooth cursor movements (do
17720         not blink off after command).
17721         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17722         Nextstep, too.
17724 2008-08-19  Kenichi Handa  <handa@m17n.org>
17726         * font.c (Vfont_log_deferred): New variable.
17727         (font_add_log): Check Vfont_log_deferred.
17728         (font_deferred_log): New function.
17730         * font.h (font_deferred_log): Extern it.
17732         * fontset.c (reorder_font_vector): Use encoding charset of fonts
17733         for sorting.
17734         (face_for_char): Use deferred log.
17736 2008-08-18  Kenichi Handa  <handa@m17n.org>
17738         * fontset.c (face_for_char): Add font log.
17740         * font.c (font_add_log): Add the font properties :script, :lang,
17741         and :otf in the log.
17743 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
17745         * xdisp.c: Remove dead code.
17746         (handle_invisible_prop, next_overlay_string): Defer call to
17747         setup_for_ellipsis.
17748         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17750 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
17752         * xfaces.c (lookup_derived_face): Properly handle possible zero
17753         return value of get_lface_attributes.
17754         (merge_faces): Don't tell lookup_derived_face to signal an error
17755         if face is not found.
17757         * dired.c (Fdirectory_files): Doc fix.
17759         * process.c (make_process): Initialize kill_without_query struct
17760         member.
17762 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
17764         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17765         Alternative calculation of totphys for Visual Studio 6.
17767         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17769         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17770         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17771         All users changed.
17772         (stat): Only root directory passed to GetDriveType.  Allow RAM
17773         disk as well as local fixed disk when w32-get-true-file-attributes
17774         is set to `local'.
17775         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17776         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17777         (w32_cached_id, w32_add_to_cache): New functions.
17778         (get_name_and_id): Look account names in the cache before calling
17779         lookup_account_sid.
17780         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17781         New initialization flags.
17782         (globals_of_w32): Initialize them to zero.
17783         (w32_system_process_attributes): Use w32_cached_id and
17784         w32_add_to_cache.
17786 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
17788         * lread.c (Fread_char, Fread_char_exclusive): If no character
17789         event is read before timeout is reached, return nil, rather than
17790         converting to a number.
17792 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
17794         * fns.c (use_dialog_box): Doc fix.
17796         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17797         on OS X.
17799 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
17801         * frame.c (Qns_parse_geometry): New var.
17802         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17804 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
17806         * xdisp.c (x_produce_glyphs): Handle the case when font has no
17807         space character in calculating tabs.
17809 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
17811         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17813 2008-08-10  Glenn Morris  <rgm@gnu.org>
17815         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17816         silence gcc "limited range of data type" warnings in some
17817         make_fixnum_or_float calls.
17819 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
17821         * w32.c (w32_system_process_attributes): If the process does not
17822         exist, return nil.
17824         * w32.c: Include thelp32.h, psapi.h and coding.h.
17825         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17826         declarations.
17827         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17828         (Process32Next_Proc): New typedefs.
17829         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17830         (g_b_init_process32_next, g_b_init_open_thread_token)
17831         (g_b_init_impersonate_self, g_b_init_revert_to_self)
17832         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17833         (g_b_init_get_process_working_set_size)
17834         (g_b_init_global_memory_status_ex): New static variables.
17835         (globals_of_w32): Initialize them.
17836         (create_toolhelp32_snapshot, process32_first, process32_next)
17837         (open_thread_token, impersonate_self, revert_to_self)
17838         (get_process_memory_info, get_process_working_set_size)
17839         (global_memory_status, global_memory_status_ex): New wrapper
17840         functions.
17841         (w32_list_system_processes, w32_system_process_attributes)
17842         (enable_privilege, restore_privilege, ltime, process_times):
17843         New functions.
17844         (convert_time_raw): New function.
17845         (convert_time): Remove conversion of FILETIME into time in 100
17846         nsec units, call convert_time_raw instead.
17848         * process.h (w32_list_system_processes, w32_system_process_attributes):
17849         Add prototypes.
17850         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17851         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17852         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17853         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17855         * process.c (Fsystem_process_attributes): Doc fix.
17857 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
17859         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17860         a continued multi-char glyph; if so, advance to the actual glyph.
17862 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
17864         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17866         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17867         (.m.o): Use it.
17868         * config.in: Regenerate.
17870 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
17872         * xdisp.c (redisplay_window): Revert last change.
17873         (try_window): Check bottom scroll margin too.
17875 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
17877         * config.in: Regenerate.
17879         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17880         -list-load-path-shadows'.
17881         (nsgui.h): Reduce number of things depending on it.
17883 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
17885         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17886         instead of window-end which does the wrong thing at eob.
17887         (try_cursor_movement): Minor optimization.
17888         (redisplay_window): If scroll margin is defined, don't assume
17889         window doesn't need scrolling.
17891 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
17893         * config.in: Regenerate.
17895         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17896         (mostlyclean): Don't delete *.d under NS.
17898         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17900 2008-08-06  Kenichi Handa  <handa@m17n.org>
17902         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17904 2008-08-06  Andreas Schwab  <schwab@suse.de>
17906         * config.in: Regenerate.
17908 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
17910         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17911         forcing a window start.
17913         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17914         (auto_save_1): Update modtime when auto-save-list-file-name is on.
17916 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
17918         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17919         argument.
17921 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
17923         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17924         <scroll-down-aggressively, before-change-functions>:
17925         <after-change-functions>: Reflow docstrings.
17927 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
17928             Ken Raeburn  <raeburn@gnu.org>
17930         Dock menu customization, based on a patch by Ken Raeburn, plus some
17931         other fixes.
17932         * nsmenu.m (dockMenu): New variable.
17933         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17935         * nsterm.h (dockMenu): Declare.
17937         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17938         (ns_term_init): Initialize dockMenu.
17939         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17940         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17941         left.
17943         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17945 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
17947         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17949         * config.in: Regenerate.
17951 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
17953         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17955 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
17957         * nsterm.h (find_and_call_menu_selection): Fix prototype.
17959 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
17961         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17963         * keyboard.h: Comment an #endif.
17965         * lisp.h (have_menus_p): Adjust comment.
17967         * menu.c (find_and_return_menu_selection): Fix comparison with
17968         client_data.
17970         * nsmenu.m (popup_activated_flag): New variable.
17971         (popup_activated): New function.
17972         (menu-or-popup-active-p): New exported lisp definition.
17973         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
17974         when popup done.
17975         (ns_popup_dialog): Set popup_activated_flag.
17977         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17978         version for GNUstep (handled by conditional typedef in nsterm.m).
17979         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17980         in rgb.txt).
17982         * process.c (init_process): Use DARWIN_OS, not DARWIN.
17984         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17986         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17988         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17989         shortcircuit if popup_activated like GTK and X toolkit.
17991         * m/inter386.h: Change DARWIN to DARWIN_OS.
17993         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
17994         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
17995         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17996         Expand comment on NO_SOCK_SIGIO.
17998 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
18000         * nsterm.m (windowDidResize): Remove stopModal call.
18002 2008-08-03  Andreas Schwab  <schwab@suse.de>
18004         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18005         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18007 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
18009         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18010         Don't use uninitialized pointer variable when using getrlimit.
18012 2008-08-02  Jason Rumney  <jasonr@gnu.org>
18014         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18016 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
18018         * alloc.c (NSTATICS): Bump to 0x640.
18020         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18022         * lisp.h: Add prototype for directory_files_internal.
18024         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18025         New functions.
18026         (syms_of_process): Defsubr them.  Add initializations for various
18027         Q* symbols used in procfs_system_process_attributes.
18028         (procfs_list_system_processes, procfs_system_process_attributes)
18029         [HAVE_PROCFS]: New functions.
18030         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18031         (procfs_get_total_memory): New functions.
18033 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
18035         * xfaces.c (Fx_load_color_file): Fix previous change;
18036         it is #ifdef WINDOWSNT, not WINDOWS_NT.
18038 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
18040         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18042 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
18044         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18046 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
18048         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18050         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18051         define NSApplicationDelegateReplySuccess.
18052         (EmacsView -converstationIdentifier): Use long instead of
18053         NSInteger for GNUstep, since it doesn't have NSInteger.
18055         * xmenu.c: Revert last change.
18057         * keyboard.h: Fix last change.
18059 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
18061         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18062         on Windows.
18064 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
18066         Warning clearing and clean-up in NS port.
18067         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18068         Add prototypes.
18069         * nsgui.h (FACE_DEFAULT): Remove, unused.
18070         (XGCValues): Change colors to unsigned long.
18071         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18072         nsterm.m.
18073         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18074         (ns_list_fonts): Remove, unused.
18075         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18076         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18077         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18078         (nsfont_draw): Compare face colors to 0, not nil.
18079         * nsmenu.m (struct widget_value): Drop unneeded declaration.
18080         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18081         (-addSubmenuWithTitle:): Use NSMenuItem class.
18082         (ns_popup_menu): Use NO, not NULL, for enabled setting.
18083         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18084         (ns_clip_to_row): Make gc arg a BOOL.
18085         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18086         ns_clip_to_row() call.
18087         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18088         used).  Cast FRAME_FONT assignments.
18089         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18090         (ns_string_to_lispmod): Change arg to const char.
18091         (ns_term_init): Use NSMenuItem class.
18092         (EmacsApp -openFile:): Move to different section of file.
18093         (EmacsApp -application:openFiles:): Don't return a value, call
18094         -replyToOpenOrPrint:.
18095         (EmacsView -keyDown:): Fix up cast.
18096         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18097         (EmacsView -menuDown:): Cast tag in call to
18098         find_and_call_menu_selection().
18099         (ns_list_fonts): Remove, unused.
18100         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
18101         (ns_fontname_to_xlfd): Make static.
18102         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18103         Remove prototypes (now in keyboard.h).
18104         (next_menubar_widget_id): Remove, unused.
18105         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18106         Remove prototypes (now in keyboard.h).
18107         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18109 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
18111         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18112         (floatfns.o): Depend on syssignal.h.
18113         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18115         * systty.h: Fix previous change that removed BSD_TERMIOS.
18116         Add comments to #ifdefs.
18118 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
18120         * w32fns.c (w32-load-color-file): Remove.
18121         (x-open-connection): Use renamed Fx_load_color_file.
18122         * xfaces.c (x-load-color-file): Add.
18123         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18124         Emacs.clr.
18125         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18127 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
18129         * dbusbind.c (Fdbus_call_method_asynchronously)
18130         (Fdbus_method_error_internal): New defuns.
18131         (xd_read_message): Handle also reply messages.
18132         (Vdbus_registered_functions_table): Extend docstring.
18134 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
18136         * keyboard.c (gobble_input): Fix previous change.
18138 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
18140         * bitmaps/README:
18141         * xfns.c:
18142         * termcap.c:
18143         * term.c:
18144         * syswait.h:
18145         * systty.h:
18146         * systime.h:
18147         * syssignal.h:
18148         * sysdep.c:
18149         * process.h:
18150         * process.c:
18151         * print.c:
18152         * ndir.h:
18153         * lread.c:
18154         * keyboard.c:
18155         * getpagesize.h:
18156         * floatfns.c:
18157         * fileio.c:
18158         * emacs.c:
18159         * doc.c:
18160         * dispnew.c:
18161         * dired.c:
18162         * data.c:
18163         * callproc.c:
18164         * buffer.c:
18165         * README:
18166         * Makefile.in:
18167         * s/template.h:
18168         * s/msdos.h:
18169         * m/vax.h: Remove VMS support.
18170         * s/vms.h:
18171         * vlimit.h:
18172         * uaf.h:
18173         * temacs.opt:
18174         * param.h:
18175         * ioctl.h: Remove file.
18177 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
18179         * s/ms-w32.h (MULTI_KBOARD): Remove.
18180         * xterm.c:
18181         * xselect.c:
18182         * xfns.c:
18183         * window.c:
18184         * w32term.c:
18185         * w32fns.c:
18186         * terminal.c:
18187         * termhooks.h:
18188         * term.c:
18189         * sysdep.c:
18190         * keyboard.h:
18191         * keyboard.c:
18192         * frame.h:
18193         * frame.c:
18194         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18195         * config.in: Regenerate.
18197 2008-07-30  Jason Rumney  <jasonr@gnu.org>
18199         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18201         * w32font.c (w32font_encode_char): Leave as unicode if in range.
18202         (w32font_open_internal): Get unicode version of textmetrics.
18203         Don't enable or disable glyph indices here.
18204         (w32font_open): Disable use of glyph indices.
18206         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18208 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
18210         * minibuf.c (Vread_buffer_function): Doc fix.
18212 2008-07-30  John Paul Wallington  <jpw@pobox.com>
18214         * minibuf.c (read_buffer_completion_ignore_case): New var.
18215         (Fread_buffer): Use it.
18217 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
18219         * systty.h (sensemode): Remove empty #if.  Remove reference to
18220         BSD_TERMIOS, unused.
18222         * sysdep.c: Remove reference to DGUX.
18223         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18225         * config.in: Regenerate.
18227 2008-07-30  Jason Rumney  <jasonr@gnu.org>
18229         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18231 2008-07-29  Jason Rumney  <jasonr@gnu.org>
18233         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18234         is populated.
18235         (uniscribe_encode_char): Always use uniscribe.
18236         Avoid using context if cache is populated.
18238 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
18240         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18241         open menu.
18243         * gtkutil.c (menu_nav_ended): Remove.
18244         (create_menus): Remove signal connect for menu_nav_ended.
18246 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
18248         * xdisp.c (redisplay_window): Check return value of
18249         compute_window_start_on_continuation_line before forcing a window
18250         start.
18252 2008-07-28  Jason Rumney  <jasonr@gnu.org>
18254         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18256         * w32term.c (w32_enable_unicode_output, cleartype_active):
18257         Remove obsolete display options.
18258         (x_draw_glyph_string_background): Don't use old cleartype_active
18259         workaround.
18260         (w32_initialize): Remove cleartype_active initialization.
18261         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18263 2008-07-28  Andreas Schwab  <schwab@suse.de>
18265         * lisp.h (init_weak_hash_tables, syms_of_font)
18266         (xd_read_queued_messages, syms_of_dbusbind): Declare.
18267         (remove_hash_entry): Don't declare.
18268         * eval.c (maybe_call_debugger): Make static and move before use.
18269         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18270         * xdisp.c: Include "gtkutil.h" if USE_GTK.
18271         * xterm.h (x_set_frame_alpha): Declare.
18273 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
18275         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18276         (create_menus): Connect selection-done to menu_nav_ended.
18278 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
18280         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18281         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
18282         parameter with read of 'alpha' one.
18283         (Qns_frame_parameter): Remove.
18284         * nsselect.m (selection-coding-system)
18285         (next-selection-coding-system, Vselection_coding_system)
18286         (Vnext_selection_coding_system): Drop.
18288 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
18290         * nsfns.m (do-applescript, do_applescript): Rename to
18291         ns-do-applescript, ns_do_applescript, and move within file.
18293 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
18295         Remove support for Mac Carbon.
18296         * mactoolbox.c:
18297         * macterm.h:
18298         * macterm.c:
18299         * macselect.c:
18300         * macmenu.c:
18301         * macgui.h:
18302         * macfns.c:
18303         * mac.c: Remove file.
18304         * s/darwin.h:
18305         * m/intel386.h:
18306         * xfaces.c:
18307         * xdisp.c:
18308         * window.c:
18309         * tparam.c:
18310         * termhooks.h:
18311         * termcap.c:
18312         * term.c:
18313         * syssignal.h:
18314         * sysselect.h:
18315         * sysdep.c:
18316         * process.c:
18317         * lread.c:
18318         * lisp.h:
18319         * keyboard.c:
18320         * image.c:
18321         * fringe.c:
18322         * frame.h:
18323         * frame.c:
18324         * fontset.c:
18325         * font.h:
18326         * font.c:
18327         * fns.c:
18328         * fileio.c:
18329         * emacs.c:
18330         * dispnew.c:
18331         * dispextern.h:
18332         * config.in:
18333         * atimer.c:
18334         * Makefile.in: Remove code for Carbon.
18336 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18338         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18340 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18342         * macterm.h (kCGBitmapByteOrder32Host): New define for
18343         non-universal SDKs.
18345         * image.c (mac_create_cg_image_from_image, image_load_image_io)
18346         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18348         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18349         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18351 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
18353         * w32inevt.c: Include dispextern.h.
18355 2008-07-26  Andreas Schwab  <schwab@suse.de>
18357         * print.c (print_object): Fix off-by-one in last change.
18359 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
18361         * term.c (syms_of_term): Don't initialize default_orig_pair,
18362         default_set_foreground and default_set_background on Windows.
18364 2008-07-25  Jason Rumney  <jasonr@gnu.org>
18366         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18367         ScriptItemize.  Clean up return value checking.  Remove unused
18368         variables.
18369         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18370         shaping engine.
18372         * w32font.c (w32font_has_char): Handle the case where we can't
18373         determine the script for a character.
18375 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
18377         * term.c (syms_of_term): Initialize default_orig_pair,
18378         default_set_foreground, and default_set_background.
18380         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18381         clash (bug#86).
18382         (getloadavg): Callers changed.
18384         * image.c (svg_load_image): Fix last change.
18385         (svg_load_image): Use rsvg_handle_get_dimensions to check that
18386         image size is valid.  Use g_object_unref instead of deprecated
18387         rsvg_handle_free to free rsvg handle.
18388         (x_from_xcolors): Don't initialize pixmap (silence compiler).
18390 2008-07-25  Jason Rumney  <jasonr@gnu.org>
18392         * w32font.c (w32font_encode_char): Encode characters outside BMP as
18393         surrogates before looking up glyph index.
18394         (w32font_text_extents): Encode as surrogates if falling back to
18395         functions that need UTF-16 wide chars.
18397         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18398         BMP as surrogates before looking up glyph index.
18400 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
18402         * image.c (svg_load_image): Check for failure in return value of
18403         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
18405 2008-07-25  Jason Rumney  <jasonr@gnu.org>
18407         * w32font.c (Fx_select_font): Reverse sense of second arg.
18409 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
18411         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18412         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18414         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18415         (PURESIZE): Use it.
18417 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
18419         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18420         * m/alpha.h (TEXT_END):
18421         * m/ibmrs6000.h (TEXT_END):
18422         * m/macppc.h (TEXT_END):
18423         * s/darwin.h (TEXT_END):
18424         * s/msdos.h (TEXT_END): Remove, unused.
18425         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18426         * s/cygwin.h: Remove comment.
18428         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18429         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18430         * m/intel386.h (DOT_GLOBAL_START):
18431         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18432         (USG): Remove, file not used on USG platforms.
18434         * Makefile.in (HAVE_X11): Remove empty #else.
18436 2008-07-24  Andreas Schwab  <schwab@suse.de>
18438         * fileio.c (Finsert_file_contents): Properly adjust undo list
18439         after format conversion.
18441 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
18443         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18444         (menu_nav_ended): Remove.
18445         (create_menus): Remove signal connect for menu_nav_ended.
18446         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18447         create_menus.
18448         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18450 2008-07-23  Jason Rumney  <jasonr@gnu.org>
18452         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18453         with opened font.
18454         (w32font_open): Set font type to gdi.
18456         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18458 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
18460         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18461         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18462         defines it.
18463         * unexec.c (ADDR_CORRECT): Define unconditionally.
18465         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18467         * unexec.c: Remove code depending on !COFF and USG, the file is
18468         not used for such systems.
18470         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18471         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18472         (LD_SWITCH_SYSTEM_1): Remove, update users.
18474         * s/darwin.h (DATA_END):
18475         * m/intel386.h (DATA_END):
18476         * m/ibmrs6000.h (DATA_END):
18477         * m/alpha.h (DATA_END): Remove, unused.
18479         * config.in: Regenerate.
18480         * s/ms-w32.h (subprocesses): Define unconditionally.
18481         * s/template.h (subprocesses): Update comment.
18482         * s/vms.h (subprocesses):
18483         * s/usg5-4.h (subprocesses):
18484         * s/hpux10-20.h (subprocesses):
18485         * s/gnu-linux.h (subprocesses):
18486         * s/cygwin.h (subprocesses):
18487         * s/bsd-common.h (subprocesses):
18488         * s/aix4-2.h (subprocesses):
18489         * s/darwin.h (subprocesses): Do not define, defined by default now.
18491         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18492         Remove all references.
18493         (temacs): Add GNUstep specific ld flags.
18495         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18496         similarly to what X does.
18498 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
18500         * nsfns.m (x-list-fonts): Remove.
18501         (syms_of_nsfns): Drop the x-list-fonts declaration.
18502         * nsterm.m: Get rid of remaining "//" comments.
18504 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
18506         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18508         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18509         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18510         (Fns_own_selection_internal, Fx_disown_selection_internal)
18511         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18513         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18514         ... */' style of docstrings.  Doc fixes.
18516 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
18518         * terminfo.c (UP, BC, PC): Undo previous change.
18520         * nsfns.m: Rename ns prefixed functions/variables to the
18521         corresponding x versions.  Update references.
18523 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
18525         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18527 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
18529         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18530         Remove forwarding functions.
18531         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18532         non-static.
18533         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18534         non-static.
18535         (ns_frame_parm_handlers): Use the new names.
18536         (syms_of_nsfns): Move to the end of file.
18538         * nsterm.m (syms_of_nsterm): Move to the end of file.
18540         * dispnew.c (init_display): Remove code for X10.
18542 2008-07-22  Jason Rumney  <jasonr@gnu.org>
18544         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18545         bare drive.
18547 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
18549         * nsterm.m (syms_of_nsterm): Remove debugging println.
18551 2008-07-22  David Reitter  <david.reitter@gmail.com>
18553         * nsfns.m (do_applescript, F_do_applescript): NS version of the
18554         Carbon implementation of the same functionality: execute arbitrary
18555         AppleScript code.
18557 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
18559         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18560         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18561         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18562         (Fx_display_mm_height, Fx_display_mm_width)
18563         (Fx_display_backing_store, Fx_display_visual_class)
18564         (Fx_display_save_under, Fx_open_connection)
18565         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18566         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18567         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18568         (Fx_display_pixel_width, Fx_display_pixel_height)
18569         (Fx_display_usable_bounds, Fx_display_planes)
18570         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18571         ... */' style of docstrings.
18573 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
18575         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18576         on this platform.
18577         (mips):
18578         * m/iris4d.h (mips): Do not define.
18579         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18581         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18583         * image.c:
18584         * nsfns.m:
18585         * nsselect.m:
18586         * nsterm.h:
18587         * nsterm.m: Rename ns prefixed functions/variables to the
18588         corresponding x versions.  Update references.
18590         * m/ibms390x.h (NO_REMAP): Do not undefine.
18592         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18594 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
18596         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18597         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18598         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18599         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18600         (Fns_display_mm_height, Fns_display_mm_width)
18601         (Fns_display_backing_store, Fns_display_visual_class)
18602         (Fns_display_save_under, Fns_open_connection)
18603         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18604         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18605         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18606         (Fns_display_pixel_width, Fns_display_pixel_height)
18607         (Fns_display_usable_bounds, Fx_display_planes)
18608         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18610 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
18612         * print.c (print_object): Check print_depth before searching for
18613         circularities.
18615 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
18617         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18618         only sprintf.
18620 2008-07-21  Kenichi Handa  <handa@m17n.org>
18622         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18624 2008-07-20  Andreas Schwab  <schwab@suse.de>
18626         * syntax.c (find_start_pos, find_start_value)
18627         (find_start_value_byte, find_start_begv, find_defun_start)
18628         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18630 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
18632         * s/sol2-3.h: Insert contents of s/sol2.h.
18633         (LD_SWITCH_SYSTEM): Remove redundant definition.
18634         * s/sol2.h: Remove, unused.
18636 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
18638         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18640 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
18642         * Makefile.in (ns_appdir): Fix typo in find command.
18644 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
18646         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18648         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18649         added not supported anymore.
18651         * s/usg5-4-2.h (LIBS_SYSTEM):
18652         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18654         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18655         * s/lynxos.h (GETPGRP_NO_ARG):
18656         * s/hpux10-20.h (NO_SIOCTL_H):
18657         * s/gnu.h (GETPGRP_NO_ARG):
18658         * s/gnu-linux.h (NO_SIOCTL_H):
18659         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18660         * s/cygwin.h (GETPGRP_NO_ARG):
18661         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18662         (C_DEBUG_SWITCH): Remove duplicate definition.
18664         * m/ibms390.h: Remove boilerplate comments.
18666         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18668         * process.c (HAVE_SERIAL): Consolidate ifdefs.
18669         (wait_reading_process_output): Remove code for SunOS, platform not
18670         supported anymore.  Use SOLARIS2 instead of sun.
18672 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
18674         * font.c (font_open_by_name): Under NS, default lface height to zero.
18675         (font_open_for_lface): Under NS, set size based on frame fontsize.
18676         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18677         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18679 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
18681         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18682         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18683         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18684         YES/NO.
18685         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18686         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18687         * Makefile.in (clean): Clear out build destination dir.
18689 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
18691         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18692         xterm, xselect.
18693         * lisp.h: Remove declaration of hash_remove.
18694         * nsgui.h: Remove redefinitions of hash_remove.
18695         * fns.c (hash_remove): Rename to hash_remove_from_table.
18697 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
18699         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18700         strdup() the family UTF8String before modifying it.
18702 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
18704         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18705         NS_FACE_BACKGROUND with 0 instead of nil.
18706         * nsfont.m (nsfont_draw): Same.
18708 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
18710         * nsfns.m (ns_set_background_color): Fix crash.
18712 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
18714         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18716 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
18718         * puresize.h (BASE_PURESIZE): Increase to 1240000.
18720 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18722         * gtkutil.c: Include <config.h> instead of "config.h".
18724         * lisp.h (Foverlay_buffer): Add EXFUN.
18726         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18727         child process to complete child_setup.  Undo 2005-09-21 change.
18729         * s/darwin.h: Mention setsid after vfork.
18731 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18733         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18734         Depend on macgui.h.
18736         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18737         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18739         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18740         and f19.
18741         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18743         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18744         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18745         Remove enumerators.
18747         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18748         Check if FACE_FROM_ID returns NULL.
18750 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
18752         * w32inevt.c (change_frame_size): Remove extern declaration.
18753         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18754         change_frame_size.
18756 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
18758         * getloadavg.c: Revert last change (2008-07-15).
18760 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
18762         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18763         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18764         from configure.
18766 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
18768         * s/sol2.h:
18769         * s/sol2-4.h: Reorganize conditionals.
18771         * ecrt0.c: Remove code depending on m68000, not used anymore.
18773         * fns.c (hash_remove): Make static.
18774         * lisp.h (hash_remove): Don't prototype.
18776         * m/ibmrs6000.h:
18777         * m/ibms390x.h:
18778         * m/macppc.h: Remove boilerplate comments.
18780         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18781         Solaris, which does not need them.
18783         * m/vax.h: Remove comments about unsupported systems.
18785         * s/darwin.h: Reorganize ifdefs.
18787 2008-07-17  Andreas Schwab  <schwab@suse.de>
18789         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18791 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
18793         Use SDATA.  Follow coding convention of placing operators at
18794         beginning of next line rather than end of previous line, and placing
18795         spaces around infix operators.
18797         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18798         in case it was defined already.
18799         USE @GNUSTEP_MAKEFILES@ rather than envvars.
18800         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18801         ns_default.
18802         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18803         Lisp_Objects.
18804         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18805         (ns_defined_color, ns_color_to_lisp): Declare.
18806         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18807         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18808         it's accepted even with USE_LISP_UNION_TYPE.
18809         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18810         (update_frame_tool_bar): Remove apparently obsolete tests for
18811         non-integerness of f->tool_bar_lines.
18812         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18813         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18814         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18815         (nsfont_open): Don't confuse NULL for Qnil.
18816         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18817         * menu.h (find_and_call_menu_selection):
18818         * menu.c (find_and_call_menu_selection): Use just int for vector size.
18819         (find_and_return_menu_selection): Always return something.
18820         * frame.h: Include dispextern.h for Display_Info.
18821         (display_x_get_resource): Declare.
18823 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
18825         * syntax.c: Remove stdio.h include accidentally introduced in
18826         Emacs.app commit.
18827         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18828         NS_IMPL_COCOA.
18829         * keyboard.c (handle_async_input, input_available_signal): Remove
18830         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18832 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
18834         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18835         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18836         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18837         Use SDATA.
18839         * keymap.c: Remove all NS-specific code.
18840         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18841         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18842         where_is_preferred_modifier, return a different value depending on how
18843         preferred is the binding.
18844         (where_is_internal): Adjust accordingly.
18845         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18846         Adjust to new preferred_sequence_p.
18847         (syms_of_keymap): Declare `where-is-preferred-modifier'.
18848         * keyboard.c (parse_solitary_modifier): Not static any more.
18849         * keyboard.h (parse_solitary_modifier): Declare.
18851 2008-07-16  Andreas Schwab  <schwab@suse.de>
18853         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18854         of easymenu.
18856 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
18858         * xdisp.c (move_it_in_display_line): Account for word wrap, so
18859         that we don't move off the line.
18861 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
18863         * keyboard.c (Qsuper): Remove.
18864         (parse_menu_item): Don't call where_is_internal specially for NS.
18866 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
18868         * s/gnu-linux.h: Remove boilerplate comments.
18870         * m/alpha.h (__ELF__): Consolidate conditions.
18872         * m/m68k.h (linux): Use GNU_LINUX instead.
18873         Remove boilerplate comments.
18875         * m/intel386.h: Undo refactoring from previous change.
18876         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18877         too, remove dead code.
18878         (linux): Use GNU_LINUX instead.
18880 2008-07-16  Jason Rumney  <jasonr@gnu.org>
18882         * w32gui.h: Repeat 26 June changes lost by last change.
18884 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
18886         * systty.h: Remove code for Aix on 386, unsupported platform.
18888         * s/ms-w32.h: Remove boilerplate comments.
18889         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18891         * s/gnu-linux.h (TERM): Remove support.
18892         (HAVE_SYSVIPC): Remove, unused.
18893         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18894         for this system.
18896         * process.c: Remove support for IRIS, unused.
18897         Remove support for TERM, not relevant anymore.
18899         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18900         used with the definition.
18902         * s/aix4-2.h (static): Do not undef.
18904         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18905         only used on Aix.
18906         (HAVE_SYSVIPC): Remove, unused.
18908         * m/hp800.h (CANNOT_DUMP): Do not undef.
18910         * m/alpha.h: Fix comment.
18912         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18913         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18914         used by this configuration.
18915         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18916         * unexec.c: Remove code depending on HPUX and
18917         USG_SHARED_LIBRARIES, not used with this file.  Remove code
18918         depending on IRIS, unused.  Remove if 0-ed code.
18920         * s/template.h: Remove comments about static.
18922         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18923         Remove if 0-ed code.
18924         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18925         were the same as the default.
18926         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18927         Remove boilerplate comments.
18928         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18929         (HAVE_SYSVIPC): Remove, unused.
18930         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18932         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18933         Remove boilerplate comments.
18934         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18935         Remove boilerplate comments.
18936         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18937         Remove boilerplate comments.
18938         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18940         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18941         USG systems which do not use DATA_SEG_BITS.
18942         Refactor code.  Remove boilerplate comments.
18944         * m/ibms390.h:
18945         * m/m68k.h:
18946         * s/bsd-common.h:
18947         * s/cygwin.h:
18948         * s/darwin.h:
18949         * s/freebsd.h:
18950         * s/gnu.h:
18951         * s/msdos.h: Remove boilerplate comments.
18953         * m/iris4d.h: Remove boilerplate comments and code for systems that
18954         do not use this file.
18955         (IRIS_4D): Remove, unused.
18957         * m/mips.h: Remove boilerplate comments and code for systems that
18958         do not use this file.
18959         (SIGN_EXTEND_CHAR):
18960         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18961         * unexmips.c: Remove file, unused.
18963         * editfns.c (Fuser_full_name): Replace the only use of
18964         USER_FULL_NAME with its value.
18965         * config.in: Regenerate.
18967 2008-07-16  David Reitter  <david.reitter@gmail.com>
18969         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18970         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18972 2008-07-16  Glenn Morris  <rgm@gnu.org>
18974         * emacs.c (system-type): Doc fix.
18976 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
18978         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18979         If the cache doesn't work, let's fix it, rather than work around it.
18981 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
18983         * Makefile.in: Correct additions for nsfont.o in last commit.
18984         * nsfont.m: New file (forgot last commit).
18986 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
18988         * callproc.c (set_initial_environment):
18989         Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
18990         batch-compiling for bootstrap).
18992 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
18993             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18995         * frame.c (make_initial_frame): Call init_frame_faces(f) in
18996         CANNOT_DUMP case -- fix crash due to different init order.
18998 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
19000         Changes and additions for NeXTstep windowing system (Cocoa and
19001         GNUstep) support.
19003         * Makefile.in:
19004         * config.in: Support defines and build commands for NS port.
19005         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19006         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19007         * dispextern.h: Include nsgui.h and add needed typedefs under NS
19008         windowing.
19009         (struct face): Add synth_ital field.
19010         * dispnew.c: Include nsterm.h when compiling under NS windowing.
19011         (init_display): Initialize Vinitial_window_system to "ns" when so
19012         compiled.
19013         * emacs.c: Include GSConfig.h when compiling under GNUstep.
19014         (display_arg): Use under NS.
19015         (main): Under NS, allocate autorelease pool and handle command line
19016         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19017         (standard_args): Add NS-specific args.
19018         (shut_down_emacs): Shut down NS terminal if compiled under NS.
19019         * font.c (DEFAULT_ENCODING): New variable.
19020         (font_find_for_lface): Use it.
19021         (syms_of_font): Load syms_of_nsfont under NS.
19022         * font.h: Declare nsfont_driver when compiled under NS.
19023         * fontset.c: When compiling under NS, include nsterm.h.
19024         (fontset_from_font): Autoconstruct fontset under NS.
19025         * frame.c (various): Under NS, include nsterm.h, add Qns window system
19026         symbol, document and use it.
19027         (do_switch_frame): When for_deletion under Cocoa, add
19028         Fraise_frame(Qnil).
19029         (x_set_frame_parameters): Ensure font attribute changes are picked up.
19030         (x_get_arg): Allow "yes" and "no" as boolean values.
19031         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
19032         Qright under Cocoa.
19033         (focus-follows-mouse): Default to 0 under NS.
19034         * frame.h (enum output_method): Add output_ns.
19035         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19036         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19037         (FRAME_WINDOW_P): NS-specific definition.
19038         * fringe.c (max_used_fringe_bitmap): Make public.
19039         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19040         (getloadavg): Use NeXT code under descendant OS's.
19041         * image.c (includes and header section, x_create_bitmap_from_data)
19042         (x_create_bitmap_from_file, free_bitmap_record, image_background)
19043         (image_background_transparent, x_clear_image_1)
19044         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19045         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19046         (x_to_xcolors, x_from_xcolors, x_disable_image)
19047         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19048         other GUIs, including XPM support using code originally written for
19049         Carbon GUI.
19050         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19051         using NS API.
19052         (image_ascent): Use font metrics macros instead of direct struct field
19053         access.
19054         * keyboard.c (includes): Add nsterm.h when compiling under NS.
19055         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19056         Also, handle NS as GTK for menu bar purposes.
19057         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19058         toolkit where they differ.
19059         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
19060         use cachelist, still needed under NS.
19061         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19062         (struct widget_value): Define it here for menu.c.
19063         * keymap.c (includes): Include modifier internals.
19064         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19065         NS.
19066         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19067         support for preferring sequences using certain modifiers, specified by
19068         the FIRSTONLY argument.
19069         * lisp.h (hash_remove): Rename to avoid name clash when compiling
19070         under NS GNUstep implementation.
19071         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19072         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19073         * menu.c: Include nsterm.h under NS.
19074         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19075         (free_menubar_widget_tree_value, update_submenu_strings)
19076         (find_and_call_menu_selection): Treat NS as X and NT.
19077         (find_and_return_menu_selection): New function, used for popup menus.
19078         * nsgui.h:
19079         * nsterm.h:
19080         * nsfns.m:
19081         * nsimage.m:
19082         * nsmenu.m:
19083         * nsselect.m:
19084         * nsterm.m: New files.
19085         * process.c (wait_reading_process_output): Under NS, call ns_select()
19086         instead of plain select().
19087         * syntax.c (char_quoted): Under NS, avoid a crash when called near
19088         beginning of buffer.
19089         * sysselect.h (init_process): Rename when compiling under Cocoa to
19090         avoid name conflict.
19091         * termhooks.h (display_info): Add ns_display_info to union.
19092         * terminal.c (Fterminal_live_p): Add ns to terminal types.
19093         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19094         COCOA environment.
19095         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19096         unexec() signature.  (Note, this will dump, but the resulting file
19097         crashes; unexosx is used instead; keeping around for reference and
19098         possible aid in getting dump working under GNUstep.)
19099         * w32gui.h (button_type, widget_value): Remove definitions (now in
19100         keyboard.h).
19101         * window.c: Include nsterm.h when compiling under NS.
19102         * xdisp.c (includes): Include nsterm.h when compiling under NS.
19103         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19104         other GUI windowing systems.
19105         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19106         GTK.
19107         (x_consider_frame_title): Under NS, set icon type and frame
19108         modified-state indicator; use ns_set_name_as_filename() when using
19109         formatted title.
19110         (update_window_cursor): Make public when compiling under NS.
19111         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19112         (hourglass_atimer, Vhourglass_delay
19113         * xfaces.c (header section, init_frame_faces, clear_font_table)
19114         (defined_color, unload_color, x_face_list_fonts)
19115         (prepare_face_for_display): Add NS support parallel to other GUIs.
19116         Emulate GCs like other non-X GUIs.
19117         (split_font_name): Don't lowercase font name under NS.
19118         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19119         under NS.
19120         * s/darwin.h: Add support for compilation under NS.
19122 2008-07-15  Jason Rumney  <jasonr@gnu.org>
19124         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19125         (w32_show_hourglass): Rename from show_hourglass.
19126         (w32_hide_hourglass): Rename from hide_hourglass.
19127         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19128         (Vhourglass_delay): Declare extern.
19129         (hourglass_started): Remove.
19131         * xdisp.c (Vhourglass_delay): Remove static.
19132         (hourglass_started, start_hourglass, cancel_hourglass):
19133         Don't include these versions on WINDOWSNT.
19135 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
19137         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19138         variables (formerly in xfns.c).
19139         (show_hourglass, hide_hourglass): New prototypes (same).
19140         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19141         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19142         in xfns.c).
19143         (syms_of_xdisp): Declare/initialize display-hourglass,
19144         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
19145         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19146         formerly in xfns.c.
19147         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19148         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19149         (start_hourglass, cancel_hourglass): Remove.
19150         (show_hourglass, hide_hourglass): Remove prototypes and static
19151         modifiers.
19152         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19153         hourglass_atimer, hourglass_shown_p declaration/initialization.
19154         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19155         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19156         (start_hourglass, cancel_hourglass): Remove.
19157         (show_hourglass, hide_hourglass): Remove prototypes and static
19158         modifiers.
19159         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19160         hourglass_atimer, hourglass_shown_p declaration/initialization.
19161         * w32fns.c (display_hourglass_p, Vhourglass_delay)
19162         (DEFAULT_HOURGLASS_DELAY): Remove.
19163         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19164         hourglass_shown_p declaration/initialization.
19166 2008-07-14  Jason Rumney  <jasonr@gnu.org>
19168         * w32fns.c (w32_get_arg): Remove wrapper function.
19169         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19170         directly.
19171         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
19173 2008-07-14  Kenichi Handa  <handa@m17n.org>
19175         * xfont.c (xfont_open): Add workaround for X's bug.
19177 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
19179         * fontset.c: Include <stdio.h> unconditionally.
19181 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
19183         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19184         for filtering.
19186 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
19188         * s/vms.h: Use __GNUC__ instead of _GNUC_.
19190         * m/macppc.h:
19191         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
19193         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19194         (SPECIAL_EMACS_INT):
19195         * m/ia64.h (SPECIAL_EMACS_INT):
19196         * m/amdx86-64.h (SPECIAL_EMACS_INT):
19197         * s/gnu.h (NLIST_STRUCT):
19198         * s/aix4-2.h (X11R5_INHIBIT_I18N):
19199         * s/gnu-linux.h (LINUX):
19200         * s/msdos.h (HAVE_FACES):
19201         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19203         * systty.h:
19204         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19205         anymore.
19207 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
19209         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
19210         always defined as int.
19212         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19213         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19214         * s/gnu-linux.h (HAVE_WAIT_HEADER):
19215         * s/freebsd.h (HAVE_WAIT_HEADER):
19216         * s/bsd-common.h (HAVE_UNION_WAIT):
19217         * s/aix4-2.h (HAVE_WAIT_HEADER):
19218         * m/mips.h (HAVE_UNION_WAIT):
19219         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19220         (COFF, static): Do not define, they are undefined later in the file.
19222         * process.c (update_status): Don't use a union.
19223         (status_convert):
19224         (sigchld_handler): Use int instead of WAITTYPE.
19226 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
19228         * indent.c (Fvertical_motion): Restore hscroll before moving to
19229         goal column.
19231 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
19233         * lisp.h: Remove left over code.
19235 2008-07-11  Andreas Schwab  <schwab@suse.de>
19237         * lisp.h: Fix logic in last change.
19239         * menu.h: New file.
19240         * menu.c: Include it.
19241         * xmenu.c: Likewise.
19242         * Makefile.in: Update dependencies.
19244 2008-07-11  Kenichi Handa  <handa@m17n.org>
19246         * fontset.c (fontset_from_font): Cancel the previous change.
19248 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
19250         * lisp.h:
19251         * w32heap.c:
19252         * emacs.c:
19253         * alloc.c: Replace all references of NO_UNION_TYPE with
19254         USE_LISP_UNION_TYPE.
19256         * m/xtensa.h (NO_UNION_TYPE):
19257         * m/vax.h (NO_UNION_TYPE):
19258         * m/template.h (NO_UNION_TYPE):
19259         * m/sparc.h (NO_UNION_TYPE):
19260         * m/mips.h (NO_UNION_TYPE):
19261         * m/macppc.h (NO_UNION_TYPE):
19262         * m/m68k.h (NO_UNION_TYPE):
19263         * m/iris4d.h (NO_UNION_TYPE):
19264         * m/intel386.h (NO_UNION_TYPE):
19265         * m/ibms390x.h (NO_UNION_TYPE):
19266         * m/ibms390.h (NO_UNION_TYPE):
19267         * m/ibmrs6000.h (NO_UNION_TYPE):
19268         * m/ia64.h (NO_UNION_TYPE):
19269         * m/hp800.h (NO_UNION_TYPE):
19270         * m/arm.h (NO_UNION_TYPE):
19271         * m/amdx86-64.h (NO_UNION_TYPE):
19272         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19273         defining it the same.
19275 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
19277         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19279 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
19281         * fileio.c:
19282         * sysdep.c:
19283         * systty.h:
19284         * m/ibmrs6000.h:
19285         * m/iris4d.h:
19286         * s/aix4-2.h:
19287         * s/freebsd.h:
19288         * s/gnu-linux.h:
19289         * s/hpux10-20.h:
19290         * s/hpux11.h:
19291         * s/netbsd.h:
19292         * s/sol2-3.h:
19293         * s/sol2-4.h:
19294         * s/sol2.h:
19295         * s/usg5-4.h:
19296         * s/vms.h: Remove references to unused variables.
19298 2008-07-10  Andreas Schwab  <schwab@suse.de>
19300         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19301         pattern before matching the generic family.
19303 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
19305         * unexec.c:
19306         * s/vms.h:
19307         * s/usg5-4-2.h:
19308         * s/sol2-5.h:
19309         * s/freebsd.h:
19310         * s/darwin.h: Remove dead code.
19312         * m/template.h:
19313         * m/sparc.h:
19314         * m/mips.h:
19315         * m/m68k.h:
19316         * m/iris4d.h:
19317         * m/intel386.h:
19318         * m/ibms390x.h:
19319         * m/ibms390.h:
19320         * m/ia64.h:
19321         * m/hp800.h:
19322         * m/arm.h:
19323         * m/amdx86-64.h: Remove dead code and references to unused
19324         and compiler defined symbols.
19326         * unexmips.c:
19327         * unexelf.c: Remove references to desupported systems.
19329         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19331         * m/powermac.h: Remove boilerplate comments.
19332         (NO_REMAP): Remove unused definition.
19334         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19335         define them.
19337 2008-07-10  Kenichi Handa  <handa@m17n.org>
19339         * xfont.c (xfont_open): Log the reason of failure.
19341 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
19343         * fontset.c (fontset_get_font_group):
19344         * font.c (font_check_otf): Specify argument types.
19346 2008-07-09  Kenichi Handa  <handa@m17n.org>
19348         * coding.c (detect_coding_utf_8): Set detect_info->found only when
19349         non-ASCII char is found.
19351         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19352         (reorder_font_vector): Change the arg preferred_family to font.
19353         Prefer the spec matching with font.
19354         (fontset_get_font_group): New function.
19355         (fontset_find_font): Change the format of an element of a realized
19356         fontset.  Use fontset_get_font_group.
19357         (fontset_font): Try the current fontset, the default fontset, the
19358         fallbacks of the current fontset, and the fallbacks of the default
19359         fontset in this order.
19360         (face_for_char): Delete the shortcut to use the current font.
19361         (fontset_from_font): Don't set fonts for Latin in the fontset.
19363         * font.h (font_make_object, font_match_p): Adjust prototypes.
19365         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19367         * font.c (font_make_object): New arg entity and pixelsize.
19368         (font_check_otf_features, font_check_otf): New functions.
19369         (font_match_p): Check :lang, :script, and :otf properties.
19371         * xfont.c (xfont_open): Adjust it for the change of
19372         font_make_object.
19373         (xfont_text_extents): Fix initial setting of metrics.
19375         * ftfont.c (struct ftfont_info): New member index, delete member
19376         fc_charset_idx.  Make the member order compatible with struct
19377         xftfont_info.
19378         (fc_charset_table): Change charset names to registry names.
19379         (ftfont_pattern_entity): Delete the args registry and
19380         fc_charset_idx.  Change the value of :font-entity property
19381         to (FONTNAME . INDEX).  Always set :registry property to
19382         `iso10646-1'.
19383         (struct ftfont_cache_data): New struct.
19384         (ftfont_lookup_cache): New arg for_face.
19385         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19386         (ftfont_driver): Set the member otf_capability.
19387         (ftfont_get_charset): Adjust it for the change of
19388         fc_charset_table.
19389         (OTF_TAG_SYM): New macro.
19390         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
19391         for the change of fc_charset_table.
19392         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19393         ftfont_pattern_entity.  Add FC_INDEX to objset.
19394         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19395         and ftfont_pattern_entity.
19396         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19397         font_make_object, struct ftfont_info.
19398         (ftfont_has_char): Use ftfont_get_fc_charset.
19399         (ftfont_otf_features, ftfont_otf_capability): New functions.
19400         (ftfont_shape): Use ftfont_get_otf.
19401         (ftfont_text_extents): Fix initial setting of metrics.
19403         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
19404         member order compatible with struct ftfont_info.
19405         (xftfont_open): Add FC_CHARSET to the pattern.
19406         Set xftfont_info->ft_size.  Don't unlock the face.  Check BDF
19407         properties if appropriate.
19408         (xftfont_close): Unlock the face.
19409         (xftfont_anchor_point, xftfont_shape): Deleted.
19410         (syms_of_xftfont): Don't set members anchor_point and shape of
19411         xftfont_driver.
19413         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19414         font_make_object.
19416         * w32font.c (w32font_open): Adjust it for the change of
19417         font_make_object.
19418         (w32font_open_internal): Don't set properties of font_object here.
19420 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
19422         * macfns.c (x_create_tip_frame):
19423         * w32fns.c (x_create_tip_frame):
19424         * xfns.c (x_create_tip_frame): Pass parameter argument to
19425         face-set-after-frame-default.
19427         * xfaces.c (Finternal_merge_in_global_face): Save merged
19428         attributes for the default face back into the face vector.
19430 2008-07-08  Andreas Schwab  <schwab@suse.de>
19432         * fontset.h: Declare fontset_from_font.  Don't declare
19433         new_fontset_from_font and fontset_from_font_name.
19434         * xterm.c: Include "fontset.h".
19435         * Makefile.in (xterm.o): Update dependencies.
19437 2008-07-08  Glenn Morris  <rgm@gnu.org>
19439         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
19440         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19442 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
19444         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19445         (x_set_frame_parameters): Don't bind it.
19447 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
19449         * w32fns.c (map_w32_filename): Declare extern.
19451 2008-07-07  Jason Rumney  <jasonr@gnu.org>
19453         * w32term.c (WS_EX_LAYERED): Define if not already.
19455 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
19457         * xfaces.c (set_font_frame_param): Don't try to set the font
19458         parameter if it is still unspecified in the lface.
19460 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
19462         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19463         face if it didn't already exist.
19465         * xdisp.c (try_window_id): Give up if word-wrapping is on.
19467 2008-07-05  Andreas Schwab  <schwab@suse.de>
19469         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19471 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
19473         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19474         word-wrapping.
19475         (IT_DISPLAYING_WHITESPACE): New macro.
19476         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19477         when word-wrapping.  Simplify word-wrapping logic.  Use correct
19478         pixel positions when saving copies of the iterator.
19479         (display_line): Use proper wrap point if the last character on a
19480         line was preceded by whitespace.
19482 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
19484         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19486 2008-07-04  Kenichi Handa  <handa@m17n.org>
19488         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19490         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19492 2008-07-02  Jason Rumney  <jasonr@gnu.org>
19494         * xfns.c (syms_of_xfns): Only define x-select-font when both
19495         HAVE_FREETYPE and USE_GTK.
19497         * xdisp.c (next_element_from_display_vector): Move assignment out
19498         of if statement.
19500 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
19502         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19504         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19505         (syms_of_fileio): Initialize and export them.
19506         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19508         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19509         (Fsystem_move_file_to_trash): New function.
19510         (syms_of_w32fns): Export it to lisp.
19512 2008-07-01  Jason Rumney  <jasonr@gnu.org>
19514         * w32font.c (w32font_text_extents): Don't count overhang as part
19515         of width.
19517 2008-06-30  Miles Bader  <miles@gnu.org>
19519         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19520         Add `avoid_cursor_p' field.
19522         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19523         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19524         (append_glyph, append_composite_glyph, produce_image_glyph)
19525         (append_stretch_glyph): Initialize avoid_cursor_p.
19526         (get_it_property): Rename from `get_line_height_property'.
19527         (x_produce_glyphs): Use get_it_property.
19528         (handle_line_prefix, push_display_prop): New functions.
19529         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19530         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19531         New variables.
19532         (syms_of_xdisp): Initialize them.
19534 2008-06-30  Kenichi Handa  <handa@m17n.org>
19536         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19537         XftDefaultSubstitute (they are called in XftFontMatch).
19538         (xftfont_open): Fix args to ftfont_font_format.
19540         * ftfont.c (fc_charset_table): New member lang.
19541         (ftfont_resolve_generic_family): New arg pattern.
19542         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19543         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19544         (ftfont_open): Fix args to ftfont_font_format.
19545         (ftfont_font_format): New arg filename.
19547 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
19549         * xfaces.c (Finternal_merge_in_global_face): If default face was
19550         modified, realize it again.  Update the font face attribute.
19552 2008-06-29  Jason Rumney  <jasonr@gnu.org>
19554         * w32term.c (x_set_frame_alpha): Fix logic.
19556 2008-06-29  Kenichi Handa  <handa@m17n.org>
19558         * fontset.c (Finternal_char_font): Return font-object instead of
19559         font-name.
19561         * composite.c (get_composition_id): Fix the width calculation for TAB.
19563 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
19565         * indent.c (Fvertical_motion): Properly handle float column arg.
19567 2008-06-28  Jason Rumney  <jasonr@gnu.org>
19569         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19570         (pfnSetLayeredWindowAttributes): New function pointer.
19571         (w32_initialize): Initialize it when supported.
19572         (x_set_frame_alpha): New function.
19574         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19575         (w32_frame_parm_handlers): Set alpha handler.
19577         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19579 2008-06-27  Jason Rumney  <jasonr@gnu.org>
19581         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19582         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19583         (w32_to_x_charset, x_to_w32_charset)
19584         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19585         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19586         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19587         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19588         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19589         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19590         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19591         (Qw32_charset_unicode): Remove.
19592         (syms_of_w32fns): Update for above changes.
19594         * w32font.c (w32_to_x_charset, x_to_w32_charset)
19595         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19596         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19597         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19598         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19599         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19600         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19601         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19602         (syms_of_w32font): Update for above changes.
19604 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
19606         * s/usg5-4.h: Fix previous change: keep the correct branch of a
19607         removed #if.
19608         (USG_SHARED_LIBRARIES): Remove duplicate definition.
19610 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
19611             Eli Zaretskii  <eliz@gnu.org>
19613         * makefile.w32-in (LOCAL_FLAGS):
19614         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19616         * sysdep.c (_spawnlp, _getpid):
19617         Declare with explicit _cdecl instead of _CRTAPI1.
19619         * editfns.c (Fget_internal_run_time):
19620         Check for WINDOWSNT with #ifdef, not #if.
19622 2008-06-26  Jason Rumney  <jasonr@gnu.org>
19624         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19626         * w32term.c (x_draw_glyph_string_foreground)
19627         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19628         Use FONT_HANDLE macro.
19629         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19631         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19632         (uniscribe_encode_char): Use FONT_HANDLE macro.
19634         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19635         (w32font_text_extents): Use precast w32_font.
19636         (w32font_close): Free cached metrics.
19637         (w32font_open_internal): Allocate space for name on stack.
19639 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
19641         * xdisp.c (extend_face_to_end_of_line): Fix last change.
19643 2008-06-26  Jason Rumney  <jasonr@gnu.org>
19645         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19646         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19648 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
19650         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19652 2008-06-26  Jason Rumney  <jasonr@gnu.org>
19654         * w32bdf.c, w32bdf.h: Remove obsolete files.
19656         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19658         * w32gui.h: Don't include w32bdf.h.
19659         (XCharStruct, enum w32_char_font_type, W32FontStruct):
19660         Remove obsolete font support.
19662         * w32font.h (struct w32font_info): Remove compat_w32_font.
19663         Add hfont member.
19664         (FONT_COMPAT): Remove obsolete macro.
19666         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
19667         (w32font_encode_char, w32font_text_extents): Use new hfont member.
19668         (w32font_open_internal): Remove compat code.  Set new hfont member.
19669         (Fx_select_font): Use new hfont member.
19671         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19672         (uniscribe_encode_char): Use new hfont member.
19674         * w32term.c (x_draw_glyph_string_foreground)
19675         (x_draw_composite_glyph_string_foreground): Use new hfont member.
19676         (x_draw_glyph_string): Use metrics in w32font_info.
19678 2008-06-26  Kenichi Handa  <handa@m17n.org>
19680         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19682 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
19684         * unexnext.c:
19685         * m/ews4800.h:
19686         * m/hp9000s300.h:
19687         * m/ibm370aix.h:
19688         * m/mips-siemens.h:
19689         * m/ncr386.h:
19690         * m/next.h:
19691         * m/pmax.h:
19692         * m/powerpcle.h:
19693         * m/tandem-s2.h:
19694         * s/386bsd.h:
19695         * s/bsd386.h:
19696         * s/bsd4-1.h:
19697         * s/bsd4-2.h:
19698         * s/bsdos2-1.h:
19699         * s/bsdos2.h:
19700         * s/bsdos3.h:
19701         * s/bsdos4.h:
19702         * s/nextstep.h:
19703         * s/ultrix4-3.h:
19704         * s/usg5-0.h:
19705         * s/usg5-2-2.h:
19706         * s/usg5-2.h:
19707         * s/usg5-4-3.h:
19708         * s/ux4800.h:
19709         * s/uxpds.h:
19710         * s/uxpv.h: Remove support for obsolete systems.
19711         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19712         Remove, insert contents in s/hpux10-20.h.
19713         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19714         Remove, insert contents in s/aix4-2.h.
19715         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19716         * s/bsd4-3.h: Rename to ...
19717         * s/bsd-common.h: ... this.
19718         * data.c:
19719         * doc.c:
19720         * ecrt0.c:
19721         * emacs.c:
19722         * fileio.c:
19723         * floatfns.c:
19724         * keyboard.c:
19725         * mem-limits.h:
19726         * print.c:
19727         * process.c:
19728         * sysdep.c:
19729         * syssignal.h:
19730         * systty.h:
19731         * syswait.h:
19732         * term.c:
19733         * unexec.c:
19734         * unexelf.c:
19735         * unexhp9k800.c:
19736         * m/hp800.h:
19737         * m/ibmrs6000.h:
19738         * m/mips.h:
19739         * m/vax.h:
19740         * s/darwin.h:
19741         * s/freebsd.h:
19742         * s/gnu.h:
19743         * s/ms-w32.h:
19744         * s/msdos.h:
19745         * s/netbsd.h:
19746         * s/template.h: Remove references to obsolete variables.
19748         * Makefile.in: Add dependencies for all unexec files.
19749         (admindir): Remove unused variable.
19750         (UNEXEC_SRC): Remove references.
19752 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
19754         * xfns.c (x_default_font_parameter): If Xft is available, first
19755         try Monospace-12 for the default font.
19757 2008-06-25  Jason Rumney  <jasonr@gnu.org>
19759         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19761 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19763         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19765         * buffer.c (syms_of_buffer): Remove default-word-wrap.
19767 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
19769         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19770         <scroll-conservatively>: Fix typo in docstring.
19772         * xselect.c (Fx_send_client_event): Doc fix.
19774 2008-06-25  Kenichi Handa  <handa@m17n.org>
19776         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19778         * font.c (font_parse_fcname): Remove unused variables.
19779         (font_sort_entites): Delete the arg SPEC.  Caller changed.
19780         Fix for the case of ! best_only.
19781         (font_delete_unmatched): Check DPI and AVGWIDTH too.
19783         * lisp.h (Fstring_to_unibyte): EXFUN it.
19785         * character.h (str_to_unibyte): Extern it.
19787         * character.c (str_to_unibyte): New function.
19789         * fns.c (Fstring_to_unibyte): New function.
19790         (syms_of_fns): Defsubr it.
19792 2008-06-24  Kenichi Handa  <handa@m17n.org>
19794         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19795         DPI too.
19796         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19798 2008-06-24  Andreas Schwab  <schwab@suse.de>
19800         * Makefile.in (${lispsource}loaddefs.el): Rename from
19801         ../lisp/loaddefs.el.
19802         (bootstrap-clean): Do what distclean does but don't remove
19803         Makefile.
19804         (distclean): Depend on bootstrap-clean and remove Makefile.
19806 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
19808         * buffer.h (struct buffer): New member word_wrap.
19810         * buffer.c (syms_of_buffer): New variables default-word-wrap and
19811         word-wrap.
19812         (init_buffer_once): Initialize them.
19814         * dispextern.h (struct it): Replace bool truncate_lines_p with a
19815         line_wrap enum possessing three possible values.
19817         * termopts.h: Replace truncate_partial_width_windows with
19818         Vtruncate_partial_width_windows.
19820         * dispnew.c (direct_output_for_insert): Avoid direct output when
19821         inserting a space with word wrap on.
19823         * indent.c (compute_motion): Obey integer values of
19824         truncate-partial-width-windows.
19826         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19827         replacing truncate_partial_width_windows.
19828         (init_iterator): If Vtruncate_partial_width_windows is an integer,
19829         truncate only if the window width is below that integer.
19830         (start_display, resize_mini_window, produce_stretch_glyph)
19831         (display_string, move_it_in_display_line_to): Use line_wrap.
19832         (back_to_previous_visible_line_start, reseat_1):
19833         Reset string_from_display_prop_p.
19834         (display_line): Extend default face to end of line when wrapping.
19836 2008-06-24  Kim F. Storm  <storm@cua.dk>
19838         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19839         to wrap continued lines at word boundaries.
19841 2008-06-24  Jason Rumney  <jasonr@gnu.org>
19843         * font.c (Ffont_face_attributes): Multiply pixel size before point
19844         conversion to avoid multiplying rounding error.
19846 2008-06-23  Jason Rumney  <jasonr@gnu.org>
19848         * w32term.c (x_draw_glyph_string_background)
19849         (x_draw_glyph_string): Remove old bdf font code.
19851         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19853 2008-06-22  Kenichi Handa  <handa@m17n.org>
19855         * font.c (font_find_for_lface): Try the adstyle specified in
19856         the property of LFACE_FONT of LFACE (if any).
19858 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
19859             Ryo Yoshitake  <ryo@shiftmode.net>
19861         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19863 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
19865         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19866         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19867         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19868         (witness-emacs): Remove.
19869         (lisp, shortlisp): Move loaddefs.el earlier.
19870         (mostlyclean): Forget about witness-emacs.
19872 2008-06-22  Glenn Morris  <rgm@gnu.org>
19874         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19875         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19877 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19879         * Makefile.in (PRECOMP): Remove.
19880         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19881         (witness-emacs): Run `compile-first'.
19882         (.el.elc): Use the new compile-onefile target.
19884 2008-06-21  Kenichi Handa  <handa@m17n.org>
19886         * xftfont.c (xftfont_open): Handle QCembolden only when
19887         FC_EMBOLDEN is defined.
19889 2008-06-21  Andreas Schwab  <schwab@suse.de>
19891         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19892         (.el.elc): Likewise.
19894 2008-06-21  Miles Bader  <miles@gnu.org>
19896         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19897         build dir, not the lisp source dir.
19899 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19901         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19902         (bootstrapclean): Remove.
19903         (.el.elc): New rule.
19904         (PRECOMP): New var.
19905         (../lisp/subdirs.el): Remove.
19906         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19907         (witness-emacs): New target.
19908         (mostlyclean): Remove witness-emacs as well.
19909         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19910         Add witness-emacs dependency.
19912 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
19914         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19915         defined by the font.
19917 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
19919         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19920         (bootstrap-clean): New target that keeps TAGS around.
19921         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19922         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19924 2008-06-20  Jason Rumney  <jasonr@gnu.org>
19926         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19927         Remove obsolete font code.
19929         * w32font.c (font_matches_spec): Use csb bitfield from font signature
19930         to determine language support.
19932 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
19934         * sysdep.c (cfsetspeed): New fun extracted from the code.
19935         (cfmakeraw): Move before first use.
19937 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
19939         * sysdep.c (cfmakeraw): Provide fallback implementation.
19940         (serial_configure): Provide fallback implementation of cfsetspeed.
19942 2008-06-20  Kenichi Handa  <handa@m17n.org>
19944         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19945         the pattern.
19947         * fontset.c (fontset_from_font): Copy font_spec before changing
19948         the elements.
19950         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19952 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
19954         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19955         for explicit `font' parameters.
19957         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19959 2008-06-19  Kenichi Handa  <handa@m17n.org>
19961         * frame.c: Include <ctype.h>.
19962         (x_set_font_backend): Allow spacing characters in the X resource
19963         for FontBackend.
19965 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
19967         * w32fns.c, xfns.c (Qfont_param): New var.
19968         (syms_of_w32fns): Initialize it.
19969         (x_default_font_parameter): Record explicit `font' into
19970         `font-parameter'.
19972 2008-06-18  Kenichi Handa  <handa@m17n.org>
19974         * font.c (font_parse_xlfd): Fix previous change.
19975         (font_parse_fcname): Don't use :fc-unknown-spec.
19976         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19977         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19978         (font_add_log): Prepend the driver name to the resulting fonts.
19980         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
19981         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19982         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19984         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19985         (QCembolden): New variables.
19986         (syms_of_xftfont): DEFSYM them.
19987         (xftfont_open): Call XftFontMatch.  Don't trust the result of
19988         XftTextExtents8 if the pixel_size is less than 5.
19990 2008-06-18  Andreas Schwab  <schwab@suse.de>
19992         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19993         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19995 2008-06-18  Jason Rumney  <jasonr@gnu.org>
19997         * w32font.c (w32font_list, w32font_match): Add logging.
19999         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20001 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
20003         * font.c (font_parse_fcname): Store divider characters for
20004         unknown-spec list.  For known key symbols, intern using correct
20005         symbol name.
20007 2008-06-17  Kenichi Handa  <handa@m17n.org>
20009         * xfaces.c (realize_default_face): If the frame is not on window
20010         system, set the fontset of face to nil.
20012 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
20014         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20016 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
20018         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20019         (build_font_name_from_vector): Delete externs.
20021         * xfaces.c (struct font_name): Don't declare.
20023 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
20025         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20027 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
20029         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20031 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
20033         * font.c (Ffont_spec): Fix usage in docstring.
20034         (Ffont_face_attributes): Doc fix.
20036 2008-06-16  Andreas Schwab  <schwab@suse.de>
20038         * font.c (Ffont_face_attributes): Fix definition.
20040 2008-06-16  Jason Rumney  <jasonr@gnu.org>
20042         * font.h (font_style_symbolic_from_value): Remove.
20044         * font.c (font_style_symbolic_from_value): Remove.
20045         (font_style_symbolic): Revert to pre 2008-06-13 version.
20047         * w32font.c (w32_to_fc_weight): New function.
20048         (w32font_full_name, logfont_to_fcname): Use it.
20050 2008-06-16  Kenichi Handa  <handa@m17n.org>
20052         * font.c (font_check_object): Delete it.
20053         (font_clear_cache): Check if a font-object is alive.
20054         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
20055         font-object to nil.
20056         (font_close_object): Don't check FONT_CLOSE_OBJECT.
20057         (font_at): Don't call font_check_object.
20058         (Ffont_get): Return a symbol for :weight, :slant, and :width.
20060 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
20062         * puresize.h (BASE_PURESIZE): Increase to 1230000.
20064 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
20066         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20068 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
20070         * font.c (font_parse_fcname): Only one decimal point.
20071         (font_unparse_fcname): Handle data in family and foundry indices
20072         as symbols, not strings.
20073         (font_unparse_gtkname, Ffont_face_attributes): New functions.
20075         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20077         * font.h (font_unparse_gtkname): Add prototype.
20079 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
20081         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20083 2008-06-15  Andreas Schwab  <schwab@suse.de>
20085         * font.c (font_update_drivers): Fix crash when no drivers match.
20087 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
20089         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20090         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20092 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
20094         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20096 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
20098         * process.c (Fserial_process_configure, Fprocess_send_eof):
20099         Use EQ to compare Lisp_Objects.
20101 2008-06-13  Jason Rumney  <jasonr@gnu.org>
20103         * w32fns.c (Fw32_select_font): Remove old font API function.
20105         * w32font.c (logfont_to_fcname): New function.
20106         (Fx_select_font): New font dialog function compatible with
20107         GTK/fontconfig version.
20109         * font.c (font_style_symbolic_from_value): New function.
20110         (font_style_symbolic): Use it.
20112         * font.h (font_style_symbolic_from_value): Declare new function.
20114 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
20116         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20117         <font-width-table>: Fix typos in docstrings.
20119 2008-06-13  Daniel Engeler  <engeler@gmail.com>
20121         These changes add serial port access.
20122         * process.c: Add HAVE_SERIAL.
20123         (Fdelete_process, Fprocess_status, Fset_process_buffer)
20124         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20125         (list_processes_1, select_wrapper, Fstop_process)
20126         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20127         (status_notify): Modify to handle serial processes.
20128         [HAVE_SERIAL] (Fserial_process_configure)
20129         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20130         New functions.
20131         * process.h (struct Lisp_Process): Add `type'.
20132         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20133         New functions.
20134         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20135         serial ports.
20136         (serial_open, serial_configure): New functions.
20137         * w32.h: Add FILE_SERIAL.
20138         (struct _child_process): Add ovl_read, ovl_write.
20140 2008-06-13  Kenichi Handa  <handa@m17n.org>
20142         * dispextern.h (enum lface_attribute_index): New member
20143         LFACE_FOUNDRY_INDEX.
20145         * font.c (font_score): Delete arg alternate_families.  Check only
20146         weight, slant, width, and size.  Ignore the difference of alias
20147         style symbols.
20148         (font_sort_entites): Adjust for the above change.  Reflect the
20149         order of font-driver to scores.
20150         (font_list_entities): Don't check alternate_familes here.
20151         (font_clear_prop): Handle foundry.
20152         (font_update_lface): Don't parse "foundry-family" form here.
20153         Handle FONT_FOUNDRY_INDEX.
20154         (font_find_for_lface): Likewise.  Handle alternate families here.
20155         If registry is nil, try iso8859-1 and ascii-0.
20156         (font_open_for_lface): Pay attention to size in ENTITY.
20157         (font_open_by_name): Simplify by calling font_load_for_lface.
20158         (free_font_driver_list): Delete it.
20159         (font_update_drivers): Preserve the order of backends.
20160         (syms_of_font): Setting of sort_shift_bits adjusted for the change
20161         of font_score and font_sort_entites.
20162         (font_update_sort_order): Likewise.
20164         * xfaces.c (LFACE_FOUNDRY): New macro.
20165         (check_lface_attrs): Check foundry.
20166         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20167         (merge_face_vectors): Check foundry.
20168         (merge_face_ref): Likewise.
20169         (Finternal_set_lisp_face_attribute): Likewise.
20170         (x_update_menu_appearance): Likewise.
20171         (Finternal_get_lisp_face_attribute): Likewise.
20172         (lface_hash): Likewise.
20173         (lface_same_font_attributes_p): Likewise.
20174         (x_supports_face_attributes_p): Likewise.
20175         (tty_supports_face_attributes_p): Likewise.
20176         (Finternal_set_alternative_font_family_alist): Intern strings.
20177         (Finternal_set_alternative_font_registry_alist): Downcase strings.
20178         (realize_default_face): Set LFACE_FOUNDRY (lface).
20180         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20181         font-driver at first.
20183         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20185 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
20187         * lread.c (Fload): Use xfree, not free on saved_doc_string.
20189 2008-06-12  Jim Meyering  <meyering@redhat.com>
20191         Make unexec_free handle NULL the same way free does.
20192         * unexmacosx.c (unexec_free): Ignore a NULL argument.
20194 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
20196         * character.h (CHAR_TO_BYTE_SAFE): New macro.
20197         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20198         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20199         (WEAK_ALIAS): Simplify.
20200         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20201         when searching a unibyte buffer.
20203 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
20205         * xfns.c (Fx_select_font): Rename from x-font-dialog.
20207 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
20209         * w32font.c: Include ctype.h.
20211 2008-06-11  Jason Rumney  <jasonr@gnu.org>
20213         * w32font.c (w32font_encode_char): Detect missing glyphs that are
20214         misreported as space.
20215         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20216         as aliases for registry iso10646-1.
20218 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
20220         * buffer.c (clone_per_buffer_values): Skip `name'.
20222 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
20224         * font.c (font_parse_fcname): Fix last change; accept decimal
20225         points in font size.
20227 2008-06-10  Jason Rumney  <jasonr@gnu.org>
20229         * w32uniscribe.c (add_opentype_font_name_to_list):
20230         Skip non unicode fonts.
20232 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
20234         * xfns.c (Fx_font_dialog): New function.
20236         * gtkutil.c (xg_dialog_response_cb): Rename from
20237         xg_file_response_callback.
20238         (pop_down_dialog): Rename from pop_down_file_dialog.
20239         (xg_get_file_name): Callers changed.
20240         (xg_get_font_name): New function.
20242         * gtkutil.h (xg_get_font_name): Insert prototype.
20244 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20246         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20247         x_underline_minimum_display_offset.
20248         (syms_of_xdisp): Declare it here rather than in xterm.c.
20249         * dispextern.h (underline_minimum_offset): Declare it.
20250         * w32term.c (x_draw_glyph_string): Use it.
20251         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20252         (syms_of_xterm): Don't declare it any more.
20253         (x_draw_glyph_string): Adjust to the new name.
20255 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>
20257         * xterm.c (x_underline_minimum_display_offset): New var.
20258         (x_draw_glyph_string): Use it.
20259         (syms_of_xterm): Declare it.
20261 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
20263         * font.c (font_parse_fcname): Accept GTK-style font names too.
20265 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20267         * dired.c (file_name_completion): Don't return t if the match is exact
20268         but with different capitalization.
20269         * minibuf.c (Ftry_completion): Simplify.
20271         * window.c (Vwindow_point_insertion_type): New var.
20272         (set_window_buffer): Use it.
20273         (syms_of_window): Init and export it to Lisp.
20275 2008-06-10  Kenichi Handa  <handa@m17n.org>
20277         * font.h (font_intern_prop): Prototype adjusted.
20279         * font.c (font_intern_prop): New arg force_symbol.
20280         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20281         Adjust for the change of font_intern_prop.
20283         * ftfont.c (ftfont_pattern_entity):
20284         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20285         (w32_registry):
20286         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20287         the change of font_intern_prop.
20289 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
20291         * w32menu.c (digest_single_submenu): Declare extern.
20293 2008-06-09  Jason Rumney  <jasonr@gnu.org>
20295         * w32term.c (x_make_frame_visible): Use alternate restore flags.
20297         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20298         (parse_single_submenu): Remove.
20299         (digest_single_submenu): Remove.
20300         (syms_of_w32menu): Don't initialise variables that have moved
20301         to menu.c.
20302         (set_frame_menubar): Sync with version in xmenu.c.
20303         (w32_menu_show): Sync with xmenu_show in xmenu.c.
20305         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20306         Make static again.
20308 2008-06-09  Jason Rumney  <jasonr@gnu.org>
20310         Changes to w32 files related to the move of common menu code
20311         to menu.c on 2008-06-08 by Chong Yidong.
20313         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20314         defs to w32gui.h.
20315         (single_keymap_panes, push_menu_item, push_menu_pane):
20316         Make globally visible.
20318         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20319         (local_free, malloc_widget_value, free_widget_value)
20320         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20321         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20322         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20323         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20324         (menu_items, menu_items_allocated, menu_items_used)
20325         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20326         (init_menu_items, finish_menu_items, discard_menu_items)
20327         (grow_menu_items, push_submenu_start, push_submenu_end)
20328         (push_left_right_boundary, push_menu_pane, push_menu_item)
20329         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20330         (free_menubar_widget_tree_value, parse_single_submenu)
20331         (update_submenu_strings): Remove functions.
20332         (xmalloc_widget_value): Remove and declare extern.
20334         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20335         (OBJ1): Build it.
20337         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20338         (local_heap, local_alloc, local_free, malloc_widget_value)
20339         (free_widget_value): Define here.
20341 2008-06-09  Kenichi Handa  <handa@m17n.org>
20343         * font.h (Qascii_0): Extern it.
20345         * font.c (Qascii_0): New variable.
20346         (syms_of_font): DEFSYM it.
20347         (font_open_by_name): If the registry "iso8859-1" fails, try also
20348         "ascii-0".
20350         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20352 2008-06-08  Kenichi Handa  <handa@m17n.org>
20354         * .gdbinit (xfont): New command.
20356 2008-06-08  Andreas Schwab  <schwab@suse.de>
20358         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20359         * Makefile.in (menu.o): Update dependencies.
20361         * Makefile.in (obj): Always add menu.o.
20362         * emacs.c (main): Always call syms_of_menu.
20363         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20365 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
20367         * Makefile.in: Compile menu.c.
20369         * lisp.h: Declare syms_of_menu.
20371         * emacs.c (main): Call syms_of_menu.
20373         * keyboard.h: Relocate platform-independent menu definitions from
20374         xmenu.c.
20376         * menu.c: New file.  Relocate platform-independent menu
20377         definitions from xmenu.c.  Suggested by Adrian Robert.
20379         * xmenu.c: Remove platform-independent menu definitions.
20380         (menu_items, menu_items_inuse, menu_items_allocated)
20381         (menu_items_used, menu_items_n_panes)
20382         (menu_items_submenu_depth): Move to keyboard.h.
20383         (init_menu_items, finish_menu_items, unuse_menu_items)
20384         (discard_menu_items, restore_menu_items, save_menu_items)
20385         (grow_menu_items, push_submenu_start, push_submenu_end)
20386         (push_left_right_boundary, push_menu_pane, push_menu_item)
20387         (keymap_panes, single_keymap_panes, single_menu_item)
20388         (list_of_panes, list_of_items, find_and_call_menu_selection)
20389         (xmalloc_widget_value, free_menubar_widget_value_tree)
20390         (parse_single_submenu, digest_single_submenu)
20391         (update_submenu_strings): Move to menu.c.
20393 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
20395         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20397 2008-06-06  Miles Bader  <miles@gnu.org>
20399         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20400         face, not frame default.
20402 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
20404         * window.c (pop_up_windows, pop_up_frames)
20405         (display_buffer_reuse_frames, Vpop_up_frame_function)
20406         (Vdisplay_buffer_function, Veven_window_heights)
20407         (Vspecial_display_buffer_names, Vspecial_display_regexps)
20408         (Vspecial_display_function, Vsame_window_buffer_names)
20409         (Vsame_window_regexps, split_height_threshold)
20410         (Vsplit_window_preferred_function): Move those vars to window.el.
20411         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20412         (Fdisplay_buffer): Move those functions to window.el.
20413         (syms_of_window): Remove corresponding declarations.
20414         (display_buffer): New function.
20415         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20416         * dispnew.c (Flast_nonminibuf_frame): New function.
20417         * buffer.c (Fpop_to_buffer): Move to window.el.
20419 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
20421         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20423 2008-06-05  Kenichi Handa  <handa@m17n.org>
20425         * coding.c (detect_coding): Fix previous change.
20426         (detect_coding_system): Likewise.
20428 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
20430         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20432         * keymap.c (Vminibuffer_local_filename_must_match_map):
20433         Rename from Vminibuffer_local_must_match_filename_map.
20434         (syms_of_keymap):
20435         * minibuf.c (Fcompleting_read): Adjust accordingly.
20436         * commands.h: Rename declaration as well.
20438 2008-06-05  Kenichi Handa  <handa@m17n.org>
20440         * font.c (Ffont_spec): Don't use font_parse_family_registry for
20441         family name.
20442         (Ffont_put): Likewise.
20444         * fontset.c (fontset_find_font): Call font_open_for_lface with the
20445         current font-spec.
20447         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20448         is unspecified.
20450         * xfaces.c (realize_x_face): If the font-related face attributes
20451         are the same as those of default face, realize a new fontset from
20452         default->fontset.
20453         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20455 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
20457         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20458         (move_it_in_display_line): New wrapper.
20460         * window.c (window_scroll_pixel_based_preserve_x)
20461         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20462         (window_scroll_pixel_based, window_scroll_line_based):
20463         Use them to preserve column positions.
20464         (syms_of_window): Initialize them.
20466         * indent.c (Fvertical_motion): Extend first arg to allow passing an
20467         (HPOS . VPOS) pair.
20469         * dispextern.h (move_it_in_display_line): Declare.
20471 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
20473         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20474         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
20475         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
20477 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
20479         * window.c (Fset_window_parameter): Doc fix.
20480         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20482 2008-06-04  Joakim Verona  <joakim@verona.se>
20484         * window.h (struct window): Add new member window_parameters.
20486         * window.c (Fwindow_parameters, Fwindow_parameter)
20487         (Fset_window_parameter): New defuns.
20488         (syms_of_window): Defsubr the new defuns.
20489         (make_window): Initialize window_parameters to nil.
20491 2008-06-04  John Paul Wallington  <jpw@pobox.com>
20493         * eval.c (Fdefmacro): Doc fix.
20495 2008-06-04  Kenichi Handa  <handa@m17n.org>
20497         * coding.c (detect_coding): Fix handling of coding->head_ascii.
20498         Be sure to call setup_coding_system when we find a proper coding system.
20499         (detect_coding_system): Fix handling of coding->head_ascii.
20501 2008-06-03  Andreas Schwab  <schwab@suse.de>
20503         * font.c (font_prop_validate_spacing): Fix last change.
20505 2008-06-03  Kenichi Handa  <handa@m17n.org>
20507         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20508         (font_parse_fcname): Fix handling of unknown key.
20510         * xfont.c (xfont_list): Try an alias.
20512         * charset.c (char_charset): Return NULL if the arg charset_list is
20513         specified and C doesn't belong to any of them.
20515 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
20517         * font.c (font_pixel_size): Don't take cdr of an integer.
20519 2008-06-02  Jim Meyering  <meyering@redhat.com>
20521         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20522         * alloc.c (xfree): Return right away for a NULL arg.
20523         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20524         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20525         * mac.c (create_apple_event_from_event_ref): Likewise.
20526         (create_apple_event_from_drag_ref, cfstring_create_normalized):
20527         Likewise.
20528         * doprnt.c (doprnt1): Likewise.
20529         * frame.c (frame): Likewise.
20530         * keyboard.c (wipe_kboard): Likewise.
20531         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20532         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20533         * term.c (tty_default_color_capabilities, maybe_fatal)
20534         (delete_tty): Likewise.
20535         * w16select.c (string): Likewise.
20536         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20537         * w32bdf.c (w32_free_bdf_font): Likewise.
20538         * w32fns.c (w32_unload_font): Likewise.
20539         * w32font.c (w32font_close): Likewise.
20540         * window.c (size_window): Likewise.
20541         * xselect.c (receive_incremental_selection): Likewise.
20542         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20543         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20544         * w32.c (stat): Likewise.
20546         Remove useless if-before-free tests.
20547         * editfns.c (Fset_time_zone_rule): Likewise.
20548         * lread.c (nosuffix): Likewise.
20549         * ralloc.c (get_bloc): Likewise.
20550         * regex.c (reg_free): Likewise.
20551         * xftfont.c (xftfont_open, xftfont_close): Likewise.
20552         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20553         * xsmfns.c (smc_save_yourself_CB): Likewise.
20555 2008-06-02  Kenichi Handa  <handa@m17n.org>
20557         * font.c (font_find_for_lface): Handle float font size.
20558         (font_open_for_lface): Likewise.
20560         * xfaces.c (x_supports_face_attributes_p): Check face->font before
20561         comparing the properties.
20563 2008-06-01  Jason Rumney  <jasonr@gnu.org>
20565         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20566         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20567         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20568         Don't add empty script list.
20569         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20571 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
20573         * Makefile.in (dot, dotdot): Remove, update users.
20574         ".." has been used elsewhere in the file for a long time.
20575         (LIBXT_STATIC): Remove conditional based on unused variable.
20577 2008-06-01  Miles Bader  <miles@gnu.org>
20579         * xfaces.c (Vface_remapping_alist): New variable.
20580         (syms_of_xfaces): Initialize it.
20581         (enum named_merge_point_kind): New type.
20582         (struct named_merge_point): Add `named_merge_point_kind' field.
20583         (push_named_merge_point): Make cycle detection respect different
20584         named-merge-point kinds.
20585         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20586         Remove face-name alias resolution.
20587         (lface_from_face_name): New definition using
20588         `lface_from_face_name_no_resolve'.
20589         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20590         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20591         (get_lface_attributes): New definition that layers face-remapping on
20592         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
20593         (lookup_basic_face): New function.
20594         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20595         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20596         `get_lface_attributes'.
20597         (face_at_buffer_position): Use `lookup_basic_face' to lookup
20598         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
20599         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20601         * xdisp.c (init_iterator): Pass base_face_id through
20602         `lookup_basic_face' when we actually use it as a face-id.
20603         (handle_single_display_prop): Use `lookup_basic_face' to lookup
20604         DEFAULT_FACE_ID.
20606         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20607         lookup the initial face-id.
20609         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20611 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
20613         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20614         (Fremove_text_properties): Fix typos in docstrings.
20616 2008-05-31  Kenichi Handa  <handa@m17n.org>
20618         * font.c (font_list_entities): Fix the car part of data to be
20619         stored in the cache.
20621         * ftfont.c (ftfont_font_format): Don't use strcasestr.
20623 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
20625         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20626         Add a `test' argument so another predicate than `equal' can be used.
20627         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20628         (map_char_table): Remove unused vars `c' and `i'.
20629         * lisp.h (Foptimize_char_table): Adjust declaration.
20630         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20632 2008-05-30  Kenichi Handa  <handa@m17n.org>
20634         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20635         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20636         defined.
20638 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
20640         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20641         (Fmake_variable_frame_local): Disallow mixing buffer-local and
20642         frame-local settings for the same variable.
20644 2008-05-30  Kenichi Handa  <handa@m17n.org>
20646         * fontset.c (Ffont_info): Move to font.c.
20647         (syms_of_fontset): Delete defsubr of Sfont_info.
20649         * font.c (font_style_to_value, font_score): Delete casting of the
20650         args to xstcasecmp.
20651         (register_font_driver): Increment num_font_drivers only when
20652         registering the driver globally.
20653         (Ffont_info): Move from fontset.c.  Handle a font object too.
20654         (syms_of_font): Defsubr Sfont_info.
20656 2008-05-29  Kenichi Handa  <handa@m17n.org>
20658         * coding.h (enum define_coding_utf8_arg_index): New enum.
20659         (enum coding_attr_index): Change coding_attr_utf_16_bom to
20660         coding_attr_utf_bom.
20661         (enum utf_bom_type): Rename from utf_16_bom_type.
20662         (struct utf_16_spec): Adjust for the above change.
20663         (struct coding_system): Add utf_8_bom in `spec' union.
20665         * coding.c (CODING_UTF_8_BOM): New macro.
20666         (enum coding_category): Delete coding_category_utf_8, add
20667         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20668         coding_category_utf_8_sig.
20669         (CATEGORY_MASK_UTF_8): Delete it.
20670         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20671         (CATEGORY_MASK_UTF_8_SIG): New macros.
20672         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20673         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20674         CATEGORY_MASK_UTF_8_SIG.
20675         (CATEGORY_MASK_UTF_8): New macro.
20676         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20677         (detect_coding_utf_8): Check BOM.
20678         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20679         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20680         (encode_coding_utf_16): Likewise.
20681         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
20682         (detect_coding, detect_coding_system): Handle utf-8-auto.
20683         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20684         (syms_of_coding): Fix setting up of Vcoding_category_table.
20686 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
20688         * process.c (Faccept_process_output): If `millisec' is non-nil,
20689         `seconds' default to 0.
20690         (wait_reading_process_output): Also return non-nil if we read output
20691         from a non-running process.
20693 2008-05-29  Jason Rumney  <jasonr@gnu.org>
20695         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20696         `raster' specified.
20697         (add_font_entity_to_list): Allow non-opentype truetype fonts back
20698         in the uniscribe backend, but disallow any font that has no
20699         unicode subrange support.
20701 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
20703         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20704         Fix typos in docstrings.
20706 2008-05-29  Kenichi Handa  <handa@m17n.org>
20708         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20709         (Fx_family_fonts): Set frame correctly.
20711 2008-05-28  Jason Rumney  <jasonr@gnu.org>
20713         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20715 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
20717         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20718         calling build_annotations.
20720 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
20722         * coding.c (Fdecode_coding_region, Fencode_coding_region)
20723         (Fencode_coding_string):
20724         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20725         <latin-extra-code-table>: Fix typos in docstrings.
20726         (syms_of_coding) <coding-system-alist>: Doc fix.
20727         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20729 2008-05-28  Kenichi Handa  <handa@m17n.org>
20731         * fontset.c (Ffont_info): Don't call font_close_object.
20733         * font.c (font_parse_family_registry): Use Ffont_put to validate
20734         foundry and family.
20735         (font_delete_unmatched): Don't check spacing.
20736         (font_list_entities): Add spacing to the spec to list fonts.
20738         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20739         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
20741         * coding.c (encode_coding_raw_text): Fix previous change.
20742         (encode_coding_object): When the dst_object is a buffer and is
20743         different from src_object, move gap to PT.
20745 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
20747         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20749 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
20751         * coding.c (encode_coding_raw_text): Set coding->produced_char for
20752         all branches.  Compute it differently.
20754         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20756 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
20758         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20759         into "else if () ... else ...".
20761 2008-05-27  Jason Rumney  <jasonr@gnu.org>
20763         * w32font.c (w32font_open_internal): Determine if glyph indices
20764         are likely to work here.
20766 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
20768         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20769         draw overlap glyphs with appropriate highlighting.
20771 2008-05-27  Kenichi Handa  <handa@m17n.org>
20773         * xfont.c (xfont_open): Fix calculation of font->average_width.
20775 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
20777         * casefiddle.c (casify_object): Try to guess better whether the
20778         argument is a byte or a char.
20780 2008-05-26  Andreas Schwab  <schwab@suse.de>
20782         * xselect.c (x_reply_selection_request): Properly handle format == 32.
20783         Always send multiples of format size.
20785         * xterm.c (x_set_frame_alpha): Fix type mismatch.
20787 2008-05-26  Jason Rumney  <jasonr@gnu.org>
20789         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20790         (compute_metrics): Don't set failure if we just cleared the cache.
20791         (w32_weight_table): Remove unused variable.
20792         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20793         backwards compatibility.
20795 2008-05-25  Kenichi Handa  <handa@m17n.org>
20797         * w32term.c (x_draw_glyph_string):
20798         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20800         * xfaces.c: Delete unused function prototypes.
20801         (xstrlwr, font_frame): Delete them.
20802         (clear_face_cache): Delete unused variable.
20804         * xftfont.c (xftfont_open): Delete unused variable.
20805         If underline_thickness is not 1, adjust underline_position.
20807         * ftxfont.c (ftxfont_open): Delete unused variable.
20809         * fontset.c (face_for_char): Optimize for the case of no charset
20810         property.
20812         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20813         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20814         (otf_open, font_otf_capability, generate_otf_features)
20815         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20816         Comment out by surrounding "#if 0" and "#endif" for the moment.
20817         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20818         (syms_of_font): Codes for accessing above commented out.
20820 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
20822         * w32proc.c: Include dispextern.h.
20824         * w32.c: Include dispextern.h.
20826 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
20828         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20829         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20830         Fix typos in docstrings.
20832 2008-05-23  Jason Rumney  <jasonr@gnu.org>
20834         * xsmfns.c: Remove includes that are already included by config.h.
20836 2008-05-23  Kenichi Handa  <handa@m17n.org>
20838         * charset.c (Qemacs, charset_emacs): New variables.
20839         (char_charset): Fix for non-Unicode characters.
20840         (syms_of_charset): Define charset_emacs.
20842         * w32term.c (x_draw_glyph_string): Be sure to update
20843         s->underline_thickness and s->underline_position.  Be sure to draw
20844         underline within the current line area.
20846         * xterm.c (x_draw_glyph_string): Be sure to update
20847         s->underline_thickness and s->underline_position.  Be sure to draw
20848         underline within the current line area.
20850         * fontset.c: Delete unused variables and add casting for char *
20851         throughout the file.
20852         (fontset_font): Try the fallback fonts of the current fontset
20853         before consulting the default fontset.
20855         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20857         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20859 2008-05-22  Jason Rumney  <jasonr@gnu.org>
20861         * font.c: Don't include strings.h.
20863         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20865         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20866         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20867         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20868         to call xstrcasecmp.
20870         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20872         * fontset.c (fs_query_fontset): Use xstrcasecmp.
20874         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20876         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20878 2008-05-22  Kenichi Handa  <handa@m17n.org>
20880         * puresize.h (BASE_PURESIZE): Increase to 1220000.
20882         * font.c (font_prop_validate_style): Adjust for the format
20883         change of font_style_table.
20885         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20886         two args.
20888         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20889         two args.
20891 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
20893         * minibuf.c (keys_of_minibuf): Delete.
20894         * lisp.h (keys_of_minibuf): Delete.
20895         * emacs.c (main): Don't call keys_of_minibuf.
20897 2008-05-22  Kenichi Handa  <handa@m17n.org>
20899         * ftfont.c (ftfont_resolve_generic_family): Rename from
20900         ftfont_list_generic_family.  Return a single family for each
20901         generic family.
20902         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20903         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20904         Call font_add_log.
20905         (ftfont_match): Call font_add_log.
20907         * font.h (Ffont_xlfd_name): EXFUN adjusted.
20908         (FONT_DEBUG): Define it.
20909         (font_add_log): Extern it.
20910         (font_assert): Rename from xassert.
20912         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20913         (xfont_list_family): Call font_add_log.
20914         (xfont_match): Likewise.
20915         (memq_no_quit): Delete.
20917         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20918         call of Ffont_xlfd_name.
20920         * xfaces.c (struct table_entry, slant_table, weight_table)
20921         (swidth_table): Move to font.c.
20923         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
20924         xassert are changed to font_assert.  Delete many unused variables.
20925         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20926         New variables.
20927         (struct table_entry): Move from xfaces.c and modified.
20928         (weight_table, slant_table, width_table): Move from xfaces.c and
20929         contents adjusted for the change of struct table_entry.
20930         (font_style_to_value, font_style_symbolic): Adjust for the
20931         format change of font_style_table.
20932         (font_parse_family_registry): Don't overwrite existing foundry and
20933         family of font_spec.
20934         (font_score): Fix calculation of diff for sizes.
20935         (font_sort_entites): Call font_add_log.
20936         (font_delete_unmatched): Return a newly created list.
20937         (font_list_entities): Fix previous change.  Call font_add_log.
20938         (font_matching_entity, font_open_entity, font_close_entity):
20939         Call font_add_log.
20940         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20941         (Finternal_set_font_style_table): Delete.
20942         (BUILD_STYLE_TABLE): New macro.
20943         (build_style_table): New function.
20944         (Vfont_log, font_log_env_checked): New variables.
20945         (font_add_log): New function.
20946         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20947         Declare Lisp variables "font-weight-table", "font-slant-table",
20948         "font-width-table", and "font-log".  Initialize font_style_table.
20950 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
20952         * xterm.c (x_set_frame_alpha): Move declarations before statements.
20954 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
20955             Ryo Yoshitake  <ryo@shiftmode.net>
20957         * frame.c (Qalpha): Add a new frame parameter `alpha'.
20958         (Vframe_alpha_lower_limit): New variable.
20959         (x_set_alpha): New function.
20961         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20963         * xfns.c (x-create-frame, Qalpha):
20964         Initialize the frame parameter `alpha'.
20965         * xterm.c (OPAQUE, OPACITY): New.
20966         (x_set_frame_alpha): New function.
20967         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20969         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20970         * w32fns.c (w32_frame_parm_handlers): Likewise.
20972 2008-05-20  Jason Rumney  <jasonr@gnu.org>
20974         * w32font.c (add_font_entity_to_list): Don't add non-opentype
20975         truetype fonts to opentype list.
20977 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
20979         * fontset.c (Ffontset_info): Doc fix.
20980         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20981         <ignore-relative-composition>: Fix typos in docstrings.
20983         * font.c (syms-of-font) <font-encoding-alist>:
20984         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20985         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20986         (Ffont_otf_alternates): Doc fixes.
20988 2008-05-20  Kenichi Handa  <handa@m17n.org>
20990         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
20991         font.h through out the file.
20992         (FONT_DRIVERS): Rename from FONTOBJ.
20993         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
20994         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20996         * emacs.c (main): Call syms_of_font unconditionally.
20998         * font.h (find_font_encoding): Extern it.
21000         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21001         fontset.c.
21002         (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21003         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21004         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21005         only when HAVE_WINDOW_SYSTEM is defined.
21006         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21007         when HAVE_WINDOW_SYSTEM is defined.
21009         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21010         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21012         * xfaces.c: Include font.h unconditionally.
21013         (merge_face_ref, merge_face_vectors)
21014         (Finternal_set_lisp_face_attribute): Cancel the previous change.
21016 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
21018         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21019         indirect_variable.
21020         * eval.c (lisp_indirect_variable): New fun.
21021         (Fuser_variable_p): Use it.
21023 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
21025         * lisp.h (indirect_variable):
21026         * data.c (indirect_variable, let_shadows_buffer_binding_p):
21027         Use Lisp_Symbol pointers rather than Lisp_Object.
21028         Adjust callers.
21029         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21030         To this end, change calling-convention.
21032         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21033         if some non-hidden buffers are selected by string&pred.
21035 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
21037         * process.c (wait_reading_process_output): Always check status
21038         when in batch mode.
21040 2008-05-19  Kenichi Handa  <handa@m17n.org>
21042         * font.c (font_list_entities): Fix handling of cache.
21043         (font_matching_entity): Likewise.
21045         * ftfont.c (cs_iso8859_1): Delete.
21046         (ft_face_cache): New variable.
21047         (struct ftfont_info): New member fc_charset_idx.
21048         (ftfont_build_basic_charsets): Delete.
21049         (fc_charset_table): New variable.
21050         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
21051         . FC_CHARSET_IDX) as :font-entity property in the font entity.
21052         Callers changed.
21053         (ftfont_lookup_cache, ftfont_get_charset): New functions.
21054         (ftfont_spec_pattern): New argument fc_charset_idx.
21055         Check registry more rigidly.  Change callers.
21056         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21057         change of :font-entity property of the font.
21059         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21060         property of the font.
21062 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
21064         * coding.c (Fcoding_system_p): Rename argument to match docstring.
21065         (Funencodable_char_position, Fcheck_coding_systems_region)
21066         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21067         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21068         (Ffind_operation_coding_system, Fset_coding_system_priority)
21069         (Fcoding_system_eol_type): Doc fixes.
21071 2008-05-17  Glenn Morris  <rgm@gnu.org>
21073         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21075 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
21077         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21078         and st_gid.
21080         * frame.c (Fdelete_frame): Don't call font_update_drivers if
21081         HAVE_WINDOW_SYSTEM is not defined.
21083         * xfaces.c (merge_face_ref, merge_face_vectors)
21084         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21085         HAVE_WINDOW_SYSTEM is defined.
21086         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21088 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
21090         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21092 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21094         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21096 2008-05-15  Kenichi Handa  <handa@m17n.org>
21098         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21099         preference.
21101 2008-05-15  Glenn Morris  <rgm@gnu.org>
21103         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21105 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
21107         * fns.c (init_fns): Don't initialize weak_hash_tables here.
21108         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
21110         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21112 2008-05-15  Kenichi Handa  <handa@m17n.org>
21114         * ftfont.c (ftfont_list): Downcase family name to check generic
21115         families.
21117         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21118         font-spec for QCfont value.
21120         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21121         buffer.  Check the return value of it.
21123 2008-05-14  Jason Rumney  <jasonr@gnu.org>
21125         * w32term.c (w32_get_glyph_overhangs): Remove.
21126         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21128 2008-05-14  Kenichi Handa  <handa@m17n.org>
21130         * font.c (font_prop_validate): Make nil a valid value.
21131         (font_clear_cache): Check if the cached vector of entities is nil
21132         or not.
21134 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21136         * emacs.c (main_thread): Conditionalize on
21137         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21138         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21140         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21141         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21142         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21144 2008-05-14  Kenichi Handa  <handa@m17n.org>
21146         * coding.c (detect_coding_iso_2022): Ignore a coding category that
21147         has no corresponding coding system.
21149 2008-05-14  Jason Rumney  <jasonr@gnu.org>
21151         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21153         * w32font.h (w32font_open_internal): Update declaration.
21155         * w32font.c (w32font_open_internal): Change last argument from
21156         w32font_info struct to font object.  Fill in font object from
21157         font_entity.  Get Outline metrics if possible.  Use them to
21158         calculate underline position and thickness.  Use xlfd name as name
21159         property.  Don't set codepage.
21160         (w32font_open): Pass font_object to w32font_open_internal.  Don't
21161         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21162         (w32font_draw): Use s->font.
21163         (clear_cached_metrics): Don't clear non-existent blocks.
21165         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21166         font was not found.
21167         (x_draw_glyph_string): Use underline position and thickness from font.
21169         * w32uniscribe.c (uniscribe_open): Pass font_object to
21170         w32font_open_internal.
21172 2008-05-14  Kenichi Handa  <handa@m17n.org>
21174         These changes are to delete all legacy font-handling codes, and
21175         make Emacs use only font-backends.
21177         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21178         (frame.o, image.o, print.o): Depend on $(FONTSRC).
21180         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21182         * charset.h (Vcharset_non_preferred_head)
21183         (Vcurrent_iso639_language): Extern them.
21185         * charset.c (Vcharset_non_preferred_head): New variable.
21186         (Vcurrent_iso639_language): New variable.
21187         (syms_of_charset): Declare it as a Lisp variable.
21188         (char_charset): Don't check non preferred charsets.  As a last
21189         resort, return charset_unicode.
21190         (Fset_charset_priority): Update Vcharset_non_preferred_head.
21192         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21193         conditionals.  Don't check enable_font_backend.  Delete all codes
21194         used only when USE_FONT_BACKEND is not defined.
21196         * dispextern.h (struct glyph_string): Change type of `font' to
21197         `struct font *'.
21198         (struct glyph_string): New member underline_position and
21199         underline_thickness.
21200         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21201         (struct face): Change type of `font' to `struct font *'.
21202         Remove members `font_name', `font_info_id'.
21203         (per_char_metric, encode_char): Delete externs.
21204         (calc_pixel_width_or_height): Adjust the prototype.
21206         * emacs.c (enable_font_backend): Delete extern.
21207         (main): Don't set enable_font_backend.  Don't check the command
21208         line argument "-disable-font-backend".
21210         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21211         (enum font_property_index): New members FONT_DPI_INDEX,
21212         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21213         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21214         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
21215         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21216         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21217         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21218         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21219         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21220         (struct font_spec, struct font_entity): New structs.
21221         (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21222         (struct font): Many members from old "struct font_info" moved to
21223         here.  Members font and entity deleted.
21224         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21225         the new font-related objects.
21226         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21227         (CHECK_FONT_GET_OBJECT): Likewise.
21228         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21229         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21230         (struct font_driver): New members case_sensitive anc check.
21231         Type of the member list and open changed.
21232         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21233         (font_symbolic_width, font_find_object, font_get_spec)
21234         (font_set_lface_from_name): Delete extern.
21235         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21237         * font.c: Include <strings.h>.
21238         (enable_font_backend): Delete it.
21239         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21240         (CHECK_VALIDATE_FONT_SPEC): Delete it.
21241         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21242         (null_string): Delete it.
21243         (null_vector): Make it static.
21244         (font_family_alist): Delete it.
21245         (Qnormal): Extern it.
21246         (QCextra, QClanguage): Delete it.
21247         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21248         (font_make_spec, font_make_entity, font_make_object)
21249         (font_intern_prop): Rename from intern_downcase.  Don't downcase
21250         the string.  Callers changed.
21251         (font_pixel_size): Adjust for the format change of font-related
21252         objects.
21253         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21254         (font_style_to_value, font_style_symbolic): New function.
21255         (build_font_family_alist): Delete it.
21256         (font_registry_charsets): Use Fassoc_string instead of
21257         assq_no_quit.
21258         (font_prop_validate_symbol): Don't return null_string.
21259         (font_prop_validate_style): Adjust for the change of
21260         style-related values in a font vector.
21261         (font_property_table): Delete entries for QClanguage and
21262         QCantialias, add entries for QCavgwidth.
21263         (get_font_prop_index): Delete the 2nd argument FROM.
21264         (font_prop_validate): Arguments changed.
21265         (font_put_extra): Adjust for the change of font-related objects.
21266         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21267         (font_parse_fcname, font_unparse_fcname)
21268         (font_prepare_composition): Likewise.
21269         (font_parse_family_registry): Rename from font_merge_old_spec.
21270         (otf_open): Delete the 1st arg entity.
21271         (font_otf_capability): Adjust for the above change.
21272         (font_score): New arg alternate_families.  Adjusted for the change
21273         of font-related objects.
21274         (font_sort_entites): New arg best_only.
21275         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21276         Delete them.
21277         (font_match_p): Check alternate families.
21278         (font_find_object): Delete it.
21279         (font_check_object): New function.
21280         (font_clear_cache): Adjust for the change of font-related objects.
21281         (font_delete_unmatched): New arg.
21282         (font_list_entities): Call font_driver->list with a spec that
21283         doesn't specify style-related properties.
21284         (font_matching_entity): Arguments changed.  Caller changed.
21285         (font_open_entity): Adjust for the change of font-related objects.
21286         (font_close_object, font_has_char, font_encode_char)
21287         (font_get_name, font_get_spec): Likewise.
21288         (font_spec_from_name, font_clear_prop, font_update_lface):
21289         New functions.
21290         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21291         (font_prepare_for_face, font_done_for_face, font_open_by_name)
21292         (font_at): Adjust for the change of font-related objects.
21293         (font_range): New function.
21294         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21295         (Ffont_xlfd_name): Adjust for the change of font-related objects.
21296         (Fcopy_font_spec, Fmerge_font_spec): New function.
21297         (Ffont_family_list): Rename from list-families.
21298         (Finternal_set_font_style_table): Arguments changed.
21299         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21300         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21301         change of font-related objects.
21302         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
21304         * fontset.h (struct font_info): Delete it.  Most members go to
21305         struct font.
21306         (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21307         (enum FONT_SPEC_INDEX): Delete it.
21308         (font_info, list_fonts_func, load_font_func, query_font_func)
21309         (set_frame_fontset_func, find_ccl_program_func)
21310         (get_font_repertory_func, new_fontset_from_font_name):
21311         Delete externs.
21312         (fontset_from_font_name): Extern it.
21313         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21314         (FONT_INFO_FROM_FACE): Deleted.
21315         (face_for_font): Adjust prototype.
21317         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21318         conditionals.  Don't check enable_font_backend.  Delete all codes
21319         used only when USE_FONT_BACKEND is not defined.
21320         (get_font_info_func, list_font_func, load_font_func)
21321         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21322         (get_font_repertory_func): Delete them.
21323         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21324         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21325         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21326         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21327         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21328         (fontset_compare_rfontdef): New function.
21329         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
21330         rfont-defs by qsort.  Adjusted for the change of font-group vector.
21331         (load_font_get_repertory): Deleted.
21332         (fontset_find_font): Use new macros to ref/set elements of
21333         font-def and rfont-def.
21334         (fontset_font): Fix the timing of remembering that no font for C.
21335         (free_face_fontset): Do nothing if the face has no fontset.
21336         (face_suitable_for_char_p): Use new macros to ref/set elements of
21337         rfont-def.
21338         (face_for_char): Likewise.  Call face_for_char with font_object.
21339         (fs_load_font): Delete.  Delete #pragma surrounding it.
21340         (fs_query_fontset): Use strcasecmp instead of strcmp.
21341         (generate_ascii_font_name): Adjust for the format change of
21342         font-spec.
21343         (Fset_fontset_font): Likewise.  Use new macros to set elements of
21344         font-def.
21345         (Fnew_fontset): Use font_unparse_xlfd to generate
21346         FONTSET_ASCII (fontset).
21347         (new_fontset_from_font_name): Deleted.
21348         (fontset_from_font): Rename from new_fontset_from_font.  Check if
21349         a fontset is already created for the font.  FIx updating of
21350         Vfontset_alias_alist.
21351         (fontset_ascii_font): Deleted.
21352         (Ffont_info): Adjust for the format change of font-spec.
21353         (Finternal_char_font): Likewise.
21354         (Ffontset_info): Likewise.
21355         (syms_of_fontset): Don't check load_font_func.
21357         * fns.c (internal_equal): Handle PREV_FONT.
21359         * frame.h: Delete USE_FONT_BACKEND conditional.
21361         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21362         conditionals.  Don't check enable_font_backend.  Delete all codes
21363         used only when USE_FONT_BACKEND is not defined.
21364         (x_set_font): Call x_new_font, not x_new_fontset2.
21365         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21366         already set for the frame.
21368         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21369         Make a font-entity by font_make_entity.  Use font_intern_prop instead
21370         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
21371         font property.  If a font is scalable, set avgwidth property to 0.
21372         Set font-entity property by font_put_extra.
21373         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21374         (ffont_driver): Adjust for the change of struct font_driver.
21375         (ftfont_spec_pattern): New function.
21376         (ftfont_list): Return a list, not vector.
21377         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21378         (ftfont_list_family): Don't downcase names.
21379         (ftfont_free_entity): Deleted.
21380         (ftfont_open): Return a font-object.  Adjusted for the change of
21381         struct font.  Get underline_thickness and underline_position from
21382         font property.  Don't update dpyinfo->smallest_font_height and
21383         dpyinfo->smallest_char_width.
21384         (ftfont_close): Don't free `struct font'.
21385         (ftfont_has_char): Adjust for the format change of font-entity.
21386         (ftfont_encode_char, ftfont_text_extents): Likewise.
21388         * ftxfont.c (ftxfont_list): Return a list, not vector.
21389         (ftxfont_open): Return a font-object.  Adjusted for the change of
21390         struct font.  Get underline_thickness and underline_position from
21391         font property.  Don't update dpyinfo->smallest_font_height and
21392         dpyinfo->smallest_char_width.
21393         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21394         (ftxfont_draw): Adjust for the change of struct font.
21396         * image.c (image_ascent): Don't include "charset.h".
21397         Include "character.h" and "font.h".
21399         * lisp.h (enum pvec_type): New member PREV_FONT.
21400         (Fassoc_string): EXFUN it.
21402         * print.c: Include font.h.
21403         (print_object): Handle font-related objects.
21405         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21406         conditionals.  Don't check enable_font_backend.  Delete all codes
21407         used only when USE_FONT_BACKEND is not defined.
21408         (handle_auto_composed_prop): Do nothing if it->f is not on a
21409         window system.  Check how many following characters can be
21410         displayed by the same font.
21411         (calc_pixel_width_or_height): Type of the 4th arg is changed to
21412         'struct font *'.
21413         (get_char_face_and_encoding): Assign the whole encoding task to
21414         the `encode-char' method of a font driver.
21415         (fill_composite_glyph_string): Adjust for the change of `struct
21416         face' and `struct glyph_string'.
21417         (fill_glyph_string): Likewise.
21418         (get_per_char_metric): Arguments changed.
21419         (x_get_glyph_overhangs): Adjust for the change of `struct face'
21420         and `struct glyph_string'.
21421         (produce_stretch_glyph, calc_line_height_property)
21422         (x_produce_glyphs): Likewise.
21424         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21425         conditionals.  Don't check enable_font_backend.  Delete all codes
21426         used only when USE_FONT_BACKEND is not defined.
21427         Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21428         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21429         (Qp): Extern them.
21430         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21431         Deleted.
21432         (struct font_name): Deleted.
21433         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21434         (compare_fonts_by_sort_order): New function.
21435         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21436         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21437         Deleted.
21438         (Fx_family_fonts): Use font_list_entities, and sort fonts by
21439         compare_fonts_by_sort_order.
21440         (Fx_font_family_list): Call Ffont_family_list.
21441         (face_numeric_value, face_numeric_weight, face_numeric_slant)
21442         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21443         (face_symbolic_slant, face_symbolic_swidth)
21444         (split_font_name_into_vector, build_font_name_from_vector)
21445         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21446         (font_rescale_ratio, split_font_name, build_font_name)
21447         (free_font_names, sort_fonts, x_face_list_fonts)
21448         (face_font_available_p, sorted_font_list, cmp_font_names)
21449         (font_list_1, concat_font_list, font_list, remove_duplicates):
21450         Deleted.
21451         (Fx_list_fonts): Use Ffont_list.
21452         (LFACE_AVGWIDTH): Deleted.
21453         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
21454         by FONTP.
21455         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21456         (set_lface_from_font_name): Delete it.
21457         (set_lface_from_font): Rename from
21458         set_lface_from_font_and_fontset.  Caller changed.  Don't set
21459         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
21460         for face.
21461         (merge_face_vectors): Copy font-spec if necessary.
21462         Clear properties of the font-spec if necessary.
21463         (merge_face_ref): Clear properties of the font-spec if necessary.
21464         (Finternal_set_lisp_face_attribute): Likewise.
21465         (set_font_frame_param): Use font_load_for_lface to load a
21466         font-object, and call Fmodify_frame_parameters with it.
21467         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
21468         font name by Ffont_xlfd_name.
21469         (Finternal_lisp_face_attribute_values): Don't check QCweight,
21470         QCslant, and QCwidth.
21471         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21472         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21473         Compare fonts by EQ.
21474         (lookup_non_ascii_face): Deleted.
21475         (face_for_font): The 2nd argument changed.
21476         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21477         Check atomic font properties by case insensitive.
21478         (realize_non_ascii_face): Set face->overstrike correctly.
21479         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
21480         (dump_realized_face): Get font name from
21481         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
21483         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21484         conditionals.  Don't check enable_font_backend.  Delete all codes
21485         used only when USE_FONT_BACKEND is not defined.
21486         (xic_create_xfontset): Original code deleted and renamed from
21487         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
21488         (x_make_gc): Don't set GCFont in GCs.
21489         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21490         opened by "fixed".
21491         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21492         find_ccl_program_func, query_font_func, set_frame_fontset_func,
21493         get_font_repertory_func.
21495         * xfont.c: Include <stdlib.h> and "ccl.h".
21496         (struct xfont_info): New structure.
21497         (xfont_query_font): Deleted.
21498         (xfont_find_ccl_program): Rename from x_find_ccl_program and
21499         moved from xterm.c.
21500         (xfont_driver): Adjust for the change of struct font_driver.
21501         (compare_font_names): New function.
21502         (xfont_list_pattern): Sort font names case insensitively.
21503         Make font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
21504         (xfont_list): Return a list, not vector.
21505         (xfont_match): If the font doesn't have QCname property, generate
21506         a name from the other font properties.
21507         (xfont_open): Return a font-object.  Adjusted for the change of
21508         struct font.  Get underline_thickness and underline_position from
21509         font property.  Don't update dpyinfo->smallest_font_height and
21510         dpyinfo->smallest_char_width.
21511         (xfont_close): Don't free struct font.
21512         (xfont_prepare_face): Adjust for the change of struct font.
21513         (xfont_done_face): Deleted.
21514         (xfont_has_char): Adjust for the change of struct font.
21515         (xfont_encode_char, xfont_draw): Likewise.
21516         (xfont_check): New function.
21518         * xftfont.c (xftfont_list): Adjust for the change of `list'
21519         callback function.
21520         (xftfont_match): Adjust for the format change of font-entity.
21521         (xftfont_open): Adjust for the format change of font-entity and
21522         font-object.  Adjusted for the change of struct font.  Return a
21523         font-object.  Don't update dpyinfo->smallest_font_height and
21524         dpyinfo->smallest_char_width.
21525         (xftfont_close): Block input while calling XftFontClose.
21526         (xftfont_prepare_face): Don't block input while calling
21527         xftfont_get_colors.  Adjusted for the change of struct font.
21528         (xftfont_shape): Return value of error case fixed.
21530         * xrdb.c (x_load_resources): Don't setup a fontset resource.
21532         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21533         conditionals.
21534         (FONT_WIDTH): Return (f)->max_width.
21535         (struct x_display_info): Delete member `font'.
21536         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21537         (x_find_ccl_program, x_get_font_repertory): Delete externs.
21538         (struct x_output): Change type of `font' to `struct font *'.
21540         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21541         conditionals.  Don't check enable_font_backend.  Delete all codes
21542         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
21543         (x_per_char_metric, x_encode_char): Deleted.
21544         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21545         (x_compute_glyph_string_overhangs): Adjust for the change of
21546         `struct face'.
21547         (x_draw_glyph_string_foreground)
21548         (x_draw_composite_glyph_string_foreground): Likewise.
21549         (x_draw_glyph_string): Likewise.  Use font->underline_position and
21550         font->underline_thickness.
21551         (x_new_font): Rename from x_new_fontset2.
21552         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21553         (x_check_font): Call `check' method of a font driver.
21554         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21555         (x_query_font, x_get_font_repertory): Deleted.
21556         (x_find_ccl_program): Rename and moved to xfont.c.
21557         (x_redisplay_interface): Adjust for the change of `struct
21558         redisplay_interface'.
21560         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21561         conditionals.  Don't check enable_font_backend.  Delete all codes
21562         used only when USE_FONT_BACKEND is not defined.  Surround non-used
21563         code by "#ifdef OLD_FONT" and "endif".
21564         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21566         * w32font.h (struct w32font_info): New member.
21567         (FONT_COMPAT): New macro.
21568         (w32font_open_internal): Prototype adjusted.
21570         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21571         OLD_FONT" and "endif".
21573         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21574         conditionals.  Don't check enable_font_backend.  Delete all codes
21575         used only when USE_FONT_BACKEND is not defined.
21576         (w32font_open): Return a font-object.  Make a font-object by
21577         font_make_object.  Adjusted for the change of struct w32font_info.
21578         (w32font_close): Don't free struct font.  Adjusted for the change
21579         of struct w32font_info.
21580         (w32font_encode_char, w32font_text_extents, w32font_draw):
21581         Adjust for the change of struct w32font_info.
21582         (w32font_draw): Likewise.
21583         (w32font_list_internal): Return a list, not vector.
21584         (w32font_open_internal): Change the 4th arg to font-object.
21585         Adjusted for the change of struct w32font_info and font-object format.
21586         (add_font_name_to_list): Don't downcase names.
21587         (w32_enumfont_pattern_entity): Make a font-entity by
21588         font_make_entity.  Adjusted for the format change of font-entity.
21589         Use FONT_SET_STYLE to set a style-related font property.  If a
21590         font is scalable, set avgwidth property to 0.  Set font-entity
21591         property by font_put_extra.
21592         (font_matches_spec): Adjust for the format change of font-entity.
21593         (w32_weight_table, w32_decode_weight): New variables.
21594         (w32_encode_weight): New function.
21595         (fill_in_logfont): Adjust for the format change of font-spec.
21596         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21597         weight value.
21598         (w32font_driver): Adjust for the change of struct font_driver.
21600         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21601         conditionals.  Don't check enable_font_backend.  Surround non-used
21602         code by "#ifdef OLD_FONT" and "endif".
21603         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21604         (FONT_AVG_WIDTH): Adjust for the change of struct font.
21606         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21607         conditionals.  Don't check enable_font_backend.  Delete all codes
21608         used only when USE_FONT_BACKEND is not defined.  Surround non-used
21609         code by "#ifdef OLD_FONT" and "endif".
21611         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21612         (uniscribe_open): Return value changed to font-object.
21613         Adjusted for the format change of font-object.
21614         (uniscribe_otf_capability): Adjust for the change of struct font.
21615         (add_opentype_font_name_to_list): Don't downcase names.
21616         (uniscribe_font_driver): Adjust for the change of struct
21617         font_driver.
21619 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
21621         * dispnew.c (update_frame_1): Check if tty output is still valid
21622         before flushing it.
21624 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
21626         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21627         to Gtk+ menus.
21629 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
21631         * dired.c (file_name_completion): Tweak the code so as to always do it
21632         in a single pass.  Tighten the scope of some variables.
21634         * dired.c (Qdefault_directory): New var.
21635         (file_name_completion): Use it instead of Fexpand_file_name.
21636         (syms_of_dired): Initialize it.
21638 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
21640         * fileio.c (double_dollars): Remove dead code.
21642 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
21644         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21645         Mention w32-get-true-file-attributes in doc string.
21647         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21649 2008-05-09  Glenn Morris  <rgm@gnu.org>
21651         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21652         2008-04-23.
21654 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
21656         Support for reporting owner and group of each file on MS-Windows:
21657         * dired.c (stat_uname, stat_gname): New functions, with special
21658         implementation for w32.
21659         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21661         * w32.c: Rename the_passwd_* to dflt_passwd_*.
21662         (dflt_group_name): New static variable.
21663         (dflt_group): Rename from the_group.
21664         (init_user_info): Init dflt_group fields.  Get user's group name
21665         from LookupAccountSid.
21666         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21667         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21668         New initialization states.
21669         (globals_of_w32): Initialize them to zero.  Initialize the default
21670         group name to "None".
21671         (GetFileSecurity_Name): New global var, the name of the function
21672         to call for GetFileSecurity.
21673         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21674         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21675         (get_file_security, get_security_descriptor_owner)
21676         (get_security_descriptor_group, is_valid_sid)
21677         (get_file_security_desc, get_rid, get_name_and_id)
21678         (get_file_owner_and_group): New functions.
21679         (stat): Use get_file_security_desc and get_file_owner_and_group to
21680         report the owner and primary group of each file.  Don't ignore the
21681         high 32 bits of file's size, now that st_size is 64-bit wide.
21682         Fix test when to get true file attributes.
21683         (init_user_info): Use get_rid instead of equivalent inline code.
21684         (fstat): Don't ignore the high 32 bits of file's size.
21686 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
21688         * image.c (png_load): Use correct bit-depth for setting background
21689         color.
21691 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
21693         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21694         epa-hook.elc.
21696 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
21698         * font.c (Ffont_match_p): Don't use `iff' in docstring.
21700 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
21702         * macfns.c (Fx_create_frame): Make a copy of frame parameters
21703         because the original parameters are in pure storage now.
21704         (mac_window): Remove unused params.  Update callers.
21706 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
21708         * lread.c (substitute_object_recurse): Use lower-level primitives.
21709         Don't signal errors when traversing sub-char-tables.
21710         Don't loop over all the possible characters when traversing char-tables.
21712         * print.c (print_preprocess): Add sub-char-tables to the print-table,
21713         just like we do in print.c.
21715 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
21717         * minibuf.c (Ftry_completion): Remove code left over from when we used
21718         scmp instead of Fcompare_strings.
21720 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
21722         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21724 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21726         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21727         Create bitmap context in native byte order.
21729         * macterm.c (XDrawLine)
21730         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21731         context in native byte order.
21733 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21735         * config.in: Regenerate.
21737         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21738         New definitions for Image I/O support.
21739         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21740         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21741         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21742         (mac_data_provider_release_data, image_load_image_io)
21743         [USE_MAC_IMAGE_IO]: New functions.
21744         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21745         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21746         (init_image_func_pointer) [MAC_OSX]: Remove function.
21747         (image_load_quartz2d) [MAC_OSX]: Check availability of
21748         CGImageCreateWithPNGDataProvider at compile time.
21749         Use lowercase `false' for boolean constant.
21750         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21751         Use image_load_image_io.
21752         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21753         Don't check MyCGImageCreateWithPNGDataProvider.
21754         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21755         Don't call init_image_func_pointer.
21757         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21759         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21760         Make variable non-static.
21761         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21762         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21764         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21765         (RED_FROM_ULONG): Mask off higher bits.
21766         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21768         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21769         Include AvailabilityMacros.h.
21770         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21771         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21773 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
21775         * chartab.c (Fset_char_table_range): If range is t, really set all
21776         chars to that value.
21778 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
21780         * dired.c (Ffile_attributes): Don't allow the device number become
21781         negative.
21783 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
21785         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21787 2008-05-02  Juri Linkov  <juri@jurta.org>
21789         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21790         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21791         DEFAULT argument as a list of default values in docstrings.
21793 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
21795         * puresize.h (BASE_PURESIZE): Increase to 1210000.
21797 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
21799         * dispnew.c (change_frame_size_1): Preserve small windows when
21800         shrinking frames by calling set_window_height|width with third
21801         arg 2.
21803         * window.h (struct window): Replace field too_small_ok by field
21804         resize_proportionally.
21806         * window.c (make_window): Initialize resize_proportionally.
21807         (enlarge_window): Temporarily set resize_proportionally to make
21808         sure that shrink_windows does scale the window proportionally.
21809         (shrink_windows): When window has resize_proportionally set try
21810         to shrink it proportionally by stealing from other windows.
21811         (struct saved_window, Fset_window_configuration)
21812         (compare_window_configurations): Handle resize_proportionally.
21813         (WINDOW_TOTAL_SIZE): New macro.
21814         (window_min_size, shrink_windows, size_window): Use it.
21815         (check_min_window_sizes): Remove.  Invalid values of
21816         window-min-height|width are handled by window_min_size_2 now.
21817         (size_window, Fsplit_window, enlarge_window)
21818         (adjust_window_trailing_edge, grow_mini_window): Don't call
21819         check_min_window_sizes.
21820         (window_min_size_2, window_min_size_1, window_min_size):
21821         New argument safe_p for retrieving "safe" minimum sizes.
21822         (Fdisplay_buffer, Fsplit_window, enlarge_window)
21823         (adjust_window_trailing_edge, grow_mini_window):
21824         Adjust arguments of window_min_size... functions.
21825         (shrink_windows): Argument min_size removed.  New argument
21826         safe_p allows shrinking windows to their safe minimum sizes.
21827         Calculate minimum size and decide whether a window shall be
21828         deleted for each window individually.
21829         (size_window): When nodelete_p equals 2, tell shrink_windows to
21830         delete windows only if their new minimum size is no more safe.
21831         (shrink_window_lowest_first): Call window_min_size_1 to make
21832         sure to preserve modeline of bottom-most window when resizing
21833         the minibuffer.
21834         (Fset_window_configuration, Fcurrent_window_configuration)
21835         (compare_window_configurations): Do not handle
21836         window-min-height|width any more.
21837         (syms_of_window): Clarify window-min-height|width doc-strings.
21839 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
21841         * dired.c (file_name_completion): Fix up the encoding/decoding issue
21842         some more.  Copy some of the code from Ftry_completions.
21843         Remove special case code that dates back to initial revision when the
21844         slash was only added when necessary and that can't trigger nowadays.
21846 2008-04-27  Kenichi Handa  <handa@m17n.org>
21848         * font.c (font_prop_validate): Signal `error' instead of `font'.
21850 2008-04-29  Jason Rumney  <jasonr@gnu.org>
21852         * w32fns.c (Fw32_battery_status): New defun.
21853         (syms_of_w32fns): Defsubr it.
21855 2008-04-28  Andreas Schwab  <schwab@suse.de>
21857         * dired.c (file_name_completion): Fix another mixing of encoded
21858         and decoded names.
21860 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
21862         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21864 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
21866         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21868 2008-04-27  Andreas Schwab  <schwab@suse.de>
21870         * dired.c (file_name_completion): Fix inappropriate mixing of
21871         encoded and decoded names.
21873         * xterm.c (XTread_socket): Fix use of uninitialized variable.
21875         * puresize.h (BASE_PURESIZE): Increase to 1200000.
21877 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
21879         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21880         2008-03-31, it's not needed anymore with `struct stat' definition
21881         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
21882         for the same reasons.
21884 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
21886         * m/sparc.h: Additional redefinitions for GNU/Linux.
21888 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21890         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21891         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21892         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21893         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21894         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21895         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21896         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21897         Likewise.
21899         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21900         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21901         (mac_ax_number_of_characters): Add externs.
21902         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21903         [USE_MAC_TSM]: Likewise.
21904         (mac_handle_text_input_event) [MAC_OSX]:
21905         Handle kEventTextInputOffsetToPos for no active input area case.
21906         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21907         (mac_handle_document_access_event)
21908         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21909         (install_application_handler) [MAC_OSX]: Register handlers for
21910         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21911         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21912         Register mac_handle_document_access_event.
21914         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21915         Make functions non-static.
21917 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
21919         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21920         (read_file_name_completion_ignore_case, insert_default_directory)
21921         (Qdefault_directory): Move to minibuffer.el.
21922         (Fread_file_name): Call the new `read-file-name' instead.
21924 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21926         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21927         Make function non-static.
21928         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21929         Remove function.
21930         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21931         Move to mactoolbox.c.
21932         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21934         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21935         (mac_rect_make): New macro.
21937         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21938         instead of float.
21939         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21940         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21941         (XSetBackground) [USE_CG_DRAWING]: Likewise.
21942         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21943         CGRectMake.
21944         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21945         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21946         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21947         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21948         instead of WindowRef in argument type.
21949         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21950         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21951         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21952         instead of DISPLAY.  All uses changed.
21953         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21954         (x_calc_absolute_position): Simplify so as not to use
21955         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21957         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21958         instead of WindowRef in argument type.
21959         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21960         [TARGET_API_MAC_CARBON]: Remove externs.
21961         (create_apple_event, mac_event_parameters_to_lisp)
21962         [TARGET_API_MAC_CARBON]: Add externs.
21964         * mactoolbox.c (Vmac_ts_script_language_on_focus)
21965         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21966         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21967         is clicked.
21968         (x_activate_menubar): Remove extern for saved_menu_event_location.
21969         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21970         Move from mac.c.
21972 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21974         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21975         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21977 2008-04-23  Jason Rumney  <jasonr@gnu.org>
21979         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21980         attributes only for local files.
21982         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21983         default to Qlocal.
21985 2008-04-22  Juri Linkov  <juri@jurta.org>
21987         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21988         read-buffer-to-switch instead of using the letter "B".
21990 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
21992         * fileio.c (Qdefault_directory): New variable.
21993         (Fread_file_name): Use it to pass `dir' to the completion functions.
21995 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
21997         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21999 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
22001         * keyboard.c (Vpre_help_message): Remove.
22002         (show_help_echo): Remove default C code.
22004         * dired.c (directory_files_internal, file_name_completion):
22005         Only call ENCODE_FILE if the string is indeed decoded.
22007 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
22009         * Makefile.in (TOOLKIT_DEFINES): Remove.
22010         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22012 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22014         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22015         (mactoolbox.o): New target.
22017         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22018         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22020         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22021         Use mac_set_frame_window_background instead of XSetWindowBackground.
22022         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22023         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22024         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22025         instead of SetWindowTitleWithCFString.
22026         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22027         Move function to mactoolbox.c.
22028         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22029         Use mac_set_window_modified instead of SetWindowModified.
22030         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22031         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22032         (Fx_focus_frame): Use mac_front_non_floating_window instead of
22033         FrontNonFloatingWindow.  Use mac_activate_window instead of
22034         ActivateWindow.  Use mac_active_non_floating_window instead of
22035         ActiveNonFloatingWindow.
22036         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22037         Use mac_show_hourglass and mac_hide_hourglass.
22038         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22039         instead of GetGlobalMouse.
22040         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22041         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22042         Use mac_bring_window_to_front instead of BringToFront.
22043         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22044         mactoolbox.c.
22045         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22046         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
22047         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22048         mactoolbox.c.
22050         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22051         (XtPointer): Move typedef from macmenu.c.
22052         (enum button_type): Move enum from macmenu.c.
22053         (widget_value): Move typedef from macmenu.c.
22054         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22055         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22056         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22057         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22058         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22059         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22060         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22061         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22062         (Selection): Move typedef from macselect.c.
22063         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22064         macterm.c.
22065         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22066         (mac_is_window_collapsed, mac_bring_window_to_front)
22067         (mac_send_window_behind, mac_hide_window, mac_show_window)
22068         (mac_collapse_window, mac_front_non_floating_window)
22069         (mac_active_non_floating_window, mac_activate_window)
22070         (mac_move_window_structure, mac_move_window, mac_size_window)
22071         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22073         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22074         (enum mac_menu_kind): Move enum to mactoolbox.c.
22075         (min_menu_id): Move variable to mactoolbox.c.
22076         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22077         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22078         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22079         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22080         [TARGET_API_MAC_CARBON]: Likewise.
22081         (XtPointer): Move typedef to macgui.h.
22082         (enum button_type): Move enum to macgui.h.
22083         (widget_value): Move typedef to macgui.h.
22084         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22085         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22086         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22087         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22088         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22089         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22090         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22091         (popup_activated_flag): Make variable non-static.
22092         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22093         (add_menu_item, fill_menu, dispose_menus):
22094         Move functions to mactoolbox.c.
22095         (restore_show_help_function, menu_target_item_handler)
22096         (install_menu_target_item_handler, mac_handle_dialog_event)
22097         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22098         [TARGET_API_MAC_CARBON]: Likewise.
22099         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22100         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22101         (find_and_call_menu_selection, name_is_separator): Make function
22102         non-static.
22103         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22104         to mactoolbox.c.
22105         (set_frame_menubar): Don't call install_menu_quit_handler.
22106         (menu_item_selection): New variable.
22107         (mac_menu_show): Use create_and_show_popup_menu.
22108         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22109         selection but set variable menu_item_selection.  All uses changed.
22110         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
22111         Call install_menu_quit_handler.  Move to mactoolbox.c.
22113         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22114         (Selection): Move typedef to macgui.h.
22115         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22116         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22117         Make variables non-static.
22118         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22119         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22120         Make functions non-static.
22121         (Vmac_service_selection) [MAC_OSX]: Likewise.
22122         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22123         (mac_valid_selection_target_p, mac_clear_selection)
22124         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22125         (mac_put_selection_value, mac_selection_has_target_p)
22126         (mac_get_selection_value, mac_get_selection_target_list)
22127         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22128         Move functions to mactoolbox.c.
22129         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22130         Likewise.
22131         (copy_scrap_flavor_data, mac_handle_service_event)
22132         (install_service_handler) [MAC_OSX]: Likewise.
22133         (syms_of_macselect) <Vmac_dnd_known_types>:
22134         Use mac_dnd_default_known_types.
22136         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22137         Move to mactoolbox.c.
22138         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22139         (Fx_selection_owner_p): Add EXFUN.
22140         (install_window_handler, remove_window_handler, XSetWindowBackground):
22141         Remove externs.
22142         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22143         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22144         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22145         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22146         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22147         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22148         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22149         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22150         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22151         (create_and_show_popup_menu, mac_get_selection_from_symbol)
22152         (mac_valid_selection_target_p, mac_clear_selection)
22153         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22154         (mac_put_selection_value, mac_selection_has_target_p)
22155         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22156         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22157         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22158         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22159         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22160         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22161         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22162         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22163         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22165         * mactoolbox.c: New file.
22167 2008-04-18  Jason Rumney  <jasonr@gnu.org>
22169         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22171 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
22173         * character.c (Fmultibyte_char_to_unibyte):
22174         Return latin1 chars unchanged.
22176         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22177         relocated if it points to `name'.
22179 2008-04-17  Kenichi Handa  <handa@m17n.org>
22181         * data.c (Faset): Allow setting a multibyte character in an
22182         ASCII-only unibyte string.
22184         * lisp.h (STRING_SET_MULTIBYTE): New macro.
22186 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
22188         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22189         done in config.h.
22191 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
22193         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22194         (Fchar_direction): Add usage in the docstring.
22196 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
22198         * keyboard.c (read_key_sequence): Remove always-true checks.
22200 2008-04-14  Jason Rumney  <jasonr@gnu.org>
22202         * w32font.c (w32font_open_internal): Set max_bounds.descent in
22203         compatibility struct, for better underline positioning.
22205 2008-04-13  David Hansen  <david.hansen@gmx.net>
22207         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22208         string.
22210 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
22212         * m/hp800.h (XUINT, XSET): Remove.
22214 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
22216         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22217         previous change.
22219 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
22221         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22222         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22224 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
22226         * keymap.h (map_keymap_canonical): Declare.
22227         * xmenu.c (single_keymap_panes): Use it.
22229 2008-04-11  Glenn Morris  <rgm@gnu.org>
22231         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22232         set the target's value to that of the alias.
22234 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
22236         * term.c (set_tty_color_mode): Left over typo.
22238 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
22240         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22241         only after check for file name handler functions.  Signal, when
22242         native functionality is not supported.
22243         (syms_of_fileio): Declare it unconditionally.
22245 2008-04-10  Jason Rumney  <jasonr@gnu.org>
22247         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22248         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22250         * w32.c (logon_network_drive): Also logon to remote drives that
22251         are mapped to drive letters.
22253 2008-04-10  Glenn Morris  <rgm@gnu.org>
22255         * xdisp.c (truncate-partial-width-windows): Doc fix.
22257 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
22259         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22260         Move functions to minibuffer.el.
22261         (syms_of_fileio): Don't declare them.
22263 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
22265         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22266         (syms_of_minibuf): Remove its initialization.
22268         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22270 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
22272         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22274 2008-04-09  Jason Rumney  <jasonr@gnu.org>
22276         * makefile.w32-in (distclean): Delete makefile too.
22277         (maintainer-clean): New target.
22279         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22281         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22282         for new font backend and composite cases.
22284 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
22286         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22287         Most of the code moved to run_timers.
22288         (do_pending_atimers): Call run_timers.
22289         (run_timers): New function.
22291         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22292         run atimers.
22294         * process.c (wait_reading_process_output): The same as above.
22296 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
22298         * minibuf.c (last_exact_completion): Remove variable.
22299         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22300         (complete_and_exit_1, complete_and_exit_2)
22301         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22302         (Fdisplay_completion_list, display_completion_list_1)
22303         (Fminibuffer_completion_help, Fself_insert_and_exit)
22304         (Fexit_minibuffer, Fminibuffer_message): Move functions to
22305         minibuffer.el.
22306         (syms_of_minibuf): Remove corresponding initializations.
22308         * keyboard.c (Qdeactivate_mark): New var.
22309         (command_loop_1): Use it to call `deactivate-mark'.
22310         (syms_of_keyboard): Initialize it.
22312         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22313         to another frame.
22314         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22315         Don't call set_tty_color_mode.
22316         (store_frame_param): Reset previous_frame rather than call
22317         set_tty_color_mode.
22318         * term.c (set_tty_color_mode): Rewrite.
22319         * dispextern.h (set_tty_color_mode): New type.
22320         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22322 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
22324         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22325         for generic chars, which do not exist any more in emacs-unicode.
22327 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
22329         * coding.c (detect_coding_emacs_mule)
22330         (Ffind_operation_coding_system): Fix typo.
22332 2008-04-08  Jason Rumney  <jasonr@gnu.org>
22334         * w32uniscribe.c (SNAME): Extract only symbol name.
22336         * w32font.h (struct w32_metric_cache): New struct.
22337         (w32font_info): Use it.
22338         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22339         (CACHE_BLOCKSIZE): New constants.
22341         * w32font.c (Qja, Qko, Qzh): New symbols.
22342         (syms_of_w32font): Initialise them.
22343         (font_matches_spec): Use them to filter by language.
22344         (recompute_cached_metrics): Remove function.
22345         (compute_metrics, clear_cached_metrics): New functions.
22346         (w32font_encode_char): Use them to manage metric cache.
22347         (w32font_text_extents): Cache metrics for all glyphs on demand.
22348         Delay converting glyph indices to WORD until needed.
22349         (w32font_open_internal): Initialize metric cache to empty.
22350         (registry_to_w32_charset): Charset should always be a symbol.
22351         (fill_in_logfont, list_all_matching_fonts): Family should
22352         always be a symbol.
22354 2008-04-06  Jason Rumney  <jasonr@gnu.org>
22356         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22357         Give up if glyph indices not supported.  Use uniscribe obtained
22358         ABC widths for individual metrics.  Map glyph clusters back to
22359         characters using fClusterStart flag.  Return number of glyphs
22360         produced, not chars processed.
22361         (uniscribe_shape): Map char at FROM to current glyph.
22363 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22365         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22366         Use SetMenuItemHierarchicalMenu.
22368 2008-04-05  Jason Rumney  <jasonr@gnu.org>
22370         * image.c (pbm_load): Allow color values up to 65535.
22371         Throw an error if max_color_idx is outside the supported range.
22372         Report an error when image size is invalid.
22373         Read two bytes at a time when raw images have max_color_idx above 255.
22375 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
22377         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22378         append "CCL: Quitted" when the CCL program is quitted.
22379         (setup_ccl_program): Initialize ccl->quit_silently to zero.
22381         * ccl.h (struct ccl_program): New member quit_silently.
22383 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
22385         * search.c (compile_pattern_1): Treat non-nil and non-string of
22386         search-spaces-regexp as nil.
22388         * minibuf.c (Fassoc_string): Tweak docstring.
22390 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
22392         * dired.c (Ffile_attributes): Support inode numbers wider than 32
22393         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
22394         2008-03-14 to force inode be positive.
22396         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22397         _S_* ones, since we now use our own sys/stat.h.
22398         (stat, fstat): Don't mangle the inode number.
22399         (init_user_info): Don't restrict UID and GID to 0-60000 range.
22401 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
22403         * frame.h (struct frame): Give one more bit to `visible' since we use
22404         values larger than 1 to indicate obscured frames on ttys.
22406         * keymap.c (Qkeymap_canonicalize): New var.
22407         (Fmap_keymap_internal): New fun.
22408         (describe_map): Use keymap-canonicalize.
22410         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22411         (Fundo_boundary): Set them.
22412         (syms_of_undo): Initialize them.
22413         (record_point): Use them instead of last_point_position*.
22414         (last_undo_buffer): Change type.
22416 2008-04-04  Jason Rumney  <jasonr@gnu.org>
22418         * w32font.c (w32font_text_extents): Use font's ascent and descent.
22419         (recompute_cached_metrics): Don't set ascent and descent per char.
22421         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22422         (uniscribe_check_otf): Add GC protection before consing.
22423         Rearrange loop for counting features.
22425 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
22427         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22428         buffer with byte-size of source buffer.
22430 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
22432         * callint.c (Fcall_interactively): Handle temporary region even
22433         when shift-select-mode is off.
22435 2008-04-03  Jason Rumney  <jasonr@gnu.org>
22437         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22439 2008-04-03  Kenichi Handa  <handa@m17n.org>
22441         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22442         (CATEGORY_MASK_UTF_16): Likewise.
22443         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22444         binary file.
22445         (detect_coding): Add null-byte detection for a binary file.
22446         (detect_coding_system): Likewise.
22448 2008-04-03  Jason Rumney  <jasonr@gnu.org>
22450         * w32uniscribe.c: New file.
22452         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22454         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22456         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22457         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22458         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22459         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22460         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22461         (Qphonetic): New symbols.
22462         (syms_of_w32font): Initialize them.
22463         (font_supported_scripts): Use them.
22464         (w32font_list_family): List all charsets.
22465         (w32font_text_extents, recompute_cached_metrics): Fix metric
22466         calculations.
22467         (w32_enumfont_pattern_entity): Make full_type a DWORD.
22468         Give opentype fonts their own format.
22469         (font_matches_spec): New arguments backend and logfont.
22470         Handle :otf spec for uniscribe backend.
22471         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22472         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22474         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22475         font backend.
22476         (globals_of_w32fns): Initialize uniscribe font backend.
22478         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
22479         dependencies.
22480         (w32uniscribe.$(O)): New file to build.
22481         (FONT_OBJ): Include w32uniscribe.$(O).
22482         (LIBS): Add uniscribe libraries.
22484         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22486 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
22488         * callint.c (Vshift_select_mode): New var.
22489         (Finteractive): Document new ^ spec.
22490         (Fcall_interactively): Call handle-shift-selection if the ^ spec
22491         is present.
22493         * keyboard.c (Vthis_command_keys_shift_translated): New var.
22494         (command_loop_1): Avoid running the direct display versions of
22495         forward-char and backward-char if shift-selection may occur.
22496         (read_key_sequence): Set Vthis_command_keys_shift_translated if
22497         shift-translation takes place.
22499         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22500         avoid clobbering by define-minor-mode.
22502         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22503         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22505         * syntax.c (Fforward_word): Add ^ interactive spec.
22507         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22508         (Fscroll_right): Add ^ interactive spec.
22510 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
22512         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22514         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22516         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22518 2008-03-31  Juri Linkov  <juri@jurta.org>
22520         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22522 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
22524         * gtkutil.c (xg_set_geometry): Fix indentation.
22525         (xg_resize_outer_widget): Remove.
22526         (x_wm_size_hint_off): Fix indentation.
22527         (xg_frame_set_char_size): Call flush_and_sync after
22528         gtk_window_resize.
22529         (x_wm_set_size_hint): Pass NULL as geometry window to
22530         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22531         Add menu bar and tool bar height to base height.
22532         (xg_update_frame_menubar, free_frame_menubar)
22533         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22534         (update_frame_tool_bar, free_frame_tool_bar):
22535         Change xg_resize_outer_widget to xg_frame_set_char_size.
22537 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
22539         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22540         (Fdbus_call_method): New parameter TIMEOUT.
22541         (dbus-send-signal): Optimize UNGCPRO call.
22543 2008-03-29  Juri Linkov  <juri@jurta.org>
22545         * window.c (Fdisplay_buffer): Move call to
22546         Vsplit_window_preferred_function out of conditions that check
22547         if window is eligible for vertical splitting.
22548         When Vsplit_window_preferred_function is non-nil, call it and use
22549         its non-nil return value as window.  Otherwise, continue doing
22550         vertical splitting using Fsplit_window with arg horflag=nil.
22551         (syms_of_window) <Vsplit_window_preferred_function>: Change the
22552         default value from `split-window' to nil.
22554 2008-03-29  Juri Linkov  <juri@jurta.org>
22556         * callint.c (Fcall_interactively): Revert 2008-03-16 change
22557         for interactive code letters 'b' and 'B'.
22559 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
22561         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22562         multibyte string.
22564 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
22566         * keyboard.c (pending_funcalls): New var.
22567         (timer_check): Run it.
22568         (syms_of_keyboard): Initialize it.
22569         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22570         (Vdelete_terminal_functions): New vars.
22571         (syms_of_terminal): Initialize them.
22572         (Fdelete_terminal): Run delete-terminal-functions.
22573         * xdisp.c (safe_eval): Rewrite.
22574         (safe_call2): New fun.
22575         * frame.c (Qdelete_frame_functions): New var.
22576         (syms_of_frame): Initialize it.
22577         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22578         * lisp.h (safe_call2, pending_funcalls): Declare.
22580 2008-03-28  Andreas Schwab  <schwab@suse.de>
22582         * indent.c (Fmove_to_column): Move declaration before statements.
22584 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
22586         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
22587         (struct frame): Use bit fields for boolean vars.
22589         * process.c (server_accept_connection): Simplify naming.
22590         (emacs_get_tty_pgrp): Use SDATA.
22592         * coding.c (decode_coding_object): Fix last change.
22594 2008-03-27  Jason Rumney  <jasonr@gnu.org>
22596         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22598 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
22600         * charset.c (Fdefine_charset_internal): Change the way of
22601         registering charsets in Vcharset_order_list.
22602         (syms_of_charset): Make the charset `eight-bit' supplementary.
22604 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
22606         * regex.c (EXTEND_BUFFER): Change order of pointer addition
22607         operations, to avoid having the difference between pointers
22608         overflow.
22610 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
22612         * indent.c (check_display_width): New fun.
22613         (scan_for_column): Use it.
22615         * data.c (syms_of_data): Mark most-positive-fixnum and
22616         most-negative-fixnum as constants.
22618         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22620         * indent.c (scan_for_column): Extract from current_column_1.
22621         Merge with the same code from Fmove_to_column.
22622         (current_column_1, Fmove_to_column): Use it.
22624 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
22626         * keymap.c (map_keymap_internal): New fun.
22627         (map_keymap): Use it.
22628         (Fmap_keymap_internal): New fun.
22629         (Fmap_keymap): Remove left-out test from before make_save_value.
22631         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22633         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22634         Use XCAR/XCDR.
22636         * process.h (struct Lisp_Process): Remove filter_multibyte.
22637         * process.c (QCfilter_multibyte): Remove.
22638         (setup_process_coding_systems): Don't use filter_multibyte.
22639         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22640         (read_process_output): Don't adjust multibyteness to filter_multibyte.
22641         (Fset_process_filter_multibyte): Change the coding-system to
22642         approximate the previous behavior.
22643         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22644         coding-system.
22646         * coding.c (decode_coding_object): When not decoding into a buffer,
22647         obey the coding system's preference of (uni|multi)byte.
22649 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
22651         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22652         every char is changed and has a different byte-length.
22653         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22654         Fix int -> EMACS_INT.
22656 2008-03-23  David Hansen  <david.hansen@gmx.net>
22658         * dbusbind.c (xd_read_message): Remove extra copying of message
22659         strings.  Check for NULL `interface' or `member'.
22661 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
22663         * w32.c (readdir): If FindFirstFile/FindNextFile return in
22664         cFileName a file name that includes `?' characters, use the 8+3
22665         alias in cAlternateFileName instead.
22667 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
22669         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22671 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
22673         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22674         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
22675         work on current_buffer only instead (that was already the case
22676         for some of the code anyway).
22677         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22678         (temp_set_point, temp_set_point_both): Use EMACS_INT.
22679         (SET_PT, SET_PT_BOTH): Adjust.
22680         * intervals.h (set_point, temp_set_point, set_point_both)
22681         (temp_set_point_both): Remove redundant declarations.
22683 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
22685         * fileio.c (Finsert_file_contents):
22686         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22687         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
22688         when buffer != current_buffer anyway.
22690 2008-03-20  Andreas Schwab  <schwab@suse.de>
22692         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22693         as default.
22695 2008-03-19  Jason Rumney  <jasonr@gnu.org>
22697         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22698         (syms_of_w32fns): Initialize them.
22699         (HOURGLASS_ID): New constant.
22700         (x_window_to_frame): Don't check hourglass_window.
22701         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22702         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22703         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22704         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22705         Only change the cursor if hourglass is not active.
22706         (Fx_create_frame): Initialize frame's current_cursor.
22707         (hourglass_atimer): Remove.
22708         (hourglass_started): New function.
22709         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22710         (show_hourglass): Adapt to w32, changing argument to frame.
22712         * w32term.h (struct w32_output): Remove hourglass_window.
22713         Add current_cursor.
22715         * eval.c (call_debugger, Fsignal):
22716         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22717         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22718         (Fexecute_extended_command, cancel_hourglass_unwind):
22719         * minibuf.c (read_minibuf):
22720         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22722 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
22724         * window.c (run_funs): New fun.
22725         (run_window_configuration_change_hook): Use it to run the buffer-local
22726         and the global part of the hook.
22728         * xdisp.c (format_mode_line_unwind_data): Add window argument.
22729         (unwind_format_mode_line): Restore selected window.
22730         (x_consider_frame_title, Fformat_mode_line): Set selected window.
22732 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
22734         * editfns.c (Fchar_equal): Check they are valid characters.
22736         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22738 2008-03-17  Andreas Schwab  <schwab@suse.de>
22740         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22741         against a charset.
22743         * lisp.h (Fbuffer_list): Declare.
22745 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
22747         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22748         handlebox_widget is != 0.
22750 2008-03-16  Juri Linkov  <juri@jurta.org>
22752         * callint.c (Fcall_interactively): For interactive code letters
22753         'b' and 'B' put the buffer list into the list of default "future"
22754         values of the minibuffer.
22756 2008-03-16  Andreas Schwab  <schwab@suse.de>
22758         * keyboard.c (read_key_sequence): Fix downcasing of letters with
22759         modifiers.
22761         * regex.c (re_match_2_internal): Correct matching of a charset
22762         against latin-1 characters.
22764 2008-03-16  Kenichi Handa  <handa@m17n.org>
22766         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22767         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22768         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22769         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22770         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22771         CHAR_STRING_ADVANCE.
22772         (produce_chars): Fix for the case that the source and the
22773         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
22774         instead of CHAR_STRING_ADVANCE.
22775         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22776         STRING_CHAR_ADVANCE.
22778 2008-03-15  Andreas Schwab  <schwab@suse.de>
22780         * regex.c (re_match_2_internal): Correct matching of eight bit
22781         characters in unibyte strings.
22783 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
22785         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22786         at end of range when it coincides with the end of the buffer.
22788 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
22790         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22792         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22794 2008-03-14  Jason Rumney  <jasonr@gnu.org>
22796         * editfns.c (initial_tz): New variable.
22797         (syms_of_editfns): Initialize it.
22798         (Fset_time_zone_rule): Set it when first called.
22799         Use it when TZSTRING is nil.
22801         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22802         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22803         (monitor_from_point_fn, get_monitor_info_fn): New globals.
22804         (globals_of_w32fns): Initialize them.
22805         (compute_tip_xy): Use them to position tooltips.
22807 2008-03-14  Glenn Morris  <rgm@gnu.org>
22809         * emacs.c (main): Revert previous change.
22810         (standard_args): Revert -internal-script back to -scriptload,
22811         and remove the long-option form.
22813 2008-03-13  Glenn Morris  <rgm@gnu.org>
22815         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22816         Remove option -enable-font-backend.
22818 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
22820         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22822 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
22824         * xterm.c (x_connection_closed): For GTK: If this is the last
22825         terminal just exit without closing the display.
22827 2008-03-11  Jason Rumney  <jasonr@gnu.org>
22829         * w32font.c (w32font_full_name): Use floor to round.
22831 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
22833         * sound.c (alsa_configure): Declare vol at beginning of block.
22835         * fontset.c (Ffontset_info): Remove extra semicolon.
22837 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
22839         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22840         size of resulting string.
22842 2008-03-10  Jason Rumney  <jasonr@gnu.org>
22844         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22846 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22848         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22849         Don't pretend as if characters with display property haven't been
22850         consumed for string-replacing-string case.
22852 2008-03-08  Kim F. Storm  <storm@cua.dk>
22854         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22855         (get_next_display_element, next_element_from_string)
22856         (next_element_from_ellipsis, next_element_from_buffer): Use it.
22858 2008-03-08  Andreas Schwab  <schwab@suse.de>
22860         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22862 2008-03-06  Jason Rumney  <jasonr@gnu.org>
22864         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
22865         when charset not specified.  Only translate ANSI to unicode when
22866         font_type is truetype.
22867         (w32font_coverage_ok): New function.
22868         (add_font_entity_to_list): Use it to filter unsuitable fonts.
22870 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
22872         * lread.c (Fread_char): Resolve modifiers.
22873         (Fread_char_exclusive): Likewise.
22875         * character.c (char_resolve_modifier_mask): New function.
22876         (char_string): Use char_resolve_modifier_mask.
22877         (Fchar_resolve_modifiers): New function.
22878         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22879         function.
22881 2008-03-04  Jason Rumney  <jasonr@gnu.org>
22883         * makefile.w32-in: Always include w32font.c in the build.
22884         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22886 2008-03-04  Andreas Schwab  <schwab@suse.de>
22888         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22889         (versionclean): Likewise.
22891 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
22893         * .cvsignore: Add oo.
22895 2008-03-03  Andreas Schwab  <schwab@suse.de>
22897         * coding.c (decode_coding_object): Inhibit gap shrinking while
22898         decoding in place.
22900 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
22902         * w32term.c: Remove unused include "gnu.h".
22903         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22905         * gnu.h: Rename to ...
22906         * emacs-icon.h: ... this.
22907         * xterm.c: Use emacs-icon.h instead of gnu.h.
22908         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22910 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
22912         * w32font.c: Include math.h.
22914 2008-03-03  Jason Rumney  <jasonr@gnu.org>
22916         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22917         Compute options separately.
22918         (w32font_open_internal): Set glyph_idx before caching metrics.
22920         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22921         Define if system headers don't.
22922         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
22923         (w32font_encode_char): Don't declare here.
22925         * w32font.c (Quniscribe, QCformat): New symbols.
22926         (syms_of_w32font): Define them.
22927         (w32font_has_char): Indicate uncertainty.
22928         (w32font_encode_char): Encode as glyph point.  Make static.
22929         (recompute_cached_metrics): New function.
22930         (w32font_open_internal): Use it.  Set font to use glyph points
22931         initially.  Set format based on type of font.
22932         (w32font_text_extents, w32font_draw): Optionally use glyph points.
22933         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
22934         on it.  Set format based on information available here.
22935         (add_font_entity_to_list): Identify backend based on opentype_only.
22937 2008-03-02  Andreas Schwab  <schwab@suse.de>
22939         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22941         * coding.c (decode_coding_big5, produce_chars):
22942         Fix typos in last change.
22944 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
22946         * gnu.h: New icon.
22948 2008-03-02  Kenichi Handa  <handa@m17n.org>
22950         * coding.c (decode_coding_utf_8): When eol-type of CODING is
22951         `dos', don't decode '\r' if that is the last in the source.
22952         (decode_coding_utf_16, decode_coding_emacs_mule)
22953         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22954         (decode_coding_raw_text, decode_coding_charset): Likewise.
22955         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
22957 2008-03-01  Jason Rumney  <jasonr@gnu.org>
22959         * w32font.c (w32font_full_name): Report point size for scalable fonts.
22961 2008-03-01  Kim F. Storm  <storm@cua.dk>
22963         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22965 2008-03-01  Jason Rumney  <jasonr@gnu.org>
22967         * w32font.c (w32font_full_name): New function.
22968         (w32font_open_internal): Use it.
22970 2008-03-01  Kim F. Storm  <storm@cua.dk>
22972         * dispnew.c (line_draw_cost): Fix invalid glyph check.
22974 2008-03-01  Jason Rumney  <jasonr@gnu.org>
22976         * font.c (font_unparse_fcname): Increase len when style is a symbol.
22978 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
22980         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22981         xg_frame_resized when the event is for the edit widget.
22983         * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
22985         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22986         set_char_size.
22987         (xg_frame_resized): Rename from xg_resize_widgets.  Remove all
22988         operations on widgets here.  Just set frame size if needed.
22989         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22990         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22991         (x_wm_set_size_hint): Set size hints on the edit widget only, not
22992         the whole frame.
22993         (xg_create_tool_bar): Move attachment of the tool bar to
22994         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
22995         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22997 2008-03-01  Jason Rumney  <jasonr@gnu.org>
22999         * w32fns.c (w32_msg_pump): Disable debug code.
23001 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23003         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23005 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
23007         * xdisp.c (next_overlay_string): Don't set
23008         overlay_strings_at_end_processed_p if we're currently reading from
23009         a display string.
23011 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
23013         * xdisp.c (get_overlay_strings_1): Fix typo.
23015 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
23017         * xdisp.c (get_overlay_strings_1): Add missing argument type.
23019 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
23021         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23023         * xdisp.c (display_mode_element): Cancel the previous change.
23024         (decode_mode_spec): Likewise.
23025         (handle_auto_composed_prop): Don't make composition if it->string
23026         is a string.
23028 2008-02-27  Kim F. Storm  <storm@cua.dk>
23030         * lisp.h (GLYPH): Change type from int to struct with separate char
23031         and face_id members.
23032         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23033         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23034         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23035         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
23036         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
23037         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23038         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23039         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23040         handle new Lisp glyph code encoding, either an integer or a cons.
23042         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23043         (GLYPH_ALIAS): Delete.
23044         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23045         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23046         (GLYPH_FROM_CHAR): Replace macro by ...
23047         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
23049         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23050         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23051         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
23052         (GLYPH_INVALID_P): New macro.
23053         (spec_glyph_lookup_face): Update prototype.
23055         * dispnew.c (line_draw_cost): Adapt to new glyph type.
23056         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23057         new glyph code encoding.
23058         (spec_glyph_lookup_face): No return value; update passed glyph instead.
23059         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23061         * xdisp.c (get_next_display_element, next_element_from_display_vector):
23062         Adapt to new glyph type and new glyph code encoding.
23064         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23066         * indent.c (current_column, current_column_1, Fmove_to_column)
23067         (compute_motion): Adapt to new glyph code encoding.
23069         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23071 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
23073         * process.c (wait_reading_process_output): Check for window
23074         changes caused by timers.
23075         Suggested by Johan Bockgård.
23077 2008-02-27  Glenn Morris  <rgm@gnu.org>
23079         * emacs.c (USAGE1): Add `--disable-font-backend'.
23081 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
23083         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23084         is made to the buffer.
23086 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
23088         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23089         (face_at_string_position):
23090         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23091         (face_at_string_position):
23092         * xdisp.c (display_string, next_overlay_change):
23093         * buffer.h (overlays_at):
23094         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23095         Update callers.
23097 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
23099         * editfns.c (Fformat): Doc fix.
23101 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
23103         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23104         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23105         (Ffont_otf_alternates, Fquery_font): Doc fixes.
23107 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
23109         * buffer.c (Fbuffer_swap_text): New function.
23110         (syms_of_buffer): Defsubr it.
23112 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
23114         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23116 2008-02-25  Jason Rumney  <jasonr@gnu.org>
23118         * w32font.c (w32font_draw): Draw one character at a time when padding.
23120 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
23122         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23123         Handle a nil arg.  Use run_window_configuration_change_hook.
23124         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23125         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23126         Use run_window_configuration_change_hook.
23128 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
23130         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23131         1-pixel width.
23133 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
23135         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23136         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23137         if the glyph in the font is zero pixel with.
23139         * dispextern.h (struct glyph_string): New member padding_p.
23141         * w32font.c (w32font_draw): Pay attention to s->padding_p.
23143         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23145         * xfont.c (xfont_draw): Pay attention to s->padding_p.
23147         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23149         * font.c: If the font driver doesn't have `shape' function, return Qnil.
23151 2008-02-25  Jason Rumney  <jasonr@gnu.org>
23153         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23155 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
23157         Allow fine-grained image-cache flushing.
23158         * dispextern.h (struct image): Add `dependencies' field.
23159         (clear_image_caches): Change arg to Lisp_Object.
23160         * image.c (make_image): Initialize `dependencies' field.
23161         (clear_image_cache): Change arg to allow fine-grained flushing.
23162         Perform the flush even if image-cache-eviction-delay is nil.
23163         (clear_image_caches): Change arg to Lisp_Object.
23164         (Fclear_image_cache): Expand meaning of the argument.
23165         (mark_image): Mark `dependencies' field.
23166         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23167         (lface_hash): Use XHASH rather than XFASTINT.
23168         (face_at_buffer_position): Fix int -> EMACS_INT position.
23169         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23170         (select_frame_for_redisplay): Remove code duplication.
23171         (redisplay_internal): Adapt arg to call to clear_image_caches.
23173 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
23175         * s/vms4-0.h:
23176         * s/vms4-2.h:
23177         * s/vms4-4.h:
23178         * s/vms5-5.h: Remove, unused.
23180         * s/irix5-2.h:
23181         * s/irix6-0.h:
23182         * s/riscos5.h:
23183         * s/mach-bsd4-3.h:
23184         * m/mips4.h: Remove files for obsolete systems.
23186         * Makefile.in:
23187         * filelock.c:
23188         * unexmips.c:
23189         * m/hp9000s300.h:
23190         * m/iris4d.h:
23191         * s/aix3-1.h:
23192         * s/hpux.h:
23193         * s/msdos.h:
23194         * s/usg5-0.h:
23195         * s/usg5-2-2.h:
23196         * s/usg5-2.h:
23197         * s/usg5-3.h: Remove references to obsolete variables.
23199         * s/irix5-0.h: Remove, move all the contents ...
23200         * s/irix6-5.h: ... here.  Simplify.
23201         * config.in: Regenerate.
23203 2008-02-24  Jason Rumney  <jasonr@gnu.org>
23205         * w32term.c (x_draw_glyph_string_background): Clear the background
23206         manually when cleartype is in use.
23207         (x_draw_glyph_string_foreground): Draw text transparently when
23208         cleartype is in use.
23210         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23211         a font into it unless we have to.
23213 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
23215         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
23216         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23218 2008-02-18  Jason Rumney  <jasonr@gnu.org>
23220         * w32fns.c (Fw32_shell_execute): Encode parameters.
23222 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
23224         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23226 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
23228         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23230 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
23232         * xterm.c (x_set_offset): Don't change the gravity if
23233         CHANGE_GRAVITY is -1.
23235 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
23237         * fileio.c (auto_save_error_occurred): New var.
23238         (auto_save_error): Set it.
23239         (Fdo_auto_save): Don't overwrite the error message if an auto-save
23240         error occurred.
23242 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
23244         * w32.c (globals_of_w32): Add initializations for
23245         g_b_init_get_sid_sub_authority and
23246         g_b_init_get_sid_sub_authority_count.
23248 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
23250         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23251         (font_parse_xlfd): Use them for sanity check.
23252         (Finternal_set_font_style_table): Make sure the table is bijective.
23254         Consolidate the image_cache to the terminal struct.
23255         * termhooks.h (P_): Remove redundant def.
23256         (struct terminal): New field `image_cache'.
23257         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
23258         of FRAME_X_IMAGE_CACHE.
23259         * xterm.h (struct x_display_info): Remove image_cache field.
23260         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
23261         * w32term.h (struct w32_display_info): Remove image_cache field.
23262         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
23263         * macterm.h (struct mac_display_info): Remove image_cache field.
23264         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
23265         * xterm.c (x_term_init):
23266         * w32term.c (w32_term_init):
23267         * macterm.c (mac_term_init): Set the image_cache in the terminal.
23268         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23269         Remove declarations.
23270         (clear_image_caches, mark_image_cache): New declarations.
23271         * xfaces.c (clear_face_cache):
23272         * xdisp.c (redisplay_internal): Use clear_image_caches.
23273         * image.c (clear_image_cache): Don't check that a frame is on
23274         a window-system before checking if it shares the same cache.
23275         (clear_image_caches): New function.
23276         (Fclear_image_cache): Use it.
23277         (mark_image): Move from allo.c.
23278         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23279         * alloc.c (mark_image, mark_image_cache): Move to image.c.
23280         (mark_object): Don't call mark_image_cache for frames.
23281         (mark_terminals): Call mark_image_cache.
23283         * lisp.h (Fdelete_terminal): Declare.
23285         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23286         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23287         wrong_type_argument.
23289 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
23291         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23292         malayalam.el, and tamil.el.  Add sinhala.el.
23294 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
23296         * xterm.c (x_connection_closed): Consolidate identical tests.
23297         (x_delete_terminal): Don't crash if called via x_connection_closed.
23299 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
23301         * xdisp.c (decode_mode_spec): New arg string.
23302         (display_mode_element): Adjust for the above change.
23304 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
23306         * callint.c (Fcall_interactively): Use AREF.
23308 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
23310         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23312 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
23314         * xfns.c (Fx_show_tip): Set string to " " if empty.
23316 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
23318         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23319         with Qt.
23321 2008-02-17  Kenichi Handa  <handa@m17n.org>
23323         * ftfont.c (ftfont_shape): Return Lispy number.
23325         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23326         for GCs.
23327         (Finternal_set_font_selection_order): Call font_update_sort_order
23328         only when enable_font_backend is set.
23329         (realize_x_face): Set face->font_info to that of default face only
23330         when enable_font_backend is set.
23332         * xdisp.c (handle_composition_prop): Set it->c to the fist
23333         character of the composed region.
23334         (fill_composite_glyph_string): Set base_face->font_info to
23335         s->font_info.  Get a face for ascii from base_face->ascii_face.
23336         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23337         with a face already decided.
23338         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23339         non-negative.
23340         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23341         call font_prepare_composition unconditionally.
23343         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23345         * xterm.h (struct x_display_info): New member font.
23347         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23348         (x_set_mouse_face_gc, x_new_font): Likewise.
23349         (x_term_init): Setup display_info->font.
23350         (x_delete_terminal): Free display_info->font.
23352         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23354         * ftxfont.c (ftxfont_default_fid): Delete it.
23355         (ftxfont_open): Set xfont->fid to 0.
23356         (ftxfont_end_for_frame): Clear data specific to the frame and the
23357         font-driver.
23359         * xftfont.c (xftfont_default_fid): Delete it.
23360         (xftfont_open): Set xfont->fid to 0.
23362         * fontset.c (FONTSET_OBJLIST): New macro.
23363         (fontset_find_font): Update font-object list of the fontset.
23364         (free_realized_fontset): New function.
23365         (free_face_fontset): Call free_realized_fontset.
23366         (Ffont_info): Call font_close_object only when enable_font_backend
23367         is set.
23369         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23370         [HAVE_NTGUI]: Include w32term.h.
23371         [MAC_OS]: Include macterm.ch.
23372         (font_otf_ValueRecord): Use make_number.
23373         (font_finish_cache): Fix handling of reference count.
23374         (font_clear_cache): Update num_fonts.
23375         (font_open_entity): Update smallest_char_width and
23376         smallest_font_height of the frame.
23377         (font_close_object): Update num_fonts.
23378         (Fclear_font_cache): Fix finding the target cache data.
23380 2008-02-16  Glenn Morris  <rgm@gnu.org>
23382         * fontset.c (Finternal_char_font): Fix compilation warning.
23384 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
23386         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23387         instead of char arrays.  Enlarge the size of array passed to
23388         get_token_information.
23390         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23391         warnings.
23393 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
23395         * .gdbinit: Don't set `args', it breaks gdb --args.
23397 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
23399         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23400         within a narrowed buffer.
23402 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
23404         * coding.c (decode_coding_object, encode_coding_object):
23405         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
23407 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
23409         * coding.c (coding_set_destination): Use BEG_BYTE rather than
23410         hardcoding 1.
23411         (detect_coding_system):
23412         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23413         (string_char_to_byte, string_byte_to_char, insert_from_gap):
23414         * insdel.c (insert_from_gap):
23415         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23416         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23417         (string_to_multibyte):
23418         * character.c (chars_in_text, multibyte_chars_in_text):
23419         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23421         * character.h (FETCH_STRING_CHAR_ADVANCE)
23422         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23423         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23424         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23426         * casefiddle.c (casify_region): Only call after-change and composition
23427         functions on the part of the region that was changed.
23429         * keyboard.c (read_avail_input):
23430         * frame.c (Fdelete_frame): Call Fdelete_terminal.
23432 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
23434         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23435         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23437 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
23439         * w32menu.c (push_submenu_start, push_submenu_end)
23440         (push_left_right_boundary, push_menu_pane, push_menu_item):
23441         * keyboard.c (read_key_sequence): Don't pass args with side effects
23442         to AREF, it fails when compiling with -DENABLE_CHECKING.
23444 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
23446         * Makefile.in (${lispsource}international/charprop.el):
23447         Delete this target.
23449         * search.c (boyer_moore): Fix incorrect synching of the trunk and
23450         emacs-unicode-2.
23452 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
23454         * terminal.c (Fdelete_terminal): Clean up the `force' path.
23456 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
23458         * frame.c (Qnoelisp): New symbol.
23459         (syms_of_frame): Initialize it.
23460         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23461         harmless Elisp code, from a strong `force' from x_connection_closed.
23462         * frame.h (Qnoelisp): Declare.
23463         * xterm.c (x_connection_closed): Pass `noelisp'.
23465         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23466         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23467         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23468         rather than `int' for the type of `type'.
23470 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
23472         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23474         * Makefile.in (GNUC): Remove support for gcc-1.x.
23476 2008-02-10  Richard Stallman  <rms@gnu.org>
23478         * lisp.h (ASET): Use AREF, not ASLOT.
23480 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
23482         * lisp.h (ASET): Check bounds.
23484 2008-02-10  Glenn Morris  <rgm@gnu.org>
23486         * buffer.c (mode-name): Doc fix.
23488 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
23490         * Makefile.in:
23491         * emacs.c:
23492         * gmalloc.c:
23493         * keyboard.c:
23494         * lisp.h:
23495         * m/ibm370aix.h:
23496         * process.c:
23497         * regex.c:
23498         * s/hpux.h:
23499         * sysdep.c:
23500         * sysselect.h:
23501         * systty.h:
23502         * unexec.c:
23503         * w32term.c:
23504         * xsmfns.c:
23505         * xterm.c: Remove code that deals with obsolete variables.
23507         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23509         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23510         nothing else needs it anymore.
23512 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
23514         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23515         instead of unibyte_char_to_multibyte.
23517 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
23519         * s/gnu-linux.h: Remove commented out code.
23521         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23523         * Makefile.in: Update what RMS says about using autoconf.
23524         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23525         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23526         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23527         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23529 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
23531         * keymap.c (Fkey_description): Move side effect outside of macro call.
23533         * xfaces.c (Finternal_make_lisp_face):
23534         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23536         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23537         (syms_of_fontset): Use ASET.
23539         * fns.c (concat): Move side effect outside of macro call.
23540         (hash_clear): Use ASET.
23542 2008-02-08  Richard Stallman  <rms@gnu.org>
23544         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23545         If FORCE, and frame has a surrogate minibuffer for another frame,
23546         delete the other frame first.
23548 2008-02-07  Timo Savola  <timo.savola@iki.fi>
23550         * xterm.c (x_detect_focus_change): Handle embed client message.
23551         (handle_one_xevent): Ditto.
23552         (handle_one_xevent): If embedded and we get a button press/release,
23553         request focus.
23554         (xembed_set_info, xembed_send_message): New functions.
23555         (x_make_frame_visible): Call xembed_set_info if embedded.
23556         (x_make_frame_invisible): Call xembed_set_info if embedded.
23557         (x_term_init): Initialize Xatom_XEMBED.
23558         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23559         (x_iconify_frame): Ditto.
23561         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23562         (enum xembed_info, enum xembed_message, enum xembed_focus)
23563         (enum xembed_modifier, enum xembed_accelerator): New.
23564         (xembed_set_info, xembed_send_message): Declare.
23565         (FRAME_X_EMBEDDED_P): New.
23567         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23568         gtk_plug_new.
23570         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23571         window ID of a frame.
23572         (x_window): Reparent frame if embedded.
23573         (Fx_create_frame): Don't set border width if embedded.
23575         * emacs.c (USAGE3): Add --parent-id.
23576         (standard_args): Ditto.
23578 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
23580         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23582 2008-02-07  Jim Meyering  <meyering@redhat.com>
23584         Use "do...while (0)", not "if (1)...else" in macro definitions.
23585         The latter provokes a warning from gcc about the empty else, when
23586         followed by ";".  Also, without that trailing semicolon, it would
23587         silently swallow up any following statement.
23588         * syntax.h (SETUP_SYNTAX_TABLE)
23589         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23590         * buffer.h (DECODE_POSITION): Likewise.
23591         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23592         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23593         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23594         (FETCH_CHAR_ADVANCE): Likewise.
23595         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23597 2008-02-07  Jim Meyering  <meyering@redhat.com>
23599         * lread.c [lint]: Don't include <sys/inode.h>.
23601 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
23603         * xselect.c (x_handle_dnd_message):
23604         * xmenu.c (digest_single_submenu, xmenu_show):
23605         * xdisp.c (with_echo_area_buffer_unwind_data)
23606         (format_mode_line_unwind_data, unwind_format_mode_line)
23607         (display_menu_bar):
23608         * eval.c (Ffetch_bytecode):
23609         * doc.c (store_function_docstring):
23610         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23611         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23612         * buffer.c (add_overlay_mod_hooklist): Use ASET.
23614 2008-02-07  Kenichi Handa  <handa@m17n.org>
23616         * ftxfont.c (ftxfont_open): Don't set
23617         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23619         * ftfont.c (ftfont_open): Fix previous change.
23621 2008-02-06  Jason Rumney  <jasonr@gnu.org>
23623         * w32font.c (w32font_text_extents): Fill in lbearing metric.
23624         Use cached metrics for ASCII characters.
23625         (w32font_open_internal): Don't set font's owning_frame.
23626         Cache metrics for ASCII characters.
23628         * w32font.h (struct w32font_info): Add ascii_metrics.
23629         Remove owning_frame.
23631 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
23633         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23634         to negative value.
23636         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23638         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23640         * charset.c (syms_of_charset): Set QCtest and Qeq.
23642 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
23644         * process.c (Fstart_process):
23645         * callproc.c (Fcall_process): Handle the case where
23646         Funhandled_file_name_directory returns nil.
23648         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23649         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23650         * font.c (check_gstring): Use them and AREF to access the vector before
23651         we know it's really a gstring.
23652         (Ffont_shape_text): Fix typo.
23653         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23655         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23656         Declare.
23658         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23660 2008-02-05  Jason Rumney  <jasonr@gnu.org>
23662         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23663         Set smallest_font_height and smallest_char_width in display info.
23665 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
23667         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23669 2008-02-05  Miles Bader  <miles@gnu.org>
23671         * xfaces.c (get_lface_attributes, merge_named_face)
23672         (lookup_named_face, lookup_derived_face, realize_named_face):
23673         Revert 2008-02-01 change by cyd@stupidchicken.com.
23675 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
23677         * fontset.c (Ffontset_info): Handle the case of inhibitting the
23678         fallback fonts.
23679         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23681 2008-02-04  Jason Rumney  <jasonr@gnu.org>
23683         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23684         set full_name.
23685         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23687 2008-02-03  Jason Rumney  <jasonr@gnu.org>
23689         * makefile.w32-in (OBJ1): Include font.o here.
23690         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23692 2008-02-02  Jason Rumney  <jasonr@gnu.org>
23694         * makefile.w32-in (temacs): Bump EMHEAP to 21.
23696 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23698         * s/cygwin.h: Define VIRT_ADDR_VARIES.
23700         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23702 2008-02-01  Andreas Schwab  <schwab@suse.de>
23704         * Makefile.in (shortlisp, lisp): Update for rename of
23705         ../lisp/language/myanmar.el.
23707 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
23709         * xfaces.c (get_lface_attributes): Delete function.
23710         (merge_named_face, lookup_named_face, lookup_derived_face)
23711         (realize_named_face): Call lface_from_face_name directly, and use
23712         the fact that merge_face_vectors does not alter its FROM argument.
23714 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23716         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23717         input in the default locale.  Handle non-Unicode multibyte input.
23719 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23721         * fontset.c (reorder_font_vector): Exclude nil elements from the
23722         font group.  Don't try multiple fonts.
23723         (fontset_font): Adjust for the above change.
23724         (Finternal_char_font): Return nil if the found font doesn't
23725         contain the character ch.
23727         * Makefile.in (lisp, shortlisp): Add cham.el.
23729 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23731         * font.h (FONTP): Make it return 1 also for a font-object.
23733         * .gdbinit (xfontset): New function.
23735         * font.c (font_find_for_lface): Check if the character C is
23736         supported or not only for the first font.
23738         * fontset.c (reorder_font_vector): Fix typo.
23739         (fontset_find_font): Don't add a font-spec specifying a script.
23740         Use 0 (not Qt) for the indication of empty font-group.  Change the
23741         format of RFONT-DEF.  Return Qt if no font in the font-group
23742         support the character.
23743         (fontset_font): Adjust for the above change.  If no font was
23744         found the character, remember that.
23745         (face_for_char): Adjust for the change of RFONT-DEF.
23746         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23747         no font for the target.
23748         (Finternal_char_font): Adjust for the change of RFONT-DEF.
23750 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23752         * font.c (font_load_for_face): Handle the case that the font in
23753         face->lface is a string.
23755 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23757         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23759 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23761         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23762         Fix previous change.  If the frame is not on a window system,
23763         signal an error.
23765 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23767         * coding.c (decode_coding_object, encode_coding_object):
23768         Adjust marker positions after conversion.
23770         * lisp.h (struct Lisp_Marker): New member need_adjustment.
23772 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23774         * font.c (font_find_for_lface): Fix the handling of the return
23775         value of font_has_char.
23776         (Ffont_shape_text): Fix previous change.
23778         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23779         (fontset_ref_and_range): Delete it.
23780         (fontset_find_font): Call char_table_ref_and_range instead of
23781         FONTSET_REF_AND_RANGE.
23782         (make_fontset): Don't setup font groups of Latin here.
23783         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23784         (new_fontset_from_font): Make the specified font the default for
23785         all Latin characters.
23787 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23789         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23790         is on a window system before accessing the fontset of the frame.
23792 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23794         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23796         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23797         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23799         * font.c (Ffont_shape_text): If the font driver doesn't have a
23800         shaper function, make zero-width glyphs to have at least one-pixel
23801         width.  Fix setting of `to' field of glyphs.
23803 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23805         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23806         glyphs.
23808         * font.h (struct font_driver): Improve docstring of member `shape'.
23810 2008-02-01  Kenichi Handa  <handa@m17n.org>
23812         * composite.c (syms_of_composite): Fix docstring of
23813         auto-composition-function.
23815         * font.h (LGLYPH_SIZE): New macro.
23817         * font.c (Ffont_fill_gstring): Stop filling when a character not
23818         supported by the font is found.
23819         (Ffont_shape_text): When a shape callback function returns nil,
23820         try at most two more times with larger gstring.
23821         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
23823         * xdisp.c (handle_auto_composed_prop): Change the argument to
23824         auto-composition-function.
23826         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23827         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23828         Lispy glyph and store it in the lgstring.
23830         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23832         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23834 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23836         * font.c (Ffont_shape_text): Avoid unnecessary composition.
23838         * fontset.c (Vfont_encoding_charset_alist): New variable.
23839         (syms_of_fontset): DEFVAR it.
23840         (reorder_font_vector, fontset_find_font): Optimize for the case of
23841         no need of reordering.
23842         (face_for_char): Map the charset property by
23843         Vfont_encoding_charset_alist.
23845 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23847         * w32font.c (logfonts_match): Don't check adstyle here.
23848         (font_matches_spec): Check here against physical font instead.
23849         (add_font_entity_to_list): Avoid some substitutions.
23851         * font.c (font_parse_fcname): Default weight and slant to normal.
23852         (font_score): Prefer normal fonts if weight or slant unspecified.
23853         (font_score) [WINDOWSNT]: Scale weight difference down to closer
23854         match freetype scores.
23856 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23858         * w32font.c (w32font_text_extents): Don't use the frame stored in the
23859         font, as it may have been deleted.
23860         (w32_enumfont_pattern_entity): Map generic family to adstyle using
23861         most common hyphenless variation.
23862         (logfonts_match): Check generic family.
23863         (font_matches_spec): Don't check generic family here.
23864         (fill_in_logfont): Set generic family based on adstyle.
23866         * w32font.h (w32font_get_cache): Update declaration.
23868 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23870         * ftfont.c (ftfont_get_cache): Adjust the argument type.
23872         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23873         If none of the new drivers are available, call font_update_drivers
23874         with the old drivers.
23876         * w32font.c (w32font_get_cache): Adjust the argument type.
23878         * xfont.c (xfont_get_cache): Adjust the argument type.
23880         * font.h (struct font_driver): Change argument type of get_cache.
23882         * xftfont.c (xftfont_start_for_frame): Delete prototype.
23884         * font.c (Ffont_get): Fix arguments to Fassoc.
23885         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23886         (font_clear_cache): New function.
23887         (font_list_entities, font_matching_entity): Use font_get_cache.
23888         (font_update_drivers): Call font_clear_cache when finishing a driver.
23890         * fontset.c (fontset_find_font): Fix previous change.
23892 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23894         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23895         dpyinfo->font_table.
23896         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23897         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23899         * font.c (font_at): Handle the case that the arg C is negative.
23900         Handle the unibyte case.
23901         (Ffont_at): Call font_at with the arg C -1.
23903         * xdisp.c (handle_auto_composed_prop): Don't get a character at
23904         the position here, and call font_at with the arg C -1.
23905         Don't check the range of the existing composition at the point.
23907 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23909         * fontset.c (fontset_add): New args charset_id and family.
23910         Change caller.
23911         (load_font_get_repertory, fontset_find_font): Assume that
23912         font_spec is always a font-spec object.
23913         (Fset_fontset_font): Always store a font-spec object in a fontset.
23915         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23916         instead of get_property_and_range.
23918 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23920         * xftfont.c (struct xftfont_info): Delete the member ft_face.
23921         (xftfont_open): Don't keep locking face.
23922         (xftfont_close): Don't unlock face.
23923         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23925         * fontset.c (fontset_find_font): Don't prefer a font of
23926         supplementary charset.
23928 2008-02-01  Kenichi Handa  <handa@m17n.org>
23930         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23931         script, langsys_tag to langsys, new member script.
23932         (OTF_TAG_STR): Terminate by '\0'.
23933         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
23934         listing to the script specified in that property.  Fix arg to
23935         OTF_check_features.
23937 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23939         * w32font.h: New file.
23941         * w32font.c: Include it.
23942         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
23943         (w32font_open): Set owning_frame.
23944         (w32font_text_extents): Use owning_frame.
23945         (struct font_callback_data): Add opentype_only field.
23946         (add_font_entity_to_list): Use it to filter fonts.
23947         Don't check against full name.
23948         (w32font_list_internal): New function.
23949         (w32font_list): Use it.
23950         (w32font_match_internal): New function.
23951         (w32font_match): Use it.
23952         (w32font_open_internal): New function.
23953         (w32font_open): Use it.
23954         (w32font_get_cache, w32font_close, w32font_has_char)
23955         (w32font_encode_char, w32font_text_extents, w32font_draw):
23956         Make non-static.
23958         * makefile.w32-in (w32font.o): Depend on w32font.h.
23960 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23962         * charset.c (Fdefine_charset_internal): Record a supplementary
23963         charset at the tail of Vcharset_order_list.
23965         * font.c (Ffont_shape_text): Fix the return value.
23967         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23969         * xdisp.c (handle_auto_composed_prop): Fix previous change.
23971 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23973         * ftfont.c (struct OpenTypeSpec): New struct.
23974         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23975         (ftfont_get_open_type_spec): New function.
23976         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23978         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23980 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23982         * w32font.c (add_font_entity_to_list): Compare only the beginning
23983         of full name.
23985 2008-02-01  Kenichi Handa  <handa@m17n.org>
23987         * xdisp.c (handle_auto_composed_prop): Simplify the code.
23988         Never return HANDLED_RECOMPUTE_PROPS.
23990 2008-02-01  Kenichi Handa  <handa@m17n.org>
23992         * font.c (font_gstring_produce): Delete it.
23994         * composite.h (COMPOSITION_METHOD):
23995         Handle COMPOSITION_WITH_GLYPH_STRING.
23997 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
23999         * xfont.c (Qx): Delete.
24000         (syms_of_xfont): Don't initialize Qx.
24002         * composite.h (enum composition_method):
24003         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24005 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24007         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24008         (choose_face_font): Accept new form of font-spec.
24010         * frame.h (font_driver_list): Declare it unconditionally.
24011         (struct frame): Define members font_driver_list and font_data_list
24012         unconditionally.
24014         * fontset.c: Include "font.h" unconditionally.
24015         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24016         (Fset_fontset_font): Accept a font-spec object.
24018         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24019         PIXEL_SIZE part a wild card.
24021         * dispextern.h (struct glyph_string): Define members clip and
24022         num_clips unconditionally.
24023         (struct face): Define members font_info and extra unconditionally.
24025         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24026         ftfont_info only when HAVE_LIBOTF is defined.
24028 2008-02-01  Andreas Schwab  <schwab@suse.de>
24030         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24031         and end.
24033 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24035         * w32font.c (w32font_driver): Add new fields.
24037 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24039         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24040         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24041         (LIBES): Add @M17N_FLT_CFLAGS@.
24043         * composite.c (compose_text): Don't treat the new style
24044         composition specially.
24046         * emacs.c (main): Call syms_of_font unconditionally.
24048         * font.h (FONT_ENTITY_NOT_LOADABLE)
24049         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24050         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24051         (struct font_driver): New member shape.
24052         (font_registry_charsets): Extern it.
24053         (font_find_for_lface, font_prepare_composition): Adjust prototype.
24054         (font_otf_capability, font_drive_otf): Delete their externs.
24056         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24057         (font_charset_alist, font_registry_charsets): Move from xfont.c
24058         and rename.
24059         (font_prop_validate_otf): New function.
24060         (font_property_table): Register it for QCotf.
24061         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24062         (font_drive_otf): Delete.
24063         (font_prepare_composition): New arg F.  Adjust for the change of
24064         lispy gstring.
24065         (font_find_for_lface): New arg C.
24066         (font_load_for_face): Adjust for the change of font_find_for_lface.
24067         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24068         lispy gstring.
24069         (Ffont_shape_text): New function.
24070         (Fopen_font): If the font size is not given, use 12-pixel.
24071         (Ffont_at): New arg STRING.
24072         (syms_of_font): Initialize font_charset_alist.
24073         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
24074         conditionally.
24076         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24077         fonts of the same font-spec.  Change the format of RFONT-DEF.
24078         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24079         Adjust for the change of RFONT-DEF.
24080         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24082         * ftfont.h: New file.
24084         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
24085         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24086         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24087         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24088         font_otf_capability and font_drive_otf, set ftfont_shape.
24089         (ftfont_list): Adjust for the change of :otf property value.
24090         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24091         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24092         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24093         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24094         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24095         (otf_gstring, gstring, m17n_flt_initialized): New variables.
24097         * w32term.c (x_draw_composite_glyph_string_foreground):
24098         Adjust for the change of lispy gstring.
24100         * xdisp.c (handle_composition_prop): Adjust for the change of
24101         lispy gstring.  Call a function for auto-composition with the
24102         third arg it->window.
24103         (fill_composite_glyph_string): Adjust for the change of lispy string.
24104         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24106         * xfaces.c (set_font_frame_param): Adjust for the change of
24107         font_find_for_lface.
24109         * xfont.c (x_font_charset_alist): Move to font.c and rename.
24110         (xfont_registry_charsets): Likewise.  Change caller.
24111         (syms_of_xfont): Don't handle x_font_charset_alist.
24113         * xftfont.c: Include "ftfont.h".
24114         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24115         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24116         (xftfont_close) [HAVE_LIBOTF]: Close otf.
24117         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24118         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24119         Set xftfont_driver.shape to xftfont_shape.
24121         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24122         the change of lispy gstring.
24124 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24126         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24128 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24130         * w32font.c (w32font_draw): Fill background manually.
24132 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24134         * font.c (Qfontp): Remove unused symbol.
24135         (QCantialias): New symbol.
24136         (syms_of_font): Define it.
24137         (font_property_table): Set a validator for QCantialias.
24139         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24140         Define if not already.
24141         (QCfamily): Share with xfaces.c.
24142         (Qstandard, Qsubpixel, Qnatural): New symbols.
24143         (syms_of_w32font): Define them.  Don't define QCfamily here.
24144         (w32_antialias_type, lispy_antialias_type): New functions.
24145         (w32_enumfont_pattern_entity): New arg requested_font.
24146         Set antialias parameter if non-default was requested.
24147         (fill_in_logfont): Fill in lfQuality if :antialias specified.
24149 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24151         * lread.c (read1): Undo the previous change.
24153 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
24155         * frame.c (Fdelete_frame): Call font_update_drivers only when
24156         USE_FONT_BACKEND is defined.
24158 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24160         * font.h (struct font_bitmap): New member bits_per_pixel.
24161         (struct font_driver): New members start_for_frame and end_for_frame.
24162         (struct font_data_list): New struct.
24163         (font_put_frame_data, font_get_frame_data): Extern them.
24165         * frame.h (struct frame): New member font_data_list.
24167         * font.c (font_update_drivers): Call driver->start_for_frame and
24168         driver->end_for_frame at proper timings.
24169         (font_put_frame_data, font_get_frame_data): New functions.
24170         (Ffont_spec): Add usage in the docstring.
24172         * frame.c (make_frame): Initialize f->font_data_list to NULL.
24173         (Fdelete_frame): Call font_update_drivers.
24175         * xftfont.c (struct xftface_info): Delete the member xft_draw.
24176         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24177         (xftfont_get_xft_draw): New function.
24178         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24179         (xftfont_end_for_frame): New function.
24180         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24182         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24183         Change argument.  Cache GCs in the per-frame data.
24184         (struct ftxfont_frame_data): New struct.
24185         (ftxfont_draw_bitmap): New arg gc_fore and flush.
24186         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24187         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
24188         (ftxfont_end_for_frame): New function.
24189         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24191         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24193 2008-02-01  Kenichi Handa  <handa@m17n.org>
24195         * xselect.c (Vselection_coding_system)
24196         (Vnext_selection_coding_system): Delete them.
24197         (syms_of_xselect): Don't declare selection-coding-system and
24198         next-selection-coding-system.  They are declared in select.el.
24200 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24202         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24204         * w32fns.c: Include imm.h.
24205         (get_composition_string_fn, get_ime_context_fn): New optional
24206         system functions.
24207         (globals_of_w32fns): Load them from imm32.dll.
24208         (ignore_ime_char): New flag.
24209         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24210         WM_IME_ENDCOMPOSITION messages.
24212         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24213         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24215 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24217         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24218         (READCHAR_REPORT_MULTIBYTE): New macro.
24219         (readchar): New 2nd arg MULTIBYTE.
24220         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24221         Make symbol's name multibyte according to the multibyteness of the
24222         source.
24224 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24226         * xfaces.c (face_for_overlay_string): Call lookup_face with
24227         correct arguments (fix of synching with the trunk).
24229 2008-02-01  Kenichi Handa  <handa@m17n.org>
24231         * font.c (font_prop_validate_symbol, font_prop_validate_style)
24232         (font_prop_validate_non_neg, font_prop_validate_spacing):
24233         Delete argument prop_index.
24234         (font_property_table): Change arguments to validater.  Change Callers.
24235         (font_lispy_object): Delete.
24236         (font_at): Use font_find_object instead fo font_lispy_object.
24238 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24240         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24241         and file names.
24243 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24245         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24246         (font_matches_spec): Remove debug output.
24247         (add_font_entity_to_list): Avoid using substituted fonts.
24249 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24251         * doc.c (Fsnarf_documentation):
24252         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24254 2008-02-01  Miles Bader  <miles@gnu.org>
24256         * dispextern.h (struct glyph_row): Only define "clip" field if
24257         HAVE_WINDOW_SYSTEM is defined.
24259 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
24261         Fix up multi-tty merge.
24263         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24264         and indentation.
24266         * xfaces.c (free_realized_face, clear_face_gcs):
24267         Include font_done_for_face in the input_blocked section, just in case.
24269         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24270         (get_char_face_and_encoding): Undo last change and remove the *other*
24271         duplicate definition (i.e. keep the one that's better scoped and that
24272         includes code for the font-backend).
24274         * terminal.c (create_terminal): Default keyboard_coding to
24275         `no-conversion' and terminal_coding to `undecided'.
24277         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24279         * fontset.c (free_realized_fontsets): Check that the table entry does
24280         contain a fontset before trying to compare it to `base'.
24282         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24283         syms_of_charset, and syms_of_coding earlier because init_window_once
24284         now needs Vcoding_system_hash_table to be setup.
24286         * coding.h (default_buffer_file_coding): Remove.
24288         * coding.c (default_buffer_file_coding): Remove.
24289         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24290         than ->symbol, and use the terminal-local coding system.
24291         (syms_of_coding): Don't setup the coding-systems that are not
24292         terminal-local.
24293         (Fdefine_coding_system_internal): Use XCAR/XCDR.
24295         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24296         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24298         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
24299         in chartab.c and were re-added here by mistake.
24300         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24302         * doc.c (Fsnarf_documentation):
24303         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24304         src to etc.
24306         * ChangeLog.10: Add mistakenly removed entry.
24308 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
24310         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24312 2008-02-01  Miles Bader  <miles@gnu.org>
24314         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24315         Add extra args to FACE_FOR_CHAR.
24317 2008-02-01  Kenichi Handa  <handa@m17n.org>
24319         * keymap.c (where_is_internal_1): If key is a cons, store the copy
24320         in sequence.
24322         * chartab.c (map_sub_char_table, map_char_table): If the range
24323         contains just one character, call the function with that character
24324         even if the depth is not 3.
24326 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24328         * w32font.c (w32font_text_extents): Calculate metrics for the
24329         whole string.
24331 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24333         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24335 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24337         * w32term.c (x_set_glyph_string_clipping):
24338         Use get_glyph_string_clip_rects.
24339         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24340         Adjust for the change of struct glyph_string.
24342         * w32font.c (w32font_draw): Do clipping here.
24344 2008-02-01  Kenichi Handa  <handa@m17n.org>
24346         * xftfont.c (xftfont_draw): Adjust for the change of struct
24347         glyph_string.
24349         * xterm.c (x_set_glyph_string_clipping):
24350         Use get_glyph_string_clip_rects.
24351         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24352         Adjust for the change of struct glyph_string.
24354         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24355         the resulting clip(s}.
24356         (expose_overlaps): Add arg r.  Change callers.  Set it to
24357         row->clip temporarily.
24358         (expose_window): Redraw rows overlapping the exposed area.
24360         * dispextern.h (struct glyph_row): New member clip.
24361         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24362         clip_height, new member clip, and num_clips.
24364 2008-02-01  Kenichi Handa  <handa@m17n.org>
24366         * data.c (Fchar_or_string_p): Fix docstring.
24368 2008-02-01  Kenichi Handa  <handa@m17n.org>
24370         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24371         create a temporary XftDraw object.
24373 2008-02-01  Kenichi Handa  <handa@m17n.org>
24375         * font.c (Ffontp): Fix docstring.
24377         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24378         strong evidence of ISO-2022.
24380 2008-02-01  Kenichi Handa  <handa@m17n.org>
24382         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24383         SYNTAX_ENTRY_FOLLOW_PARENT.
24385 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
24387         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24388         its type.
24389         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24390         Update to the new type of weak_hash_tables and next_weak.
24392         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24393         a plain C pointer to Lisp_Hash_Table.
24395         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24396         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24397         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24398         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24399         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24400         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24401         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24402         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24403         (GC_EQ): Remove since they've been identical to their non-GC_
24404         alter-egos ever since the markbit was eradicated.
24406         * alloc.c:
24407         * buffer.c:
24408         * buffer.h:
24409         * data.c:
24410         * fileio.c:
24411         * filelock.c:
24412         * fns.c:
24413         * frame.h:
24414         * lisp.h:
24415         * macterm.c:
24416         * print.c:
24417         * process.c:
24418         * w32fns.c:
24419         * w32menu.c:
24420         * w32term.c:
24421         * xfns.c:
24422         * xmenu.c:
24423         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24425 2008-02-01  Kenichi Handa  <handa@m17n.org>
24427         * chartab.c (map_sub_char_table): Make it work for the top-level
24428         char-table.  Fix handling of parent char-table.
24429         (map_char_table): Adjust for the above change.
24431 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24433         * w32font.c (Qgdi): Rename from Qw32.
24435 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24437         * w32bdf.c (get_quoted_string): Make function static.
24439 2008-02-01  Kenichi Handa  <handa@m17n.org>
24441         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24442         bigger ascent and descent than those of the font, use them as
24443         font's ascent and descent.
24445 2008-02-01  Kenichi Handa  <handa@m17n.org>
24447         * Makefile.in (${lispsource}international/charprop.el): Move this
24448         target within "#ifdef HAVE_UNIDATA" and "#endif".
24450 2008-02-01  Kenichi Handa  <handa@m17n.org>
24452         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24453         (shortlisp): Add ../lisp/language/tai-viet.el.
24455 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
24457         * Makefile.in (${lispsource}international/charprop.el): Depend on
24458         temacs${EXEEXT}.
24460 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24462         * w32font.c (w32font_close): Delete the GDI font object.
24464         * w32menu.c: Include character.h.
24466         * w32proc.c: Likewise.
24468         * w32select.c: Likewise.
24470         * makefile.w32-in (w32proc.o): Depend on character.h.
24472 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24474         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24476         * w32menu.c (syms_of_w32menu): Likewise.
24478         * w32proc.c (syms_of_ntproc): Likewise.
24480         * w32select.c (syms_of_w32select): Likewise.
24482         * w32term.c (syms_of_w32term): Likewise.
24484 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24486         * w32font.c (w32font_draw): Delete brush after using it.
24488 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24490         * w32font.c (w32font_open): Don't set font_idx.
24491         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24492         to font settings.
24493         (w32font_draw): Fill background explicitly.
24495 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24497         * w32term.c (w32_initialize): Don't call w32font_initialize.
24499         * w32font.c (w32font_info): Remove subranges.
24500         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24501         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24502         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24503         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24504         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24505         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24506         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24507         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24508         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24509         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24510         New symbols.
24511         (font_callback_data): New struct.
24512         (w32font_list, w32font_match): Use it.
24513         (w32font_open): Don't populate subranges.
24514         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24515         (w32font_encode_char): Always return unicode code-point as-is.
24516         (w32font_text_extents): Supply a transformation matrix to
24517         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
24518         twice.  Use unicode version of GetTexExtentPoint32 instead of
24519         glyph index version.
24520         (set_fonts_frame): Remove.
24521         (w32_enumfont_pattern_entity): Add frame parameter, use it to
24522         set frame parameter.  Use backward compatible fake foundries.
24523         Save generic family in extra slot under QCfamily.  Make width slot
24524         constant.  Save QCspacing value.  Save list of scripts instead of
24525         binary subranges.
24526         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24527         (add_font_entity_to_list): Use font_callback_data struct.
24528         Filter unwanted fonts.
24529         (add_one_font_entity_to_list): Use font_callback_data struct.
24530         (w32_registry): Default to iso10646_1.
24531         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
24532         string font registries.  Don't fill in font name if it is a generic
24533         family name, fill family instead.  Use spacing, family and script
24534         extra info to fill pitch, family and charset fields.
24535         (list_all_matching_fonts): Use font_callback_data struct.
24536         (unicode_range_for_char): Remove.
24537         (font_supported_scripts): New function.
24538         (w32font_initialize): Remove.
24539         (syms_of_w32font): Update which symbols are defined.
24541 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24543         * font.c (font_pixel_size): Reverse assq_no_quit args.
24545         * w32term.h (FONT_WIDTH): Report max width, not average.
24546         (FONT_MAX_WIDTH): Remove.
24547         (FONT_AVG_WIDTH): New macro.
24549         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24550         redefinition of FONT_WIDTH.
24552         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24553         (w32_cache_char_metrics): Use FONT_WIDTH.
24555         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24557 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24559         * w32font.c (w32font_open): Make lfHeight negative.
24561         * w32fns.c (x_default_font_parameter): Use new style font name.
24562         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24564 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24566         * w32font.c (QCsubranges): New symbol.
24567         (w32font_open, w32font_has_char): Get subranges from subproperty
24568         of extra.
24569         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24570         (syms_of_w32font): Define :subranges symbol.
24572         * font.c (font_put_extra): Expose externally.
24574         * font.h (font_put_extra): Move declaration from font.c.
24576         * font.c (Ffont_get): Use font driver to determine otf capability.
24577         (adjust_anchor): Check if driver defines anchor_point before using.
24579         * w32font.c (w32font_open): Handle size, height and pixel_size better.
24580         (w32font_draw): Use options.
24581         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24582         Fix detection of truetype fonts.
24583         (registry_to_w32_charset): Handle charsets other than iso8859-1
24584         expressed as lisp symbols.
24585         (w32_registry): Express charset as lisp symbol.
24586         (fill_in_logfont): Reverse pixel and point height logic.
24587         Don't set width here.  Set quality to default.
24589         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24590         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24592         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24593         Remove redundant loop and allocation.
24595         * makefile.w32-in (font.o, w32font.o): New objects.
24596         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24597         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24599         * xdisp.c (fill_composite_glyph_string): Make the first arg to
24600         STORE_XCHARB a valid l-value.
24602         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24603         calculations for non-Truetype fonts.
24604         (x_draw_glyph_string): Sync with xterm.c.
24605         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24606         Remove redundant code.
24607         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24609         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24610         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24612         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24613         (x_to_w32_charset, w32_to_x_charset): Expose externally.
24615         * w32font.c: New file for w32 font backend.
24617 2008-02-01  Kenichi Handa  <handa@m17n.org>
24619         * term.c: Don't include "buffer.h" twice.
24621 2008-02-01  Kenichi Handa  <handa@m17n.org>
24623         * character.c (Funibyte_string): New function.
24624         (syms_of_character): Defsubr it.
24626 2008-02-01  Jason Rumney  <jasonr@gnu.org>
24628         * w32term.c [USE_FONT_BACKEND]:
24629         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24630         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24631         (x_draw_glyph_string, x_draw_glyph_string_foreground)
24632         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24633         (x_free_frame_resources): Sync with xterm.c.
24635 2008-02-01  Andreas Schwab  <schwab@suse.de>
24637         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24638         char-table size.
24640 2008-02-01  Kenichi Handa  <handa@m17n.org>
24642         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24644 2008-02-01  Kenichi Handa  <handa@m17n.org>
24646         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24647         font_otf_gpos, add font_drive_otf.
24649         * fontset.c (fontset_find_font): Pay attention to font size
24650         specified for a font.
24651         (reorder_font_vector): Check contents of font_def.
24653         * font.c (struct otf_list): Delete it.
24654         (otf_list): Make it a lisp variable.
24655         (otf_open): Use lispy otf_list.
24656         (generate_otf_features): Rename from parse_gsub_gpos_spec.
24657         (check_otf_features): New function.
24658         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24659         New functions.
24660         (font_drive_otf): New function merging font_otf_gsub and
24661         font_otf_gpos.
24662         (font_open_for_lface): New arg spec.  Change argument order.
24663         (font_load_for_face): Adjust for the change of font_open_for_lface.
24664         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24665         Ffont_otf_gpos.
24666         (syms_of_font): Staticpro otf_list.  Delete defsubr of
24667         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
24669         * xfaces.c (set_font_frame_param): Adjust for the change of
24670         font_open_for_lface.
24672         * font.h (font_open_for_lface): Adjust prototype.
24673         (struct font_driver): Delete members otf_gsub and otf_gpos, add
24674         member otf_drive.
24675         (font_otf_gsub, font_otf_gpos): Delete externs.
24676         (font_drive_otf): Extern it.
24678 2008-02-01  Kenichi Handa  <handa@m17n.org>
24680         * font.c (font_at): If the window W is not on a window system,
24681         return Qnil.
24683         * coding.c (produce_chars, encode_coding): Don't call
24684         insert_from_gap if no characters to produce.
24686 2008-02-01  Kenichi Handa  <handa@m17n.org>
24688         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24689         Fclear_face_cache.
24691         * xfaces.c (face_for_font): Check also face->font==font->font.font.
24693 2008-02-01  Miles Bader  <miles@gnu.org>
24695         * emacs.c (main): Change default value of `enable_font_backend' to 1.
24696         Parse "--disable-font-backend" option.
24697         (standard_args): Add "--disable-font-backend" option.
24699 2008-02-01  Kenichi Handa  <handa@m17n.org>
24701         * fontset.c (fontset_find_font): New function.
24702         (fontset_font): Use fontset_find_font.
24703         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24704         Register the specified font for all Latin characters.
24705         (new_fontset_from_font): Register the specified font for all Latin
24706         characters.
24707         (dump_fontset): For a realized fontset, include the base fontset
24708         name in the returned vector.
24710 2008-02-01  Kenichi Handa  <handa@m17n.org>
24712         * character.h (CHAR_STRING): Cast C to unsigned on calling
24713         char_string.
24715         * character.c (char_string): Type of arg C changed to unsigned.
24716         Signal an error if C is an invalid character code.
24718         * editfns.c (general_insert_function, Fchar_to_string):
24719         Use CHARACTERP, not INTEGERP.
24721 2008-02-01  Kenichi Handa  <handa@m17n.org>
24723         * character.h (MIN_MULTIBYTE_LEADING_CODE)
24724         (MAX_MULTIBYTE_LEADING_CODE): New macros.
24726         * regex.c (analyse_first): Fix for multibyte characters in "case
24727         charset:" and "case categoryspec:".
24729 2008-02-01  Andreas Schwab  <schwab@suse.de>
24731         * Makefile.in (LIBES): Move standard libraries to the end.
24733 2008-02-01  Kenichi Handa  <handa@m17n.org>
24735         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24736         nonzero, don't shrink the buffer nextb.
24738         * buffer.h (struct buffer_text): New member inhibit_shrinking.
24740         * coding.c (coding_alloc_by_making_gap): New arg offset.
24741         (alloc_destination): Call coding_alloc_by_making_gap with the arg
24742         offset.
24743         (decode_coding_iso_2022): Update coding->safe_charsets.
24744         (decode_coding_gap): Temporarily set
24745         current_buffer->text->inhibit_shrinking to 1.
24747 2008-02-01  Kenichi Handa  <handa@m17n.org>
24749         * xterm.c (x_draw_composite_glyph_string_foreground):
24750         Fix indexing into elements of s->cmp and s->char2b.
24752 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
24754         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24756 2008-02-01  Kenichi Handa  <handa@m17n.org>
24758         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24759         target_multibyte instead of multibyte.
24760         (re_match_2_internal): Call bcmp_translate with target_multibyte.
24761         (bcmp_translate): Change the argument name from multibyte to
24762         target_multibyte.
24764 2008-02-01  Kenichi Handa  <handa@m17n.org>
24766         These changes are to compile a regexp into a pattern that can be
24767         used both for multibyte and unibyte targets.
24769         * Makefile.in (search.o): Depend on charset.h.
24771         * character.c (multibyte_char_to_unibyte_safe): New function.
24773         * search.c: Include "charset.h".
24774         (compile_pattern_1): Delete argument multibyte.  Don't set
24775         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
24776         (compile_pattern): Don't compare cp->buf.target_multibyte.
24777         Compare cp->buf.charset_unibyte.
24778         (compile_pattern): Set cp->buf.target_multibyte.
24780         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24782         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24784         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24785         multibyte.  Change callers.
24786         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24787         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
24788         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24789         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24790         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24791         (regex_compile): Make the compiled pattern usable both for
24792         multibyte and unibyte targets.
24793         (analyse_first): Make the fastmap usable both for multibyte and
24794         unibyte targets.
24795         (TRANSLATE_VIA_MULTIBYTE): Delete.
24796         (re_match_2_internal): Pay attention to the case that the
24797         multibyteness of bufp and target may be different.
24799 2008-02-01  Kenichi Handa  <handa@m17n.org>
24801         * xdisp.c (x_produce_glyphs): When a font is not found, make the
24802         empty box occupy at least one column width.
24804 2008-02-01  Miles Bader  <miles@gnu.org>
24806         * Makefile.in: Remove redundant HAVE_XFT clause.
24808 2008-02-01  Kenichi Handa  <handa@m17n.org>
24810         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24812 2008-02-01  Kenichi Handa  <handa@m17n.org>
24814         * fontset.c (Finternal_char_font): Fix for the case of POSITION
24815         being nil.
24817 2008-02-01  Kenichi Handa  <handa@m17n.org>
24819         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24821 2008-02-01  Kenichi Handa  <handa@m17n.org>
24823         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24825 2008-02-01  Kenichi Handa  <handa@m17n.org>
24827         * search.c (simple_search): Fix previous change.
24829 2008-02-01  Kenichi Handa  <handa@m17n.org>
24831         * xftfont.c (ftfont_font_format): Extern declaration.
24833         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24835         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24836         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24838         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24839         (ftfont_font_format): Fix previous change.
24841         * font.h (Ffont_xlfd_name): EXFUN it.
24843         * font.c (font_parse_xlfd): Fix the array size of `f'.
24844         (register_font_driver): Use EQ to compare driver->type.
24846         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24847         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24848         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24850 2008-02-01  Kenichi Handa  <handa@m17n.org>
24852         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24853         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24855 2008-02-01  Kenichi Handa  <handa@m17n.org>
24857         * xfont.c (xfont_open): Set font->format.
24859         * xftfont.c (xftfont_open): Set font->format.
24861         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24862         (ftfont_list): Include FC_FONTFORMAT in FcObject.
24863         (ftfont_open): Set font->format.
24864         (ftfont_font_format): New function.
24866         * font.h (struct font): New member format.
24868         * font.c (Qopentype): New variable.
24869         (syms_of_font): Defsym it.
24870         (Fquery_font): Change the format of the last element of the return
24871         value.
24873 2008-02-01  Kenichi Handa  <handa@m17n.org>
24875         * xfns.c (xic_create_xfontset): Try the default fontset name as a
24876         last resort.
24878 2008-02-01  Kenichi Handa  <handa@m17n.org>
24880         * coding.c (detect_coding_charset): Fix detection of multi-byte
24881         charset.
24883 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
24885         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24887 2008-02-01  Kenichi Handa  <handa@m17n.org>
24889         * xdisp.c (get_next_display_element): Set it->face_id for the
24890         first component of a composition.
24891         (x_produce_glyphs): Check if the font is changed or not for composition.
24893 2008-02-01  Kenichi Handa  <handa@m17n.org>
24895         * fontset.c (Qlatin): New variable.
24896         (syms_of_fontset): Define it as a lisp symbol.
24897         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24899 2008-02-01  Kenichi Handa  <handa@m17n.org>
24901         * font.c (font_unparse_fcname): Pay attention to the case that
24902         some of font property is a null string.
24904 2008-02-01  Kenichi Handa  <handa@m17n.org>
24906         * term.c: Include "composite.h".
24907         (encode_terminal_code): Output all components of composition.
24908         Check the size of encode_terminal_src.
24909         (produce_glyphs): For composition, call produce_composite_glyph.
24910         (append_composite_glyph, produce_composite_glyph): New functions.
24912         * xdisp.c (x_produce_glyphs): In handling composition, if a font
24913         is not found, get font_info from the current ascii face.
24915 2008-02-01  Kenichi Handa  <handa@m17n.org>
24917         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24918         buffer-file-name to Qnil before calling insert_from_buffer.
24920         * font.c (font_unparse_fcname): Pay attention to the case that
24921         foundry is a null string.
24923 2008-02-01  Kenichi Handa  <handa@m17n.org>
24925         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24927         * font.c (Qunicode_sip): New variable.
24928         (syms_of_font): Declare it as a Lisp symbol.
24930         * font.h (Qunicode_sip): Extern it.
24932 2008-02-01  Kenichi Handa  <handa@m17n.org>
24934         * composite.c (get_composition_id): Pay attention to TAB component.
24936         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24937         TAB.  Adjust for the change of s->char2b which always points to
24938         the first element of allocated memory.
24940         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24942         * xdisp.c (handle_composition_prop): Set it->c to the first
24943         non-TAB component.
24944         (fill_composite_glyph_string): Change argument.
24945         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24946         (x_produce_glyphs): Fix handling of left/right padding.
24948 2008-02-01  Kenichi Handa  <handa@m17n.org>
24950         * coding.c (detect_coding_system): Fix for handling off
24951         inhibit_iso_escape_detection.  Fix for the case that no coding
24952         system is defined for a specific coding category.
24954 2008-02-01  Kenichi Handa  <handa@m17n.org>
24956         * font.c (font_matching_entity): Delete unused local var.
24958         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24959         opening a font.
24961         * fileio.c (Finsert_file_contents): On recovering a file, assume
24962         Unix-like eol.
24963         (choose_write_coding_system): On auto-saving a file, force
24964         Unix-like eol.
24966         * coding.c (setup_coding_system): Fix setting of
24967         coding->common_flags based on eol_type.
24968         (coding_inherit_eol_type): If PARENT is not nil, be sure to
24969         inherit from it.
24971 2008-02-01  Kenichi Handa  <handa@m17n.org>
24973         * alloc.c (NSTATICS): Increas to 0x600.
24975 2008-02-01  Kenichi Handa  <handa@m17n.org>
24977         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24978         (ftfont_list): Don't check :name property.
24979         (ftfont_match): New function.
24980         (ftfont_pattern_entity): If the pattern doesn't contain
24981         FC_SPACING, don't assume FC_MONO.
24983         * font.h (struct font_driver): New member `match'.
24984         (font_update_drivers): Adjust prototype.
24986         * font.c (font_parse_fcname, font_parse_name): Don't change :name
24987         property of FONT.
24988         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24989         Define them unconditionally.
24990         (font_matching_entity): New function.
24991         (font_open_by_name): Try font_matching_entity if exact match is
24992         not found.
24993         (font_update_drivers): Delete the arg FONT.  Return a list of
24994         actually used backends.  Don't free faces, font caches here.
24995         Don't store data in frame parameters.  Don't call x_set_font.
24996         (Ffont_spec): Store :name property as is.
24997         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24998         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24999         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25000         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25001         Call font->driver->otf_gsub instead of font_otf_gsub.
25003         * frame.c (x_set_font_backend): Do more works that were done in
25004         font_update_drivers before.
25006         * xfont.c (xfont_match): New function.
25007         (xfont_driver): Set xfont_driver.match to xfont_match.
25008         (xfont_draw): Set font in GC if necessary.
25010         * ftxfont.c (ftxfont_match): New function.
25011         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25013         * xftfont.c (xftfont_match): New function.
25014         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25016 2008-02-01  Kenichi Handa  <handa@m17n.org>
25018         * font.h (struct font): New member scalable.
25019         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25020         (font_otf_gsub): Adjust prototype.
25022         * font.c (font_otf_capability): Fix handling of the default langsys.
25023         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
25024         Check the contents of SPEC.
25025         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25026         (check_gstring): New function.
25027         (REPLACEMENT_CHARACTER): New macro.
25028         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
25029         glyph codes of GSTRING.
25030         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25031         (font_prepare_composition): Set cmp->glyph_len.
25032         (font_open_entity): Set font->scalable.
25033         (Ffont_get): Handle :otf property.
25034         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25035         New functions.
25036         (Fquery_font): Use font->font.full_name.
25037         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25038         Sfont_otf_alternates.
25040         * ftfont.c (ftfont_open): Set font->font.full_name and
25041         font->font.name properly.  Fix calculation of font->font.height
25042         and font->min_width.
25044         * ftxfont.c (ftxfont_create_gcs): New function.
25045         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25046         (ftxfont_draw_backgrond): Fix filling region.
25047         (ftxfont_default_fid): New function.
25048         (ftxfont_open): Set xfont->fid to the return value of
25049         ftxfont_default_fid.
25050         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25051         (ftxfont_done_face): Free only GCs that are created by
25052         ftxfont_create_gcs.
25053         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25055         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25056         Clip to src->width, etc (not src->clip_XXX).
25058         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25059         FontBackend frame parameter.
25061 2008-02-01  Kenichi Handa  <handa@m17n.org>
25063         * font.h (struct font_driver_list): New member `on'.
25064         (Fclear_font_cache): EXFUN it.
25065         (font_update_drivers): Extern it.
25067         * font.c (font_unparse_fcname): Fix typo (swidth->width).
25068         (font_list_entities): Check driver_list->on.
25069         (register_font_driver): Initialize `on' member to 0.
25070         (font_update_drivers): New function.
25071         (Fclear_font_cache): Check driver_list->on.
25073         * frame.h (Qfont_backend): Extern it.
25074         (x_set_font_backend): Extern it.
25076         * frame.c (Qfont_backend): New variable.
25077         (frame_parms): New element for font-backend.
25078         (x_set_font_backend): New function.
25080         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25081         FontBackend frame parameter.
25082         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25083         x_set_font_backend.
25085         * xfont.c (xfont_list): Don't try listing by :name property if the
25086         name is not for XLFD.
25088 2008-02-01  Kenichi Handa  <handa@m17n.org>
25090         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25091         (LGLYPH_SET_TO): New macros.
25092         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25093         element of G is vector or not.
25094         (font_at): Extern it.
25096         * font.c: Include window.h.
25097         (font_lispy_object): New function.
25098         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25099         end of valid glyph.
25100         (font_close_object): Fix getting (struct font *).
25101         (font_at): New function.
25102         (Ffont_get): If FONT is a font-object, get entity from it.
25103         (Ffont_make_gstring): Initialize elements of glyphs with nil.
25104         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25105         Fix range check.
25106         (Ffont_at): New function.
25107         (syms_of_font): Defsubr Sfont_at.
25109         * xdisp.c (it_props): Move the entry for Qauto_composed to just
25110         before the entry for Qcomposition.
25111         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25112         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25113         the font in gstring.
25114         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25115         LGLYPH_FORM (g) to detect the end of valid glyph.
25116         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25117         we are composing with gstring.
25119         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25120         Check if adjustment is vector or not.
25122         * Makefile.in (font.o): Make it depends on window.h.
25124 2008-02-01  Kenichi Handa  <handa@m17n.org>
25126         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25127         adjustment is vector or not.
25129 2008-02-01  Miles Bader  <miles@gnu.org>
25131         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25133 2008-02-01  Kenichi Handa  <handa@m17n.org>
25135         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25136         (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25137         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25139         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25140         (DEVICE_DELTA): Fix typo.
25141         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25142         LGLYPH format.
25144         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25145         the change of LGLYPH format.
25147 2008-02-01  Kenichi Handa  <handa@m17n.org>
25149         * ftfont.c (ftfont_list): Fix typo.
25150         (ftfont_build_basic_charsets): Don't include letters with diacritics.
25152 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
25154         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25156         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25157         xftface_info is non-NULL.
25159 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
25161         * ftfont.c (ftfont_list): Move misplaced #endif.
25163 2008-02-01  Kenichi Handa  <handa@m17n.org>
25165         * ftfont.c (ftfont_list): Pay attention to the case that
25166         FC_CAPABILITY is not defined.
25168 2008-02-01  Kenichi Handa  <handa@m17n.org>
25170         * xftfont.c (xftfont_open): Set charset related members to -1.
25172         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
25173         QCname.
25174         (ftfont_open): Set charset related members to -1.
25176         * fontset.c (Votf_script_alist): New variable.
25177         (syms_of_fontset): Initialize it.
25178         (fontset_font): Delete unused variable.
25180         * fontset.h (Votf_script_alist): Extern it.
25182         * font.c (font_find_for_lface): Optimize code.
25184         * font.h (font_close_object, font_merge_old_spec): Extern them.
25186 2008-02-01  Kenichi Handa  <handa@m17n.org>
25188         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25189         (syms_of_font): Initialize them.
25190         (font_pixel_size): Allow float value in dpi.
25191         (font_prop_validate_type): Delete.
25192         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25193         Change caller.
25194         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25195         (font_prop_validate_extra): Delete.
25196         (font_prop_validate_spacing): New function.
25197         (font_property_table): Add elements for all known properties.
25198         (get_font_prop_index): Rename from check_font_prop_name.
25199         New argument FROM.  Change caller.
25200         (font_prop_validate): Validate all known properties.
25201         (font_put_extra): Delete argument force.  Change caller.
25202         (font_expand_wildcards): Make it static.  Fix the way of shrinking
25203         the possible range.
25204         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
25205         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
25206         Change caller.
25207         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25208         (font_parse_fcname): Delete argument merge.  Fix parsing of point
25209         size.  Don't validate properties values here.  Change caller.
25210         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25211         (font_open_by_name): Delete unused variable.
25212         (Ffont_spec): Likewise.  Validate property values.
25213         (Ffont_match_p): New function.
25215         * font.h (QCscalable): Extern it.
25216         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25218         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25220         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25221         (xfont_list_pattern): New function.
25222         (xfont_list): Use xfont_list_pattern.
25224 2008-02-01  Kenichi Handa  <handa@m17n.org>
25226         * font.h (Flist_fonts): EXFUN it.
25228 2008-02-01  Jason Rumney  <jasonr@gnu.org>
25230         * w32term.c (w32_initialize): Add back smoothing_type and
25231         smoothing_enabled definitions.
25233 2008-02-01  Kenichi Handa  <handa@m17n.org>
25235         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25236         s->face->font on determining underline position.
25238 2008-02-01  Kenichi Handa  <handa@m17n.org>
25240         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25241         (font_has_char): Accept font-object too.
25242         (font_find_for_lface): Try at first with a size specified in face.
25244 2008-02-01  Kenichi Handa  <handa@m17n.org>
25246         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25247         font_open_by_name.
25249 2008-02-01  Kenichi Handa  <handa@m17n.org>
25251         * font.h (QCspacing, QCdpi): Extern them.
25252         (enum font_spacing): New enum.
25253         (FONT_PIXEL_SIZE_QUANTUM): New macro.
25255         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25256         (QCspacing, QCdpi): New variables.
25257         (syms_of_font): Initialize them.
25258         (font_pixel_size): New function.
25259         (font_put_extra): New function.
25260         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
25261         in FONT_EXTRA.
25262         (font_parse_fcname): Handle enumerated values (e.g. bold).
25263         Fix handling font size.  Add QCname property that contains only
25264         unknown properties.
25265         (font_score): Change argument.  Change caller.  Pay attention to
25266         FONT_PIXEL_SIZE_QUANTUM.
25267         (font_sort_entites, font_list_entities, font_find_for_lface)
25268         (font_open_for_lface, font_open_by_name): Fix handling of font size.
25269         (Ffont_spec): Add QCname property that contains only unknown properties.
25271         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25272         Don't include weight in listing pattern, instead check weight of each
25273         listed font.  Don't include scalable in pattern.  Pay attention to
25274         FONT_PIXEL_SIZE_QUANTUM.
25276 2008-02-01  Kenichi Handa  <handa@m17n.org>
25278         * font.c (font_parse_fcname): Fix parsing of point-size.
25279         (font_unparse_fcname): Produce symbolic names for style properties.
25280         (font_list_entities): Handle float size correctly.
25281         (font_open_by_name): Prefer `normal' property values if the name
25282         doesn't specify them.
25284         * fontset.c (Finternal_char_font): Use font_get_name, not
25285         Ffont_xlfd_name.
25287         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25288         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25289         pattern.  Don't force scalable.
25291         * xftfont.c (xftfont_open): For generating a name, start from
25292         96-byte buffer.
25294 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
25296         * frame.h (x_new_fontset2): Fix prototype.
25298 2008-02-01  Kenichi Handa  <handa@m17n.org>
25300         * font.h (struct font_driver): Delete member parse_name.
25301         (font_match_p, font_get_spec, font_parse_fcname)
25302         (font_unparse_fcname): Extern them.
25303         (font_get_name): Adjust prototype.
25305         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25306         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25307         (font_expand_wildcards): Fix handling ENCODING field.
25308         Avoid unnecessary checks for weight, slant, and swidth.
25309         (font_parse_fcname): New function.
25310         (font_unparse_fcname): New function.
25311         (font_parse_name): New function.
25312         (font_match_p): New function.
25313         (font_get_name): Change return value to Lisp string.
25314         (font_get_spec): New function.
25315         (Qunspecified, Qignore_defface): Don't extern them.
25316         (font_find_for_lface): Assume that LFACE is fully specified.
25317         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25318         object, use it for FACE.
25319         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
25320         driver->parse_name.
25321         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25323         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25324         prototype.
25326         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25327         argument F.  Don't call Fnew_fontset.  Instead, directly call
25328         make_fontset.
25330         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25332         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25333         of x_new_fontset2.
25335         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25336         (Qsans__serif): New variables.
25337         (ftfont_generic_family_list): New variable.
25338         (syms_of_ftfont): Initialize the above variables.
25339         (ftfont_pattern_entity): Delete argument NAME.
25340         (ftfont_list_generic_family): New function.
25341         (ftfont_parse_name): Delete this function.
25342         (ftfont_list): Try generic family only when FcFontList found no font.
25343         (ftfont_list_family): Fix args to FcObjectSetBuild.
25345         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25346         object in attrs[LFACE_FONT_INDEX].
25347         (set_lface_from_font_name): Cancel all changes for font-backend.
25348         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25349         function.
25350         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25351         font object in QCfont attribute.
25352         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25353         (realize_default_face) [USE_FONT_BACKEND]: Call
25354         set_lface_from_font_and_fontset.
25356         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25357         "fixed", and signal error here if no suitable font was found.
25359         * xfont.c (xfont_parse_name): Delete this function.
25361         * xftfont.c (xftfont_open): Change coding style of error
25362         handling.  Generate fontconfig's fontname pattern.
25364         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25365         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25367         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25368         Both args FONTSET and FONT_OBJECT must be existing ones.
25370 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25372         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25374 2008-02-01  Kenichi Handa  <handa@m17n.org>
25376         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25378         * font.h (struct font): Fix typo.
25380         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25381         XLFD_XXX_INDEX.
25382         (enum xlfd_field_mask): New enum.
25383         (intern_font_field): Change argument.  Change caller.  If digits
25384         are followed by non-digits, return a symbol.
25385         (font_expand_wildcards): New function.
25386         (font_parse_xlfd): Fix wildcard handling.
25387         (Ffont_spec): If :name is specified, reflect the info in the other
25388         properties.
25390         * ftfont.c (ftfont_pattern_entity): Fix typo.
25391         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25392         locale.
25394 2008-02-01  Kenichi Handa  <handa@m17n.org>
25396         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25398         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25399         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
25400         registry doesn't specify encoding part.
25401         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25402         (font_open_by_name): At first try parsing the name.
25403         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25404         as Lisp symbols.
25406         * fontset.c (reorder_font_vector): Pay attention to the case that
25407         the 3rd element of font_def is nil.
25408         (fontset_font): For the default fontset, append one more fontset
25409         elements for a script-based font specification.  Don't add script
25410         attribute on finding a font.
25411         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25412         font name.
25413         (fontset_ascii_font): If a font can't be opened, return nil.
25415         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25416         (ftfont_pattern_entity): New function.
25417         (ftfont_get_cache): Assume that freetype_font_cache is already
25418         initialized.
25419         (ftfont_list): Handle the case that a file is specified in font
25420         name.  Use ftfont_pattern_entity to generate entities.
25421         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25422         (syms_of_ftfont): Initialize freetype_font_cache.
25424         * xftfont.c (xftfont_open): Make the font name fontconfig's
25425         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
25426         (xftfont_close): Free font->font.name if not NULL.
25428         * xfont.c (xfont_list): If script is specified for a font, return
25429         null_vector.
25430         (xfont_list_family): Declare argument type.
25432         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25433         name, set LFACE_FONT (lface) to nil.
25435         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25436         return Qnil.
25438 2008-02-01  Kenichi Handa  <handa@m17n.org>
25440         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25441         (standard_args): Add "-enable-font-backend".
25443 2008-02-01  Kenichi Handa  <handa@m17n.org>
25445         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25446         (struct xftdraw_list, xftdraw_list): Delete them.
25447         (register_xftdraw, check_xftdraw): Delete them.
25448         (xftfont_prepare_face): Don't call register_xftdraw.
25449         (xftfont_done_face): Don't call check_xftdraw.
25450         (xftfont_draw): Get background color only when with_background is
25451         nonzero.
25453         * xfont.c (xfont_encode_char): Fix calculation of char2b.
25455 2008-02-01  Kenichi Handa  <handa@m17n.org>
25457         These changes are for the new font handling codes.
25459         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25460         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25461         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25462         (FONTSRC, FONTOBJ): New variables.
25463         (obj): Add $(FONTOBJ).
25464         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25465         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25466         @LIBOTF_LIBS@.
25467         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25468         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25470         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25472         * character.h (Vscript_representative_chars): Extern it.
25474         * character.c (Vscript_representative_chars): New variable.
25475         (syms_of_character): Declare it as a Lisp variable.
25477         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25478         enable_font_backend is nonzero, accept the composition method
25479         COMPOSITION_WITH_GLYPH_STRING.
25481         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25482         enumeration COMPOSITION_WITH_GLYPH_STRING.
25484         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25485         members clip_x, clip_y, clip_width, and clip_height.
25486         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25488         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25489         --enable-font-backend.  Call syms_of_font.
25491         * fns.c (assoc_no_quit): New function.
25493         * fontset.h (FONT_INFO_FROM_FACE): New macro.
25494         (face_for_font, new_fontset_from_font)
25495         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25497         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25498         (fontset_font, fontset_ascii, face_for_char)
25499         (make_fontset_for_ascii_face, Ffont_info)
25500         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25501         is nonzero, use font-backend mechanism.
25502         (find_font_encoding): Make it non-static.
25503         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25504         New functions.
25506         * frame.h (struct frame): New members resx and resy.
25507         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25508         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25510         * frame.c [USE_FONT_BACKEND]: Include "font.h".
25511         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25513         * lisp.h (assoc_no_quit): Extern it.
25515         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25516         Through out the file, use FONT_INFO_FROM_FACE instead of
25517         FONT_INFO_FROM_ID, use get_per_char_metric instead of
25518         rif->per_char_metric.
25519         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25520         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25521         (get_glyph_face_and_encoding, fill_composite_glyph_string)
25522         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25523         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25524         nonzero, use font-backend mechanism.
25525         (get_per_char_metric): New function.
25527         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25528         (set_lface_from_font_name)
25529         (set_font_frame_param, free_realized_face)
25530         (prepare_face_for_display, clear_face_gcs)
25531         (Finternal_set_font_selection_order, realize_x_face)
25532         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25533         font-backend mechanism.
25534         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25535         (load_face_font) [USE_FONT_BACKEND]: Abort.
25536         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25537         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25539         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25540         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25541         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25542         nonzero, register all available font drivers.
25543         Call x_default_font_parameter for deciding a font.
25544         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25546         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25547         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25548         (x_set_glyph_string_clipping_exactly)
25549         (x_compute_glyph_string_overhangs)
25550         (x_draw_glyph_string_foreground)
25551         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25552         (x_free_frame_resources) [USE_FONT_BACKEND]: If
25553         enable_font_backend is nonzero, use font-backend mechanism.
25554         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25556 2008-02-01  Kenichi Handa  <handa@m17n.org>
25558         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25559         system_eol_type.
25560         (syms_of_coding): Initialize system_eol_type.
25562         * process.c (Fset_process_coding_system): Inherit system's eol
25563         format if necessary.
25565 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25567         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25569 2008-02-01  Kenichi Handa  <handa@m17n.org>
25571         * coding.c (decode_eol): Pay attention to buffer relocation in
25572         del_range_2.
25573         (decode_coding): Call decode_eol before restoring undo_list.
25575 2008-02-01  Kenichi Handa  <handa@m17n.org>
25577         * charset.c (Fdefine_charset_internal): Fix setting of
25578         emacs_mule_bytes.
25580 2008-02-01  Kenichi Handa  <handa@m17n.org>
25582         * keyboard.c (read_char): Check if C is a character or not before
25583         looking up Vkeyboard_translate_table.
25585 2008-02-01  Kenichi Handa  <handa@m17n.org>
25587         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25588         Fix condition to terminate the loop.
25590 2008-02-01  Kenichi Handa  <handa@m17n.org>
25592         * coding.c (produce_composition): Compare charbuf[i] instead of
25593         args[i] against 0.
25594         (Fterminal_coding_system): Use EQ to compare Lisp objects.
25596 2008-02-01  Kenichi Handa  <handa@m17n.org>
25598         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25599         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25600         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25601         detect_coding.
25602         (emacs_mule_char): Handle old style (Emacs 20) component character
25603         of a composition.
25604         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25605         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25606         composition rule.
25607         (decode_coding_emacs_mule): Handle invalid bytes correctly.
25609 2008-02-01  Kenichi Handa  <handa@m17n.org>
25611         * coding.c (encode_coding_ccl): Allocate destination dynamically
25612         when necessary.
25614 2008-02-01  Kenichi Handa  <handa@m17n.org>
25616         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25617         the loop.  When quitted, show a proper error message.
25619 2008-02-01  Kenichi Handa  <handa@m17n.org>
25621         * xterm.c (x_set_glyph_string_clipping_exactly):
25622         Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25624         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25625         character sequence.
25626         (Fccl_execute_on_string): Use ASET, not XSET.
25628 2008-02-01  Kenichi Handa  <handa@m17n.org>
25630         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25632 2008-02-01  Kenichi Handa  <handa@m17n.org>
25634         * coding.c (decode_coding): Fix the condition of terminating the
25635         decoding loop.
25637 2008-02-01  Kenichi Handa  <handa@m17n.org>
25639         * data.c (Faset): On setting a character bigger than 255 in a
25640         unibyte string, signal an error instead of make the string multibyte.
25642 2008-02-01  Kenichi Handa  <handa@m17n.org>
25644         * charset.c (map_charset_chars): Fix for ascii-compatible charset
25645         made by a mapping table.
25647 2008-02-01  Kenichi Handa  <handa@m17n.org>
25649         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25650         not.
25651         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25652         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25654         * xterm.c (x_draw_composite_glyph_string_foreground):
25655         Check s->face is NULL or not.
25657 2008-02-01  Kenichi Handa  <handa@m17n.org>
25659         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25660         (x_draw_glyph_string): Fix drawing of right_overhang and
25661         left_overhang around/on cursor.
25663         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25665 2008-02-01  Kenichi Handa  <handa@m17n.org>
25667         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25669 2008-02-01  Kenichi Handa  <handa@m17n.org>
25671         * coding.c (Fdefine_coding_system_internal)
25672         (Fdefine_coding_system_alias): Avoid a duplicated element in
25673         Vcoding_system_alist.
25675 2008-02-01  Kenichi Handa  <handa@m17n.org>
25677         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25679         * coding.c (Qcoding_system_define_form): New variable.
25680         (syms_of_coding): Intern and staticpro it.
25681         (Fcoding_system_p): Check Qcoding_system_define_form.
25682         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25684         * coding.h (CODING_SYSTEM_P): If ID is not available, call
25685         Fcoding_system_p.
25686         (CHECK_CODING_SYSTEM): If ID is not available, call
25687         Fcheck_coding_system.
25688         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25689         Try also Fcheck_coding_system.
25691 2008-02-01  Kenichi Handa  <handa@m17n.org>
25693         * coding.c (code_conversion_restore): GCPRO arg.
25695 2008-02-01  Kenichi Handa  <handa@m17n.org>
25697         * character.c (lisp_string_width): Check multibyteness of STRING.
25699 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25701         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25702         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
25703         (decode_mac_font_name): Use decode_coding_c_string instead of
25704         decode_coding.
25705         (x_load_font): Initialize fontp->fontset to -1.
25706         Set fontp->encoding_type.
25708 2008-02-01  Kenichi Handa  <handa@m17n.org>
25710         * search.c (search_buffer): Give up BM search on case-fold-search
25711         if one of a target character has a case-equivalence of different
25712         byte length even if that target character is an ASCII.
25713         (simple_search): Fix calculation of byte length of matched text.
25714         (boyer_moore): Fix handling of case-equivalent multibyte characters.
25716 2008-02-01  Kenichi Handa  <handa@m17n.org>
25718         * coding.c (decode_coding): Fix handling of invalid bytes.
25720 2008-02-01  Kenichi Handa  <handa@m17n.org>
25722         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25723         Unicode characters.
25725 2008-02-01  Kenichi Handa  <handa@m17n.org>
25727         * coding.c (encode_coding_object): If a pre-write-conversion
25728         function makes a new buffer, kill it.
25730 2008-02-01  Kenichi Handa  <handa@m17n.org>
25732         * coding.c (QCascii_compatible_p): New variable.
25733         (syms_of_coding): Initialize it.
25734         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25735         calling string_char.
25736         (record_conversion_result): Add `default:' case.
25737         (coding_charset_list): Delete unused variable `coding_type'.
25738         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25739         property in the plist of the coding system.
25740         (Fcoding_system_put): Check QCascii_compatible_p.
25742 2008-02-01  Miles Bader  <miles@gnu.org>
25744         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25745         removed calculation of frame `f', as it's now used.
25747 2008-02-01  Kenichi Handa  <handa@m17n.org>
25749         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25750         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25751         (UNIDATA): New variable.
25752         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25753         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25754         Run $(RUN_TEMACS) unconditionally.
25756 2008-02-01  Kenichi Handa  <handa@m17n.org>
25758         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25759         (admindir): New variable.
25760         ($(lispsource)international/charprop.el): New target.
25762 2008-02-01  Miles Bader  <miles@gnu.org>
25764         * character.c (chars-in-region): Remove obsolete function.
25765         (syms_of_character): Remove its initialization.
25767 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
25769         * w32select.c (validate_coding_system)
25770         (setup_windows_coding_system): New functions.
25771         (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25772         Use setup_windows_coding_system.
25773         (setup_config, Fw32_get_clipboard_data):
25774         Use validate_coding_system.
25775         (Fx_selection_exists): Move call to setup_config to a place
25776         where signals are allowed.
25778         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25779         (Fcheck_coding_system): Add declarations.
25781 2008-02-01  Kenichi Handa  <handa@m17n.org>
25783         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25785 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25787         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25788         string as the second argument for x_new_fontset.
25790 2008-02-01  Kenichi Handa  <handa@m17n.org>
25792         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25793         (encode_coding_object): Use safe_call instead of call2.
25795 2008-02-01  Kenichi Handa  <handa@m17n.org>
25797         * fontset.c (Fset_fontset_font): Check family element of a given vector.
25799         * Makefile.in (lisp): Include charprop.el.
25801 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25803         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25804         Not sure if it's unnecessary.
25806 2008-02-01  Steven Tamm  <steventamm@mac.com>
25808         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25809         some possibly unnecessary fontset checking code that crashed
25810         when creating a new frame.
25812 2008-02-01  Kenichi Handa  <handa@m17n.org>
25814         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25815         lookup_face.
25817         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25819         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25821 2008-02-01  Kenichi Handa  <handa@m17n.org>
25823         * coding.c: Cancel the change done in HEAD on 2008-02-01.
25824         (coding_charset_list): New function.
25826         * coding.h (coding_charset_list): Extern it.
25828 2008-02-01  Kenichi Handa  <handa@m17n.org>
25830         * fontset.c (Fset_fontset_font): Call find_font_encoding with
25831         concatenation of family and registry.
25833 2008-02-01  Kenichi Handa  <handa@m17n.org>
25835         * character.h (BYTE8_STRING): Fix typo.
25837         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25838         string to multibyte (sync to HEAD).
25840         * casefiddle.c (casify_region): Handle changes in byte-length
25841         using replace_range_2 (sync to HEAD).
25843 2008-02-01  Andreas Schwab  <schwab@suse.de>
25845         * chartab.c (map_char_table): GCPRO table and arg.
25847 2008-02-01  Kenichi Handa  <handa@m17n.org>
25849         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25850         already at limit.
25852 2008-02-01  Kenichi Handa  <handa@m17n.org>
25854         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25855         instead of fast_c_string_match_ignore_case.
25856         (find_font_encoding): Change argument to Lisp_Object.
25857         Use fast_string_match_ignore_case instead of
25858         fast_c_string_match_ignore_case.  Change caller.
25860 2008-02-01  Kenichi Handa  <handa@m17n.org>
25862         * xdisp.c (get_next_display_element): In unibyte case, decide to
25863         display in octal form by checking a character by
25864         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25866         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25868         * character.c (unibyte_has_multibyte_table): New variable.
25870         * character.h (unibyte_has_multibyte_table): Extern it.
25871         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25873 2008-02-01  Kenichi Handa  <handa@m17n.org>
25875         * coding.c (encode_coding_iso_2022): Fix handling of charset
25876         annotation.
25878 2008-02-01  Kenichi Handa  <handa@m17n.org>
25880         * coding.c (setup_coding_system): If coding_system is nil, use
25881         Qundecided.
25882         (Fterminal_coding_system): Return nil if terminal coding system is
25883         `undecided'.
25884         (syms_of_coding): Define coding-system `undecided' here.
25885         Setup terminal_coding as `undecided'.
25887 2008-02-01  Kenichi Handa  <handa@m17n.org>
25889         * xdisp.c (message_dolog, set_message_1):
25890         Call unibyte_char_to_multibyte with arg type int.
25892         * lread.c (read1): Fix reading of a char-table.
25894         * print.c (print_object): Include sub char-table in circularities
25895         detection.
25897 2008-02-01  Kenichi Handa  <handa@m17n.org>
25899         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25900         Append the found sequences in car of ARGS instead of prepending.
25902 2008-02-01  Kenichi Handa  <handa@m17n.org>
25904         * fileio.c (report_file_error): Make a unibyte string from
25905         strerror (errorno).
25906         (Fsubstitute_in_file_name): Fix the arg to
25907         unibyte_char_to_multibyte.  It is evaluated twice.
25909 2008-02-01  Kenichi Handa  <handa@m17n.org>
25911         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25913 2008-02-01  Kenichi Handa  <handa@m17n.org>
25915         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25916         BOM is not found.
25917         (detect_coding, detect_coding_system): Optimization for ISO-2022
25918         when no 8-bit data is found.
25920 2008-02-01  Jason Rumney  <jasonr@gnu.org>
25922         * w32fns.c (x_to_w32_font): Update to use new coding struct.
25924 2008-02-01  Kenichi Handa  <handa@m17n.org>
25926         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25927         CHARS.
25929 2008-02-01  Steven Tamm  <steventamm@mac.com>
25931         * macterm.c (mac_encode_char): Add charset argument and update
25932         to use encoding_type.
25933         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25934         switch to pure fontset.
25935         (decode_mac_font_name): Temporarily remove decoding.
25936         (x_font_name_to_mac_font_name): Temporarily remove encoding.
25937         (x_load_font): Temporarily remove encoding.
25939 2008-02-01  Kenichi Handa  <handa@m17n.org>
25941         * xfaces.c (Fface_font): If frame is not on a window system,
25942         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
25943         refer to face->font.
25944         (split_font_name_into_vector, build_font_name_from_vector)
25945         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25946         when HAVE_WINDOW_SYSTEM is defined.
25948 2008-02-01  Kenichi Handa  <handa@m17n.org>
25950         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25951         (x_produce_glyphs): Fix setting of members of cmp in case
25952         cmp->glyph_len is zero.
25954         * fontset.c (Fset_fontset_font): Fix docstring.
25955         (Ffontset_info): Make it backward compatible.  New arg ALL.
25957 2008-02-01  Kim F. Storm  <storm@cua.dk>
25959         * process.c (read_process_output): Grow decoding_buf when needed;
25960         this could cause a crash in allocate_string and compact_small_strings.
25962 2008-02-01  Kenichi Handa  <handa@m17n.org>
25964         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25966 2008-02-01  Kenichi Handa  <handa@m17n.org>
25968         * coding.c (setup_coding_system): Set coding->common_flags
25969         correctly for raw-text.
25970         (consume_chars): On encoding unibyte text by raw-text, don't check
25971         multibyte form.
25972         (encode_coding): On encoding by raw-text, never use translation tables.
25974         * fileio.c (e_write): Short cut for the case of no encoding.
25976 2008-02-01  Kenichi Handa  <handa@m17n.org>
25978         * coding.c (detect_coding, detect_coding_system): Delete unused
25979         variables.
25981 2008-02-01  Kenichi Handa  <handa@m17n.org>
25983         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25984         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25986 2008-02-01  Kenichi Handa  <handa@m17n.org>
25988         * coding.c (Ffind_coding_systems_region_internal):
25989         Include raw-text and no-conversion in the result.
25991 2008-02-01  Kenichi Handa  <handa@m17n.org>
25993         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25994         (load_font_get_repertory): Delete unnecessary check of ENCODING of
25995         FONT_DEF.
25996         (font_def_arg, add_arg, from_arg, to_arg): New args.
25997         (set_fontset_font): Change argument.
25998         (Fset_fontset_font): Fix for the case that TARGET is a script
25999         name and charset name.
26000         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26002 2008-02-01  Kenichi Handa  <handa@m17n.org>
26004         * fontset.c (fontset_font): Rename from fontset_face.  Change return
26005         value.
26006         (face_suitable_for_char_p, face_for_char): Adjust for the change
26007         of fontset_font.
26008         (make_fontset_for_ascii_face): Fix setting of the fontset element
26009         for ASCII.
26010         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26011         to get a font name.
26012         (Ffontset_info): Adjust for the change of fontset_font.
26014         * coding.c (emacs_mule_char): Check invalid code more rigidly.
26016         * character.h (LEADING_CODE_LATIN_1_MIN)
26017         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26019 2008-02-01  Kenichi Handa  <handa@m17n.org>
26021         * editfns.c (check_translation): New function.
26022         (Ftranslate_region_internal): Handle M:N mapping.
26024 2008-02-01  Kenichi Handa  <handa@m17n.org>
26026         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26028 2008-02-01  Kenichi Handa  <handa@m17n.org>
26030         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26031         goto invalid_code.
26032         (decode_coding_iso_2022): Fix handling of invalid designation.
26034         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26035         after calling code_conversion_save.
26037 2008-02-01  Kenichi Handa  <handa@m17n.org>
26039         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26041         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26043         * fontset.c: Include "intervals.h".
26044         (fontset_face): Fix comparing of Lisp_Objects.
26045         (free_face_fontset, new_fontset_from_font_name):
26046         Fix Lisp_Object/int mixup.
26048         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26050         * coding.c: Add many prototypes for static functions.
26051         (get_translation_table): Allow max_lookup to be NULL.
26052         (decode_coding, Ffind_coding_systems_region_internal)
26053         (Funencodable_char_position, Fcheck_coding_systems_region):
26054         Call get_translation_table with max_lookup NULL.
26056 2008-02-01  Kenichi Handa  <handa@m17n.org>
26058         * coding.c (get_translation_table): Declare it as Lisp_Object.
26059         (LOOKUP_TRANSLATION_TABLE): New macro.
26060         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26061         instead of CHAR_TABLE_REF.
26063 2008-02-01  Kenichi Handa  <handa@m17n.org>
26065         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26066         annotation data format.
26067         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26068         Change arguments FROM and TO to single argument NCHARS.  Change caller.
26069         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26070         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26071         (decode_coding_ccl, decode_coding_charset): Pay attention to
26072         coding->charbuf_used.
26073         (get_translation): New function.
26074         (produce_chars): New arguments translation_table and last_block.
26075         Translate characters here.  Return number of carryover chars.
26076         Change caller.
26077         (produce_composition): New argument pos.  Change caller.
26078         Adjust for the change of annotation data format.
26079         (produce_charset, produce_annotation): Likewise.
26080         (decode_coding, encode_coding): Don't call translate_chars.
26081         (consume_chars): New arg translation_table.  Change caller.
26082         (translate_chars): Delete.
26083         (syms_of_coding): Make translation-table's number of extra slots 2.
26085 2008-02-01  Kenichi Handa  <handa@m17n.org>
26087         * search.c (simple_search): Fix setting this_pos_byte in backward
26088         search.
26090         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26091         byte sequence.
26092         (detect_coding_ccl): Fix setting of the variable valids.
26094 2008-02-01  Kenichi Handa  <handa@m17n.org>
26096         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26098         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26100         * editfns.c (Ftranslate_region_internal): Rename from
26101         Ftranslate_region.  Accept a char-table in TABLE.
26102         (syms_of_editfns): Defsubr Stranslate_region_internal.
26104         * xfaces.c (set_lface_from_font_name): If a font is specified for
26105         a frame, generate a fontset from the font.
26106         (build_scalable_font_name): If the scalable font is requested for
26107         a specific size, don't change that size.
26108         (try_font_list): Try a scalable font also in the case that a
26109         pattern string is specified.
26111 2008-02-01  Kenichi Handa  <handa@m17n.org>
26113         * xfaces.c (Fface_font): New optional arg CHARACTER.
26115 2008-02-01  Kenichi Handa  <handa@m17n.org>
26117         * charset.h (CHARSET_OFFSET): New macro.
26119 2008-02-01  Kenichi Handa  <handa@m17n.org>
26121         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26123         * fontset.c (fontset_face): Handle the case that repertory is a
26124         char-table.
26125         (find_font_encoding): Return nil for unknown encoding.
26126         (Fset_fontset_font): Ignore a font of unknown encoding.
26128 2008-02-01  Kenichi Handa  <handa@m17n.org>
26130         * keymap.c (describe_vector): Handle default value of a char table.
26132         * fontset.c (fontset_face): Handle fallback fonts correctly.
26133         (Ffontset_info): Return infomation about fallback fonts.
26135 2008-02-01  Kenichi Handa  <handa@m17n.org>
26137         * fontset.c (FONTSET_DEFAULT): New macro.
26138         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26139         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26140         the case that it is nil.
26141         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26142         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26144         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26145         subset or superset.
26147 2008-02-01  Kenichi Handa  <handa@m17n.org>
26149         * emacs.c (main): Call init_charset after syms_of_XXX.
26151         * charset.c (Vcharset_map_directory): Delete.
26152         (Vcharset_map_path): New variable.
26153         (load_charset_map_from_file): Use Vcharset_map_path instead.
26154         (init_charset): Initialize Vcharset_map_path.
26155         (syms_of_charset): Delete declaration of "charset-map-directory",
26156         add declaration of "charset-map-path".
26158 2008-02-01  Kenichi Handa  <handa@m17n.org>
26160         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26161         ASCII only string.
26163         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26165         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26166         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26168 2008-02-01  Kenichi Handa  <handa@m17n.org>
26170         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26172         * coding.c (QCmnemonic, QCdefalut_char)
26173         (QCdecode_translation_table, QCencode_translation_table)
26174         (QCpost_read_conversion, QCpre_write_conversion): New variables.
26175         (get_translation_table): Return a list of translation tables if
26176         necessary.
26177         (decode_coding): Call get_translation_table with ENCODEP 0.
26178         (char_encodable_p): If translation_table is non-nil, always call
26179         translate_char.
26180         (Fdefine_coding_system_internal): Accept list of translation
26181         tables as :encode-translation-table and :decode-translation-table.
26182         (Fcoding_system_put): New function.
26183         (syms_of_coding): Declare new symbols.
26184         Defsubr Scoding_system_put.
26185         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26186         typically JISX0212.
26188         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26189         when the charset is superset type.
26191         * character.c (translate_char): Accept list of translation tables.
26193 2008-02-01  Kenichi Handa  <handa@m17n.org>
26195         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26196         (CODING_ATTR_TRANS_TBL): New macro.
26198         * coding.c (get_translation_table): New function.
26199         (translate_chars): Fix the bug of skipping annotation data.
26200         (decode_coding, encode_coding): Utilize get_translation_table.
26201         (char_encodable_p, Funencodable_char_position): Translate char if
26202         necessary.
26203         (Ffind_coding_systems_region_internal)
26204         (Fcheck_coding_systems_region): Setup translation table for encode
26205         in a coding system attribute vector in advance.
26206         (Fdefine_coding_system_internal): Allow a symbol as translation
26207         table.  For shift-jis type coding system, allow 4th charset.
26209 2008-02-01  Kenichi Handa  <handa@m17n.org>
26211         * coding.c (decode_coding_sjis): Check the first byte rigidly.
26213         * xdisp.c (get_next_display_element): Pass -1 as POS to
26214         FACE_FOR_CHAR if displaying a C-string.
26216 2008-02-01  Kenichi Handa  <handa@m17n.org>
26218         * composite.c (get_composition_id): Handle xoff and yoff in a
26219         composition rule.
26221         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26222         (struct composition): New member lbearing and rbearing.
26224         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26225         (x_get_glyph_overhangs): Handle a composition glyph.
26226         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26228         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26229         composition glyph.
26231 2008-02-01  Kenichi Handa  <handa@m17n.org>
26233         * print.c: Include charset.h.
26234         (Vprint_charset_text_property): New variable.
26235         (Qdefault): Extern it.
26236         (PRINT_STRING_NON_CHARSET_FOUND)
26237         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26238         (print_check_string_result): New variable.
26239         (print_check_string_charset_prop): New function.
26240         (print_prune_charset_plist): New variable.
26241         (print_prune_string_charset): New function.
26242         (print_object): Call print_prune_string_charset if
26243         Vprint_charset_text_property is not t.
26244         (print_interval): Print nothing if interval->plist is nil.
26245         (syms_of_print): Declare Vprint_charset_text_property as a lisp
26246         variable.  Init and staticpro print_prune_charset_plist.
26248 2008-02-01  Kenichi Handa  <handa@m17n.org>
26250         * fontset.c (new_fontset_from_font_name): Use the specified font
26251         for all characters in the new fontset.
26253         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26254         OBJECT args.
26256         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26257         OBJECT args for composition too.
26259         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26260         OBJECT args.
26262 2008-02-01  Kenichi Handa  <handa@m17n.org>
26264         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26266         * fontset.c (reorder_font_vector): Adjust for the change of
26267         FONT_DEF format.
26268         (fontset_face): New arg id.  Change caller.
26269         (face_for_char): New args pos and object.
26270         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26271         (fs_query_fontset): Check NAME by Fassoc too.
26272         (Fset_fontset_font): Allow non-XLFD font name.
26273         (Ffontset_info): Adjust for the change of FONT_DEF format.
26275         * fontset.h (face_for_char): Adjust prototype.
26277         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26278         (append_space, extend_face_to_end_of_line)
26279         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26280         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26282         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26283         POS and OBJECT args.
26285         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26286         POS and OBJECT args.
26288 2008-02-01  Jason Rumney  <jasonr@gnu.org>
26290         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26291         of GlobalAlloc'ed memory.
26293 2008-02-01  Kenichi Handa  <handa@m17n.org>
26295         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26297         * charset.h (charset_table_used): Delete extern.
26299         * charset.c (charset_table_used): Make it static.
26300         (map_charset_chars): Fix args to c_function with.
26302         * chartab.c (map_sub_char_table_for_charset): Fix args to
26303         c_function with.
26305         * coding.h (enum coding_result_code):
26306         Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26308         * coding.c (Qinsufficient_source, Qinconsistent_eol)
26309         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26310         (Vlast_code_conversion_error): New variables.
26311         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26312         (ONE_MORE_BYTE): Record error if any instead of signaling an
26313         error.  If non-ASCII multibyte char is found, return the negative
26314         value of the code.  All callers changed to check it.
26315         (ONE_MORE_BYTE_NO_CHECK): Likewise.
26316         (record_conversion_result): New function.  Change all codes setting
26317         coding->result to call this function.
26318         (detect_coding_utf_8, decode_coding_utf_8)
26319         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26320         Don't use the local variable incomplete.
26321         (emacs_mule_char): Change the second arg to `const'.
26322         (decode_coding): Fix of flushing out unprocessed data.
26323         (make_conversion_work_buffer): Fix making of a work buffer.
26324         (decode_coding_object): Return coding->dst_object.
26326         * fontset.c (set_fontset_font): Fix args.
26328         * lisp.h (CHARACTERBITS): Define as 22.
26330         * process.c (send_process): Be sure to set coding->src_multibyte.
26332         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26334 2008-02-01  Kenichi Handa  <handa@m17n.org>
26336         * xdisp.c (handle_auto_composed_prop): Give limit to
26337         Fnext_single_char_property_change.
26339 2008-02-01  Kenichi Handa  <handa@m17n.org>
26341         * composite.c (syms_of_composite): Don't make the composition hash
26342         table weak.
26344         * fontset.c (Fset_fontset_font): Fix docstring.
26346         * lisp.h (detect_coding_system): Adjust prototype.
26348         * fileio.c (kill_workbuf_unwind): Delete this function.
26349         (Finsert_file_contents): Adjust the call of detect_coding_system.
26350         Get conversion_buffer by code_conversion_save.  Use the macro
26351         CODING_MAY_REQUIRE_DECODING.  After decoding, update
26352         coding_system.
26354         * coding.h (make_conversion_work_buffer): Delete extern.
26355         (code_conversion_save): Extern it.
26357         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26358         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
26359         (decode_coding_utf_8): Don't do eol converion.
26360         (detect_coding_utf_16): Check coding->src_chars, not
26361         coding->src_bytes.  Add heuristics for those that have no signature.
26362         (decode_coding_emacs_mule, decode_coding_iso_2022)
26363         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26364         Don't do eol converion.
26365         (adjust_coding_eol_type): Return a new coding system.
26366         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
26367         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26368         each change.
26369         (decode_coding): Pay attention to undo_list.  Do eol conversion for
26370         all types of coding-systems (if necessary).
26371         (Vcode_conversion_work_buf_list): Delete it.
26372         (Vcode_conversion_reused_workbuf): Rename from
26373         Vcode_conversion_reused_work_buf.
26374         (Vcode_conversion_workbuf_name): New variable.
26375         (reused_workbuf_in_use): New variable.
26376         (make_conversion_work_buffer): Delete the arg DEPTH.
26377         (code_conversion_restore): Change argument to cons.
26378         (code_conversion_save): Delete the argument BUFFER.  Change callers.
26379         (detect_coding_system): New argument src_chars.  Change callers.
26380         Fix for utf-16 detection.
26381         (init_coding_once): Don't use ISO_carriage_return.
26382         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26383         reused_workbuf_in_use.
26385 2008-02-01  Kenichi Handa  <handa@m17n.org>
26387         * keymap.c (store_in_keymap): Pay attention to the case that idx
26388         is a cons specifying a character range.
26390 2008-02-01  Kenichi Handa  <handa@m17n.org>
26392         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26393         HANDLED_RECOMPUTE_PROPS.
26395         * coding.c (Fdefine_coding_system_internal): Fix checking of
26396         ascii compatibility.
26398 2008-02-01  Kenichi Handa  <handa@m17n.org>
26400         * charset.c (find_charsets_in_text): Delete unused locale variable.
26401         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26403         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26404         Resync charset_list to Vemacs_mule_charset_list.
26406         * keymap.c (store_in_keymap): Pay attention to the case that idx
26407         is a cons specifying a character range.
26409 2008-02-01  Kenichi Handa  <handa@m17n.org>
26411         * composite.c (update_compositions): Bind inhibit-read-only, etc
26412         to t before calling remove-list-of-text-properties.
26414         * print.c (print_object): Always print ASCII chars as is.
26416 2008-02-01  Kenichi Handa  <handa@m17n.org>
26418         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26420         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26421         is a char table.
26423 2008-02-01  Kenichi Handa  <handa@m17n.org>
26425         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26427 2008-02-01  Kenichi Handa  <handa@m17n.org>
26429         * xfaces.c (set_lface_from_font_name): Fix for the case that
26430         FONTNAME is not fontset name.
26432 2008-02-01  Kenichi Handa  <handa@m17n.org>
26434         * fns.c (base64_encode_1): Fix previous change.
26436 2008-02-01  Kenichi Handa  <handa@m17n.org>
26438         * fontset.c (set_fontset_font): New function.
26439         (Fset_fontset_font): If a font is specified for a charset, use
26440         map_charset_chars to store the font spec in a fontset.
26442 2008-02-01  Kenichi Handa  <handa@m17n.org>
26444         * fontset.c (fontset_face): Create a fallback fontset on demand.
26445         (make_fontset): Don't create a fallback fontset here.
26446         (free_face_fontset): Free a fallback fontset (if any) too.
26447         (n_auto_fontsets): Delete this variable.
26448         (auto_fontset_alist): New variable.
26449         (new_fontset_from_font_name): Check auto_fontset_alist.
26450         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26451         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26452         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26453         Defsubr Sfontset_list_all.
26455 2008-02-01  Kenichi Handa  <handa@m17n.org>
26457         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26459 2008-02-01  Kenichi Handa  <handa@m17n.org>
26461         * fontset.c (Fnew_fontset): Check NAME more rigidly.
26463 2008-02-01  Kenichi Handa  <handa@m17n.org>
26465         * editfns.c (Fgoto_char): Fix docstring.
26467 2008-02-01  Kenichi Handa  <handa@m17n.org>
26469         * insdel.c (insert_from_gap): Adjust intervals correctly.
26471 2008-02-01  Jason Rumney  <jasonr@gnu.org>
26473         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26474         (pfnGetFontUnicodeRanges): New dynamically loaded function.
26475         (w32_initialize): Try to load it.
26476         (x_get_font_repertory): Use it if available.
26477         (w32_encode_char): Add shortcut for unicode output.
26479         * w32fns.c (w32_load_system_font): Default charset to -1.
26480         (x_to_w32_charset): Match all fonts for unicode.
26481         (w32_to_x_charset): New parameter matching.  Don't return partial
26482         or wildcard charsets.
26483         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26484         (w32_codepage_for_font): Return CP_UNICODE for unicode.
26485         (w32_to_x_font): Match charset to real charset.
26486         (enum_font_cb2): Always list unicode versions.
26488         * makefile.w32-in (temacs): Increase EMHEAP.
26490 2008-02-01  Jason Rumney  <jasonr@gnu.org>
26492         * w32term.c (w32_encode_char): New charset parameter.
26493         font_info.encoding becomes encoding_type.
26494         (x_get_font_repertory): New function.  Warning: stub only!
26495         (x_new_font): Return quickly if font already set.
26496         (x_new_fontset): fontsetname parameter is Lisp_Object.
26497         Use new fs_query_fontset.  Try new_fontset_from_font_name.
26498         Use fontset_name for return value.
26500         * w32term.h: Declare x_get_font_repertory.
26502         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26503         place of find_charset_in_text.  Use encode_coding_object in place
26504         of encode_coding.
26505         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26506         decode_coding.
26508         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26509         of x_new_fontset.
26510         (w32_load_system_font): Initialize charset as unicode.
26511         font_info.encoding becomes encoding_type.
26512         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26513         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26514         (syms_of_w32fns): Set get_font_repertory_func.
26516         * w32console.c: Include character.h.  Use terminal_encode_buffer
26517         from term.c.
26518         (write_glyphs): Use new version of encode_terminal_code.
26519         Use encode_coding_object in place of encode_coding.
26521         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26522         encoding becomes encoding_type.
26524         * term.c (terminal_encode_buffer): Make externally visible.
26526         * makefile.w32-in: Add character.h dependancies.
26527         (character.o, chartab.o): New targets.
26529 2008-02-01  Kenichi Handa  <handa@m17n.org>
26531         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26532         CODING_ID_EOL_TYPE.
26534 2008-02-01  Andreas Schwab  <schwab@suse.de>
26536         * coding.c (produce_chars): Revert last change.
26538 2008-02-01  Kenichi Handa  <handa@m17n.org>
26540         * charset.h (charset_unicode): Extern it.
26542         * charset.c (string_xstring_p): Check by (C >= 0x100).
26543         (find_charsets_in_text): Change format of the arc CHARSETS.
26544         New arg MULTIBYTE.
26545         (Ffind_charset_region, Ffind_charset_string): Adjust for the
26546         change of find_charsets_in_text.
26547         (Fsplit_char): Fix doc.  Never return unknown.
26549         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26551         * coding.c (Fdefine_coding_system_alias):
26552         Update Vcoding_system_list.
26554         * fontset.c (load_font_get_repertory): Pay attention to the case
26555         that ENCODING of a font is specified by a char-table.
26557         * xterm.c (x_get_font_repertory): Handle the case that the
26558         encoding of font is other than Unicode.
26560 2008-02-01  Kenichi Handa  <handa@m17n.org>
26562         * term.c (encode_terminal_code): Don't handle glyph-table.
26563         Check if a character is encodable by the terminal coding system.
26564         If not, produces proper number of `?'s.  Update
26565         terminal_encode_buffer and terminal_encode_buf_size if necessary.
26566         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26568 2008-02-01  Kenichi Handa  <handa@m17n.org>
26570         * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26571         New variables.
26572         (encode_terminal_code): Change argument.  Encode multiple
26573         characters at once.  Store the result of encoding in
26574         terminal_encode_buffer.
26575         (write_glyphs, insert_glyphs): Adjust for the change of
26576         encode_terminal_code.
26577         (term_init): Initialize terminal_encode_buffer and
26578         terminal_encode_buf_size.
26580         * coding.c (consume_chars): If coding->src_object is nil, don't
26581         check annotation.
26583 2008-02-01  Kenichi Handa  <handa@m17n.org>
26585         * character.c (char_string): Use ASCII_CHAR_P instead of
26586         SINGLE_BYTE_CHAR_P.
26588 2008-02-01  Kenichi Handa  <handa@m17n.org>
26590         * xdisp.c (handle_auto_composed_prop): Check if the last
26591         characters of auto-composed region is newly composed with the
26592         following characters.
26593         (handle_composition_prop): Fix checking of point being inside
26594         composition.
26596 2008-02-01  Kenichi Handa  <handa@m17n.org>
26598         * fns.c (concat): Don't change multibyteness of the result by
26599         concatenating an 8-bit character.
26601         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
26602         multibyteness of the result when newelt is an 8-bit character.
26604 2008-02-01  Dave Love  <fx@gnu.org>
26606         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26607         EMACS_INT.
26609         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26611         * xfaces.c (face_numeric_value): Declare dim size_t.
26612         (Finternal_lisp_face_equal_p): Remove unused f.
26614         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26615         (MATRIX_ROW): Remove unused vars.
26616         (draw_glyphs, x_insert_glyphs, fast_find_position)
26617         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26618         byte/char counts.
26620         * regex.c (regex_compile): Remove unused var.
26622         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26624         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26625         (Faccessible_keymaps, where_is_internal): Remove unused vars.
26627         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26629         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26631         * fileio.c (Fwrite_region): Remove unused var.
26633         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26634         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26636         * composite.c (Fremove_list_of_text_properties): Declare.
26638         * coding.c (inhibit_pre_post_conversion): Remove (unused).
26639         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26640         (coding_inherit_eol_type): Remove unused attrs.
26641         (detect_coding): Cast arg of detect_eol.
26643         * charset.c (syms_of_charset): Remove unused var p.
26644         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26645         byte/char counts.
26647         * casetab.c (set_case_table): Remove unused var.
26649         * window.c (Fdisplay_buffer, Fframe_selected_window):
26650         Remove unused vars.
26652 2008-02-01  Dave Love  <fx@gnu.org>
26654         * xterm.c (x_bitmap_mask): Declare.
26656 2008-02-01  Dave Love  <fx@gnu.org>
26658         * xterm.c (x_term_init): Fix type error.
26660         * lisp.h: Add Funibyte_char_to_multibyte.
26662         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26663         (Fset_coding_system_priority): Doc fix.
26665         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26667         * indent.c (check_composition): Make start and end EMACS_INT.
26669         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26671         * xdisp.c (handle_composition_prop, check_point_in_composition):
26672         Make buffer positions EMACS_INT.
26674         * composite.c (find_composition, run_composition_function)
26675         (update_compositions, Ffind_composition_internal): Make buffer
26676         positions EMACS_INT.
26678         * composite.h (find_composition, update_compositions):
26679         Make position args EMACS_INT.
26681         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26683         * intervals.c (get_property_and_range):
26684         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26686         * unexalpha.c: Don't include varargs.h.
26688 2008-02-01  Dave Love  <fx@gnu.org>
26690         * coding.h (ENCODE_UTF_8): New.
26692         * Makefile.in (gtkutil.o): Depend on coding.h.
26694         * coding.c (Fset_coding_system_priority): Doc fix.
26696 2008-02-01  Kenichi Handa  <handa@m17n.org>
26698         * fileio.c (Finsert_file_contents): Call setup_coding_system in
26699         the case of auto saving.
26701 2008-02-01  Andreas Schwab  <schwab@suse.de>
26703         * chartab.c (map_char_table, map_char_table_for_charset):
26704         Protect `range' from GC.
26706 2008-02-01  Kenichi Handa  <handa@m17n.org>
26708         * coding.c (decode_coding_sjis): Check bytes more rigidly.
26710 2008-02-01  Kenichi Handa  <handa@m17n.org>
26712         * fileio.c (choose_write_coding_system): Return a decided coding system.
26713         (Fwrite_region): Set Vlast_coding_system_used to the return value
26714         of choose_write_coding_system.
26716 2008-02-01  Kenichi Handa  <handa@m17n.org>
26718         * charset.c (Fset_charset_priority): Pay attention to duplicated
26719         arguments.
26721         * coding.c (QCcategory): New variable.
26722         (syms_of_coding): Defsym it.  Set all elements of
26723         Vcoding_category_table and their symbol values.
26724         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
26725         coding-category-XXX, and coding-category-list.
26726         (Fdefine_coding_system_internal): Add category in the plist.
26728 2008-02-01  Kenichi Handa  <handa@m17n.org>
26730         * callproc.c (Fcall_process): Handle carryover correctly.
26732         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26733         (raw_text_coding_system): Check NILP (coding_system).
26734         (coding_inherit_eol_type): Check NILP (coding_system) and
26735         NILP (parent).
26736         (consume_chars): Fix for the case of raw-text.
26738         * process.c (read_process_output): Handle carryover correctly.
26740 2008-02-01  Dave Love  <fx@gnu.org>
26742         * regex.c (re_search_2): Fix last change.
26744 2008-02-01  Kenichi Handa  <handa@m17n.org>
26746         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26747         target_multibyte.  Even in a unibyte case, return a converted
26748         multibyte char.
26749         (GET_CHAR_AFTER): New macro.
26750         (PATFETCH): Translate via multibyte char.
26751         (HANDLE_UNIBYTE_RANGE): Delete this macro.
26752         (SETUP_MULTIBYTE_RANGE): New macro.
26753         (regex_compile): Setup compiled code so that its multibyteness
26754         matches that of a target.  Fix the handling of "[X-YZ]" using
26755         SETUP_MULTIBYTE_RANGE.
26756         (analyse_first) <charset>: For filling fastmap for all multibyte
26757         characters, don't check by BASE_LEADING_CODE_P.
26758         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
26759         the same as RE_MULTIBYTE_P (bufp) now.
26760         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26761         (TARGET_CHAR_AND_LENGTH): Delete this macro.
26762         (TRANSLATE_VIA_MULTIBYTE): New macro.
26763         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26764         It is the same as RE_MULTIBYTE_P (bufp) now.
26765         <exactn>: Translate via multibyte.
26766         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26767         Don't translate it.
26768         <charset, charset_not>: Fetch a character by
26769         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
26770         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26771         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26772         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26773         by GET_CHAR_AFTER.
26774         (bcmp_translate): Likewise.
26776         * search.c (compile_pattern): Check the member target_multibyte,
26777         not the member multibyte of buf.
26779         * lread.c (read1): While reading a string, set force_singlebyte
26780         and force_multibyte correctly.
26782         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26783         up of unibyte_to_multibyte_table.
26785 2008-02-01  Kenichi Handa  <handa@m17n.org>
26787         * coding.c (setup_coding_system): If coding has
26788         post-read-conversion or pre-write-conversion, set
26789         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26790         respectively.
26791         (decode_coding_gap): Run post-read-conversion if any.
26793         * fileio.c (Finsert_file_contents): Even if we read into a
26794         unibyte buffer, check if we must decode the result or not.
26796 2008-02-01  Kenichi Handa  <handa@m17n.org>
26798         * coding.c (make_conversion_work_buffer): Change the work buffer
26799         name to the same one as that of Emacs 21.
26801 2008-02-01  Kenichi Handa  <handa@m17n.org>
26803         * coding.h (make_conversion_work_buffer): Adjust prototype.
26804         (code_conversion_restore): Don't extern it.
26806         * coding.c (detected_mask): Delete unused variable.
26807         (decode_coding_iso_2022): Pay attention to the byte sequence of
26808         CTEXT extended segment, and retain those bytes as is.
26809         (decode_coding_ccl): Delete unused variable `valids'.
26810         (setup_coding_system): Delete unused variable `category'.
26811         (consume_chars): Delete unused variable `category'.  Make it work
26812         for non-multibyte case.
26813         (make_conversion_work_buffer): Change argument.
26814         (saved_coding): Delete unused variable.
26815         (code_conversion_restore): Don't check saved_coding->destination.
26816         (code_conversion_save): New function.
26817         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26818         instead of record_unwind_protect.
26819         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
26820         (detect_coding_system): Delete unused variable `mask'.
26821         (Fdefine_coding_system_internal): Delete unused variable id.
26823         * fileio.c (kill_workbuf_unwind): New function.
26824         (Finsert_file_contents): On replacing, call
26825         make_conversion_work_buffer with correct args, and call
26826         record_unwind_protect with the first arg kill_workbuf_unwind.
26828         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26830 2008-02-01  Kenichi Handa  <handa@m17n.org>
26832         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26833         (fontset_add): Fix for the case that TO is less than TO1.
26834         (Ffontset_info): Don't use fallback fontset on checking the
26835         default fontset.
26836         (dump_fontset): New function for debugging.
26838         * coding.c (Fdefine_coding_system_internal): Fix for the case that
26839         coding_type is Qcharset.
26841 2008-02-01  Kenichi Handa  <handa@m17n.org>
26843         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26844         (map_char_table): Don't inherit the value from the parent on
26845         initializing VAL.  Adjust for the above change.
26847 2008-02-01  Kenichi Handa  <handa@m17n.org>
26849         * coding.c (Qsignature, Qendian): Delete these variables.
26850         (syms_of_coding): Don't initialize them.
26851         (CATEGORY_MASK_UTF_16_AUTO): New macro.
26852         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26853         detect_info->found.
26854         (decode_coding_utf_16): Don't detect BOM here.
26855         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26856         is NOT utf_16_without_bom.
26857         (setup_coding_system): For a coding system of type utf-16, check
26858         if the attribute :endian is Qbig or not (not nil or not), and set
26859         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26860         (detect_coding): If coding type is utf-16 and BOM detection is
26861         required, detect it.
26862         (Fdefine_coding_system_internal): For a coding system of type
26863         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26865 2008-02-01  Kenichi Handa  <handa@m17n.org>
26867         * coding.c (coding_set_source): Fix for the case that the current
26868         buffer is different from coding->src_object.
26869         (decode_coding_object): Don't use the conversion work buffer if
26870         DST_OBJECT is a buffer.
26872 2008-02-01  Dave Love  <fx@gnu.org>
26874         * lread.c (read_emacs_mule_char) [len==2]: Index
26875         emacs_mule_charset correctly.
26877 2008-02-01  Dave Love  <fx@gnu.org>
26879         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26880         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26881         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
26882         treated specially.)
26883         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26884         (detected_mask): Remove Big5 bits.
26886 2008-02-01  Kenichi Handa  <handa@m17n.org>
26888         The following changes are to make the font rescaling facility
26889         compatible with Emacs 21.
26891         * xfaces.c (Vface_font_rescale_alist): Rename from
26892         Vface_resizing_fonts.
26893         (struct font_name): Rename member resizing_ratio to rescale_ratio.
26894         (font_rescale_ratio): Rename from font_resizing_ratio.
26895         (split_font_name): Set font->rescale_ratio.
26896         (better_font_p): Pay attention to font->rescale_ratio.
26897         (build_scalable_font_name): Likewise.  Change RESX, and RESY
26898         fields.
26899         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26901 2008-02-01  Kenichi Handa  <handa@m17n.org>
26903         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26904         (Qutf_16_le): Remove these variables.
26905         (syms_of_coding): Don't DEFSYM them.
26906         (decode_coding_utf_16): Fix handling of BOM.
26907         (encode_coding_utf_16): Fix handling of BOM.
26909 2008-02-01  Kenichi Handa  <handa@m17n.org>
26911         * fileio.c (Finsert_file_contents): On replacing, before decoding
26912         the file into the work buffer, set point of the work buffer to the end.
26914 2008-02-01  Dave Love  <fx@gnu.org>
26916         * coding.c (Fcheck_coding_systems_region): Fix type errors.
26918 2008-02-01  Dave Love  <fx@gnu.org>
26920         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26921         and fix C types.
26923 2008-02-01  Kenichi Handa  <handa@m17n.org>
26925         * xdisp.c (SKIP_GLYPHS): New macro.
26926         (set_cursor_from_row): Pay attention to string display properties.
26928         * category.c (copy_category_entry): Fix for the case that RANGE
26929         is an integer.
26931         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26933         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26935 2008-02-01  Kenichi Handa  <handa@m17n.org>
26937         * charset.c (Fcharset_id_internal): New function.
26938         (syms_of_charset): Defsubr it.
26940         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26941         with the last arg charset_list acquired from coding.
26942         (Fdefine_coding_system_internal): For ccl-based coding system, fix
26943         the attribute coding_attr_ccl_valids.
26945         * coding.h (enum define_coding_ccl_arg_index): Set the first
26946         member coding_arg_ccl_decoder to coding_arg_max.
26948         * ccl.h (ccl_driver): Adjust prototype.
26950         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26951         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
26952         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
26953         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26954         last arg Qnil.
26956 2008-02-01  Kenichi Handa  <handa@m17n.org>
26958         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26959         call encode_char.
26961         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26963 2008-02-01  Dave Love  <fx@gnu.org>
26965         * composite.c (syms_of_composite): Make composition_hash_table weak.
26967 2008-02-01  Kenichi Handa  <handa@m17n.org>
26969         * dispextern.h (check_face_attributes, generate_ascii_font_name)
26970         (font_name_registry): Don't extern them.
26971         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26973         * fontset.h (Qfontset): Don't extern it.
26974         (new_fontset_from_font_name): Extern it.
26976         * fontset.c: Give 8 extra slots to fontset objects.
26977         (Qfontset_info): New variable.
26978         (syms_of_fontset): Defsym it.
26979         (FONTSET_FALLBACK): New macro.
26980         (fontset_face): Try also the default fontset.
26981         (make_fontset): Realize a fallback fontset from the default fontset.
26982         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
26983         using split_font_name_into_vector and build_font_name_from_vector.
26984         (Fset_fontset_font): Access the elements of font_spec by enum
26985         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
26986         name by using split_font_name_into_vector.
26987         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
26988         generate a proper font name from the fontset name.
26989         Update Vfontset_alias_alist.
26990         (n_auto_fontsets): New variable.
26991         (new_fontset_from_font_name): New function.
26992         (Ffont_info): Store the information about fonts generated from the
26993         default fontset in the first extra slot of the returned char-table.
26995         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26996         (font_name_registry): Delete function.
26997         (split_font_name_into_vector): New function.
26998         (build_font_name_from_vector): New function.
26999         (font_list): The argument REGISTRY is now a list of registry names.
27000         (choose_face_font): If we are choosing an ASCII font, and ATTRS
27001         specifies an explicit font name, return the name as is.  Make a
27002         list of registy names.
27004         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27005         of x_new_fontset.
27006         (Fx_create_frame): Don't call x_new_fontset here.  Just use
27007         x_list_fonts to check the existence of fonts.
27009         * xterm.h (x_new_fontset): Adjust prototype.
27011         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27012         string.  Use new_fontset_from_font_name to create a fontset from a
27013         font name.
27015 2008-02-01  Kenichi Handa  <handa@m17n.org>
27017         * syntax.c (Vfind_word_boundary_function_table): New name for
27018         Vnext_word_boundary_function_table.
27019         (find-word-boundary-function-table): New name for
27020         next-word-boundary-function-table.
27022 2008-02-01  Dave Love  <fx@gnu.org>
27024         * Makefile.in: Fix some dependencies.
27026         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27027         set it to nil before returning.
27029         * composite.c (update_compositions): Fix type error.
27031         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27033 2008-02-01  Kenichi Handa  <handa@m17n.org>
27035         * xterm.c (x_new_font): Optimize for the case that the font is
27036         already set for the frame.
27038 2008-02-01  Kenichi Handa  <handa@m17n.org>
27040         * chartab.c (char_table_ascii): Check if the char table contents
27041         is sub-char-table or not.
27042         (char_table_set, char_table_set_range): Fix argument to
27043         char_table_ascii.
27045         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27046         (detect_coding_utf_8, detect_coding_utf_16)
27047         (detect_coding_emacs_mule, detect_coding_iso_2022)
27048         (detect_coding_sjis, detect_coding_big5)
27049         (detect_coding_ccl, detect_coding_charset): Change argument MASK
27050         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
27051         sequence is valid in this coding system.  Change callers.
27052         (MAX_ANNOTATION_LENGTH): New macro.
27053         (ADD_ANNOTATION_DATA): New macro.
27054         (ADD_COMPOSITION_DATA): Change argument.  Change callers.
27055         Call ADD_ANNOTATION_DATA.  Change the format of annotation data.
27056         (ADD_CHARSET_DATA): New macro.
27057         (emacs_mule_char): New argument ID.  Change callers.
27058         (decode_coding_emacs_mule, decode_coding_iso_2022)
27059         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27060         Produce charset annotation data in coding->charbuf.
27061         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27062         to charset annotation data in coding->charbuf.
27063         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27064         coding->common_flags if the coding system is iso-2022 based and
27065         uses designation.
27066         (produce_composition): Adjust for the new annotation data format.
27067         (produce_charset): New function.
27068         (produce_annotation): Handle charset annotation.
27069         (handle_composition_annotation, handle_charset_annotation):
27070         New functions.
27071         (consume_chars): Handle charset annotation.  Utilize the above two
27072         functions.
27073         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27074         buffer, get the deleted text as a string and set
27075         coding->src_object to that string.
27076         (detect_coding, detect_coding_system): Use the new struct
27077         coding_detection_info.
27079         * coding.h (struct coding_detection_info): New structure.
27080         (struct coding_system): Adjust prototype of the member `detector'.
27081         (CODING_ANNOTATE_CHARSET_MASK): New macro.
27083 2008-02-01  Kenichi Handa  <handa@m17n.org>
27085         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27087 2008-02-01  Dave Love  <fx@gnu.org>
27089         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27090         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
27091         to new local and nullify apropos_accumulate before returning.
27092         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27094 2008-02-01  Kenichi Handa  <handa@m17n.org>
27096         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27097         correctly.
27099 2008-02-01  Dave Love  <fx@gnu.org>
27101         * fns.c (Flanginfo): Call synchronize_system_time_locale.
27103 2008-02-01  Kenichi Handa  <handa@m17n.org>
27105         The following changes are to make character composition happen
27106         automatically on displaying.
27108         * Makefile.in (lisp, shortlisp): Add composite.elc.
27110         * composite.h (Qauto_composed, Vauto_composition_function)
27111         (Qauto_composition_function): Extern them.
27113         * composite.c (Vcomposition_function_table)
27114         (Qcomposition_function_table): Delete variables.
27115         (Qauto_composed, Vauto_composition_function)
27116         (Qauto_composition_function): New variables.
27117         (run_composition_function): Don't call
27118         compose-chars-after-function.
27119         (update_compositions): Clear `auto-composed' text property.
27120         (compose_chars_in_text): Delete this function.
27121         (syms_of_composite): Staticpro Qauto_composed and
27122         Qauto_composition_function.  Declare Vauto_composition_function as
27123         a Lisp variable.
27125         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27127         * xdisp.c (it_props): Add an entry for Qauto_composed.
27128         (handle_auto_composed_prop): New function.
27130         * xselect.c (selection_data_to_lisp_data): Don't call
27131         compose_chars_in_text.
27133 2008-02-01  Dave Love  <fx@gnu.org>
27135         * keyboard.c (read_char): Modify checking around use of
27136         Vkeyboard_translate_table.
27138         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27139         and fix C types.
27141 2008-02-01  Kenichi Handa  <handa@m17n.org>
27143         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27144         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27145         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27146         the case that the last byte is '\r' correctly.
27147         (decode_coding): Flush out the unprocessed data correctly.
27148         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27150 2008-02-01  Dave Love  <fx@gnu.org>
27152         * xterm.c (XTread_socket): Fix changes for defined keysyms.
27153         Add XK_ISO... case.
27154         (xaw_scroll_callback): Revert last change.
27156 2008-02-01  Kenichi Handa  <handa@m17n.org>
27158         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27160 2008-02-01  Kenichi Handa  <handa@m17n.org>
27162         * xfaces.c (Vface_resizing_fonts): New variable.
27163         (struct font_name): New member `resizing_ratio'.
27164         (font_resizing_ratio): New function.
27165         (split_font_name): Set font->resizing_ratio.
27166         (better_font_p): Pay attention to font->resizing_ratio.
27167         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
27168         RESX, and RESY fields.
27169         (try_alternative_families): Try scalable fonts if
27170         Vscalable_fonts_allowed is not Qt.
27171         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27173 2008-02-01  Dave Love  <fx@gnu.org>
27175         * xterm.c (xaw_scroll_callback): Cast correctly.
27177 2008-02-01  Dave Love  <fx@gnu.org>
27179         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27180         (lispy_kana_keys): Comment out.
27181         (make_lispy_event) [XK_kana_A]: Comment out.
27183         * xterm.c (xaw_scroll_callback): Cast call_data.
27184         (XTread_socket): Deal with ASCII keysyms.
27185         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27187 2008-02-01  Dave Love  <fx@gnu.org>
27189         * xterm.c (Vx_keysym_table): New.
27190         (syms_of_xterm): Initialize it.
27191         (XTread_socket): Use it.
27192         From head: Eliminate incorrect optimization that tried to avoid
27193         decoding the output of X*LookupString.
27194         (x_get_font_repertory): Delete charset declaration.
27196 2008-02-01  Kenichi Handa  <handa@m17n.org>
27198         * coding.c (detect_coding_charset): If only ASCII bytes are found,
27199         return 0.
27200         (Fdefine_coding_system_internal):
27201         Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27203 2008-02-01  Dave Love  <fx@gnu.org>
27205         * coding.c (Fcheck_coding_system): Doc fix.
27207         * editfns.c (Finsert_byte): Return a proper value.
27209 2008-02-01  Kenichi Handa  <handa@m17n.org>
27211         * coding.c (decode_coding): Fix args to translate_chars.
27212         Pay attention to Vstandard_translation_table_for_decode.
27213         (encode_coding): Fix args to translate_chars.  Pay attention to
27214         Vstandard_translation_table_for_encode.
27216         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27217         SINGLE_BYTE_CHAR_P.
27219         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27220         not by SINGLE_BYTE_CHAR_P.
27222         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27223         SINGLE_BYTE_CHAR_P.
27225         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27226         SINGLE_BYTE_CHAR_P.
27228         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27229         by SINGLE_BYTE_CHAR_P.
27231         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27232         SINGLE_BYTE_CHAR_P.
27234 2008-02-01  Dave Love  <fx@gnu.org>
27236         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27238 2008-02-01  Dave Love  <fx@gnu.org>
27240         * fns.c (Flanginfo): Fix typo.
27242         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27244 2008-02-01  Kenichi Handa  <handa@m17n.org>
27246         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27247         (detect_coding_emacs_mule, detect_coding_iso_2022)
27248         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27249         incomplete byte sequence.  Don't update *mask when correctly detected.
27250         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27251         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27252         (detect_coding, detect_coding_system): Adjust for the changes above.
27254 2008-02-01  Kenichi Handa  <handa@m17n.org>
27256         * character.c (char_string): Rename from
27257         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
27258         (string_char): Rename from string_char.
27260         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27261         if C is greater than MAX_3_BYTE_CHAR.
27262         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27263         Call string_char instead of string_char_with_unification.
27265 2008-02-01  Dave Love  <fx@gnu.org>
27267         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27269 2008-02-01  Kenichi Handa  <handa@m17n.org>
27271         * keymap.c (push_key_description): Pay attention to force_multibyte.
27273         * regex.c (re_search_2): Fix for the case of unibyte buffer.
27275 2008-02-01  Dave Love  <fx@gnu.org>
27277         * charset.c (define_charset_internal): Rename `supprementary'.
27279         * Makefile.in (lisp, shortlisp): Remove latin-N.
27281 2008-02-01  Dave Love  <fx@gnu.org>
27283         * xfns.c (x_window, x_window): Use use_xim.
27285         * xterm.c (use_xim): Initialize.
27286         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27287         (x_term_init): Maybe set use_xim.
27289         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27291 2008-02-01  Kenichi Handa  <handa@m17n.org>
27293         * search.c (search_buffer): Fix case-fold-search of multibyte
27294         characters.
27295         (boyer_moore): Rename the last argument to char_high_bits.
27297 2008-02-01  Kenichi Handa  <handa@m17n.org>
27299         * xdisp.c (display_string): Fix for the case of zero width glyph.
27301         * xfns.c (x_set_font): Change the error message of the case that
27302         x_new_fontset returns Qt.
27304         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27305         (Finternal_set_lisp_face_attribute): Use signal_error for the
27306         error of invalid fontset.
27308         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27309         fontset, return Qt.
27311 2008-02-01  Dave Love  <fx@gnu.org>
27313         * unexelf.c (unexec): Make .got handling not SGI-specific.
27315         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27317         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27319         * keyboard.c (read_key_sequence): Fix type error.
27321         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27322         Fix type error.
27324         * fontset.c (fontset_add): Return Lisp_Object.
27326 2008-02-01  Dave Love  <fx@gnu.org>
27328         * charset.h (charset_ordered_list_tick): Declare extern.
27330 2008-02-01  Kenichi Handa  <handa@m17n.org>
27332         The following changes (and some of 2008-02-01 changes of mine) are
27333         for handling syntax, category, and case conversion for unibyte
27334         characters by converting them to multibyte on the fly.  With these
27335         changes, we don't have to setup syntax and case tables for unibyte
27336         characters in each language environment.
27338         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27339         multibyte if necessary.
27341         * bytecode.c (Fbyte_code): Likewise.
27343         * character.h (LEADING_CODE_LATIN_1_MIN)
27344         (LEADING_CODE_LATIN_1_MAX): New macros.
27345         (unibyte_to_multibyte_table): Extern it.
27346         (unibyte_char_to_multibyte): New macro.
27347         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27348         (CHAR_LEADING_CODE): New macro.
27349         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27351         * character.c (unibyte_to_multibyte_table): New variable.
27352         (unibyte_char_to_multibyte): Move to character.h and define as macro.
27353         (multibyte_char_to_unibyte): If C is an eight-bit character,
27354         convert it to the corresponding byte value.
27356         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27357         not 1, signals an error.  Update the elements of
27358         unibyte_to_multibyte_table.
27359         (init_charset_once): Initialize unibyte_to_multibyte_table.
27360         (syms_of_charset): Define the charset `iso-8859-1'.
27362         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27363         as is without converting it to unibyte.  In a unibyte buffer,
27364         convert C to multibyte before checking the syntax.
27366         * lisp.h (unibyte_char_to_multibyte): Delete extern.
27368         * minibuf.c (Fminibuffer_complete_word): Use the macro
27369         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27371         * regex.h (struct re_pattern_buffer): New member target_multibyte.
27373         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27374         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27375         If that is zero, convert an eight-bit char to multibyte.
27376         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27377         non-emacs case.
27378         (PATFETCH): Convert an eight-bit char to multibyte.
27379         (HANDLE_UNIBYTE_RANGE): New macro.
27380         (regex_compile): Setup the compiled pattern for multibyte chars
27381         even if the given regex string is unibyte.  Use PATFETCH_RAW
27382         instead of PATFETCH in many places.  To handle `charset'
27383         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
27384         only for ASCII chars.
27385         (analyse_first) <exactn>: Simplify because the compiled pattern
27386         is multibyte.
27387         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27388         <charset>: Use CHAR_LEADING_CODE to get leading codes.
27389         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27390         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27391         multibyte always 1.
27392         (re_search_2): In emacs, set the locale variable multibyte to 1,
27393         otherwise to 0.  New local variable target_multibyte.  Check it
27394         to decide the multibyteness of STR1 and STR2.
27395         If target_multibyte is zero, convert unibyte chars to multibyte
27396         before translating and checking fastmap.
27397         (TARGET_CHAR_AND_LENGTH): New macro.
27398         (re_match_2_internal): In emacs, set the locale variable multibyte
27399         to 1, otherwise to 0.  New local variable target_multibyte.
27400         Check it to decide the multibyteness of STR1 and STR2.
27401         Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27402         <charset, charset_not>: If multibyte is nonzero, check fastmap
27403         only for ASCII chars.  Call bcmp_translate with
27404         target_multibyte, not with multibyte.
27405         <begline>: Declare the local variable C as `unsigned'.
27406         (bcmp_translate): Change the last arg name to target_multibyte.
27408         * search.c (compile_pattern_1): Don't adjust the multibyteness of
27409         the regexp pattern and the matching target.  Set cp->buf.multibyte
27410         to the multibyteness of the regexp pattern.  Set
27411         cp->but.target_multibyte to the multibyteness of the matching target.
27412         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27413         FETCH_STRING_CHAR_ADVANCE.
27414         (Freplace_match): Convert unibyte chars to multibyte.
27416         * syntax.c (char_quoted, back_comment, scan_words)
27417         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27418         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27419         unibyte chars to multibyte.
27420         (skip_chars): Delete the arg syntaxp, and move the code for
27421         handling syntaxes to skip_syntaxes.  Change callers.
27422         Fix the case that the multibyteness of STRING and the current
27423         buffer doesn't match.
27424         (skip_syntaxes): New function.
27425         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27426         SINGLE_BYTE_CHAR_P.
27428 2008-02-01  Kenichi Handa  <handa@m17n.org>
27430         * xfaces.c (QCfontset): New variable.
27431         (LFACE_FONTSET): New macro.
27432         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27433         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27434         (Finternal_set_lisp_face_attribute)
27435         (Finternal_get_lisp_face_attribute): Handle QCfontset.
27436         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27437         check also LFACE_FONTSET_INDEX.
27438         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27439         attrs[LFACE_FONT_INDEX].
27440         (syms_of_xfaces): Intern and staticpro QCfontset.
27442         * dispextern.h (enum lface_attribute_index): New member
27443         LFACE_FONTSET_INDEX.
27445         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27447 2008-02-01  Kenichi Handa  <handa@m17n.org>
27449         * coding.c (coding_set_destination): Fix coding->destination for
27450         the case converting a region.
27451         (encode_coding_utf_8): Encode eight-bit chars as single byte.
27452         (encode_coding_object): Fix coding->dst_pos and
27453         coding->dst_pos_byte for the case converting a region.
27455         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27457         * character.h (BYTE8_STRING): New macro.
27459         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27461 2008-02-01  Kenichi Handa  <handa@m17n.org>
27463         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27464         characters by octal form.
27466         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27468         * buffer.h (_fetch_multibyte_char_len): Delete extern.
27469         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27470         _fetch_multibyte_char_len.
27471         (FETCH_CHAR_AS_MULTIBYTE): New macro.
27473         * casetab.c (set_canon, set_identity, shuffle): Simplify.
27475         * casefiddle.c (casify_object): Simplify.  Handle the case that
27476         the case conversion change the byte length.
27477         (casify_region): Likewise.
27479         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27481         * character.c (_fetch_multibyte_char_len): Delete this variable.
27482         (syms_of_character): Setup Vprintable_chars.
27484         * editfns.c (Fchar_equal): Fix for the unibyte case.
27485         (Finsert_byte): New function.
27486         (syms_of_editfns): Defsubr it.
27488         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27489         of direct code 0x3ffff.
27491         * search.c (Freplace_match): Fix for the unibyte case.
27493 2008-02-01  Kenichi Handa  <handa@m17n.org>
27495         * lread.c (safe_to_load_p): Fix the logic.
27497         * syntax.c (scan_words): Don't treat characters belonging to
27498         different scripts as constituting a word.
27500         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27502         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27504         * emacs.c (main): In the case of --unibyte, instead of aborting on
27505         finding non-empty buffer, make it unibyte.
27507 2008-02-01  Kenichi Handa  <handa@m17n.org>
27509         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27510         to create a fontset.
27512 2008-02-01  Dave Love  <fx@gnu.org>
27514         * character.c (Funibyte_char_to_multibyte): Doc fix.
27516         * xfns.c [HAVE_STDLIB_H]: Fix last change.
27518 2008-02-01  Kenichi Handa  <handa@m17n.org>
27520         * fontset.c (fontset_add): Make the type `int'.
27521         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27523         * character.c (unibyte_char_to_multibyte)
27524         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27525         charset_unibyte, not charset_primary.
27527         * charset.h (charset_unibyte): Extern it instead of charset_primary.
27529         * charset.c (charset_unibyte): Rename from charset_primary.
27530         (Funibyte_charset): Rename from Fprimary_charset.
27531         (Fset_unibyte_charset): Rename from Fset_primary_charset.
27532         (syms_of_charset): Adjust for the above changes.
27534         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27535         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
27536         it->multibyte_p is zero.
27538         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27539         Delete extern.
27541 2008-02-01  Kenichi Handa  <handa@m17n.org>
27543         * coding.c (Fdefine_coding_system_internal): Fix category setting
27544         for a coding system of type iso-2022.
27546 2008-02-01  Kenichi Handa  <handa@m17n.org>
27548         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27550 2008-02-01  Kenichi Handa  <handa@m17n.org>
27552         * syntax.c (Vnext_word_boundary_function_table): New variable.
27553         (next-word-boundary-function-table): Declare it as a Lisp variable
27554         in syms_of_syntax.
27555         (scan_words): Call functions in Vnext_word_boundary_function_table
27556         if any.
27558         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27560         * fontset.c (fs_load_font): If fontp->charset is not negative,
27561         return fontp without setting its members.
27563 2008-02-01  Dave Love  <fx@gnu.org>
27565         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27567         * m/sparc.h (HAVE_ALLOCA): Delete.
27569         * s/irix6-5.h: Don't include strings.h.
27570         (bcopy, bzero, bcmp): Don't undef.
27572         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27574         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27575         (TIOCSIGSEND): Don't test IRIX6.
27576         (bcopy, bzero, bcmp): Define conditionally.
27578 2008-02-01  Kenichi Handa  <handa@m17n.org>
27580         * buffer.c (Qas, Qmake, Qto): New variables.
27581         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
27582         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27584         * callproc.c (Fcall_process): Don't call insert_1_both directly if
27585         we are inserting a process output into a multibyte buffer.
27587         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27588         multibyte_char_to_unibyte.
27590         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27591         by the primary charset, make it eight-bit char.
27592         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27594         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27595         (charset_8_bit__control, charset_8_bit_graphic)
27596         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27597         (define_charset_internal): New function.
27598         (syms_of_charset): Call define_charset_internal for pre-defined
27599         charsets.
27601         * charset.h (charset_8_bit): Extern it.
27603         * coding.c (make_conversion_work_buffer): Adjust for the change
27604         of Fset_buffer_multibyte.
27605         (encode_coding_raw_text): Increment p0 in the loop.
27607         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27609         * xdisp.c (setup_echo_area_for_printing, set_message_1):
27610         Adjust for the change of Fset_buffer_multibyte.
27612         * fns.c (Fstring_to_multibyte): New function.
27613         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27615 2008-02-01  Dave Love  <fx@gnu.org>
27617         * xfns.c (x_put_x_image): Declare args.
27619         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27620         (try_font_list): Declare an arg.
27622         * xdisp.c (message2_nolog, set_message): Declare an arg.
27624         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
27626         * syntax.c (scan_sexps_forward): Declare an arg.
27628         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27629         Declare an arg.
27631         * lisp.h (Fnew_fontset): Declare.
27633         * keymap.c (push_key_description): Call CHARACTERP correctly.
27635         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
27636         (face_for_char): Delete unused vars.
27637         (Fset_fontset_font): Doc fix.  Delete unused vars.
27639         * doc.c (Fsubstitute_command_keys): Delete unused vars.
27641         * composite.c (update_compositions): Declare arg.
27643         * cm.c (calccost, cmgoto): Declare args.
27645         * charset.c: Remove `emacs' conditional.  Doc fixes.
27646         (map_char_table_for_charset): Declare.
27648         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27650         * ccl.c: Remove `emacs' conditional.
27652 2008-02-01  Kenichi Handa  <handa@m17n.org>
27654         The following changes are to allow specifying multiple font
27655         patterns for a character range (specified by script or charset).
27657         * Makefile.in (abbrev.o): Depend on syntax.h.
27658         (xfaces.o): Depend on charset.h.
27660         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27661         SINGLE_BYTE_CHAR_P.
27663         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27665         * character.h (Vchar_script_table): Extern it.
27667         * character.c (Vscript_alist): Delete.
27668         (Vchar_script_table, Qchar_script_table): New variable.
27669         (syms_of_character): Declare Vchar_script_table as a lisp variable
27670         and initialize it.
27672         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
27673         have property char-table-extra-slots, make no extra slot.
27675         * dispextern.h (struct face): Delete member `charset'.
27676         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27677         SINGLE_BYTE_CHAR_P.
27678         (choose_face_font, lookup_non_ascii_face, font_name_registry):
27679         Add prototypes.
27680         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27681         (generate_ascii_font_name): Rename from generate_ascii_font.
27683         * fontset.h (get_font_repertory_func): New prototype.
27684         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27685         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27687         * fontset.c (Qprepend, Qappend): New variables.
27688         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27689         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27690         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27691         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27692         (fontset_ref_and_range, fontset_add, reorder_font_vector)
27693         (load_font_get_repertory): New functions.
27694         (fontset_set): Delete.
27695         (fontset_face): New arg FACE.  Return face ID, not face.
27696         Complete re-write to handle new fontset structure.  Change caller.
27697         (free_face_fontset): Use ASET istead of AREF (X) = Y.
27698         (face_for_char): Don't call lookup_face.
27699         (make_fontset_for_ascii_face): New arg FACE.
27700         (fs_load_font): New arg CHARSET_ID.  Don't check
27701         Vfont_encoding_alist here.
27702         (find_font_encoding): New function.
27703         (list_fontsets): Use STRINGP, not ! NILP.
27704         (accumulate_script_ranges): New function.
27705         (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27706         Completely re-written to handle new fontset structure.
27707         (Ffontset_font): Return a copy of element.
27708         (syms_of_fontset): Define symbols Qprepend and Qappend.
27709         Fix docstring of font-encoding-alist.
27711         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27712         (Fset_fotset_font): Fix arguments to 5.
27714         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27716         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27717         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27718         (highlight_trailing_whitespace): Adjust for the change of
27719         lookup_named_face.
27721         * xfaces.c: Include charset.h.
27722         (load_face_font): Delete argument C.  Change caller.
27723         (generate_ascii_font_name): Rename from generate_ascii_font.
27724         (font_name_registry): New function.
27725         (cache_face): Store ascii faces before non-ascii faces in buckets.
27726         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
27727         Lookup only ascii faces.
27728         (lookup_non_ascii_face): New function.
27729         (lookup_named_face): Delete argument C.  Change caller.
27730         (lookup_derived_face): Delete argument C.  Change caller.
27731         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
27732         a string, just call font_list with it.
27733         (choose_face_font): Delete arguments FACE and C.  New arg
27734         FONT_SPEC.  Change caller.
27735         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27736         Change caller.
27737         (realize_non_ascii_face): New function.
27738         (realize_x_face): Call load_face_font here.
27739         (realize_tty_face): Delete argument C.  Change caller.
27740         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27741         get a face ID.
27742         (dump_realized_face): Don't print charset of FACE.
27744         * xfns.c (x_set_font): Always call x_new_fontset and
27745         store_frame_parameter.
27746         (Fx_create_frame): Call x_new_fontset, not x_new_font.
27747         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27749         * xterm.h (x_get_font_repertory): Extern it.
27751         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27752         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
27753         it->multibyte_p is zero.
27754         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27755         (x_new_fontset): If FONTSETNAME doesn't match any existing
27756         fontsets, create a new one.
27757         (x_get_font_repertory): New function.
27759 2008-02-01  Kenichi Handa  <handa@m17n.org>
27761         * coding.c (Ffind_coding_systems_region_internal): Detect an
27762         ASCII only string correctly.
27764         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27765         version is 0.
27767 2008-02-01  Kenichi Handa  <handa@m17n.org>
27769         * lread.c: Include "coding.h".
27770         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27771         (load_each_byte, unread_char): New variables.
27772         (readchar_backlog): Delete.
27773         (readchar): Return a character unless load_each_byte is nonzero.
27774         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27775         cons.  If unread_char is not -1, simply return it.
27776         (unreadchar): Handle the case that readcharfun is
27777         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
27778         (read_multibyte): Delete.
27779         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27780         (read_emacs_mule_char): New functions.
27781         (Fload): Even if the file doesn't have the extension ".elc", if
27782         safe_to_load_p returns a positive version number, assume that the
27783         file contains bytecompiled code.  If the version is less than 22,
27784         load the file while decoding multibyte sequences by emacs-mule.
27785         (readevalloop): Don't use readchar_backlog.
27786         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
27787         (Fread_from_string): Pay attention to the case that STREAM is a cons.
27788         (read_escape): Delete the arg BYTEREP.
27789         (read1): Set load_each_byte to 1 temporarily while handling
27790         #@NUMBER.  Don't call read_multibyte.
27791         (read_vector): Call Fread with a cons.  If readcharfun is
27792         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27793         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27794         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27795         and Qload_force_doc_strings.
27797 2008-02-01  Kenichi Handa  <handa@m17n.org>
27799         * xdisp.c (face_before_or_after_it_pos):
27800         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
27802 2008-02-01  Kenichi Handa  <handa@m17n.org>
27804         * character.h (TRAILING_CODE_P): New macro.
27805         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27806         (string_char_with_unification): Fix prototype.
27807         (Vscript_alist): Extern it.
27809         * character.c (Vscript_alist): New variable.
27810         (string_char_with_unification, str_as_unibyte)
27811         (string_escape_byte8): Add `const' to local variables.
27812         (syms_of_character): Declare script-alist as a Lisp variable.
27814         * charset.h (Vcharset_ordered_list): Extern it.
27815         (charset_ordered_list_tick): Extern it.
27816         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27817         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27818         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27819         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27820         (Funify_charset): Adjust for the change of Funify_charset.
27822         * charset.c (charset_ordered_list_tick): New variable.
27823         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27824         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
27825         deunify instead of unify a charset.
27826         (string_xstring_p): Add `const' to local variables.
27827         (find_charsets_in_text): Add `const' to arguments and local variables.
27828         (encode_char): Adjust for the change of Funify_charset.
27829         Fix detecting of invalid code.
27830         (Fset_charset_priority): Increment charset_ordered_list_tick.
27831         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27832         and TO_CODE.
27834         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27835         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27836         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27837         (decode_coding_ccl, consume_chars)
27838         (Ffind_coding_systems_region_internal)
27839         (Fcheck_coding_systems_region): Add `const' to local variables.
27841         * print.c (print_object): Use octal form for printing the
27842         contents of a bool vector.
27844 2008-02-01  Dave Love  <fx@gnu.org>
27846         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27847         <version == 20>: Refuse to load.
27849 2008-02-01  Dave Love  <fx@gnu.org>
27851         * fns.c: Move coding.h.
27852         (Qcodeset, Qdays, Qmonths): New.
27853         (concat): Use CHARACTERP instead of INTEGERP.
27854         (Flocale_codeset): Delete.
27855         (Flanginfo): New function.
27856         (syms_of_fns): Change accordingly.
27858         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27860 2008-02-01  Dave Love  <fx@gnu.org>
27862         * casetab.c (init_casetab_once, init_casetab_once):
27863         Fix CHAR_TABLE_SET call.
27865         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27867         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27869         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
27870         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27871         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27873         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27875         * coding.c (ENCODE_DESIGNATION, decode_eol)
27876         (make_conversion_work_buffer, code_conversion_restore)
27877         (Fdefine_coding_system_internal): Convert Lisp types.
27878         (code_conversion_restore): Use EQ, not ==.
27879         (Fencode_coding_string): Fix code_convert_string call.
27881         * coding.h (code_convert_region): Fix prototype.
27883         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27885         * fontset.c (fontset_ref, fontset_set, fs_load_font)
27886         (Ffontset_info): Convert Lisp types.
27888         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27890         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27892         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27894         * chartab.c: Include "...h", not <...h> in some cases.
27896         * callproc.c (Fcall_process): Remove unused variables.
27898 2008-02-01  Dave Love  <fx@gnu.org>
27900         * coding.c (Fset_coding_system_priority): Allow null arg list.
27902 2008-02-01  Dave Love  <fx@gnu.org>
27904         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27905         (Fself_insert_and_exit): Use CHARACTERP.
27907         * callproc.c (Fcall_process): Remove unused vars.
27909         * xterm.c (XTread_socket): Add extra dead keysyms.
27911         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27913         * dispextern.h: Remove prototypes for redraw_frame,
27914         redraw_garbaged_frames.
27916         * cmds.c (Fself_insert_command): Use CHARACTERP.
27918         * chartab.c (make_sub_char_table): Remove unused var.
27919         (Fset_char_table_default, Fmap_char_table): Doc fix.
27921         * keymap.c (access_keymap): Remove generic char code.
27922         (push_key_description): Use CHARACTERP.
27924 2008-02-01  Dave Love  <fx@gnu.org>
27926         * charset.c: Doc fixes.
27927         (Funify_charset): Extra checking.
27929 2008-02-01  Dave Love  <fx@gnu.org>
27931         * lread.c: Remove some unused variables.
27932         (safe_to_load_p): If safe, return the magic number version byte.
27933         (Fload): Maybe use load-with-code-conversion.
27935 2008-02-01  Kenichi Handa  <handa@m17n.org>
27937         * category.c (Fmodify_category_entry): Don't modify the contents
27938         of category_set for characters out of the range.
27939         Avoid unnecessary modification.
27941         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27942         Vchar_unify_table.  The default value of the table is now nil.
27944         * character.c (syms_of_character): Setup Vchar_width_table for
27945         eight-bit-control and raw-byte chars.
27947         * charset.h (enum define_charset_arg_index):
27948         Delete charset_arg_parents and add charset_arg_subset and
27949         charset_arg_superset.
27950         (enum charset_attr_index): Delete charset_parents and add
27951         charset_subset and charset_superset.
27952         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27953         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27954         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27955         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27956         (CHARSET_SUPERSET): New macros.
27957         (charset_work): Extern it.
27958         (ENCODE_CHAR): Use charset_work.
27959         (CHAR_CHARSET_P): Adjust for the change of encoder format.
27960         (map_charset_chars): Extern it.
27962         * charset.c (load_charset_map): Set the default value of encoder
27963         and deunifier char-tables to nil.
27964         (map_charset_chars): Change argument.  Change callers.
27965         Use map_char_table_for_charset instead of map_char_table.
27966         (Fmap_charset_chars): New optional args from_code and to_code.
27967         (Fdefine_charset_internal): Adjust for the change of
27968         `define-charset' (:parents -> :subset or :superset).
27969         (charset_work): New variable.
27970         (encode_char, syms_of_charset): Adjust for the change of
27971         Fdefine_charset_internal.
27972         (Ffind_charset_string): Setup the vector `charsets' correctly.
27974         * chartab.c (sub_char_table_ref_and_range): New arg default.
27975         Fix the previous change.
27976         (char_table_ref_and_range): Adjust for the above change.
27977         (map_sub_char_table_for_charset): New function.
27978         (map_char_table_for_charset): New function.
27980         * keymap.c (describe_vector): Handle a char-table directly here.
27981         (describe_char_table): Delete.
27983         * lisp.h (map_charset_chars): Delete.
27985 2008-02-01  Dave Love  <fx@gnu.org>
27987         * fns.c (count_combining): Comment out (unused).
27988         (Flocale_codeset): New.
27989         (syms_of_fns): Defsubr it.
27991         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27992         (size_t): Remove.
27994 2008-02-01  Dave Love  <fx@gnu.org>
27996         * Makefile.in (chartab.o): Depend on charset.h.
27998 2008-02-01  Kenichi Handa  <handa@m17n.org>
28000         * character.c (syms_of_character): Set the default value of
28001         Vprintable_chars to Qnil.
28003 2008-02-01  Dave Love  <fx@gnu.org>
28005         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28007 2008-02-01  Kenichi Handa  <handa@m17n.org>
28009         * charset.c (load_charset_map): Handle the case that from < to
28010         correctly.
28012         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28013         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28014         Pay attention to raw-8-bit chars.
28016 2008-02-01  Kenichi Handa  <handa@m17n.org>
28018         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28019         It is not bytecompiled now.
28021         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28022         (charset_jisx0208): New variables.
28023         (Fdefine_charset_internal): Setup them if appropriate.
28024         (init_charset_once): Initialize them to -1.
28026         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28027         (charset_jisx0208): Extern them.
28029         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28030         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28031         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28032         (setup_iso_safe_charsets): Fix arguments to Fassq.
28033         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28034         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28035         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28036         (encode_coding_iso_2022): Change the 1st arg to
28037         ENCODE_ISO_CHARACTER to a variable.
28039 2008-02-01  Kenichi Handa  <handa@m17n.org>
28041         * charset.h (enum define_charset_arg_index): New enums
28042         charset_arg_min_code and charset_arg_max_code.
28043         (struct charset): New member char_index_offset.
28045         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28046         Take charset->char_index_offset into account.
28047         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28048         args[charset_arg_max_code].  Setup charset.char_index_offset.
28049         (syms_of_charset): Fix args to Fdefine_charset_internal.
28051 2008-02-01  Dave Love  <fx@gnu.org>
28053         * coding.c (decode_coding_utf_8): Reject overlong sequences.
28055 2008-02-01  Dave Love  <fx@gnu.org>
28057         * coding.c: Doc fixes.
28058         (Fcoding_system_aliases): Fix return value.
28059         (Qmac): Remove (duplicated) definition.
28061 2008-02-01  Dave Love  <fx@gnu.org>
28063         * charset.c (Fcharset_priority_list, Fset_charset_priority):
28064         New functions.
28066         * character.c (Fstring): Doc fix.
28068         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28070         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not ids.
28071         (font-encoding-alist): Doc fix.
28073 2008-02-01  Dave Love  <fx@gnu.org>
28075         * term.c (costs_set): Declare static, non-initialized for pcc.
28076         (encode_terminal_code): Remove unused var.
28078         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28079         for K&R.
28081         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28083         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28084         (suffixes): Move out of make_subsidiaries for K&R.
28086         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28088         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28090 2008-02-01  Dave Love  <fx@gnu.org>
28092         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
28094         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
28096 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
28098         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28100         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28102 2008-02-01  Kenichi Handa  <handa@m17n.org>
28104         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28105         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
28107 2008-02-01  Kenichi Handa  <handa@m17n.org>
28109         * coding.c (decode_coding_charset): Adjust for the change of
28110         Fdefine_coding_system_internal.
28111         (Fdefine_coding_system_internal): For a coding system of
28112         `charset' type, store a list of charset IDs in
28113         `charset_attr_charset_valids' element of coding attributes.
28115 2008-02-01  Kenichi Handa  <handa@m17n.org>
28117         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28118         (emacs_mule_char): New arg src.  Delete arg `composition'.
28119         Change caller.  Handle 2-byte and 3-byte charsets correctly.
28120         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28121         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
28122         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28123         (DECODE_EMACS_MULE_21_COMPOSITION):
28124         Call DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
28125         sequence.
28126         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
28127         `src' and `consumed_chars' correctly before calling emacs_mule_char.
28128         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28129         and alt&rule composition.
28130         (decode_coding_iso_2022): Handle composition correctly.
28131         (init_coding_once): Setup emacs_mule_bytes for private charsets.
28133         * charset.c (Fdefine_charset_internal): Fix bug for the case of
28134         re-defining a charset.  If the charset has :emacs-mule-id, setup
28135         emacs_mule_bytes.
28136         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28138 2008-02-01  Kenichi Handa  <handa@m17n.org>
28140         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28141         (encode_coding_big5, encode_coding_charset): If coding requires safe
28142         encoding, produce a character specified by
28143         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28145 2008-02-01  Dave Love  <fx@gnu.org>
28147         * xterm.c (XSetIMValues): Declare.
28149         * process.c: Conditionally include sys/wait.h, pty.h.
28151         * print.c (print_object): Fix print format for 64-bit systems.
28153         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28155         * buffer.c (emacs_strerror): Declare.
28157         * fontset.c (Fclear_face_cache): Declare.
28158         (accumulate_font_info): Comment-out (unused).
28159         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28160         variables.
28162         * character.h (string_escape_byte8): Declare.
28164         * charset.c (load_charset_map, load_charset_map_from_file):
28165         Remove unused vars.
28166         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28167         (Fmap_charset_chars): Doc fix.
28169         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28170         (Fset_coding_system_priority, Fset_coding_system_priority)
28171         (Fdefine_coding_system_internal): Doc fix.
28173 2008-02-01  Dave Love  <fx@gnu.org>
28175         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28177 2008-02-01  Kenichi Handa  <handa@m17n.org>
28179         * character.c (string_escape_byte8): Make multibyte string with
28180         correct size.
28182         * charset.c (Fmake_char): Delete unnecessary code.
28184 2008-02-01  Kenichi Handa  <handa@m17n.org>
28186         * xfns.c (x_encode_text): Allocate coding.destination here, and
28187         call encode_coding_object with dst_object Qnil.
28189         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28190         multibyte form correctly.
28192         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28193         against Vfont_encoding_alist.
28195         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
28196         handling of charset list.
28197         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28198         (decode_coding_object): Move point to coding->dst_pos before
28199         calling post-read-conversion function.
28200         (encode_coding_object): Give correct arguments to
28201         pre-write-conversion.  Ignore the return value of
28202         pre-write-conversion function.  Pay attention to the case that
28203         pre-write-conversion changes the current buffer.  If dst_object is
28204         Qt, even if coding->src_bytes is zero, allocate at least one byte
28205         to coding->destination.
28207         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28209         * charset.c (Fmake_char): Make it more backward compatible.
28210         (Fmap_charset_chars): Fix docstring.
28212 2008-02-01  Dave Love  <fx@gnu.org>
28214         * coding.c: Doc fixes.
28215         (Fdefine_coding_system_alias): Use names, not symbols, in
28216         coding-system-alist.
28218 2008-02-01  Kenichi Handa  <handa@m17n.org>
28220         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28221         of calling free_realized_face.
28223 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
28225         * charset.c (read_hex): Don't treat SPC as a comment starter.
28226         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28227         (Fdecode_char): Fix typo.
28229 2008-02-01  Kenichi Handa  <handa@m17n.org>
28231         * charset.h (struct charset): New member `code_space_mask'.
28233         * coding.c (coding_set_source): Delete the local variable beg_byte.
28234         (encode_coding_charset, Fdefine_coding_system_internal):
28235         Delete the local variable charset.
28236         (Fdefine_coding_system_internal):
28237         Setup attrs[coding_attr_charset_valids] correctly.
28239         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28240         member to check if CODE is valid or not.
28241         (Fdefine_charset_internal): Initialize `code_space_mask' member.
28242         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28243         is within the range of charset->min_code and carset->max_code.
28245 2008-02-01  Dave Love  <fx@gnu.org>
28247         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28249         * dispextern.h (generate_ascii_font): Fix return type.
28251         * xfaces.c (generate_ascii_font): Fix arg declaration.
28253         * coding.c (coding_inherit_eol_type)
28254         (Fset_terminal_coding_system_internal)
28255         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28257 2008-02-01  Kenichi Handa  <handa@m17n.org>
28259         * coding.c (decode_coding_charset, encode_coding_charset):
28260         Handle multiple charsets correctly.
28262 2008-02-01  Kenichi Handa  <handa@m17n.org>
28264         * search.c (boyer_moore): Fix handling of multibyte character
28265         translation.
28267         * xdisp.c (display_mode_element): When the variable `elt' is
28268         changed, update `this' and `lisp_string'.
28270 2008-02-01  Kenichi Handa  <handa@m17n.org>
28272         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28274         * callproc.c (Fcall_process): Be sure to give the current buffer
28275         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
28277         * charset.c (struct charset_map_entries): New struct.
28278         (load_charset_map): Rename from parse_charset_map.  New args
28279         entries and n_entries.  Change caller.
28280         (load_charset_map_from_file): Rename from load_charset_map.
28281         Change caller.  New arg control_flag.  Call load_charset_map at
28282         the tail.
28283         (load_charset_map_from_vector): New function.
28284         (Fdefine_charset_internal): Setup charset.compact_codes_p.
28285         (encode_char): If the charset is compact, change a character index
28286         to a code point.
28288         * coding.c (coding_alloc_by_making_gap): Check the case that the
28289         source and destination are the same correctly.
28290         (decode_coding_raw_text): Set coding->consumed_char and
28291         coding->consumed to 0.
28292         (produce_chars): If coding->chars_at_source is nonzero, update
28293         coding->consumed_char and coding->consumed before calling
28294         alloc_destination.
28295         (Fdefine_coding_system_alias): Register ALIAS in
28296         Vcoding_system_alist.
28297         (syms_of_coding): Define `no-conversion' coding system at the tail.
28299         * fileio.c (Finsert_file_contents): Set coding_system instead of
28300         val.  If the current buffer is multibyte, always call
28301         decode_coding_gap.
28303         * xfaces.c (try_font_list): Give higher priority to fontset's
28304         family than face's family.
28306 2008-02-01  Kenichi Handa  <handa@m17n.org>
28308         * callproc.c (Fcall_process): Be sure to give the current buffer
28309         to decode_coding_c_string.
28311         * xfaces.c (try_font_list): Give a family specified in a fontset
28312         higher priority than a family specified in a face.
28314 2008-02-01  Kenichi Handa  <handa@m17n.org>
28316         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28317         Fix arguments to insert_from_buffer.
28319         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28321 2008-02-01  Kenichi Handa  <handa@m17n.org>
28323         * coding.c (produce_chars): Set the variable `multibytep' correctly.
28324         (decode_coding_gap): Set coding->dst_multibyte correctly.
28326 2008-02-01  Kenichi Handa  <handa@m17n.org>
28328         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28329         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28330         (encode_coding_utf_16): Substitute coding->default_char for
28331         non-Unicode characters.
28332         (decode_coding): Don't call record_insert here.
28333         (setup_coding_system): Initialize `surrogate' of
28334         coding->spec.utf_16 to 0.
28335         (EMIT_ONE_BYTE): Fix for multibyte case.
28337         * insdel.c (insert_from_gap): Call record_insert.
28339 2008-02-01  Kenichi Handa  <handa@m17n.org>
28341         * casefiddle.c (casify_region): Fix multibyte case.
28343         * character.c (c_string_width): Add return type `int'.
28344         (char_string_with_unification): Delete arg ADVANCED.
28346         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28347         (CHAR_STRING): Adjust for the change of char_string_with_unification.
28348         (CHAR_STRING_ADVANCE): Make it do-while statement.
28350         * chartab.c (sub_char_table_set_range): Optimize for the case
28351         DEPTH == 3.  Add workaround code for a GCC optimization bug.
28353         * charset.c (parse_charset_map): Remove an unused variable.
28355         * coding.c: Delete unused variables.
28357         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28358         earlier.  If inserted is zero and the coding system doesn't
28359         require flushing, don't call decode_coding_gap.
28361         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28363 2008-02-01  Kenichi Handa  <handa@m17n.org>
28365         The following changes are for using Unicode as an internal
28366         character model, and use UTF-8 format for buffer/string
28367         representation.
28369         * .gdbinit (xchartable): Adjust for the change of char table structure.
28370         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28372         * Makefile.in (obj): Add character.o and chartab.o.
28373         (lisp, shortlisp): Remove utf-8.elc.
28374         (*.o): For many files, change dependency on charset.h to
28375         character.h, and add dependency on character.h.
28376         (character.o, chartab.o): New targets.
28378         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28379         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28380         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28381         of "charset.h".
28383         * dired.c, filelock.c: Include "character.h".
28385         * alloc.c: Include "character.h" instead of "charset.h".
28386         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28387         (syms_of_alloc): Remove defsubr for Smake_char_table.
28389         * buffer.c: Include "character.h" instead of "charset.h", don't
28390         include "coding.h".
28391         (Fset_buffer_multibyte): Adjust for UTF-8.
28393         * buffer.h: EXFUN Fbuffer_live_p.
28395         * callproc.c: Include "character.h" instead of "charset.h".
28396         (Fcall_process): Big change for the new code-conversion APIs.
28398         * casetab.c: Include "character.h" instead of "charset.h".
28399         (set_canon, set_identity, shuffle): Adjust for the new
28400         map_char_table spec.
28401         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28402         accessing the char table structure.
28404         * chartab.c: New file that implements char table.
28406         * category.c: Include "character.h".
28407         (copy_category_entry): New function.
28408         (copy_category_table): Call map_char_table and copy_category_entry.
28409         (Fmake_category_table): Initialize all top-level slots.
28410         (char_category_set): New function.
28411         (modify_lower_category_set): Delete.
28412         (Fmodify_category_entry): Call char_table_ref_and_range.
28414         * category.h (CATEGORY_SET): Just call char_category_set.
28416         * ccl.c: Include "character.h".
28417         (Qccl, Qcclp): New variables.
28418         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28419         it's less than 256.
28420         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28421         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28422         and DST type.
28423         (ccl_driver): Change types of argument, adjust code accordingly.
28424         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28425         ccl_driver.
28426         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28428         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28429         New members src_multibyte, dst_multibyte, consumed, and produced.
28430         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
28431         (CODING_SPEC_CCL_PROGRAM): New macro.
28432         (ccl_driver): Update prototype.
28433         (Qccl, Qcclp, Fccl_program_p): Extern them.
28434         (CHECK_CCL_PROGRAM): New macro.
28436         * character.c, character.h, chartab.c: New files.
28438         * charset.c: Mostly re-written.  Move character and multibyte sequence
28439         handling codes to character.c.
28441         * charset.h: Mostly re-written.  Move character and multibyte sequence
28442         handling codes to character.h.
28444         * coding.c, coding.h: Mostly re-written.
28446         * composite.c: Include "character.h" instead of "charset.h".
28447         (CHAR_WIDTH): Move to character.h.
28448         (HASH_KEY, HASH_VALUE): Delete.
28450         * composite.h (enum composition_method): Change order of enumeration
28451         symbols.
28453         * data.c: Include "character.h" instead of "charset.h".
28454         (Faref): Call CHAR_TABLE_REF for a char table.
28455         (Faset): Call CHAR_TABLE_SET for a char table.
28457         * dispextern.h (free_realized_face, check_face_attribytes)
28458         (generate_ascii_font): Extern them.
28459         (free_realized_multibyte_face): Delete extern.
28461         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28462         table structure.
28464         * editfns.c: Include "character.h" instead of "charset.h".
28465         (Fchar_to_string): Always call CHAR_STRING.
28467         * emacs.c (main): Call init_charset_once, init_charset,
28468         syms_of_chartab, and syms_of_character.
28470         * fileio.c: Include "character.h" instead of "charset.h".
28471         (Finsert_file_contents): Big change for the new code-conversion API.
28472         (choose_write_coding_system, Fwrite_region): Likewise.
28473         (build_annotations_2): Delete.
28474         (e_write): Big change for the new code-conversion API.
28476         * fns.c: Include "character.h" instead of "charset.h".
28477         (copy_sub_char_table): Move to chartab.c.
28478         (Fcopy_sequence): Call copy_char_table for a char table.
28479         (concat): Delete codes calling count_multibyte.
28480         (string_char_to_byte, string_byte_to_char): Adjust for the new
28481         multibyte form.
28482         (internal_equal): Adjust for the change of char table structure.
28483         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28484         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28485         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28486         (char_table_translate, optimize_sub_char_table)
28487         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28488         chartab.c.
28489         (char_table_ref_and_index): Delete.
28490         (HASH_KEY, HASH_VALUE): Move to lisp.h.
28491         (Fmd5): Call preferred_coding_system instead of accessing
28492         Vcoding_category_list.  Adjust for the new code-conversion API.
28493         (syms_of_fns): Move defsubr for char table related functions to
28494         chartab.c.
28496         * fontset.c: Mostly re-written.
28498         * fontset.h (struct font_info): Change type of the member encoding_type.
28499         (enum FONT_SPEC_INDEX): New enum.
28500         (fontset_font_pattern, fs_load_font): Update prototype.
28501         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28503         * indent.c: Include "character.h" instead of "charset.h".
28504         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28506         * insdel.c: Include "character.h" instead of "charset.h".
28507         (copy_text): Don't refer to Vnonascii_translation_table.
28508         (insert_from_gap): New function.
28510         * keyboard.c: Include "character.h" instead of "charset.h".
28511         (command_loop_1): Never call direct_output_forward_char before
28512         a non-ASCII character.
28513         (read_char): If Vkeyboard_translate_table is a char table, always
28514         translate a character.
28516         * keymap.c: Include "character.h".
28517         (store_in_keymap): Handle the case that IDX is a cons.
28518         (Fdefine_key): Handle the case that KEY is a cons and the car part
28519         is also a cons (range).
28520         (push_key_description): Adjust for the new character code.
28521         (describe_vector): Call describe_char_table for a char table.
28522         (describe_char_table): New function.
28524         * keymap.h (describe_char_table): Extern it.
28526         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28527         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28528         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28529         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28530         Delete.
28531         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28532         structure.
28533         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28534         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28535         (CHARTAB_SIZE_BITS_3): New macros.
28536         (chartab_size): Extern it.
28537         (struct Lisp_Char_Table): Re-design.
28538         (struct Lisp_Sub_Char_Table): New structure.
28539         (HASH_KEY, HASH_VALUE): Move from fns.c.
28540         (CHARACTERBITS): Define as 22.
28541         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28542         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28543         (GC_SUB_CHAR_TABLE_P): New macro.
28544         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28545         (code_convert_string_norecord): Delete extern.
28546         (init_character_once, syms_of_character, init_charset)
28547         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28549         * lread.c: Include "character.h".
28550         (read_multibyte): New arg NBYTES.
28551         (read_escape): Change the meaning of returned *BYTEREP.
28552         (to_multibyte): Delete.
28553         (read1): Adjust the handling of char table and string.
28555         * print.c: Include "character.h" instead of "charset.h".
28556         (print_string): Convert 8-bit raw bytes to octal form by
28557         string_escape_byte8.
28558         (print_object): Adjust for the new multibyte form.  Print 8-bit
28559         raw bytes always in octal form.  Handle sub char table correctly.
28561         * process.c: Include "character.h" instead of "charset.h".
28562         (read_process_output, send_process): Adjust for the new
28563         code-conversion API.
28565         * puresize.h (BASE_PURESIZE): Increase.
28567         * regex.c: Include "character.h" instead of "charset.h".
28568         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28569         (regex_compile): Accept a range whose starting and ending
28570         character have different leading bytes.
28571         (analyse_first): Adjust for the above change.
28573         * search.c: Include "character.h" instead of "charset.h".
28574         (search_buffer, boyer_moore): Adjust for the new multibyte form.
28575         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28577         * syntax.c: Include "character.h" instead of "charset.h".
28578         (syntax_parent_lookup): Delete.
28579         (Fmodify_syntax_entry): Accept a cons as CHAR.
28580         (skip_chars): Adjust for the new multibyte form.
28581         (init_syntax_once): Call char_table_set_range instead of directly
28582         accessing the structure of a char table.
28584         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28585         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28586         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28587         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28589         * term.c: Include "buffer.h" and "character.h".
28590         (encode_terminal_code, write_glyphs): Adjust for the new
28591         code-conversion API.
28592         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28594         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28596         * xdisp.c: Include "character.h".
28597         (get_next_display_element): Adjust for the new multibyte form.
28598         (disp_char_vector): Adjust for the new char table structure.
28599         (decode_mode_spec_coding): Adjust for the new structure of
28600         coding system.
28601         (decode_mode_spec): Adjust for the new code-conversion API.
28603         * xfaces.c: Include "character.h" instead of "charset.h".
28604         (load_face_font): Adjust for the change of choose_face_font and
28605         FS_LOAD_FONT.
28606         (generate_ascii_font): New function.
28607         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28608         (set_font_frame_param): Adjust for the change of choose_face_font.
28609         (free_realized_face): Make it public.
28610         (free_realized_faces_for_fontset): Rename from
28611         free_realized_multibyte_face.  Free also faces realized for ASCII.
28612         (choose_face_font): Change arguments.  Adjust for the change of
28613         fontset_font_pattern and FS_LOAD_FONT.
28615         * xfns.c: Include "character.h".
28616         (x_encode_text): Adjust for the new code-conversion API.
28618         * xselect.c: Don't include "charset.h".
28619         (selection_data_to_lisp_data): Adjust for the new code conversion API.
28621         * xterm.c: Include "character.h".
28622         (x_encode_char): New argument CHARSET.  Change caller.
28623         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28624         Call ENCODE_CHAR instead of SPLIT_CHAR.
28625         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28626         CHAR_WIDTH instead of CHARSET_WIDTH.
28627         (XTread_socket): Adjust for the new code-conversion API.
28628         (x_new_font): Adjust for the change of FS_LOAD_FONT.
28629         (x_load_font): Adjust for the change of struct font.
28631 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
28633         * xfaces.c (face_at_buffer_position): Remove unused vars.
28635 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
28637         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28638         Fix overflow checking.
28640 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
28642         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28643         Cancel previous change.
28645 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
28647         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28648         ccl->eight_bit_control.  Fix check for buffer overflow.
28649         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28650         (ccl_driver): Initialize extra_bytes to 0.
28652 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
28654         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28655         return it ORed with ctrl_modifier.
28657 2008-01-29  Miles Bader  <miles@gnu.org>
28659         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28661 2008-01-28  Jason Rumney  <jasonr@gnu.org>
28663         * w32.c (stat): Don't double check for networked drive.
28665 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
28667         * window.c (run_window_configuration_change_hook): New function.
28668         Code extracted from set_window_buffer.  Set the selected frame.
28669         (set_window_buffer): Use it.
28670         * window.h (run_window_configuration_change_hook): Declare.
28671         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28673         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28675 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
28677         * Makefile.in: Remove references to unused macros.
28679 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
28681         * w32.c (g_b_init_get_sid_sub_authority)
28682         (g_b_init_get_sid_sub_authority_count): New static variables.
28683         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28684         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28685         (init_user_info): Use them to retrieve uid and gid.
28686         Use 500/513, the Windows defaults, as Administrator's uid/gid.
28687         (fstat): Use pw_uid and pw_gid from the_passwd structure for
28688         st_uid and st_gid of the file.
28690 2008-01-26  Jason Rumney  <jasonr@gnu.org>
28692         * w32.c (logon_network_drive): New function.
28693         (stat): Use it.
28695 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
28697         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28698         invisible text covered with an ellipsis.
28700 2008-01-25  Richard Stallman  <rms@gnu.org>
28702         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28703         jump back to beginning.  Move some other initializations after that.
28704         (Qwindow_text_change_functions, Vwindow_text_change_functions):
28705         New variables.
28706         (syms_of_xdisp): Init them.
28708         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28710         * buffer.c (reset_buffer_local_variables):
28711         Implement `permanent-local-hook'.
28712         (Qpermanent_local_hook): New variable.
28713         (syms_of_buffer): Init and staticpro it.
28715 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
28717         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28719 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
28721         * fns.c (Fclrhash): Return TABLE.
28723 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28725         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28726         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28727         is set even without positional changes.
28728         (x_scroll_bar_clear): Set bar->redraw_needed_p.
28730         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28732 2008-01-23  Jason Rumney  <jasonr@gnu.org>
28734         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28736         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28737         the unicode range available in MULE by locale-coding-system.
28738         Improve dbcs lead byte detection.  Set event timestamp and modifiers
28739         earlier.
28741 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28743         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28744         [MAC_OSX] (init_mac_osx_environment): Initialize it.
28745         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28746         when used on child processes.
28748 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
28750         * dbusbind.c (Fdbus_method_return_internal): Rename from
28751         Fdbus_method_return.
28752         (Fdbus_unregister_object): Move to dbus.el.
28753         (Fdbus_call_method, Fdbus_method_return_internal)
28754         (Fdbus_send_signal): Improve debug messages.
28756 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
28758         * undo.c (undo_inhibit_record_point): New variable.
28759         (syms_of_undo): Initialize it.
28760         (record_point): Don't record point when undo_inhibit_record_point
28761         is set.
28763 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
28765         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28767         * xdisp.c (Qauto_hscroll_mode): New var.
28768         (syms_of_xdisp): Initialize it.
28769         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28770         window's buffer.
28771         (hscroll_windows): Don't check automatic_hscrolling_p here.
28773         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28774         vscroll if we're setting window-buffer to the value it already has.
28776 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
28778         * m/intel386.h: Remove references to XENIX.
28780 2008-01-17  Andreas Schwab  <schwab@suse.de>
28782         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28783         instead of HAVE_X86_64_LIB64_DIR.
28784         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28786 2008-01-17  Glenn Morris  <rgm@gnu.org>
28788         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28789         to HAVE_X86_64_LIB64_DIR.
28791 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
28793         * s/irix3-3.h:
28794         * s/irix4-0.h:
28795         * s/386-ix.h:
28796         * s/domain.h:
28797         * s/hpux9-x11r4.h:
28798         * s/hpux9shxr4.h: Remove files for systems no longer supported.
28800         * sysdep.c: Remove code containing references to symbols defined
28801         by unsupported systems.
28803 2008-01-16  Glenn Morris  <rgm@gnu.org>
28805         * coding.c (select-safe-coding-system-function): Doc fix.
28807 2008-01-15  Glenn Morris  <rgm@gnu.org>
28809         * config.in: Revert 2008-01-13 change: this is a generated file.
28811 2008-01-13  Tom Tromey  <tromey@redhat.com>
28813         * lisp.h: Fix typo.
28815 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
28817         * m/sequent-ptx.h:
28818         * m/sequent.h:
28819         * s/ptx.h:
28820         * s/ptx4-2.h:
28821         * s/ptx4.h: Remove files for systems no longer supported.
28823         * callproc.c (Fcall_process): Fix previous change.
28825 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
28827         * unexsunos4.c: Remove file, system not supported anymore.
28829         * m/mips.h:
28830         * m/intel386.h:
28831         * callproc.c:
28832         * config.in:
28833         * ecrt0.c:
28834         * emacs.c:
28835         * fileio.c:
28836         * frame.c:
28837         * getpagesize.h:
28838         * keyboard.c:
28839         * lread.c:
28840         * process.c:
28841         * puresize.h:
28842         * sysdep.c:
28843         * systty.h:
28844         * syswait.h:
28845         * unexec.c:
28846         * xdisp.c:
28847         * alloc.c: Remove code containing references to symbols defined by
28848         unsupported systems.
28850 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
28852         * coding.c (detect_coding_mask): Fix previous change.
28854 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
28856         * coding.c (detect_coding_iso2022): New arg
28857         latin_extra_code_state.  Allow Latin extra codes only
28858         when *latin_extra_code_state is nonzero.
28859         (detect_coding_mask): If there is a NULL byte, detect the encoding
28860         as UTF-16 or binary.  If Latin extra codes exist, detect the
28861         encoding as ISO-2022 only when there's no other proper encoding is
28862         found.
28864 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28866         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28867         #ifdef MAC_OS.
28869 2008-01-08  Richard Stallman  <rms@gnu.org>
28871         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28873 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
28875         * keyboard.c (parse_menu_item): Don't enclose key bindings on
28876         menu bar in parentheses.
28878 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
28880         * m/7300.h:
28881         * m/acorn.h:
28882         * m/alliant-2800.h:
28883         * m/alliant.h:
28884         * m/alliant1.h:
28885         * m/alliant4.h:
28886         * m/altos.h:
28887         * m/amdahl.h:
28888         * m/apollo.h:
28889         * m/att3b.h:
28890         * m/aviion-intel.h:
28891         * m/aviion.h:
28892         * m/celerity.h:
28893         * m/clipper.h:
28894         * m/cnvrgnt.h:
28895         * m/convex.h:
28896         * m/cydra5.h:
28897         * m/delta88k.h:
28898         * m/dpx2.h:
28899         * m/dual.h:
28900         * m/elxsi.h:
28901         * m/f301.h:
28902         * m/gould-np1.h:
28903         * m/gould.h:
28904         * m/i860.h:
28905         * m/ibmps2-aix.h:
28906         * m/ibmrt-aix.h:
28907         * m/ibmrt.h:
28908         * m/irist.h:
28909         * m/is386.h:
28910         * m/isi-ov.h:
28911         * m/mega68.h:
28912         * m/mg1.h:
28913         * m/news-r6.h:
28914         * m/news-risc.h:
28915         * m/news.h:
28916         * m/nh3000.h:
28917         * m/nh4000.h:
28918         * m/ns16000.h:
28919         * m/ns32000.h:
28920         * m/nu.h:
28921         * m/orion.h:
28922         * m/orion105.h:
28923         * m/paragon.h:
28924         * m/pfa50.h:
28925         * m/plexus.h:
28926         * m/pyramid.h:
28927         * m/pyrmips.h:
28928         * m/sh3el.h:
28929         * m/sps7.h:
28930         * m/sr2k.h:
28931         * m/stride.h:
28932         * m/sun1.h:
28933         * m/sun2.h:
28934         * m/sun3-68881.h:
28935         * m/sun3-fpa.h:
28936         * m/sun3-soft.h:
28937         * m/sun3.h:
28938         * m/sun386.h:
28939         * m/symmetry.h:
28940         * m/tad68k.h:
28941         * m/tahoe.h:
28942         * m/targon31.h:
28943         * m/tek4300.h:
28944         * m/tekxd88.h:
28945         * m/tower32.h:
28946         * m/tower32v3.h:
28947         * m/ustation.h:
28948         * m/wicat.h:
28949         * m/xps100.h:
28950         * s/cxux.h:
28951         * s/cxux7.h:
28952         * s/dgux.h:
28953         * s/dgux4.h:
28954         * s/dgux5-4-3.h:
28955         * s/dgux5-4r2.h:
28956         * s/esix.h:
28957         * s/esix5r4.h:
28958         * s/hiuxmpp.h:
28959         * s/hiuxwe2.h:
28960         * s/iris3-5.h:
28961         * s/iris3-6.h:
28962         * s/isc2-2.h:
28963         * s/isc3-0.h:
28964         * s/isc4-0.h:
28965         * s/isc4-1.h:
28966         * s/newsos5.h:
28967         * s/newsos6.h:
28968         * s/osf1.h:
28969         * s/osf5-0.h:
28970         * s/riscix1-1.h:
28971         * s/riscix12.h:
28972         * s/sco4.h:
28973         * s/sco5.h:
28974         * s/sunos4-0.h:
28975         * s/sunos4-1.h:
28976         * s/sunos413.h:
28977         * s/sunos4shr.h:
28978         * s/umax.h:
28979         * s/unipl5-2.h:
28980         * s/xenix.h:
28981         * cxux-crt0.s:
28982         * unexapollo.c:
28983         * unexconvex.c:
28984         * unexenix.c:
28985         * unexsni.c: Remove files for systems no longer supported.
28987         * m/intel386.h: Remove references to unsupported systems.
28989         * w32.c (get_emacs_configuration): Remove reference to i860.
28991         * sysdep.c: Remove dead code.
28993 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
28995         * s/rtu.h:
28996         * m/masscomp.h: Remove files.  Platform is obsolete.
28998 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
29000         * dbusbind.c (Fdbus_method_return): New function.
29001         (xd_read_message): Add the serial number to the event.
29002         (Fdbus_register_method): Activate the function.
29004 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
29006         * keyboard.c (read_key_sequence): Fix typo.
29008 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
29010         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29011         (xd_signature, xd_append_arg): Handle element type detection for
29012         empty arrays.
29013         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29014         SDATA () calls; this must be solved more general.
29015         (Fdbus_register_signal): Use SBYTES instead of strlen.
29017 2008-01-03  Magnus Henoch  <magnus@zemdatav>
29019         * dbusbind.c (xd_append_arg): Use unsigned char instead of
29020         unsigned int for byte values (necessary for big-endian platform).
29021         (Fdbus_call_method): Handle the case of no returned arguments.
29023 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
29025         * dbusbind.c (xd_read_message): Use non-static input_event struct.
29027 2007-12-31  Magnus Henoch  <mange@freemail.hu>
29029         * dbusbind.c (xd_signature): Signature of variant is just "v".
29031 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
29033         * dbusbind.c: Fix several errors and compiler warnings.
29034         Reported by Tom Tromey <tromey@redhat.com>.
29035         (XD_ERROR, XD_DEBUG_MESSAGE)
29036         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29037         (xd_append_arg): Part for basic D-Bus types rewritten.
29038         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29039         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
29040         appropriate.
29041         (xd_read_message): Return Qnil.  Don't signal an error; it is not
29042         useful during event reading.
29043         (Fdbus_register_signal): Signal an error if the check for
29044         FUNCTIONP fails.
29045         (Fdbus_register_method): New function.  The implementation is not
29046         complete, the call of the function signals an error therefore.
29047         (Fdbus_unregister_object): New function, renamed from
29048         Fdbus_unregister_signal.  The initial check signals an error, if
29049         the object is not well formed.
29051 2007-12-30  Richard Stallman  <rms@gnu.org>
29053         * textprop.c (get_char_property_and_overlay):
29054         Signal error if POSITION is out of range in a buffer.
29056 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
29058         * w32fns.c (Fx_create_frame): Make copy of frame parameters
29059         because the original parameters are in pure storage now.
29061 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29063         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29065 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
29067         * callint.c (syms_of_callint) <command-history>: Add reference to
29068         history-length in the doc string.
29070 2007-12-17  Jason Rumney  <jasonr@gnu.org>
29072         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29073         before passing as wParam.
29075 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
29077         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29078         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29079         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29080         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29081         as number.
29082         (Fdbus_call_method): Fix docstring.
29084 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
29086         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29087         New macros.
29088         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29089         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29090         Simplify.
29091         (xd_signature): New function.
29092         (xd_append_arg): Compute also signatures.  Major rewrite.
29093         (xd_retrieve_arg): Make debug messages friendly.
29094         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29095         Check for signatures of arguments.
29097 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
29099         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29100         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29101         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29102         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29103         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29104         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29105         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29106         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29107         (xd_retrieve_value): Remove.  Functionality included in ...
29108         (xd_append_arg): New function.
29109         (Fdbus_call_method, Fdbus_send_signal): Apply it.
29111 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
29113         * dbusbind.c (top): Include <stdio.h>.
29114         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29115         dbus_message_new_method_call and dbus_message_new_signal.
29116         (Fdbus_register_signal): Rename unique_name to uname.
29117         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
29118         non-existing unique name.  Fix typos in matching rule.  Return an
29119         object which is useful in Fdbus_unregister_signal.
29120         (Fdbus_unregister_signal): Reimplementation, in order to remove
29121         only the corresponding entry.
29122         (Vdbus_registered_functions_table): Change the order of entries.
29123         Apply these changes in xd_read_message and Fdbus_register_signal.
29125 2007-12-16  Andreas Schwab  <schwab@suse.de>
29127         * fileio.c (Finsert_file_contents): Fix overflow check to not
29128         depend on undefined integer overflow.
29130 2007-12-14  Jason Rumney  <jasonr@gnu.org>
29132         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29133         for characters above 127.
29135 2007-12-13  Jason Rumney  <jasonr@gnu.org>
29137         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29138         before dereferencing array.
29139         (lookup_vk_code): Remove zero comparison.
29141 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
29143         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29144         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29145         Use `unsigned int' instead of `uint'.
29146         (xd_read_message, Fdbus_register_signal): Split expressions into
29147         multiple lines before operators "&&" and "||", according to the
29148         GNU Coding Standards.
29150 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
29152         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29154 2007-12-12  Juri Linkov  <juri@jurta.org>
29156         * buffer.c (Frename_buffer): In interactive spec replace
29157         `read-buffer' with `read-string' that uses `buffer-name-history'
29158         as history, and the current buffer's name as default.
29160 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
29162         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29163         manipulating the backtrace manually.
29164         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29165         (struct backtrace, backtrace_list): Remove.
29166         (command_loop_1): Remove dead var `no_direct'.
29168         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29169         preserve non-built-in buffer-local variables.
29170         (Fkill_all_local_variables): Don't re-create&re-set permanent
29171         buffer-local variables.
29173 2007-12-09  Juri Linkov  <juri@jurta.org>
29175         * buffer.c (Frename_buffer): Change interactive spec from "s" to
29176         Lisp code that uses `read-buffer' with current buffer as default.
29178 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
29180         * dbusbind.c (xd_read_message): Generate an event for every
29181         registered handler.  There might be several handlers registered
29182         for the same signal.
29183         (Fdbus_register_signal): Don't overwrite a registration for the
29184         same signal.  Add a new registration if handlers are different.
29185         (Vdbus_registered_functions_table): Rework doc string.
29187 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
29189         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29190         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29191         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29192         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29193         Unify argument lists.
29194         (xd_read_message, Fdbus_register_signal): Reorder and extend event
29195         arguments and hash table keys.  Use unique name for service.
29196         (Fdbus_unregister_signal): Remove checks.
29197         (Vdbus_registered_functions_table): Fix doc string.
29199 2007-12-05  Magnus Henoch  <mange@freemail.hu>
29201         * process.c (make_process): Initialize pty_flag to 0.
29203 2007-12-05  Jason Rumney  <jasonr@gnu.org>
29205         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29206         specified XBMs.
29208 2007-12-05  Richard Stallman  <rms@gnu.org>
29210         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29212 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29214         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29215         New variable.
29216         (mac_try_close_socket) [MAC_OSX]: New function.
29217         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29218         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
29220         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29221         Use mac_try_close_socket.
29223 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29225         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
29226         reloc_base.
29227         (copy_dysymtab): Compute relocation base here.
29228         (rebase_reloc_address) [__ppc64__]: New function.
29229         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29230         changed.
29232 2007-12-05  Jason Rumney  <jasonr@gnu.org>
29234         * w32proc.c (sys_spawnve): Quote args with wildcards.
29236 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29238         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29239         __objc_* sections.
29240         (unrelocate) [_LP64]: Set relocation base to address of data segment.
29242 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
29244         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29245         Move check for Vdbus_registered_functions_table to
29246         xd_read_queued_messages.
29247         (xd_read_queued_messages): Protect xd_read_message calls by
29248         internal_condition_case_1.
29250 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
29252         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29253         Qdbus_system_bus and Qdbus_session_bus, respectively.
29254         (Vdbus_intern_symbols): Remove.
29255         (Vdbus_registered_functions_table): New hash table.
29256         (XD_SYMBOL_INTERN_SYMBOL): Remove.
29257         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29258         Rewrite in order to manage registered functions by hash table
29259         Vdbus_registered_functions_table.
29261 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
29263         * xterm.c: Update URL to Window Manager Specification in comment.
29265 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
29267         * config.in (HAVE_DBUS): Add.
29269         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29270         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29271         (obj): Add $(DBUS_OBJ).
29272         (LIBES): Add $(DBUS_LIBS).
29273         (dbusbind.o): New target.
29275         * dbusbind.c: New file.
29277         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29279         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29280         (Qdbus_event): New Lisp symbol.
29281         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29282         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29283         (keys_of_keyboard): Define dbus-event.
29285         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29287 2007-12-01  Richard Stallman  <rms@gnu.org>
29289         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29291 2007-11-30  Jason Rumney  <jasonr@gnu.org>
29293         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29294         (w32con_reset_terminal_modes): Clear screen buffer.
29295         (w32_face_attributes): Don't use color indexes that are out of range.
29296         Only reverse the default colors.
29298         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29299         WINDOWSNT.
29301         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29303 2007-11-29  Jason Rumney  <jasonr@gnu.org>
29305         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29306         (w32_face_attributes): Use Vtty_defined_color_alist to determine
29307         if the terminal colors are initialized.
29308         (unspecified_fg, unspecified_bg): Remove unused declarations.
29310 2007-11-29  Andreas Schwab  <schwab@suse.de>
29312         * keyboard.c (apply_modifiers): Fix typo.
29314 2007-11-29  Richard Stallman  <rms@gnu.org>
29316         * keymap.c (Fcurrent_local_map): Doc fix.
29318 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29320         * s/gnu-kfreebsd.h: New file.
29322 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
29324         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29325         Don't cast redundantly.
29327         * keyboard.c (KEY_TO_CHAR): New macro.
29328         (parse_modifiers, apply_modifiers): Accept integer arguments.
29329         (read_key_sequence): Use them to unify the "shift->unshift" mapping
29330         for chars and symbol keys.
29331         After doing such remapping, apply function-key-map again.
29333 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
29335         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29336         compiled anymore.
29338 2007-11-26  Andreas Schwab  <schwab@suse.de>
29340         * process.c (list_processes_1): Fix indentation level of the
29341         command column.
29343 2007-11-23  Andreas Schwab  <schwab@suse.de>
29345         * editfns.c (Fformat): Handle %c specially since it requires the
29346         argument to be of type int.
29348 2007-11-23  Markus Triska  <markus.triska@gmx.at>
29350         * emacs.c (main): Call init_editfns before init_process, since
29351         init_process sets Vprocess_connection_type depending on OS release.
29353 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
29355         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29356         (find_symbol_value): Use do_symval_forwarding.
29358         * data.c (set_internal): Set the value in the `cons-cell' (for
29359         Buffer_Local_values) not only for frame-local variables.
29361 2007-11-22  Andreas Schwab  <schwab@suse.de>
29363         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29364         values to sprintf.
29365         * keymap.c (Fsingle_key_description): Likewise.
29366         * print.c (print_object): Likewise.
29368 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
29370         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29371         file for image is nil.
29373 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
29375         * term.c: Include stdarg.h.
29376         (fatal): Implement using varargs.
29377         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
29379 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
29381         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29382         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29383         Update call to buffer_slot_type_mismatch.
29384         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29385         (buffer_slot_type_mismatch): Update.
29386         * buffer.c (buffer_local_types): Remove.
29387         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29388         (defvar_per_buffer): Set the type in the buffer_objfwd.
29390 2007-11-21  Jason Rumney  <jasonr@gnu.org>
29392         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29393         CreateFileMapping returns NULL on failure.
29395 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
29397         * search.c (Fset_match_data): Remove the `evaporate' feature.
29398         (unwind_set_match_data): Don't use the `evaporate' feature.
29400 2007-11-21  Jason Rumney  <jasonr@gnu.org>
29402         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29404         * w32console.c (w32con_write_glyphs): Remove unused variables.
29406 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
29408         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29410         * s/darwin.h (MULTI_KBOARD): Remove.
29412         * macfns.c (x_create_tip_frame, Fx_create_frame)
29413         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29415 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
29417         * buffer.c (Fbuffer_local_value): Remove redundant test.
29418         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29419         than in `current-buffer' to match the comment.
29420         Do the swap using swap_in_global_binding.
29422         * data.c (store_symval_forwarding, set_internal):
29423         * eval.c (specbind): Remove dead code.
29425         * coding.c (detect_coding, Fupdate_coding_systems_internal):
29426         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29427         Since we do not want to see internal Lisp_*fwd objects here.
29429 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
29431         * sysdep.c (init_system_name): Use getaddrinfo if available.
29433         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29434         (x_scroll_bar_note_movement): start, end, with, height in struct
29435         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29437 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
29439         * puresize.h (BASE_PURESIZE): Increase to 1190000.
29441 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
29443         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29444         This undoes Richard's change of 14-Oct-2002.
29446         * alloc.c (allocate_other_vector):
29447         * lisp.h (allocate_other_vector): Remove.
29449         * window.c (struct save_window_data): Move non-lisp data to the end
29450         and make it `int' rather than Lisp_Object.
29451         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29452         Done wrap/unwrap integer values.
29453         (Fset_window_configuration, compare_window_configurations):
29454         Update use of fields to their new types.
29456         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29457         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
29458         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29459         (SET_SCROLL_BAR_X_WINDOW): Remove.
29460         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29461         Access the new x_window field directly.
29462         * xterm.c (x_scroll_bar_create): Use a pseudovector.
29463         Don't wrap/unwrap integers into Lisp_Objects.
29464         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29465         (x_scroll_bar_report_motion):
29466         Don't wrap/unwrap integers into Lisp_Objects.
29467         (x_term_init): Use SDATA.
29468         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29469         (x_scroll_bar_set_handle, x_scroll_bar_remove)
29470         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29471         (x_scroll_bar_report_motion, x_scroll_bar_clear):
29472         * xfns.c (x_set_background_color):
29473         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29474         Access the new x_window field directly.
29476         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29477         (allocate_pseudovector): Make non-static.
29479         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29480         (allocate_pseudovector): Declare.
29481         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29483 2007-11-15  Andreas Schwab  <schwab@suse.de>
29485         * editfns.c (Fformat): Correctly format EMACS_INT values.
29486         Also take precision into account when formatting an integer.
29488         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29490 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
29492         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29493         (syms_of_keyboard): Defsubr it.
29495         * data.c (swap_in_global_binding): Fix longstanding bug where
29496         store_symval_forwarding was not called with the right second argument,
29497         thus causing objfwd-ing from being dropped.
29499 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
29501         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29502         (Fx_display_pixel_height, Fx_display_planes)
29503         (Fx_display_color_cells, Fx_server_max_request_size)
29504         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29505         (Fx_display_visual_class, Fx_display_save_under):
29506         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29507         (Fx_display_pixel_height, Fx_display_planes)
29508         (Fx_display_color_cells, Fx_server_max_request_size)
29509         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29510         (Fx_display_mm_height, Fx_display_mm_width)
29511         (Fx_display_backing_store, Fx_display_visual_class)
29512         (Fw32_select_font, Fx_display_save_under):
29513         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29514         (Fx_display_pixel_height, Fx_display_planes)
29515         (Fx_display_color_cells, Fx_server_max_request_size)
29516         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29517         (Fx_display_save_under): Fix typos in docstrings.
29519 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
29521         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29522         corresponding to deleted entries; they are an implementation detail.
29523         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29524         Remove variables.
29525         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29526         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29527         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29528         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29529         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29530         (Fw32_define_rgb_color, Fw32_load_color_file)
29531         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29532         Fix typos in docstrings.
29533         (Fx_server_version): Reflow docstring.
29534         (Fw32_shell_execute): Doc fixes.
29536 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
29538         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29539         if w32_parse_hot_key returned nil.
29541 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
29543         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29545 2007-11-09  Jason Rumney  <jasonr@gnu.org>
29547         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29549         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29551         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29552         Remove W32_SCROLL_BAR_CLICK_EVENT.
29554         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29555         Add MULTIMEDIA_KEY_EVENT.
29557         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29558         (lispy_multimedia_keys) [WINDOWSNT]: New array.
29559         (make_lispy_event) [WINDOWSNT]: Use it to translate
29560         MULTIMEDIA_KEY_EVENT.
29562         * w32term.h (WM_APPCOMMAND): Define if not already.
29563         (GET_APPCOMMAND_LPARAM): Likewise.
29565         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29566         WM_APPCOMMAND.
29568         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29569         (syms_of_w32fns): Export and initialize it.
29570         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29572 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
29574         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29575         twice.
29577         * xdisp.c (handle_face_prop): Fix last change.
29579 2007-11-09  Richard Stallman  <rms@gnu.org>
29581         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29582         not just for after-strings and before-strings.
29583         Call face_for_overlay_string and pass the overlay to it.
29584         (handle_display_prop): Determine whether property came from an overlay.
29585         Pass OVERLAY arg to handle_single_display_spec.
29586         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29587         (load_overlay_strings): Fill in it->string_overlays.
29588         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29590         * xfaces.c (face_for_overlay_string): Function renamed from
29591         face_at_buffer_position_no_overlays, and add arg OVERLAY.
29593         * dispextern.h (struct it): New elt string_overlays.
29594         New elt from_overlay, also in stack.
29595         Rearrange a few elements.
29596         (face_for_overlay_string): Decl renamed from
29597         face_at_buffer_position_no_overlays, and add argument.
29599 2007-11-09  Richard Stallman  <rms@gnu.org>
29601         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29602         to get the base face for an overlay string.
29604         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29606         * xfaces.c (face_at_buffer_position_no_overlays): New function.
29608         * xdisp.c (handle_stop): Move some code out of loop.
29610 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29612         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29613         Fix conversion from Lisp object to ATSUFontID.
29615 2007-11-09  Jason Rumney  <jasonr@gnu.org>
29617         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29619 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29621         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29622         Don't assume regions are aligned to page boundary.
29623         (print_load_command_name): Add LC_UUID if defined.
29625 2007-11-09  Richard Stallman  <rms@gnu.org>
29627         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29629 2007-11-07  Jason Rumney  <jasonr@gnu.org>
29631         * s/windows95.h: Remove.
29633 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
29635         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29636         abort with a message on unhandled store_type values.
29638 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
29640         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29641         Remove HAVE_X11R5 and HAVE_X11R4.
29643 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
29645         * Makefile.in: Remove references to sunfns.c and sunfns.o.
29647 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
29649         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29650         Don't set s->stippled_p here, since it has already been set by
29651         x_set_glyph_string_gc from x_draw_glyph_string.
29653 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
29655         * sunfns.c: Remove file.
29657         * m/sun386.h:
29658         * m/sun2.h:
29659         * m/sparc.h: Remove Sun windows code.
29661 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
29663         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29664         (init_keyboard): Set current_kboard's window-system to nil.
29665         (tty_read_avail_input): Typo.
29666         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29668 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
29670         * s/usg5-4.h:
29671         * s/usg5-3.h:
29672         * s/ptx.h:
29673         * m/is386.h:
29674         * m/ibmps2-aix.h:
29675         * Makefile.in: Remove all mentions of X10.
29677         * dispnew.c (syms_of_display): Don't mention version 10.
29679 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
29681         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29682         ($(BLD)/abbrev.$(O)): Remove.
29684 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
29686         Rewrite abbrev.c in Elisp.
29687         * image.c (Qcount): Don't declare as extern.
29688         (syms_of_image): Initialize and staticpro `Qcount'.
29689         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29690         * emacs.c (main): Don't call syms_of_abbrev.
29691         * Makefile.in (obj): Remove abbrev.o.
29692         (abbrev.o): Remove.
29693         * abbrev.c: Remove.
29695 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
29697         * window.c (window_min_size_2): Don't count header-line.
29699 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
29701         * frame.h (struct frame): Move all bit fields after the first bit
29702         field to take advantage of the available space.  Group all the
29703         chars together to reduce wasted space due to padding.
29705 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
29707         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29709         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29710         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29711         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29712         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29713         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29714         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29715         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29716         (last_marked, mark_object_loop_halt): Make static.
29718         * frame.c (syms_of_frame) <delete-frame-functions>:
29719         Fix typo in docstring.
29721 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
29723         * w32.c (init_environment): Fix tiny memory leak.
29724         (w32_get_resource): Remove unused variable `ok'.
29726 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
29728         Make `window-system' into a keyboard-local variable (rather than
29729         frame-local as done originally by multi-tty).
29731         * keyboard.h (struct kboard): Add Vwindow_system.
29732         * keyboard.c (init_kboard): Set a default for Vwindow_system.
29733         (mark_kboards): Mark Vwindow_system.
29735         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29736         (init_display): Don't set the obsolete `window-system' frame-param.
29738         * xterm.c (x_term_init):
29739         * w32term.c (w32_create_terminal):
29740         * term.c (init_tty): Set Vwindow_system.
29741         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29742         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
29744         * xfns.c (Fx_create_frame, x_create_tip_frame):
29745         * w32fns.c (Fx_create_frame, x_create_tip_frame):
29746         * macfns.c (Fx_create_frame):
29747         Don't set the obsolete `window-system' frame-param.
29749         * frame.h (Qwindow_system): Remove.
29750         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
29751         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29753 2007-10-24  Richard Stallman  <rms@gnu.org>
29755         * frame.c (x_figure_window_size): For fullscreen case,
29756         set USPosition | PPosition without clobbering rest of window_prompting.
29758         * keyboard.c (Fcurrent_idle_time): Doc fix.
29760         * print.c (Fwith_output_to_temp_buffer): Doc fix.
29762 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
29764         * process.c (unwind_request_sigio): Only define if __ultrix__.
29766         * callproc.c (child_setup): Remove spurious *.
29768         * lisp.h (Fget_text_property): Declare.
29769         (have_menus_p): Declare it here rather than in sys-dep header files.
29770         * macterm.h (have_menus_p):
29771         * msdos.h (have_menus_p):
29772         * xterm.h (have_menus_p): Remove.
29774         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29775         (Fmake_variable_frame_local): Just check the variable's const-ness
29776         rather than checking nil or t.
29778 2007-10-22  Jason Rumney  <jasonr@gnu.org>
29780         * w32fns.c: Include math.h.
29781         (w32_abort): Declaration moved to nt/config.nt.
29783         * s/ms-w32.h (HAVE_STDLIB_H): Define.
29784         (abort): Redefinition moved to nt/config.nt.
29786         * m/windowsnt.h: Remove.
29788 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
29790         * emacs.c (Fdump_emacs): Fix typo in message.
29791         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29792         <installation-directory>: Reflow docstring.
29794 2007-10-22  Juri Linkov  <juri@jurta.org>
29796         * minibuf.c: Allow minibuffer default to be a list of default values.
29797         With empty input use the first element of this list as returned default.
29798         (string_to_object)
29799         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29800         (read_minibuf): If defalt is cons, set histstring to its car.
29801         (Fread_string): If default_value is cons, set val to its car.
29802         (Fread_buffer): If def is cons, use its car.
29803         (Fcompleting_read): If defalt is cons, set val to its car.
29805 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
29807         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29809 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
29811         * doc.c (Fdocumentation): Check for advice in all cases.
29813 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
29815         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29817 2007-10-19  Richard Stallman  <rms@gnu.org>
29819         * doc.c (Fdocumentation): Check for and handle an advised function.
29821 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
29823         * process.c (Fset_process_filter): Doc fix.
29825 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
29827         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29828         which caused key-translation-map to applied repeatedly (thus breaking
29829         double-mode).
29831 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
29833         * xselect.c (x_own_selection, x_handle_selection_clear)
29834         (x_clear_frame_selections):
29835         * w32menu.c (list_of_panes, list_of_items):
29836         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29837         * textprop.c (validate_plist, interval_has_all_properties)
29838         (interval_has_some_properties, interval_has_some_properties_list)
29839         (add_properties, text_property_list):
29840         * process.c (Fget_buffer_process, list_processes_1, status_notify):
29841         * minibuf.c (Fassoc_string):
29842         * macselect.c (x_own_selection, x_clear_frame_selections)
29843         (Fx_disown_selection_internal):
29844         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29845         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29847 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
29849         * process.c: Link to libs for calling res_init() if available.
29850         (Fmake_network_process): Call res_init() before getaddrinfo or
29851         gethostbyname, if possible.
29853 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
29855         * lread.c (read1): Set pvectype for char_tables.
29857         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29858         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29859         Add type checks.
29860         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29862         * alloc.c (free_misc): Use XMISCTYPE.
29863         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29865 2007-10-17  Glenn Morris  <rgm@gnu.org>
29867         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29868         (syms_of_minibuf): Add Qcompletion_ignore_case.
29869         * dired.c (Qcompletion_ignore_case): Change to external.
29870         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29871         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29872         (Fread_file_name): Use it rather than intern'ing.
29874         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29875         (Fread_coding_system): Ignore case of user input.
29877 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29879         * xdisp.c (handle_display_prop): Ignore display specs after
29880         replacing one when string text is being replaced.
29881         (handle_single_display_spec): Pretend as if characters with display
29882         property haven't been consumed only when buffer text is being replaced.
29884 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
29886         * xfns.c (Fx_create_frame, Fx_display_list):
29887         * window.c (window_fixed_size_p, enlarge_window)
29888         (shrink_window_lowest_first):
29889         * macterm.c (init_font_name_table):
29890         * macfns.c (Fx_create_frame, Fx_display_list):
29891         * lread.c (close_load_descs):
29892         * keyboard.c (read_char_x_menu_prompt):
29893         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29894         * coding.c (code_convert_region_unwind): Test the type of an object
29895         rather than just !NILP before extracting data from it.
29897         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29899         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29900         (XMISCANY): New macro.
29901         (XMISCTYPE): Use it.
29902         (struct Lisp_Misc_Any): New type.
29903         (union Lisp_Misc): Use it.
29904         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29905         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29906         (find_symbol_value, set_internal, default_value, Fset_default)
29907         (Fmake_variable_buffer_local, Fmake_local_variable)
29908         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29909         (Flocal_variable_if_set_p, Fvariable_binding_locus):
29910         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29911         * alloc.c (allocate_buffer): Set the size and tag.
29912         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29913         Use XMISCANY.
29914         (die): Follow the GNU convention for error messages.
29915         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29916         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29917         tag any more.
29918         (set_buffer_internal_1):
29919         * frame.c (store_frame_param):
29920         * eval.c (specbind):
29921         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29923         * doc.c (Fsnarf_documentation): Simplify.
29925 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
29927         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29928         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29930 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
29932         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29934 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
29936         * eval.c (do_autoload): Don't save autoloads.
29938         * data.c (Ffset): Save autoload of the function being set.
29940 2007-10-07  John Paul Wallington  <jpw@pobox.com>
29942         * xfns.c (x_create_tip_frame): Set the `display-type' frame
29943         parameter before setting up faces.
29945 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
29947         * ccl.c (Fregister_code_conversion_map):
29948         * keyboard.c (append_tool_bar_item): Reformat last change.
29950         * lisp.h (eabs): Rename from `abs'.  All callers changed.
29952 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
29954         * buffer.c (add_overlay_mod_hooklist):
29955         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29956         * fontset.c (make_fontset):
29957         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29958         (append_tool_bar_item):
29959         * macmenu.c (grow_menu_items):
29960         * w32menu.c (grow_menu_items):
29961         * xmenu.c (grow_menu_items): Use larger_vector.
29963 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
29965         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29966         selected frame'' on MSDOS).
29968 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
29970         * frame.c (Qexplicit_name): New variable.
29971         (x_report_frame_params): Report it in parameter alist.
29972         (syms_of_frame): Intern and staticpro it.
29974 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
29976         * macfns.c (x_create_tip_frame): Set terminal for frame.
29978 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
29980         * frame.c (Qenvironment): Remove.
29981         (syms_of_frame) <Qenvironment>: Don't initialize.
29982         (Fdelete_frame): Don't treat the `environment' param specially.
29983         * frame.h (Qenvironment): Don't declare.
29984         * callproc.c (set_initial_environment): Don't set unused frame param.
29986         * frame.c (Fframe_with_environment): Remove.
29987         (syms_of_frame) <Sframe_with_environment>: Don't declare.
29989         * lisp.h (Fframe_with_environment): Don't declare.
29991 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
29993         * indent.c (indent_tabs_mode, last_known_column)
29994         (last_known_column_modified): Make static.
29995         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29997 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
29999         * puresize.h (BASE_PURESIZE): Increase to 1170000.
30001 2007-10-09  Jason Rumney  <jasonr@gnu.org>
30003         * w32term.c (x_set_window_size): Disable code that attempts to tell
30004         Lisp code about a size change before it actually happens.
30006 2007-10-09  Richard Stallman  <rms@gnu.org>
30008         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30009         return HANDLED_RETURN.
30011 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
30013         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30014         when there's an unread command event.
30016         * frame.c (focus_follows_mouse): Move here from frame.el to allow
30017         window autoselection act appropriately when leaving selected frame.
30018         (syms_of_frame): Initialize focus_follows_mouse.
30019         * frame.h (focus_follows_mouse): Extern it.
30020         * macterm.c (XTread_socket): When focus_follows_mouse is nil
30021         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30022         * msdos.c (dos_rawgetc): Likewise.
30023         * w32term.c (w32_read_socket): Likewise.
30024         * xterm.c (handle_one_xevent): Likewise.
30025         * xdisp.c (syms_of_xdisp): In doc-string of
30026         mouse-autoselect-window mention focus-follows-mouse.
30028 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
30030         * macterm.c (mac_load_query_font): Fix missing return value.
30031         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30032         Add BLOCK_INPUT.
30034 2007-10-08  Richard Stallman  <rms@gnu.org>
30036         * xdisp.c (get_window_cursor_type): Implement documented behavior
30037         for cursor-in-non-selected-windows = t.
30039 2007-10-08  Jason Rumney  <jasonr@gnu.org>
30041         * w32.c (w32_get_resource): Always close registry keys.
30043 2007-10-08  Jason Rumney  <jasonr@gnu.org>
30045         * makefile.w32-in (LIBS): Add COMCTL32.
30047         * w32fns.c (globals_of_w32fns): Init common controls.
30049 2007-10-08  Richard Stallman  <rms@gnu.org>
30051         * image.c (our_memory_buffer): Rename from omfib_buffer.
30053 2007-10-08  Richard Stallman  <rms@gnu.org>
30055         * buffer.c (Foverlays_at): Doc fix.
30057 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
30059         * fns.c (Fplist_put): Preserve uneven tail data.
30061 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
30063         * termhooks.h (enum event_kind): Remove trailing comma.
30065         * frame.h (enum): Remove trailing comma.
30067 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
30069         * w32proc.c (delete_child): Don't terminate threads of zombies.
30071 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
30073         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30075         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30076         last-repeatable-command.
30077         (init_kboard): Initialize Vlast_repeatable_command.
30078         (command_loop_1): Set it to real_this_command unless that was
30079         bound to an input event.
30080         (mark_kboards): Mark it.
30082 2007-10-08  Richard Stallman  <rms@gnu.org>
30084         * eval.c (condition-case): Doc fix.
30086 2007-10-08  Masatake YAMATO  <jet@gyve.org>
30088         * xfaces.c (tty_supports_face_attributes_p): Fix code
30089         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30090         was copied and not edited.
30092 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
30094         Add new `input-decode-map' keymap and use it for terminal
30095         escape sequences.
30096         * keyboard.h (struct kboard): Add Vinput_decode_map.
30097         Remove Vlocal_key_translation_map.
30098         * keyboard.c (read_key_sequence): Add support for input-decode-map.
30099         (init_kboard): Init input-decode-map.
30100         Replace local-key-translation-map back with key-translation-map.
30101         (syms_of_keyboard): Declare input-decode-map.
30102         Remove local-key-translation-map.  Update docstrings.
30103         (mark_kboards): Mark Vinput_decode_map.
30104         Don't mark Vlocal_key_translation_map.
30105         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30106         Replace local-key-translation-map back with key-translation-map.
30107         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30108         Bind in input-decode-map rather than function-key-map.
30110         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30111         This was made redundant by the previous introduction of XSETPVECTYPE.
30113 2007-10-09  Richard Stallman  <rms@gnu.org>
30115         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30117 2007-09-29  Richard Stallman  <rms@gnu.org>
30119         * eval.c (internal_condition_case_2, internal_condition_case_1)
30120         (internal_condition_case): Reenable abort if x_catching_errors ()
30121         to see if that really happens and why.
30123 2007-10-06  Andreas Schwab  <schwab@suse.de>
30125         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30127 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
30129         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30131 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
30133         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30135 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
30137         * window.h (struct window):
30138         * window.c (struct save_window_data, struct saved_window):
30139         * termhooks.h (struct terminal):
30140         * process.h (struct Lisp_Process):
30141         * frame.h (struct frame):
30142         * buffer.h (struct buffer):
30143         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30144         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30145         The size field of (pseudo)vectors is now unsigned.
30146         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30148         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30149         Turn `count' into an integer.
30151         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30152         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30153         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30154         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30155         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30157         * alloc.c (allocate_pseudovector): New fun.
30158         (ALLOCATE_PSEUDOVECTOR): New macro.
30159         (allocate_window, allocate_terminal, allocate_frame)
30160         (allocate_process): Use it.
30161         (mark_vectorlike): New function.
30162         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30163         (mark_terminals): Use it.
30164         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30165         (Fmake_byte_code): Use XSETPVECTYPE.
30167         * frame.c (Fframe_parameters): Minor simplification.
30169         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30171         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30173         * buffer.c (Fget_buffer_create, init_buffer_once):
30174         * lread.c (defsubr):
30175         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30177         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30178         defined differently in the m/*.h files.
30179         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30180         (XSETPVECTYPE): New macro.
30181         (XSETPSEUDOVECTOR): Use it.
30183         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30184         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30186         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30187         * lread.c (defvar_per_buffer):
30188         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30190         * window.c (candidate_window_p): Only consider as visible frames that
30191         are on the same terminal.
30193         * m/ibms390x.h (MARKBIT): Remove unused macro.
30195 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
30197         * lread.c (Fload): Fix typo in docstring.
30199 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
30201         * floatfns.c (Fexpt): Manually check for overflows, so that a power
30202         of a non-zero value can't yield zero.
30204 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
30206         * term.c (term_clear_mouse_face, term_mouse_highlight)
30207         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30209         * print.c (safe_debug_print): Use XHASH.
30211         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30212         Lisp elements such as tags.
30213         (XHASH): New macro.
30214         (EQ): Use it.
30215         (SREF, SSET, STRING_COPYIN): Use SDATA.
30216         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30218         * alloc.c (mark_terminal): Remove left-over declaration.
30219         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30220         (allocate_vectorlike): Remove type argument.  Adjust callers.
30221         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30222         Only handle the one remaining MEM_TYPE_VECTORLIKE.
30224         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30225         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30226         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30227         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30228         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30229         Use them.
30231         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30232         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30233         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30235 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
30237         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30238         loaded by default.
30240 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
30242         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30243         on this tty.
30244         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30246         * term.c (mouse_face_window): Rename from Qmouse_face_window.
30247         Update all users.
30248         (handle_one_term_event): Use Gpm_DrawPointer.
30249         (Fgpm_mouse_start): Rename from Fterm_open_connection.
30250         Signal errors instead of returning nil.  Always return nil.
30251         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30252         Make it a noop if gpm-mouse was not activated.
30253         (syms_of_term): Update names.
30255 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
30257         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30258         (init_sys_modes): Check that gpm_tty is the current tty.
30260         * alloc.c (allocate_terminal): Set the vector size to only count the
30261         lisp fields.  Initialize those to nil.
30262         (mark_object): Don't treat terminals specially.
30263         (mark_terminal): Remove.
30264         (mark_terminals): Use mark_object instead.
30266         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30267         the GC to the beginning.
30269         * indent.h:
30270         * indent.c: Use EMACS_INT for ints coming from Elisp data.
30272         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30274 2007-09-25  Jason Rumney  <jasonr@gnu.org>
30276         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30278         * w32console.c (create_w32cons_output): Remove.
30280         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30282         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30283         (reset_sys_modes): Use reset_terminal_modes_hook.
30285 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
30287         * eval.c (do_autoload): Don't output any message.
30289 2007-09-24  Juri Linkov  <juri@jurta.org>
30291         * emacs.c (standard_args): Change priority of "--no-splash"
30292         from 40 to 3.  Add "--no-desktop" with the same priority.
30294 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
30296         * alloc.c (gc_sweep): Check cons cell mark bits word by word
30297         and optimize the case where they are all 1.
30299 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
30301         * lisp.h (abs): Define if not defined.
30302         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30303         Don't define `abs', since it's defined in lisp.h.
30305 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
30307         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
30308         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30309         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30310         (init_tty): Use DEV_TTY instead of "/dev/tty".
30311         [WINDOWSNT]: No need to protect from NAME arg being null.
30313 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
30315         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30316         up the tty state.
30318 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
30320         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
30321         (gpm_tty): Change its type.
30322         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
30323         (gpm_tty): Change its type and initialize it.
30324         (Fterm_open_connection): Check the frame is indeed a tty.
30325         Use the new gpm_tty.
30326         (Fterm_close_connection): Use the new gpm_tty.
30327         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30328         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30330 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
30332         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30333         underline_color, to draw strike-through.
30335 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
30337         * lisp.h (allocate_terminal): Declare.
30339         * window.c (candidate_window_p): Consider frames that are being placed
30340         by the user as somewhere between visible and iconified.
30341         (window_loop): Prefer windows on the current frame.
30342         (Fselect_window): Move the use of select-frame to the beginning so we
30343         can just delegate all the work (it'll call us back anyway).
30345         * frame.c (Qdisplay_environment_variable):
30346         * frame.h (Qdisplay_environment_variable): Delete.
30348         * .gdbinit (xbacktrace): Print the arg's address rather than the value
30349         of the first arg, since that value may be a union.
30351         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30352         parameter rather than Qdisplay_environment_variable.  If all else
30353         fails, look for DISPLAY in initial-environment.
30355 2007-09-21  Glenn Morris  <rgm@gnu.org>
30357         * Makefile.in (emacstool): Remove target.
30358         (lisp, shortlisp): Remove termdev.elc.
30360 2007-09-21  Markus Triska  <markus.triska@gmx.at>
30362         * xterm.c (x_delete_display): Compile session management conditionally.
30364 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
30366         * callproc.c (getenv_internal_1): New function.
30367         (getenv_internal): Use it.
30368         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
30370         * terminal.c (get_terminal): Don't accept ints to represent terminals.
30371         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30372         (Fset_terminal_parameter): Work with dead terminals as well.
30373         (Fmodify_terminal_parameters): Remove.
30375         * terminal.c (get_terminal): Handle terminals.
30376         Make sure the terminal returned is live.
30377         (create_terminal): Use allocate_terminal.
30378         (mark_terminals): Move to alloc.c.
30379         (delete_terminal): Use terminal->name as liveness status.
30380         NULL out fields after freeing their contents.
30381         Don't deallocate the object.
30382         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
30383         rather than an int.
30384         (Fterminal_live_p): Accept non-integer arguments.
30385         (Fterminal_list): Return terminal objects rather than an ints.
30387         * alloc.c (enum mem_type): New member for `terminal' objects.
30388         (allocate_terminal): New function.
30389         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30390         Handle terminals.
30391         (mark_terminal): New fun.
30392         (mark_terminals): Move from terminal.c.
30394         * term.c (get_tty_terminal): Don't treat output_initial specially.
30395         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30396         (delete_tty): Use terminal->name as liveness status.
30398         * termhooks.h (struct terminal): Make it into a pseudovector.
30399         Remove `deleted' replaced by checking `name's nullness.
30401         * print.c (print_object): Handle terminals.
30403         * lisp.h (enum pvec_type): New `terminal' pseudovector.
30404         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30406         * frame.c (make_terminal_frame):
30407         * keyboard.c (tty_read_avail_input):
30408         * w32term.c (x_delete_terminal):
30409         * xfns.c (Fx_create_frame, x_create_tip_frame):
30410         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30412 2007-09-20  Glenn Morris  <rgm@gnu.org>
30414         * process.c (Fmake_network_process): Doc fix.
30416 2007-09-19  Jason Rumney  <jasonr@gnu.org>
30418         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30420 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
30422         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30423         Fix a C warning regarding variable constness.
30425         * xterm.c (handle_one_xevent): Fix a C warning.
30427 2007-09-18  Jason Rumney  <jasonr@gnu.org>
30429         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30431 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
30433         * gtkutil.c (gdpy_def): New variable.
30434         (xg_initialize): Initialize gdpy_def.
30435         (xg_display_close): If no other display exists, set gdpy_def to a
30436         new connection.
30438 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
30440         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30441         when we have no file name for the icon.
30442         (xg_tool_bar_expose_callback): Remove.
30443         (xg_create_tool_bar): Don't connect expose signal to
30444         xg_tool_bar_expose_callback.
30445         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30447 2007-09-16  Andreas Schwab  <schwab@suse.de>
30449         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30450         values instead of zapping them.
30452 2007-09-14  Glenn Morris  <rgm@gnu.org>
30454         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30455         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30456         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30457         scope and rename to omfib_buffer for clarity.
30458         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30460 2007-09-14  Kenichi Handa  <handa@m17n.org>
30462         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30464 2007-09-13  Jason Rumney  <jasonr@gnu.org>
30466         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30468         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30470         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30471         (mac_term_init): Call here instead, passing rif.
30473 2007-09-13  Glenn Morris  <rgm@gnu.org>
30475         * s/hpux.h: No longer define `static' as nothing.
30477 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
30479         * callint.c (Fcall_interactively): Remove unused var `fun'.
30481 2007-09-12  Romain Francoise  <romain@orebokech.com>
30483         * window.c (prefer_window_split_horizontally, display_buffer):
30484         Revert 2007-09-08 change.
30486 2007-09-12  Glenn Morris  <rgm@gnu.org>
30488         * alloca.c: Remove file.
30489         * Makefile.in (alloca): Do not undef.
30490         (allocaobj, alloca.o): Remove.
30491         (otherobj): Remove allocaobj.
30492         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30493         * regex.c (C_ALLOCA): Remove all references and code that was only
30494         used when this was defined.
30495         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30496         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30497         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30499         * Makefile.in (SOURCES, unlock, relock): Delete.
30501         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30502         (menu_grab_callback): All uses changed.
30504         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30505         (x_reply_selection_request): All uses changed.
30507 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
30509         * lread.c (load_warn_old_style_backquotes): Change message to look
30510         better when it appears in the middle of byte-compiler messages.
30512 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
30514         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30516         * xterm.c (x_create_terminal): Add comment.
30518         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30520 2007-09-10  Richard Stallman  <rms@gnu.org>
30522         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30524 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
30526         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30527         (DEFUN): Document `intspec', use it instead of `prompt'.
30529         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30531         * data.c (Finteractive_form): If the interactive specification starts
30532         with a `(', use it as a Lisp form.
30534         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30535         name and file modes.
30537         * callint.c (Fcall_interactively): Comment fixes.
30539 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
30541         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30542         and compiled functions.
30544 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
30546         * window.c (prefer_window_split_horizontally): New variable.
30547         (display_buffer): Consider splitting window horizontally depending
30548         on prefer_window_split_horizontally.
30550 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
30552         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30554 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
30556         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30558         * frame.c (x_set_frame_parameters): Check number is positive before
30559         using XFASTINT.
30561         * window.c (freeze_window_start): Don't presume selected_window holds
30562         a window object.
30563         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30565 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
30567         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30569 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
30571         * window.c (Vsplit_window_preferred_function): New var.
30572         (Fdisplay_buffer): Use it.
30573         (syms_of_window): Export, and initialize it.
30575 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
30577         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30579 2007-09-06  Glenn Morris  <rgm@gnu.org>
30581         * gtkutil.c (menu_grab_callback) <cnt>:
30582         * xselect.c (x_reply_selection_request) <cnt>: Move static
30583         variable to file scope.
30585 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
30587         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30588         consistent values of selected_frame and selected_window.
30590 2007-09-04  Jason Rumney  <jasonr@gnu.org>
30592         * w32console.c (initialize_w32_display): Zero unused hooks.
30594 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
30596         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30597         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30599 2007-09-04  Jason Rumney  <jasonr@gnu.org>
30601         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30602         in w32console.c.  Set up input.  Remove XXX comments that have been
30603         confirmed as correct.
30605         * s/ms-w32.h (MULTI_KBOARD): Define.
30607         * w32console.c (one_and_only_w32cons): Remove.
30608         (initialize_w32_display): Take terminal argument.
30610         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30611         initialize_w32_display.
30612         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30614         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30616         * keyboard.c (discard_mouse_events): Discard it.
30617         (make_lispy_event): Translate it to a lisp event.
30618         (lispy_wheel_names): Add wheel-left and right events.
30619         (syms_of_keyboard): Enlarge wheel_syms.
30621         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30622         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30624         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30626         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30627         from WM_MOUSEHWHEEL.
30628         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30630         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30631         terminal.
30633         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30634         keyboard for the terminal.
30636 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
30638         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30639         (Vresume_tty_hook): Rename from Vresume_tty_functions.
30640         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30641         and resume-tty-function to resume-tty-hook.
30642         (Fsuspend_tty, Fresume_tty): Use new names.
30644 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
30646         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30647         if it starts with "n:".
30649 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
30651         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30653 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
30655         * frame.h:
30656         * frame.c (Qterm_environment_variable): Remove.
30657         (syms_of_frame): Don't init and staticpro it.
30659         * callproc.c (getenv_internal): Remove special case for $TERM.
30661         * callproc.c (Vinitial_environment): New variable.
30662         (set_initial_environment): Initialize it.
30663         (syms_of_callproc): Declare it.
30664         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30665         TERM under which a process runs is never related to the TERM in which
30666         Emacs is running.
30668 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
30670         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30671         * s/darwin.h: ... do it here.
30673 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
30675         * lisp.h (set_initial_environment): Rename from set_global_environment.
30677         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30678         removed by mistake on the multi-tty branch.
30680         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30681         (Fmodify_frame_parameters): Return a value.
30683         * image.c (png_load): Comment-out var only used in commented-out code.
30685         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30686         before passing it to mark_object.
30688         * xfaces.c (internal_resolve_face_name): Return a value.
30689         (internal_resolve_face_name, resolve_face_name_error): Comment out.
30691         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30692         (x_icon): Comment-out var only used in commented-out code.
30694 2007-08-29  Romain Francoise  <romain@orebokech.com>
30696         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30697         QUIT hasn't been provided.
30699 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
30701         * callproc.c (child_setup, getenv_internal): Use the
30702         display-environment-variable and term-environment-variable frame params.
30703         (set_initial_environment): Initialise Vprocess_environment.
30705         * config.in: Disable multi-keyboard support on a mac.
30707         * frame.c (Qterm_environment_variable)
30708         (Qdisplay_environment_variable): New variables.
30709         (syms_of_frame): Intern and staticpro them.
30710         (Fmake_terminal_frame): Disable output method test.
30712         * frame.h: Declare them here.
30714         * macfns.c (x_set_mouse_color): Get rif from the frame.
30715         (x_set_tool_bar_lines): Don't use updating_frame.
30716         (mac_window): Add 2 new parameters for consistency with other systems.
30717         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
30718         frame parameters following what is done in X11 and w32.  Don't use
30719         FRAME_MAC_DISPLAY_INFO.
30720         (Fx_open_connection, start_hourglass): Remove window-system check.
30721         (x_create_tip_frame): Get the keyboard from the terminal.
30723         * macmenu.c: Reorder includes.
30724         (Fx_popup_menu): Use terminal specific mouse_position_hook.
30726         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30727         terminal parameter.
30728         (x_clear_frame): Add a frame parameter.
30729         (note_mouse_movement): Get rif from the frame.
30730         (mac_term_init): Initialize the terminal.
30731         (mac_initialize): Make static and move terminal initialization ...
30732         (mac_create_terminal): ... to this new function.
30734         * macterm.h (struct mac_display_info): Add terminal.
30735         (mac_initialize): Delete declaration.
30737         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30739         * sysdep.c: Comment out text after #endif.
30741         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30742         is defined.  Better initialize ttys in windows.  Use terminal
30743         specific mouse_position_hook.
30745         * termhooks.h (union display_info): Add mac_display_info.
30747         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30748         Set the default minibuffer frame, window_system and the rest of the
30749         frame parameters following what is done in X11.
30751         * w32term.c (w32_initialize): Make static.
30753         * xselect.c (x_handle_selection_clear): Only access
30754         terminal->kboard when MULTI_KBOARD is defined.
30756         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30757         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30759 2007-08-29  Jason Rumney  <jasonr@gnu.org>
30761         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30762         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30764         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30765         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30767         * keyboard.c (restore_kboard_configuration): Only define when
30768         MULTI_KBOARD defined.
30770         * makefile.w32-in: Update dependancies from Makefile.in.
30771         (OBJ1): Add terminal.$(O)
30773         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30774         Don't define function body.
30775         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30777         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30779         * w32.c (request_sigio, unrequest_sigio): Remove.
30781         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30782         (w32con_clear_frame, w32con_clear_end_of_line)
30783         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30784         (w32con_delete_glyphs, w32con_set_terminal_window)
30785         (scroll_line, w32_sys_ring_bell): Add frame arg.
30786         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30787         Add terminal arg.
30788         (PICK_FRAME): Remove.
30789         (w32con_write_glyphs): Use frame specific terminal coding.
30790         (one_and_only_w32cons): New global variable.
30791         (initialize_w32_display): Use it for storing hooks.
30792         (create_w32cons_output): New function.
30794         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30795         arg a frame.
30797         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30798         Set window_system.
30799         (x_set_tool_bar_lines): Don't use updating_frame.
30800         (Fx_create_frame): Set terminal and ref count.
30801         (Fx_open_connection): Remove window-system check.
30803         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30805         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30806         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30807         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30808         Add frame arg.
30809         (x_delete_terminal, w32_create_terminal): New functions.
30810         (w32_term_init): Create a terminal.
30811         (w32_initialize): Move terminal specific initialization to
30812         w32_create_terminal.
30814         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30815         (w32_clear_rect, w32_clear_area): Use background from frame.
30816         (w32_display_info): Add terminal.
30817         (w32_sys_ring_bell, x_delete_display): Declare here.
30819         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30821         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30823 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
30825         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30826         Fix get_named_tty calls for the controlling tty.
30828 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
30830         * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
30832 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
30834         * term.c (tty_insert_glyphs): Add missing first parameter.
30836 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
30838         * buffer.c (Fbuffer_list, Fbury_buffer):
30839         Take frame->buried_buffer_list into account.
30841         * cm.c (current_tty): New variable, for cmputc().
30842         (cmputc): Use it.
30843         (cmcheckmagic): Add tty parameter, look up terminal streams there.
30844         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
30845         (cmgoto): Add tty parameter.  Pass it on to calccost().
30846         Use emacs_tputs() instead of tputs().
30848         * cm.h (emacs_tputs): New macro to set current_tty, and then call
30849         tputs().
30850         (current_tty): New variable, for cmputc().
30851         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30853         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30854         (internal_condition_case, internal_condition_case_1)
30855         (internal_condition_case_2): Don't abort when x_catching_errors.
30857         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30858         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
30859         prevent crashes caused by bogus longjmps in read_char.
30861         * keymap.h (Fset_keymap_parent): Add EXFUN.
30863         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30864         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30865         Remove redundant definition.
30867         * macfns.c (x_set_mouse_color, x_make_gc):
30868         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30870         * w32term.c (x_free_frame_resources):
30871         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30872         (w32_initialize): Use the accessor macros for terminal characteristics.
30874         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30875         Use the accessor macros for terminal characteristics.
30876         * msdos.c (internal_terminal_init): Use the accessor macros for
30877         terminal characteristics.
30878         (ScreenVisualBell, internal_terminal_init):
30879         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30881         * termopts.h (no_redraw_on_reenter): Declare.
30883         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30884         (mark_terminals, mark_ttys): Declare.
30885         (Fgarbage_collect): Call them.
30886         (mark_object): Mark buried_buffer_list.
30888         * prefix-args.c: Include stdlib.h for exit.
30890         * syssignal.h: Add comment.
30892         * indent.c: Include stdio.h.
30894         * window.h (Vinitial_window_system): Declare.
30895         (Vwindow_system): Delete declaration.
30897         * fontset.c (Finternal_char_font): Use FRAME_RIF.
30899         * image.c (lookup_image): Don't initialize `c' until the xasserts
30900         have been run.
30902         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30903         FRAME_FOREGROUND_PIXEL.
30905         * print.c (print_preprocess): Don't lose print_depth levels while
30906         iterating.
30908         * widget.c (update_from_various_frame_slots):
30909         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30911         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30912         frames.
30913         (window_internal_height): Remove bogus make_number call.
30914         (init_window_once): Call make_terminal_frame with two zero parameters.
30916         * fileio.c (Fread_file_name): Update comment.
30918         * callint.c (Fcall_interactively):
30919         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30920         Make sure it is correctly unwound.
30922         * xsmfns.c (x_session_close): New function.
30924         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30925         Delete declarations.
30927         * xterm.h: Remove declaration for x_fully_uncatch_errors.
30928         (x_output): Remove background_pixel and foreground_pixel fields.
30929         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
30930         (x_delete_device, x_session_close): Declare.
30932         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
30933         (read_filtered_event): Call `read_char' with a local
30934         `wrong_kboard_jmpbuf'.
30936         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30937         Don't call single_kboard_state.  Use FRAME_RIF.
30939         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30940         systems.
30942         * lisp.h (set_process_environment): Rename to `set_global_environment'.
30943         (Fframe_with_environment, Fset_input_meta_mode)
30944         (Fset_quit_char): EXFUN.
30945         (x_create_device, tty_output, terminal, tty_display_info): Declare.
30946         (init_sys_modes, reset_sys_modes): Update prototypes.
30947         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30949         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30950         Vlocal_key_translation_map, and Vkeyboard_translate_table.
30951         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30952         Delete declarations.
30953         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30954         (temporarily_switch_to_single_kboard, tty_read_avail_input):
30955         New declarations.
30957         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30958         already does that during init_display().  Call syms_of_keymap
30959         before syms_of_keyboard.  Call `syms_of_terminal'.
30960         Call set_initial_environment, not set_process_environment.
30961         (shut_down_emacs): Call reset_all_sys_modes() instead of
30962         reset_sys_modes().
30964         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30965         (internal_resolve_face_name, resolve_face_name_error): New functions.
30966         (resolve_face_name): Protect against loops and errors thrown by Fget.
30967         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30968         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30970         * scroll.c: Replace CURTTY() with local variables throughout the
30971         file (where applicable).
30972         (calculate_scrolling, calculate_direct_scrolling)
30973         (scrolling_1, scroll_cost): Use the accessor macros for terminal
30974         characteristics.
30976         * keymap.c (Vfunction_key_map): Remove.
30977         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30978         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30979         (Vkey_translation_map): Remove.
30980         (syms_of_keymap): Remove DEFVAR for key-translation-map.
30981         (Fdescribe_buffer_bindings)
30982         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30983         Update for terminal-local key-translation-map.
30985         * Makefile.in (callproc.o): Update dependencies.
30986         (lisp, shortlisp): Add termdev.elc.
30987         (obj): Add terminal.o.
30988         (terminal.o): Add dependencies.
30989         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30990         (data.o, fns.o): Add termhooks.h dependency.
30991         (SOME_MACHINE_LISP): Add dnd.elc.
30992         (minibuf.o): Fix typo.
30993         Update dependencies.
30995         * data.c (do_symval_forwarding, store_symval_forwarding)
30996         (find_symbol_value): Use the selected frame's keyboard, not
30997         current_kboard.
30999         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31000         Vwindow_system.
31002         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31003         Fmenu_bar_open.
31004         (syms_of_xmenu): Update defsubr.
31005         (mouse_position_for_popup, Fx_popup_menu)
31006         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31007         (set_frame_menubar, free_frame_menubar)
31008         (create_and_show_popup_menu, xmenu_show)
31009         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31010         an X frame.
31012         * xselect.c (x_own_selection): Abort if not an X frame.
31013         (some_frame_on_display): Check if it is an X frame.
31014         (x_handle_selection_clear): Deal with MULTI_KBOARD.
31016         * coding.c: Include frame.h and termhooks.h.
31017         (terminal_coding, keyboard_coding): Delete.
31018         (Fset_terminal_coding_system_internal)
31019         (Fset_keyboard_coding_system_internal)
31020         (Fkeyboard_coding_system)
31021         (Fterminal_coding_system): Add a terminal parameter.
31022         Get terminal_coding from the terminal.
31023         (init_coding_once): Don't call setup_coding_system here.
31025         * dispextern.h (set_scroll_region, turn_off_insert)
31026         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31027         (tty_clear_end_of_line, tty_setup_colors)
31028         (delete_tty, updating_frame)
31029         (produce_special_glyphs, produce_glyphs, write_glyphs)
31030         (insert_glyphs): Remove.
31031         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31032         (tty_turn_off_highlight, get_tty_size): Add declaration.
31033         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31035         * frame.h (enum output_method): Add output_initial.
31036         (struct x_output): Delete.
31037         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31038         Access foreground_pixel and background_pixel directly from the frame.
31039         (tty_display): Delete.
31040         (struct frame): Add buried_buffer_list, foreground_pixel,
31041         background_pixel and terminal.  Delete kboard.
31042         (union output_data): Add tty.
31043         (FRAME_KBOARD): Get the kboard from the terminal.
31044         (FRAME_INITIAL_P): New macro.
31045         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31046         (Qterm_environment_variable, Qdisplay_environment_variable)
31047         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31048         New declarations.
31050         * termchar.h (tty_output, tty_display_info): New structures.
31051         (tty_list): Declare.
31052         (FRAME_TTY, CURTTY): New macros.
31053         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31054         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31055         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31056         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31058         * callproc.c: Include frame.h and termhooks.h, for terminal
31059         parameters.
31060         (add_env): New function.
31061         (child_setup): Use it.
31062         (child_setup, getenv_internal): Handle the new Vprocess_environment.
31063         (getenv_internal): Fix get_terminal_param call.
31064         (Fgetenv_internal, egetenv): Update doc.
31065         (syms_of_callproc): Initialize Vprocess_environment to nil.
31066         Register and initialize them.  Remove obsolete defvars.  Update doc
31067         strings.
31068         (child_setup): Handle Vlocal_environment_variables.
31069         (getenv_internal): Add terminal parameter.
31070         Handle Vlocal_environment_variables.
31071         (Fgetenv_internal): Add terminal parameter.
31072         (child_setup, getenv_internal, Fgetenv_internal): Store the local
31073         environment in a frame (not terminal) parameter.  Update doc strings.
31074         (set_initial_environment): Rename from set_global_environment.
31075         Store Emacs environment in initial frame parameter.
31077         * xdisp.c (redisplay_internal): Update references to
31078         `previous_terminal_frame'.
31079         (display_mode_line, Fformat_mode_line): Replace calls to
31080         `push_frame_kboard' with `push_kboard'.
31081         (get_glyph_string_clip_rects): Add extra parentheses and
31082         braces to prevent compiler warnings.
31083         (calc_pixel_width_or_height): Add xassert to check that the
31084         frame is alive.  Don't call `lookup_image' on a termcap frame.
31085         (message2_nolog, message3_nolog, redisplay_internal)
31086         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31087         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31088         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31089         (Fx_display_pixel_width, Fx_display_pixel_height)
31090         (Fx_display_planes, Fx_display_color_cells)
31091         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31092         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31093         (Fx_display_backing_store, Fx_display_visual_class)
31094         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31095         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31097         * xfns.c (x_set_foreground_color x_set_background_color)
31098         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31099         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31100         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31101         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31102         terminal that is being deleted.
31103         (Fx_create_frame): Use `store_frame_param' to set `window-system'
31104         frame parameter, and make sure it overrides any user-supplied setting.
31105         (Fx_close_connection, Fx_synchronize): Unify argument names with
31106         the rest of the DEFUNs.
31108         * dispnew.c (Fsend_string_to_terminal): Update call to
31109         `get_tty_terminal'.
31110         (Fredraw_frame, Fsend_string_to_terminal)
31111         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31112         FRAME_TERMCAP_P and FRAME_TTY.
31113         (window_change_signal): Don't believe width/height values that are
31114         impossibly small.
31115         (Vinitial_window_system): Rename from Vwindow_system.
31116         (termscript, Wcm, rif): Delete.
31118         * termhooks.h (struct terminal): New struct containing the
31119         previously global text display hooks and new members NAME,
31120         DELETED and PARAM_ALIST.
31121         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31122         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31123         (FRAME_RIF): New macros.
31124         (get_terminal_param, get_device): New declarations.
31125         (termscript): Delete declaration.
31127         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31128         (XTflash, x_free_frame_resources, x_scroll_bar_create)
31129         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31130         FRAME_FOREGROUND_PIXEL.
31131         (x_fully_uncatch_errors): Disable definition.
31132         (x_scroll_bar_expose): Fix reference to foreground pixel.
31133         (XTread_socket): Disable loop on all X displays.
31134         (x_delete_terminal): Don't set terminal->deleted and let
31135         delete_terminal delete the frames on the terminal.
31136         (x_delete_display): Doc update to reflect changes in
31137         delete_terminal.
31138         (x_display_info) <terminal>: Move member earlier in the struct.
31139         (deleting_tty): Remove old variable.
31140         (Fsuspend_tty): Call clear_tty_hooks.
31141         (Fresume_tty, init_tty): Call set_tty_hooks.
31142         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31143         errors on X frames.
31144         (x_catch_errors_unwind): Abort if x_error_message is NULL.
31145         (handle_one_xevent): Initialize `f' to NULL.
31146         (x_delete_terminal, x_create_terminal): New functions.
31147         (XTset_terminal_modes, XTreset_terminal_modes)
31148         (XTread_socket, x_connection_closed, x_term_init)
31149         (x_term_init, x_delete_display): Add terminal parameter.
31150         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31151         X connections.
31153         * frame.c: Include termchar.h.
31154         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31155         (Qwindow_system, Qenvironment, Qterm_environment_variable)
31156         (Qdisplay_environment_variable): New vars.
31157         (Fframep): Deal with output_initial.
31158         (Fframe-live-p): Doc fix.
31159         (Fwindow-system): New function.
31160         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31161         (make_terminal_frame): Don't create frames on a terminal that is
31162         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31163         (store_frame_param): Check for found_for_frame before calling XFRAME.
31164         (Fmake_terminal_frame): Handle NULL tty names correctly.
31165         (syms_of_frame): Enhance doc string of `default-frame-alist'.
31166         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
31167         frames to refer to a deleted frame in their 'environment parameter.
31168         (Fframe_with_environment): New function.
31169         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
31170         (get_future_frame_param): New function.
31171         (Fmake_terminal_frame): Use it.
31172         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31174         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31175         * sysdep.c (reset_sys_modes): Update for renames.
31177         * keyboard.c (tty_read_avail_input): New function.
31178         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31179         (syms_of_keyboard): Defsubr them.
31180         (Fset_input_meta_mode, Fset_quit_char): New functions.
31181         (Fset_input_mode): Split to above functions.
31182         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31183         parameter.  Use it in call to `read_char'.
31184         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
31185         Set wrong_kboard_jmpbuf correctly in recursive calls.
31186         Use current_kboard to access Vkeyboard_translate_table.
31187         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31188         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31189         Update longjmp invocations.  Remember the original current_kboard,
31190         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31191         changes it.  Comment out unnecessary calls to
31192         `record_single_kboard_state' and `any_kboard_state'.
31193         Update recursive calls.
31194         (wrong_kboard_jmpbuf): Remove global variable.
31195         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31196         Handle deleted interrupted_kboards correctly; that is a legal
31197         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
31198         and read_char calls.  Abort if interrupted_kboard died in read_char.
31199         (any_kboard_state, single_kboard_state)
31200         (push_frame_kboard): Remove function.
31201         (pop_kboard): Switch out of single_kboard mode if the kboard has
31202         been deleted.  Remove unused variable.  Help debugging by not
31203         changing current_kboard unnecessarily.  Set current_kboard to the
31204         kboard of the selected frame when the stored kboard object has
31205         been deleted before pop_kboard.
31206         (temporarily_switch_to_single_kboard): Change first parameter to a
31207         frame pointer.  Throw an error when caller wants to change kboards
31208         while in single_kboard mode.  Don't push_kboard if we weren't in
31209         single kboard state.  Don't pop_kboard if we popped into any
31210         kboard state.
31211         (restore_kboard_configuration): Abort if pop_kboard changed the
31212         kboard in single_kboard mode.  Call pop_kboard only after setting
31213         up single_kboard mode.
31214         (Frecursive_edit): Switch to single_kboard mode only in nested
31215         command loops.
31216         (cmd_error, command_loop, command_loop_1, timer_check):
31217         Comment out unnecessary call to `any_kboard_state' and
31218         `record_single_kboard_state'.
31219         (delete_kboard): Exit single_kboard mode if we have just deleted
31220         that kboard.  Use FRAME_KBOARD.
31221         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31222         `fatal_error_signal'.
31223         (record_single_kboard_state): Don't push_kboard if we weren't in
31224         single kboard state.  Don't pop_kboard if we popped into any
31225         kboard state.
31226         (push_frame_kboard): Rename to push_kboard.
31227         (kbd_buffer_get_event): Use FRAME_TERMINAL.
31228         (read_avail_input): Read input from all terminals.
31229         (mark_kboards): Also mark Vkeyboard_translate_table.
31230         (kbd_buffer_store_event_hold): Simplify condition.
31231         (read_key_sequence): Reinitialize fkey and keytran at each replay.
31232         (Vkeyboard_translate_table): Move to struct kboard.
31233         (init_kboard): Initialize Vkeyboard_translate_table.
31234         (syms_of_keyboard): Use DEFVAR_KBOARD to define
31235         Vkeyboard_translate_table.  Update doc strings.  Update docs of
31236         local-function-key-map and function-key-map.
31238         * terminal.c: New file.
31240         * term.c: Include errno.h.
31241         (Vring_bell_function, device_list, initial_device)
31242         (next_device_id, ring_bell, update_begin, update_end)
31243         (set_terminal_window, cursor_to, raw_cursor_to)
31244         (clear_to_end, clear_frame, clear_end_of_line)
31245         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31246         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31247         (syms_of_term): Move their initialization to terminal.c.
31248         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31249         (Ftty_display_color_cells)
31250         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31251         (clear_tty_hooks, set_tty_hooks)
31252         (init_tty, maybe_fatal): New functions.
31253         (Ftty_type): Return nil if terminal is not on a tty instead of
31254         throwing an error.  Doc update.
31255         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31256         Doc update.  Initialize new subrs and variables.
31257         (delete_tty): Use terminal->deleted.
31258         (tty_set_terminal_modes): Rename from set_terminal_modes.
31259         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31260         (set_scroll_region): Rename to `tty_set_scroll_region'.
31261         (turn_on_insert): Rename to `tty_turn_on_insert'.
31262         (turn_off_insert): Rename to `tty_turn_off_insert'.
31263         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31264         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31265         (toggle_highligh): Rename to `tty_toggle_highlight'.
31266         (background_highlight): Rename to `tty_background_highlight'.
31267         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31268         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31269         (tty_set_scroll_region, tty_background_highlight)
31270         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31271         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31272         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31273         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31274         Add static modifier.
31275         (tty_reset_terminal_modes, tty_set_terminal_window)
31276         (tty_set_scroll_region, tty_background_highlight)
31277         (tty_highlight_if_desired, tty_cursor_to)
31278         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31279         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31280         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31281         renames.
31283 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
31285         * keyboard.c: Qrtl is new.
31286         (parse_tool_bar_item): Handle :rtl keyword.
31287         (syms_of_keyboard): Intern :rtl keyword.
31289         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31291         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31292         so no Lisp code is executed.
31293         (file_for_image, find_rtl_image): New functions.
31294         (xg_get_image_for_pixmap): Use file_for_image.
31295         (update_frame_tool_bar): If direction is RTL, use RTL image if
31296         defined.  Use Gtk stock images if defined.
31298 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31300         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31301         for nonexistent or zero-width glyph in composition glyph.
31303 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
31305         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31307         * xdisp.c (Finvisible_p): New function.
31308         (syms_of_xdisp): defsubr it.
31310 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
31312         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31313         Doc fixes.
31315 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31317         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31319 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
31321         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31322         whether decoding has modified buffer contents.
31324 2007-08-24  Jason Rumney  <jasonr@gnu.org>
31326         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31327         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31328         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31329         (init_svg_functions) [HAVE_NTGUI]: New function.
31330         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31331         (svg_load_image): Use them.
31332         (svg_load_image) [HAVE_NTGUI]: Implement background.
31334 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31336         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31337         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31338         (LIBX): Remove @RSVG_LIBS@.
31339         (LIBES): Add $(RSVG_LIBS).
31341         * image.c (svg_load_image): Blend with specified background if exists.
31342         Use IMAGE_BACKGROUND.  Add Mac OS Support.
31344         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31345         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31346         Remove macros.
31347         [MAC_OSX] (socket_callback): Do nothing.
31348         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31349         ReceiveNextEvent.
31350         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
31351         socket_callback.
31352         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31354 2007-08-22  Glenn Morris  <rgm@gnu.org>
31356         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31358 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
31360         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31362         * image.c: Add support for SVG images.  Some additional comments
31363         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
31364         (svg_image_p): New function to test for SVG image.
31365         (svg_load): New function to load SVG image.
31366         (svg_load_image): New function, helper for svg_load.
31367         (Qsvg): New Lisp_object.
31368         (svg_keyword_index): New enum.
31369         (svg_format): New static `image_keyword' struct.
31370         (svg_type): New static `image_type' struct.
31371         (librsvg/rsvg.h): Include it.
31373 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
31375         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31377 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
31379         * lread.c (Qold_style_backquotes): New var.
31380         (syms_of_lread): Init and staticpro it.
31381         (load_warn_old_style_backquotes): New fun.
31382         (Fload): Use them to warn about old style backquotes.
31383         (end_of_file_error, Fload): Remove unused vars.
31385         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31387         * lread.c (Vold_style_backquotes): New var.
31388         (syms_of_lread): Init and export it to Elisp.
31389         (read1): Set it when we find an old-style (back)quote.
31391 2007-08-22  Jason Rumney  <jasonr@gnu.org>
31393         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31395 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
31397         * puresize.h (BASE_PURESIZE): Increase to 1140000.
31399 2007-08-19  Richard Stallman  <rms@gnu.org>
31401         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31403 2007-08-19  Andreas Schwab  <schwab@suse.de>
31405         * alloc.c (pure): Round PURESIZE up.
31407 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
31409         * xterm.c (handle_one_xevent): Remove check that mouse click is in
31410         active frame.
31412 2007-08-16  Richard Stallman  <rms@gnu.org>
31414         * eval.c (Fcommandp): Add parens to clarify.
31416         * minibuf.c (Fall_completions): Use enum for type of table.
31418         * emacs.c (USAGE2): Improve text.
31420 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
31422         * term.c (tty_default_color_capabilities): Declare static
31423         variables in file scope, to avoid HPUX compiler problem.
31425 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
31427         * gtkutil.c (update_frame_tool_bar): Use -1 as index
31428         to gtk_toolbar_insert.
31430 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
31432         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31434         * insdel.c (reset_var_on_error): New fun.
31435         (signal_before_change, signal_after_change):
31436         Use it to reset (after|before)-change-functions to nil in case of error.
31437         Bind inhibit-modification-hooks to t.
31438         Don't bind (after|before)-change-functions to nil while they run.
31440 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31442         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31443         filling pixmap with stippled background.
31445 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31447         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31448         Don't use invisible frame as parent window for repositioning.
31450 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
31452         * print.c (new_backquote_output): Rename from old_backquote_output.
31453         (print): Inverse its logic (according to its name) so as to match the
31454         behavior of new_backquote_flag in lread.c.
31456 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31458         * gmalloc.c (posix_memalign): New function.
31460         * macterm.c (frame_highlight, frame_unhighlight): Don't call
31461         ActivateControl/DeactivateControl here.
31462         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31463         frame-notice-user-settings is non-nil.
31464         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31465         for kEventParamFMFontStyle.
31466         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31467         mac_pass_command_to_system and mac_pass_control_to_system here.
31468         (XTread_socket): Call ActivateControl/DeactivateControl here.
31469         (XTread_socket) [TARGET_API_MAC_CARBON]:
31470         Check mac_pass_command_to_system and mac_pass_control_to_system here.
31471         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31472         for window repositioning.
31474 2007-08-08  Glenn Morris  <rgm@gnu.org>
31476         * Replace `iff' in doc-strings and comments.
31478 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
31480         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31482 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
31484         * fileio.c (Finsert_file_contents): Run format-decode and
31485         after_insert_file_functions on entire buffer when REPLACE is
31486         non-nil and inhibit modification_hooks and point_motion_hooks.
31487         For consistency, run after_insert_file_functions iff something
31488         got inserted.  Move signal_after_change and update_compositions
31489         after code running after_insert_file_functions.  Make sure that
31490         undo_list doesn't record intermediate steps of the decoding process.
31492 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31494         * emacs.c (main)
31495         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31496         Call malloc_enable_thread on interactive startup.
31498         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31499         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31500         [USE_PTHREAD]: Conditionalize with it.
31501         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31502         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31503         New functions.
31505 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
31507         * xdisp.c (redisplay_window): When restoring original buffer
31508         position, make sure it is still valid.
31510         * image.c (png_load): Ignore png-supplied background color.
31512 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31514         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31515         Use kCFAbsoluteTimeIntervalSince1970.
31517         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31518         New variable.
31519         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31520         event loop should be quit.
31521         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31522         Quit dialog event loop if quit_dialog_event_loop is set.
31524         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31525         (Selection): New typedef.  Use instead of ScrapRef.
31526         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31527         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31528         (mac_clear_selection): Rename from clear_scrap.
31529         (get_flavor_type_from_symbol): New argument SEL and subsume function of
31530         scrap_has_target_type.  All uses changed.
31531         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31532         (mac_selection_has_target_p): New functions.
31533         (mac_put_selection_value): Rename from put_scrap_string.
31534         (mac_get_selection_value): Rename from get_scrap_string.
31535         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31536         (put_scrap_private_timestamp, scrap_has_target_type)
31537         (get_scrap_private_timestamp): Remove functions.
31538         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31539         (x_own_selection, x_get_local_selection):
31540         Use mac_valid_selection_value_p.
31541         (x_own_selection): Don't use put_scrap_private_timestamp.
31542         Record OWNERSHIP-INFO into Vselection_alist instead.
31543         (x_get_local_selection): Don't check type if request is local.
31544         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31545         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31547 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
31549         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31550         add comment explaining why.
31552 2007-08-03  Richard Stallman  <rms@gnu.org>
31554         * fileio.c (Fvisited_file_modtime): Use make_time.
31556 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
31558         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31559         build.
31561 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
31563         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31565 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
31567         * puresize.h (BASE_PURESIZE): Increase to 1130000.
31569 2007-07-30  Richard Stallman  <rms@gnu.org>
31571         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31573 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
31575         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
31577 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
31579         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31580         remote default-directory.
31582         * buffer.c (mode-line-format): Update doc string.
31584 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31586         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31587         scroll bar gap.
31588         (x_scroll_bar_create): Set bar->fringe_extended_p.
31589         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31590         on frame edge.  Check fringe background extension.  Don't clear
31591         extended fringe background area.
31593         * w32term.h (struct scroll_bar): New member fringe_extended_p.
31594         (w32_fill_area): Enclose multiple statements with do ... while (0).
31596         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31597         Extend fringe background to scroll bar gap.
31598         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31599         Set bar->fringe_extended_p.
31600         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31601         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
31602         background extension.  Don't clear extended fringe background area.
31604         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31605         New member fringe_extended_p.
31607 2007-07-25  Glenn Morris  <rgm@gnu.org>
31609         * Relicense all FSF files to GPLv3 or later.
31611         * COPYING: Switch to GPLv3.
31613 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
31615         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31617         * data.c (Finteractive_form): Check for the presence of an
31618         `interactive-form' symbol property more thoroughly.
31620         * data.c (Finteractive_form): Use an `interactive-form' property if
31621         present, analogous to the function-documentation property.
31623 2007-07-24  Jason Rumney  <jasonr@gnu.org>
31625         * w32fns.c (x_real_positions): Get real position from OS instead of
31626         calculating it.
31628 2007-07-23  Jason Rumney  <jasonr@gnu.org>
31630         * filelock.c (current_lock_owner): Allow for @ sign in username.
31632 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
31634         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31635         remote default-directory.
31637         * buffer.c (mode-line-format): Describe above case in doc string.
31639 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
31641         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31642         Define if not defined.
31644 2007-07-18  Jason Rumney  <jasonr@gnu.org>
31646         * w32proc.c (w32_executable_type): Handle 64 bit executables.
31648 2007-07-18  Richard Stallman  <rms@gnu.org>
31650         * data.c (Fsetq_default): Doc fix.
31652         * eval.c (Fsetq): Doc fix.
31654 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
31656         * coding.c (Ffind_operation_coding_system):
31657         * eval.c (For, Fand): Doc fixes.
31658         Reported by Johan Bockgård.
31660 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
31662         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31664         * xterm.h: Declare x_ewmh_activate_frame.
31666         * xterm.c (x_ewmh_activate_frame): New function.
31667         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31669 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
31671         * window.c (Fdisplay_buffer): If largest or LRU window is the
31672         only window, split it even if it is not eligible for splitting.
31673         This restores the original behavior broken by the 2007-07-15
31674         change.
31676 2007-07-17  Glenn Morris  <rgm@gnu.org>
31678         * abbrev.c (abbrev_check_chars): New function.
31679         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31680         Call abbrev_check_chars to check abbrev characters are word
31681         constituents.  Doc fix.
31683 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
31685         * process.c (Fstart_process, Fmake_network_process)
31686         (read_process_output): Fix up last changes.
31688 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
31690         * makefile.w32-in (clean): Don't delete *~.
31692 2007-07-16  Andreas Schwab  <schwab@suse.de>
31694         * window.c (Fdisplay_buffer): Use NILP.
31695         (Fset_window_scroll_bars): Likewise.
31697 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
31699         * window.c (window_min_size_2): New function.
31700         (window_min_size_1, size_window, Fdisplay_buffer)
31701         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31702         windows without mode- or header-lines when window-min-height is
31703         too small.
31704         (size_window): Reset nodelete_p after testing it, following an
31705         earlier note by Kim F. Storm.
31706         (display_buffer): Do not set split_height_threshold to twice the
31707         value of window_min_height to avoid changing the value of a
31708         customizable variable.  Rather explicitly check whether the
31709         height of the window that shall be splitted is at least as large
31710         as split_height_threshold.
31711         (Fwindow_full_width_p): New defun.
31712         (syms_of_window): Defsubr it.
31714         * window.h: Add EXFUN for Fwindow_full_width_p.
31716 2007-07-14  Jason Rumney  <jasonr@gnu.org>
31718         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31720 2007-07-14  Richard Stallman  <rms@gnu.org>
31722         * eval.c (maybe_call_debugger): New function.
31723         (find_handler_clause): Use maybe_call_debugger.
31724         Call it when the handler says `debug'.
31725         Eliminate DEBUGGER_VALUE_PTR.
31726         (Fsignal): Eliminate debugger_value.
31727         (Qdebug): New variable.
31728         (syms_of_eval): Initialize it.
31730 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
31732         * eval.c (Fprogn):
31733         * keyboard.c (Ftrack_mouse):
31734         * print.c (Fwith_output_to_temp_buffer):
31735         * window.c (Fsave_window_excursion): Doc fix.
31737 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
31739         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31741 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
31743         * process.h (struct Lisp_Process): Turn slots infd, outfd,
31744         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31745         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31746         read_output_delay, and read_output_skip from Lisp_Objects to ints.
31747         Remove unused encoding_carryover.
31748         * process.c: Adjust all functions accordingly.
31750 2007-07-12  Richard Stallman  <rms@gnu.org>
31752         * term.c: Include unistd.h only if HAVE_UNISTD_H.
31754 2007-07-11  Jason Rumney  <jasonr@gnu.org>
31756         * makefile.w32-in (LIBS): Include OLE32.
31758         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31759         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31761 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
31763         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31764         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31765         from a Lisp_Object into a bare pointer.
31766         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31767         Adjust the code correspondingly.
31769         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31771         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31772         (term_show_mouse_face): Remove unused var `j'.
31773         (handle_one_term_event): Remove unused vars `i' and `j'.
31774         Don't cast return value of ttyname since it's not necessary.
31776 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
31778         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31779         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31781         * fns.c (map_char_table): Use an array of int for `indices' rather than
31782         an array of Lisp_Objects (which are only ever integers anyway).
31783         (Fmap_char_table): Update caller.
31784         * lisp.h: Update prototype.
31785         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31786         * fontset.c (Ffontset_info):
31787         * casetab.c (set_case_table): Update callers.
31789         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31791         * keymap.c (struct accessible_keymaps_data)
31792         (struct where_is_internal_data): New structures.
31793         (accessible_keymaps_1, where_is_internal_1): Use them to change
31794         interface to adhere to the one used by map_keymap.
31795         (Faccessible_keymaps, where_is_internal): Use map_keymap.
31796         (accessible_keymaps_char_table, where_is_internal_2): Remove.
31798         * keymap.h (map_keymap_function_t): More informative prototype.
31800 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
31802         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31803         (looking_at_1): Don't change search_regs and last_thing_searched
31804         if `inhibit-changing-match-data' is non-nil.
31805         (string_match_1, search_buffer, set_search_regs): Likewise.
31806         (syms_of_search): Add Lisp level definition for
31807         `inhibit-changing-match-data' and set it to nil.
31808         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31809         start and end of the match, instead of using values in search_regs.
31811 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
31813         * minibuf.c (Fcompleting_read): New value `confirm-only'
31814         for `require-match'.
31816 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
31818         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31819         part of the 2007-06-27 change to syms_of_fileio.
31821 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31823         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31824         Check WINDOWP before using XWINDOW.  Consolidate return statements.
31826 2007-06-27  Richard Stallman  <rms@gnu.org>
31828         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31830 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
31832         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31834 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31836         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31837         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31838         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31839         (_free_internal, memalign): Use them.
31840         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31841         Initialize to PTHREAD_MUTEX_INITIALIZER.
31842         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31843         (morecore_nolock): Rename from morecore.  All uses changed.
31844         Use only nolock versions of internal allocation functions.
31845         (_malloc_internal_nolock, _realloc_internal_nolock)
31846         (_free_internal_nolock): New functions created from
31847         _malloc_internal, _realloc_internal, and _free_internal.
31848         (_malloc_internal, _realloc_internal, _free_internal): Use them.
31849         Copy hook value to automatic variable before its use.
31850         (memalign): Copy hook value to automatic variable before its use.
31852 2007-06-26  Kenichi Handa  <handa@m17n.org>
31854         * coding.c (Ffind_operation_coding_system): Docstring improved.
31855         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31857 2007-06-25  David Kastrup  <dak@gnu.org>
31859         * keymap.c (Fcurrent_active_maps): Add `position' argument.
31860         (Fwhere_is_internal): Adjust call to `current-active-maps' to
31861         cater for additional parameter.
31863         * keymap.h: Adjust number of parameters to `current-active-maps'.
31865         * doc.c (Fsubstitute_command_keys): Adjust call of
31866         `current-active-maps'.
31868 2007-06-25  David Kastrup  <dak@gnu.org>
31870         * callint.c (Fcall_interactively): Make the parsing of interactive
31871         specs somewhat more readable.
31873 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31875         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31876         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
31877         if extended background has already been filled.
31879 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31881         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31882         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31884         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31885         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31886         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31887         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31888         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31889         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
31890         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31891         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31892         Run timers during dialog popup.
31893         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31895 2007-06-21  Jason Rumney  <jasonr@gnu.org>
31897         * image.c (convert_mono_to_color_image): Swap fore and background.
31899 2007-06-20  Jason Rumney  <jasonr@gnu.org>
31901         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31902         (w32_free_bdf_font): Unmap memory not handle.
31904 2007-06-20  Sam Steingold  <sds@gnu.org>
31906         * gmalloc.c (__morecore): Fix the declaration to comply with the
31907         definition.
31909 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
31911         * w32term.c (w32_delete_display): Remove leftover declaration.
31912         (w32_define_cursor, w32_initialize): Make static.
31914         * w32.c (_wsa_errlist): Fix typo in error message.
31915         (init_environment): Ignore any environment variable from the
31916         registry having a null value.
31918 2007-06-20  Glenn Morris  <rgm@gnu.org>
31920         * Makefile.in (LIBGIF): Default to -lgif.
31922 2007-06-17  Jason Rumney  <jasonr@gnu.org>
31924         * w32menu.c (add_menu_item): Don't use multibyte string functions on
31925         unicode strings.
31927 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
31929         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31930         Fix typo in docstring.
31932 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
31934         * w32menu.c (add_menu_item): Escape `&' characters in menu items
31935         and their keybindings.
31937 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
31939         * composite.c (update_compositions): Fix last fix.
31941 2007-06-14  Jason Rumney  <jasonr@gnu.org>
31943         * w32.c (get_process_times_fn): New function pointer.
31944         (globals_of_w32): Intialize it if present in kernel32.dll.
31945         (w32_get_internal_run_time): New function.
31947         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31949 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
31951         * composite.c (update_compositions): Check the validness of
31952         compositions.
31954 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
31956         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31957         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31959         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31960         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31962         * macgui.h (USE_MAC_TOOLBAR): New define.
31964         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31965         Return immediately unless popup is activated.
31967         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31968         background to scroll bar gap.
31969         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31970         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31971         scroll bars on frame edge.  Check fringe background extension.
31972         Don't clear extended fringe background area.
31973         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31974         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31975         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31976         [USE_MAC_TOOLBAR]: New macros.
31977         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31978         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31979         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31980         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31981         [USE_MAC_TOOLBAR]: New functions.
31982         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31983         manually if previous repositioning has failed.
31984         (mac_handle_keyboard_event): Use precomputed event kind.
31985         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31986         as tool bar item click.  Handle mouse movement over tool bar items.
31988         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31989         toolbar_win_gravity.
31990         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31991         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31992         Add externs.
31994         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31995         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31997 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
31999         * image.c (search_image_cache): Remove unused variable.
32001 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
32003         * xfns.c, xmenu.c: Link to xaw3d if available.
32005 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32007         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32008         frame_foreground and frame_background.
32010         * image.c (lookup_image): Save frame foreground and background colors.
32011         (search_image_cache): Check if saved and current frame colors match.
32013 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
32015         * regex.c (regex_compile): Remove the `regnum' counter.
32016         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
32018 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
32020         * term.c: Include intervals.h to declare Fget_text_property.
32022 2007-06-10  Jason Rumney  <jasonr@gnu.org>
32024         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32026 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
32028         * callint.c (Fcall_interactively):
32029         * editfns.c (Fdelete_and_extract_region):
32030         * fileio.c (Fread_file_name):
32031         * fns.c (Fmapconcat):
32032         * keyboard.c (cmd_error_internal):
32033         * keymap.c (Fkey_description):
32034         * lread.c (openp):
32035         * minibuf.c (read_minibuf):
32036         * search.c (wordify):
32037         * sunfns.c (sel_read):
32038         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32039         * xfns.c (x_default_scroll_bar_color_parameter):
32040         * xmenu.c (menu_help_callback):
32041         * xselect.c (Fx_get_atom_name):
32042         * xterm.c (x_term_init): Use empty_unibyte_string.
32044 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
32046         * alloc.c (init_strings): Initialize canonical empty strings.
32047         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32048         canonical empty string when the requested size is 0.
32050         * emacs.c (empty_unibyte_string): Rename from empty_string.
32051         (empty_multibyte_string): New canonical empty string.
32052         (syms_of_emacs): Don't initialize empty_string.
32054         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32055         string, if appropriate.
32056         (empty_unibyte_string, empty_multibyte_string): New externs.
32057         (empty_string): Remove extern.
32059         * lread.c (syms_of_lread): Use empty_unibyte_string.
32061 2007-06-07  Jason Rumney  <jasonr@gnu.org>
32063         * s/ms-w32.h: Don't define HAVE_TZNAME.
32065         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32067 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32069         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32071         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32072         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32074         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32075         Don't call next handler.
32076         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32077         Remove argument.  Install handler to application.
32078         (set_frame_menubar): Don't change deep_p.
32079         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32080         FRAME_OUTER_TO_INNER_DIFF_Y.
32081         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32082         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32083         [HAVE_DIALOGS]: New macros.
32084         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32085         Use them.
32086         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32088         * macselect.c [MAC_OSX] (install_service_handler): Rename from
32089         init_service_handler.  All callers changed.  Return OSStatus value.
32091         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
32092         All callers changed so as not to call SetPortWindowPort.
32093         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32094         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32095         mac_draw_string_common.
32096         (mac_draw_image_string_qd): Likewise.
32097         (mac_draw_string_common): Use them.  Add INLINE.
32098         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32099         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32100         GetGlobalMouse.
32101         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32102         and FRAME_OUTER_TO_INNER_DIFF_Y.
32103         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32104         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32105         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32106         repositioning window to mac_handle_window_event.
32107         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32108         saving window location to mac_handle_window_event
32109         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32110         (install_menu_target_item_handler): Remove argument in extern.
32111         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32112         Also accept command events.
32113         (do_keystroke): New function created from XTread_socket.
32114         (init_command_handler): Remove functions.
32115         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32116         and save window location by kEventWindowShowing and kEventWindowHiding
32117         handlers here.  Don't call next handler for window state change and
32118         focus events.
32119         (mac_handle_application_event, mac_handle_keyboard_event)
32120         [TARGET_API_MAC_CARBON]: New functions.
32121         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32122         kEventWindowShowing and kEventWindowHiding events.  Move installation
32123         of mouse, font, text input and menu target item handlers to
32124         install_application_handler.
32125         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32126         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32127         New function.
32128         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32129         Register it.
32130         (XTread_socket) [TARGET_API_MAC_CARBON]:
32131         Consolidate SendEventToEventTarget calls.
32132         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32133         Move application activation handler to mac_handle_application_event.
32134         Move keyboard handler to mac_handle_keyboard_event.
32135         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32136         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32137         init_command_handler.  Call install_application_handler.
32139         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32140         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32142 2007-06-07  Glenn Morris  <rgm@gnu.org>
32144         * emacs.c (main): Use `emacs-copyright' in --version output.
32146 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
32148         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32150 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32152         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32154         * macgui.h: Replace WindowPtr with WindowRef.
32156         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32157         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
32158         Replace ControlHandle with ControlRef.
32159         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32161         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32162         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
32163         Replace ControlHandle with ControlRef.
32164         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
32165         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32167         * macterm.h (struct scroll_bar): Rename member control_handle_low
32168         and control_handle_high to control_ref_low and control_ref_high.
32169         All uses changed.
32170         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32171         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32172         respectively.  All uses changed.
32173         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32174         (install_window_handler, remove_window_handler): Replace WindowPtr
32175         with WindowRef in externs.
32177 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
32179         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32181 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
32183         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32185         * frame.c (Fmouse_position, Fmouse_pixel_position):
32186         Condition on HAVE_GPM too.
32188         * term.c (term_mouse_highlight): Remove unused variables.
32189         (Fterm_open_connection): Set gpm_zerobased to 1.
32190         (term_mouse_movement, term_mouse_click, handle_one_term_event):
32191         Use zero based co-ordinates.
32192         (handle_one_term_event): Report a drag as mouse movement too.
32194         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32196 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
32198         * image.c (search_image_cache): New function.  Require background
32199         color match if background color is unspecified in the image spec.
32200         (uncache_image, lookup_image): Use it.
32202 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
32204         * window.c (Fshrink_window): Reflow docstring.
32206 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
32208         * Version 22.1 released.
32210 2007-06-01  Richard Stallman  <rms@gnu.org>
32212         * xfns.c (x_encode_text): Add GCPRO.
32214 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32216         * xfns.c (x_set_name_internal): Save encoded name before
32217         x_encode_text in case string data is relocated.
32219 2007-05-31  Richard Stallman  <rms@gnu.org>
32221         * buffer.c (syms_of_buffer): Doc fix.
32223 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
32225         * sysdep.c (init_sys_modes): Add rather than replace with
32226         O_NONBLOCK.
32228         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32229         term_mouse_moveto.
32231         * termhooks.h (term_mouse_moveto): New extern.
32233         * term.c (mouse_face_window): Rename...
32234         (Qmouse_face_window): ...to this.
32235         (term_show_mouse_face, term_clear_mouse_face)
32236         (term_mouse_highlight): Use Qmouse_face_window.
32237         (term_mouse_moveto): New function.
32238         (term_mouse_position): Make it work.
32239         (syms_of_term): Uncomment assignment to mouse_position_hook.
32240         Staticpro Qmouse_face_window.
32242 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32244         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32245         around current_column call.
32247 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
32249         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32250         * xdisp.c (next_element_from_buffer):
32251         * window.c (delete_window):
32252         * term.c (term_mouse_highlight):
32253         * msdos.c (getdefdir):
32254         * macterm.c (mac_create_bitmap_from_bitmap_data)
32255         (init_font_name_table):
32256         * fns.c (Fsxhash):
32257         * data.c (Fmake_local_variable):
32258         * ccl.c (ccl_driver): Likewise.
32260 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32262         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32263         Call mac_wakeup_from_rne on window size change.
32265 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
32267         * image.c (uncache_image): Fix typo.
32269 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
32271         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32273 2007-05-22  Richard Stallman  <rms@gnu.org>
32275         * xterm.c (x_connection_closed): Remove NO_RETURN.
32277 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
32279         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32281 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
32283         * image.c (uncache_image): New function.
32284         (Fimage_refresh): New function.
32286 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
32288         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32290 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
32292         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32293         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32295 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
32297         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32298         conditional on [HAVE_GPM_H].
32300 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
32302         * syntax.c (skip_chars): Update syntax-table only after we checked that
32303         the new location is valid.
32305 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32307         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32308         mac_get_window_bounds.
32310 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
32312         * Makefile.in (LIBGPM): Allow it to be set from configure.
32313         If set then link Emacs with it.
32315         * config.in: Regenerate.
32317         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32318         New externs.
32320         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32321         Include gpm.h.
32322         (handle_one_term_event, term_gpm): New externs.
32324         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32325         and allow it to be interrupted by SIGIO.
32327         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32328         (wait_reading_process_output): Wait on gpm_fd too.
32329         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32330         (add_gpm_wait_descriptor_called_flag): New variable.
32331         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32333         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32334         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32335         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32336         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32337         (make_lispy_event): Add case GPM_CLICK_EVENT.
32338         (read_avail_input): Handle mouse input.
32340         * term.c (write_glyphs_with_face): New function.
32341         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32342         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32343         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32344         (mouse_face_face_id, term_gpm, pos_x, pos_y)
32345         (last_mouse_x, last_mouse_y): New variables.
32346         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32347         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32348         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32349         (Fterm_close_connection): New functions.
32350         (term_init): Initialise mouse_face_window.
32352 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
32354         * xdisp.c (redisplay_window): If first window line is a
32355         continuation line, recompute the new window start instead of
32356         recentering.
32358 2007-05-18  Glenn Morris  <rgm@gnu.org>
32360         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32361         Suggested by Alfred M. Szmidt <ams@gnu.org>.
32363 2007-05-17  Glenn Morris  <rgm@gnu.org>
32365         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32367 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32369         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32370         dead key repeat and up events.
32372 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
32374         * image.c (pbm_load): Check image size for monochrome pbm.
32376 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
32378         * xterm.c (XTread_socket): Revert last change.
32380 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
32382         * image.c (pbm_load): Correctly check image size for greyscale pbm.
32384         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32386 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
32388         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32389         mixup (YAILOM).
32391 2007-05-07  Andreas Schwab  <schwab@suse.de>
32393         * keymap.c (Flookup_key): Fix typo in last change.
32395 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
32397         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32398         mapping for unibyte strings.
32400 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32402         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32403         (Fx_popup_dialog) [MAC_OSX]: Likewise.
32405 2007-04-29  Richard Stallman  <rms@gnu.org>
32407         * insdel.c (replace_range): For undo, record insertion first.
32409 2007-04-29  Andreas Schwab  <schwab@suse.de>
32411         * lisp.h (VECSIZE): Use OFFSETOF.
32413 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
32415         * xdisp.c (try_window_reusing_current_matrix): Fix number of
32416         disabled lines.
32418 2007-04-28  Richard Stallman  <rms@gnu.org>
32420         * lread.c (read_escape): In a string, \s is always space.
32422 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
32424         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32426         * gtkutil.c (xg_update_menubar, create_menus): Create empty
32427         submenu for menu bar items.
32429 See ChangeLog.10 for earlier changes.
32431 ;; Local Variables:
32432 ;; coding: utf-8
32433 ;; End:
32435   Copyright (C) 2007-2011  Free Software Foundation, Inc.
32437   This file is part of GNU Emacs.
32439   GNU Emacs is free software: you can redistribute it and/or modify
32440   it under the terms of the GNU General Public License as published by
32441   the Free Software Foundation, either version 3 of the License, or
32442   (at your option) any later version.
32444   GNU Emacs is distributed in the hope that it will be useful,
32445   but WITHOUT ANY WARRANTY; without even the implied warranty of
32446   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32447   GNU General Public License for more details.
32449   You should have received a copy of the GNU General Public License
32450   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.