Merge: * alloc.c: conform to C89 pointer rules
[bpt/emacs.git] / src / ChangeLog
1 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 conform to C89 pointer rules
4
5 * dired.c (scmp, file_name_completion):
6 Change types between char * and unsigned char *, to satisfy C89
7 rules about pointer type compatibility.
8 * casefiddle.c (casify_object, casify_region): Likewise.
9 * search.c (Freplace_match, Fregexp_quote): Likewise.
10 * alloc.c (make_string, make_specified_string, make_pure_string):
11 Likewise.
12
13 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
14
15 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
16 Emacs assumes two's complement elsewhere, but the assumption is
17 easy to remove here, and this suppresses a warning with Sun C 5.8.
18
19 conform to C89 pointer rules
20
21 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
22 (same_x_server, x_term_init):
23 Change types between char * and unsigned char *, to satisfy C89
24 rules about pointer type compatibility.
25 * doc.c (get_doc_string, Fsnarf_documentation):
26 (Fsubstitute_command_keys): Likewise.
27 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
28 * bitmaps/gray.xbm (gray_bits): Likewise.
29 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
30 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
31 Likewise.
32 * keymap.c (Ftext_char_description): Likewise.
33 * minibuf.c (Fread_buffer): Likewise.
34 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
35 (DRIVE_LETTER) [defined DOS_NT]:
36 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
37 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
38 (search_embedded_absfilename, Fsubstitute_in_file_name):
39 (barf_or_query_if_file_exists, Fmake_directory_internal):
40 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
41 (Finsert_file_contents, Fwrite_region):
42 Likewise.
43 * insdel.c (insert, insert_and_inherit, insert_before_markers):
44 (insert_before_markers_and_inherit, insert_1, insert_1_both):
45 Likewise. This changes these functions' signatures, which is
46 more convenient since most callers use char *. All remaining
47 callers changed.
48 * editfns.c (general_insert_function): Change signature to
49 match changes to insert functions' signatures.
50 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
51 explicit cast when converting between void * and function pointer
52 types, as C89 requires this.
53
54 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
55
56 don't ignore chdir failure
57 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
58 failure and exit.
59 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
60 remaining unchecked chdir calls in this function; some DOS/NT
61 expert needs to fix them.
62 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
63 in this function; some NextStep expert needs to fix them.
64
65 2011-02-05 Glenn Morris <rgm@gnu.org>
66
67 * xfaces.c (Finternal_set_lisp_face_attribute):
68 Try to clarify some error messages. (Bug#2659)
69
70 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * editfns.c (save_restriction_restore): Don't forget to invalidate the
73 current_column cache (bug#7946).
74
75 2011-02-05 Kenichi Handa <handa@m17n.org>
76
77 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
78
79 * xftfont.c (xftfont_open): Likewise.
80
81 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
82
83 * window.c (Fselect_window): Add missing return value.
84
85 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
86
87 xstrcasecmp: conform to C89 pointer rules
88 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
89 to const char *, since they're usually low-level C strings, and
90 this stays compatible with C89 pointer rules. All callers changed.
91
92 * charset.c: conform to C89 pointer rules
93 (define_charset_internal): Switch between char * and unsigned char *.
94
95 * xmenu.c: conform to C89 const rules
96 (xmenu_show, xdialog_show): Declare local var as char *, not
97 const char *, to stay compatible with C89 const rules.
98
99 * xdisp.c: conform to C89 pointer rules
100 (store_mode_line_noprop, display_string, reseat_to_string):
101 (c_string_pos, number_of_chars, message_dolog):
102 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
103 (display_mode_element, display_string):
104 Switch between char * and unsigned char * to stay compatible wth
105 C89 pointer rules.
106
107 * regex.c: conform to C89 pointer rules
108 (re_wctype): Add cast, as C89 does not allow assigning between
109 char * and unsigned char *.
110 (regex_compile): Likewise.
111
112 sync from gnulib to remove HAVE_STDBOOL_H
113 * config.in: Regenerate.
114
115 2011-02-04 Eli Zaretskii <eliz@gnu.org>
116
117 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
118 Replace all uses of lisp.h with $(LISP_H), and all uses of
119 process.h with $(PROCESS_H).
120 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
121 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
122
123 * deps.mk: Update for recent changes: gnutls support, gnulib
124 imports, addition of globals.h.
125
126 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
127 ../lib/ignore-value.h.
128
129 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
130
131 allow C code to suppress warnings about ignored return values
132
133 We need to go through the code and for each such warning, either
134 fix the code to pay attention to the returned value, or tell GCC
135 that we really do want to ignore the returned value. Here is one
136 example of how to do the latter.
137 * sysdep.c: Include <ignore-value.h>.
138 (sys_subshell): Suppress an undesirable warning about not checking
139 the returned value of 'write', as there's nothing useful one can
140 do with that returned value.
141
142 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
143
144 * xterm.c (x_connection_closed): Remove all calls that calls
145 XSync (Bug#7949).
146
147 2011-02-01 Eli Zaretskii <eliz@gnu.org>
148
149 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
150 TIFFClientOpen.
151
152 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
153
154 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
155 (x_session_check_input): Change args and return type so it can be used
156 as argument to add_read_fd. Make static. Remove call to select.
157 Call kbd_buffer_store_event for emacs_event.
158 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
159 (ice_conn_watch_CB): Call add_read_fd.
160
161 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
162 x_session_check_input.
163 (x_session_initialized): Remove definition.
164 (x_initialize): Remove setting of x_session_initialized.
165
166 * xterm.h (x_session_check_input): Remove declaration.
167
168 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
169
170 format-time-string now supports subsecond time stamp resolution
171 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
172 for consistency with its new argument and with gnulib nstrftime.
173 All callers changed. New argument NS.
174 (Fformat_time_string): Check that the time argument's microseconds
175 component, if any, is in range; this avoids integer overflow and
176 also nstrftime needs this. Document %N.
177
178 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
179
180 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
181 of int. All uses adjusted.
182 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
183 (svg_load_image): Remove casts.
184
185 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
186
187 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
188 function definitions for compiling with libpng-1.5.
189 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
190 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
191 (Bug#7908).
192
193 2011-01-31 Eli Zaretskii <eliz@gnu.org>
194
195 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
196
197 * makefile.w32-in (OBJ2): Remove strftime.$(O).
198 ($(BLD)/strftime.$(O)): Remove prerequisites.
199
200 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
201
202 src/emacs.c now gets version number from configure.in
203 * emacs.c (emacs_version): Set to VERSION so that it
204 is determined automatically from ../configure.in.
205
206 2011-01-31 Jim Meyering <meyering@redhat.com>
207
208 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
209 Use xmalloc rather than malloc.
210
211 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
212
213 strftime: import from gnulib
214 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
215 * deps.mk (strftime.o): Remove.
216 * editfns.c: Include <strftime.h>, supplied by gnulib.
217 (emacs_strftimeu): Remove decl.
218 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
219 emacs_strftimeu.
220 * config.in: Regenerate.
221 * strftime.c: Remove; we now use strftime from gnulib.
222
223 Use SSDATA when the context wants char *.
224 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
225 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
226 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
227 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
228 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
229 Use SSDATA (not SDATA) when the context of the expression wants
230 char * (not unsigned char *).
231
232 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
233
234 * .gdbinit: Read global lisp variables as globals.f_V*.
235
236 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
237
238 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
239 All uses changed.
240 (PROP_SAVE): Likewise.
241
242 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
243
244 * keyboard.c (make_lispy_position): Fix typo in last change
245 (Bug#7935).
246
247 2011-01-29 Eli Zaretskii <eliz@gnu.org>
248
249 * s/ms-w32.h (HAVE_MKTIME): Remove.
250
251 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
252 (GNULIB): New variable.
253 (LIBS): Add $(GNULIB).
254 $(TEMACS): Depend on $(GNULIB).
255 <top-level>: Fix font-lock disrupted by a lone `"'.
256
257 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
258
259 * nsselect.m (ns_string_from_pasteboard): Get length of string
260 and use make_string instead of build_string (Bug#7934).
261 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
262 instead of stringWithUTF8String (Bug#7934).
263
264 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
265
266 * nsfont.m (nsfont_open): Ensure that fonts with inexact
267 descenders would not become one pixel too tall (Bug#7887).
268
269 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
270
271 * keyboard.c (make_lispy_position): For clicks on right fringe or
272 margin, compute text position using the X coordinate relative to
273 the left of the text area (Bug#7839).
274
275 2011-01-28 Kenichi Handa <handa@m17n.org>
276
277 * ftfont.c (ftfont_spec_pattern): Check each extra property
278 value.
279
280 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
281
282 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
283
284 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
285
286 * font.c (font_parse_fcname): Undefine a temporary macro.
287
288 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
289
290 Let the debugger continue to the normal handler (bug#7825).
291 * eval.c (maybe_call_debugger): Declare before new use.
292 (find_handler_clause): Don't call debugger any more.
293 Ignore Vstack_trace_on_error.
294 Use XCAR/XCDR.
295 (syms_of_eval): Remove Vstack_trace_on_error.
296 (Fsignal): Only modify handlerlist when we know we need to do it.
297 Call the debugger when necessary.
298 * globals.h (Vstack_trace_on_error): Remove.
299
300 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
301
302 * font.c (font_parse_fcname): Rewrite GTK font name parser.
303
304 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
305
306 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
307 the buffer's point-max (bug#7876).
308
309 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
310
311 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
312 Remove unused case (Bug#6811).
313
314 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
315
316 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
317 setFrameTopLeftPoint is constrained.
318
319 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
320
321 Check return values of some library calls.
322 * emacs.c (main): Check dup result.
323 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
324 (frame_name_fnn_p): Check strtol result.
325
326 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
327 when calling XpmCreatePixmapFromData.
328
329 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
330 * lisp.h (SSDATA): New macro.
331 All uses of (char *) SDATA (x) replaced with SSDATA (x),
332 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
333 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
334 * xsmfns.c (SSDATA): Likewise.
335
336 2011-01-22 Martin Rudalics <rudalics@gmx.at>
337
338 * window.c (select_window): New function.
339 (Fselect_window): Call it.
340 (inhibit_point_swap): Variable deleted.
341 (Fset_window_configuration): Call select_window directly.
342
343 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
344
345 * nsterm.m (constrainFrameRect): Only constrain the first time called.
346
347 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
348
349 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
350 screen, not the window screen.
351 (x_set_window_size): Remove constraints.
352 Calculate origin.y only if zooming is 0 and without referring to a
353 screen.
354 (windowWillResize): Don't modify frameSize.
355 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
356 (initFrameFromEmacs): Initialize ns_userRect.
357 (windowShouldZoom): Set zooming to one. Remove all other code.
358 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
359 Zero it after restore.
360 (constrainFrameRect): New method for EmacsWindow.
361 (mouseDragged): Always post NSWindowDidResizeNotification after call to
362 windowWillResize.
363
364 * nsterm.h (ns_output): Add dont_constrain and zooming.
365 (EmacsView): Add ns_userRect.
366
367 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
368 if ns_alternate_modifier is none.
369
370 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
371
372 * unexmacosx.c: Add comment about include order.
373
374 2011-01-20 Glenn Morris <rgm@gnu.org>
375
376 * minibuf.c (syms_of_minibuf) <read-expression-history>:
377 Give it a doc string.
378 * globals.h: Add Vread_expression_history.
379
380 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
381 Give it a doc string.
382 * globals.h: Add Vkbd_macro_termination_hook.
383
384 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
385
386 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
387
388 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
389
390 Fix X11 compilation failure.
391 * globals.h (struct emacs_globals): Document f_Vselection_alist.
392 * xselect.c (Vselection_alist): Remove declaration, moving its
393 documentation to globals.h. This fixes a compilation failure
394 induced by the earlier change to globals.h today.
395
396 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
397
398 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
399
400 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
401 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
402 (ns_input_spi_name, ns_input_spi_arg)
403 (ns_alternate_modifier, ns_right_alternate_modifier)
404 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
405 (ns_right_control_modifier, ns_function_modifier)
406 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
407 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
408 (x_underline_at_descent_line): Remove declaration.
409 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
410
411 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
412 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
413 (syms_of_nsselect): Remove & from DEFVAR_LISP.
414
415 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
416 Remove declaration.
417
418 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
419 globals.h.
420 (syms_of_nsfont): Remove & from DEFVAR_LISP.
421
422 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
423 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
424 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
425
426 * globals.h (struct emacs_globals): Add f_ns_input_file,
427 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
428 f_ns_input_color, f_ns_input_text, f_ns_working_text,
429 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
430 f_ns_right_alternate_modifier, f_ns_command_modifier,
431 f_ns_right_command_modifier, f_ns_control_modifier,
432 f_ns_right_control_modifier, f_ns_function_modifier,
433 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
434 f_Vns_version_string, f_Vns_sent_selection_hooks,
435 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
436 and corresponding defines.
437
438
439 2011-01-19 Sam Steingold <sds@gnu.org>
440
441 * w32.c (check_windows_init_file): Remove declarations of
442 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
443 * w32fns.c: Fix an error introduced by the previous patch.
444
445 2011-01-19 Tom Tromey <tromey@redhat.com>
446
447 * window.c: Fix error introduced by previous patch.
448
449 2011-01-18 Tom Tromey <tromey@parfait>
450
451 * globals.h: New file.
452 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
453 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
454 (Vwindow_system_version): Remove declaration.
455 * w32term.h (Vw32_enable_palette)
456 (Vx_pixel_size_width_font_regexp): Remove declaration.
457 * w32menu.c (Voverriding_local_map)
458 (Voverriding_local_map_menu_flag): Remove declaration.
459 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
460 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
461 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
462 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
463 (Vw32_phantom_key_code, Vw32_recognize_altgr)
464 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
465 (w32_use_full_screen_buffer): Remove declaration.
466 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
467 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
468 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
469 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
470 (no_redraw_on_reenter, visible_bell): Remove declaration.
471 * sysdep.c (Vsystem_name): Remove declaration.
472 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
473 * menu.h (Vmenu_updating_frame): Remove declaration.
474 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
475 Remove declaration.
476 * lisp.h (Vafter_init_time, Vafter_load_alist)
477 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
478 (Vcompletion_regexp_list, Vcurrent_load_list)
479 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
480 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
481 (Vexec_directory, Vexec_path, Vexec_suffixes)
482 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
483 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
484 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
485 (Vinstallation_directory, Vinvocation_directory)
486 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
487 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
488 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
489 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
490 (Vscalable_fonts_allowed, Vselect_active_regions)
491 (Vshell_file_name, Vstandard_input, Vstandard_output)
492 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
493 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
494 (Vuser_login_name, Vwindow_scroll_functions)
495 (Vwindow_system_version, Vx_no_window_manager)
496 (Vx_resource_class, Vx_resource_name, baud_rate)
497 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
498 (history_delete_duplicates, inhibit_x_resources)
499 (last_nonmenu_event, load_in_progress, max_specpdl_size)
500 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
501 (use_dialog_box, use_file_dialog): Remove declaration. Include
502 globals.h.
503 * keymap.h (Voverriding_local_map)
504 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
505 declaration.
506 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
507 (Vinput_method_function, Vkey_translation_map)
508 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
509 (do_mouse_tracking, extra_keyboard_modifiers)
510 (num_nonmacro_input_events): Remove declaration.
511 * intervals.h (Vchar_property_alias_alist)
512 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
513 (Vtext_property_default_nonsticky): Remove declaration.
514 * gtkutil.h (x_gtk_file_dialog_help_text)
515 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
516 (x_gtk_whole_detached_tool_bar): Remove declaration.
517 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
518 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
519 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
520 (focus_follows_mouse): Remove declaration.
521 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
522 (Vignore_relative_composition, Votf_script_alist)
523 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
524 declaration.
525 * font.h (Vfont_log): Remove declaration.
526 * dosfns.h (Vdos_display_scancodes, Vdos_version)
527 (Vdos_windows_version, dos_codepage, dos_country_code)
528 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
529 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
530 declaration.
531 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
532 declaration.
533 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
534 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
535 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
536 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
537 (inverse_video, mode_line_in_non_selected_windows)
538 (tool_bar_button_relief, tool_bar_max_label_size)
539 (underline_minimum_offset)
540 (unibyte_display_via_language_environment, x_stretch_cursor_p):
541 Remove declaration.
542 * composite.h (Vauto_composition_function)
543 (Vcomposition_function_table): Remove declaration.
544 * commands.h (Vexecuting_kbd_macro)
545 (Vminibuffer_local_completion_map)
546 (Vminibuffer_local_filename_completion_map)
547 (Vminibuffer_local_filename_must_match_map)
548 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
549 (Vminibuffer_local_ns_map, Vthis_command)
550 (Vunread_command_events, cursor_in_echo_area)
551 (last_command_event, last_nonmenu_event, unread_command_char):
552 Remove declaration.
553 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
554 (Vdefault_file_name_coding_system)
555 (Vdefault_process_coding_system, Vfile_name_coding_system)
556 (Vlast_coding_system_used, Vlocale_coding_system)
557 (Vselect_safe_coding_system_function)
558 (Vtranslation_table_for_input, coding_system_require_warning)
559 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
560 (eol_mnemonic_unix, inherit_process_coding_system): Remove
561 declaration.
562 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
563 declaration.
564 * character.h (Vauto_fill_chars, Vchar_direction_table)
565 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
566 (Vscript_representative_chars, Vtranslation_table_vector)
567 (Vunicode_category_table): Remove declaration.
568 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
569 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
570 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
571 (inhibit_modification_hooks): Remove declaration.
572 * xterm.c (syms_of_xterm): Update.
573 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
574 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
575 (x_mouse_click_focus_ignore_position)
576 (x_underline_at_descent_line)
577 (x_use_underline_position_properties): Remove.
578 * xsmfns.c (syms_of_xsmfns): Update.
579 (Vx_session_id, Vx_session_previous_id): Remove.
580 * xsettings.c (syms_of_xsettings): Update.
581 (Vxft_settings, use_system_font): Remove.
582 * xselect.c (syms_of_xselect): Update.
583 (Vselection_converter_alist, Vx_lost_selection_functions)
584 (Vx_sent_selection_functions, x_selection_timeout): Remove.
585 * xfns.c (syms_of_xfns): Update.
586 (Vgtk_version_string, Vmotif_version_string)
587 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
588 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
589 (Vx_no_window_manager, Vx_nontext_pointer_shape)
590 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
591 (Vx_sensitive_text_pointer_shape)
592 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
593 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
594 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
595 Remove.
596 * xfaces.c (syms_of_xfaces): Update.
597 (Vface_default_stipple, Vface_font_rescale_alist)
598 (Vface_ignored_fonts, Vface_new_frame_defaults)
599 (Vface_remapping_alist, Vfont_list_limit)
600 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
601 * xdisp.c (syms_of_xdisp): Update.
602 (Vauto_resize_tool_bars, Vblink_cursor_alist)
603 (Vdisplay_pixels_per_inch, Vfontification_functions)
604 (Vframe_title_format, Vglobal_mode_string)
605 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
606 (Vicon_title_format, Vinhibit_redisplay)
607 (Vline_number_display_limit, Vline_prefix)
608 (Vmax_mini_window_height, Vmenu_bar_update_hook)
609 (Vmenu_updating_frame, Vmessage_log_max)
610 (Vmouse_autoselect_window, Vnobreak_char_display)
611 (Voverlay_arrow_position, Voverlay_arrow_string)
612 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
613 (Vresize_mini_windows, Vshow_trailing_whitespace)
614 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
615 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
616 (Vwindow_scroll_functions, Vwindow_size_change_functions)
617 (Vwindow_text_change_functions, Vwrap_prefix)
618 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
619 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
620 (highlight_nonselected_windows, hscroll_margin)
621 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
622 (inhibit_menubar_update, inhibit_try_cursor_movement)
623 (inhibit_try_window_id, inhibit_try_window_reusing)
624 (line_number_display_limit_width)
625 (make_cursor_line_fully_visible_p, message_truncate_lines)
626 (mode_line_inverse_video, multiple_frames, overline_margin)
627 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
628 (tool_bar_max_label_size, underline_minimum_offset)
629 (unibyte_display_via_language_environment, x_stretch_cursor_p):
630 Remove.
631 * window.c (syms_of_window): Update.
632 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
633 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
634 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
635 (Vwindow_point_insertion_type, auto_window_vscroll_p)
636 (mode_line_in_non_selected_windows, next_screen_context_lines)
637 (window_min_height, window_min_width): Remove.
638 (scroll_margin): Remove declaration.
639 * w32term.c (syms_of_w32term): Update.
640 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
641 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
642 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
643 (w32_use_visible_system_caret, x_underline_at_descent_line)
644 (x_use_underline_position_properties): Remove.
645 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
646 Remove declaration.
647 * w32select.c (syms_of_w32select): Update.
648 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
649 * w32proc.c (syms_of_ntproc): Update.
650 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
651 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
652 (Vw32_start_process_inherit_error_mode)
653 (Vw32_start_process_share_console)
654 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
655 (Vsystem_name): Remove declaration.
656 * w32font.c (syms_of_w32font): Update.
657 (Vw32_charset_info_alist): Remove.
658 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
659 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
660 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
661 (Vw32_enable_palette, Vw32_lwindow_modifier)
662 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
663 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
664 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
665 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
666 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
667 (Vx_no_window_manager, Vx_nontext_pointer_shape)
668 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
669 (Vx_sensitive_text_pointer_shape)
670 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
671 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
672 (w32_mouse_move_interval)
673 (w32_pass_extra_mouse_buttons_to_system)
674 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
675 (w32_strict_fontnames, w32_strict_painting): Remove.
676 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
677 (Vw32_recognize_altgr, Vwindow_system_version)
678 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
679 declaration.
680 * w32console.c (syms_of_ntterm): Update.
681 (w32_use_full_screen_buffer): Remove.
682 (Vtty_defined_color_alist): Remove declaration.
683 * w16select.c (syms_of_win16select): Update.
684 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
685 * undo.c (syms_of_undo): Update.
686 (Vundo_outer_limit, Vundo_outer_limit_function)
687 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
688 Remove.
689 * textprop.c (syms_of_textprop): Update.
690 (Vchar_property_alias_alist, Vdefault_text_properties)
691 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
692 Remove.
693 * terminal.c (syms_of_terminal): Update.
694 (Vdelete_terminal_functions, Vring_bell_function): Remove.
695 * term.c (syms_of_term): Update.
696 (Vresume_tty_functions, Vsuspend_tty_functions)
697 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
698 Remove.
699 * syntax.c (syms_of_syntax): Update.
700 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
701 (open_paren_in_column_0_is_defun_start)
702 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
703 (words_include_escapes): Remove.
704 * search.c (syms_of_search): Update.
705 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
706 * process.c (syms_of_process): Update.
707 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
708 (delete_exited_processes): Remove.
709 * print.c (syms_of_print): Update.
710 (Vfloat_output_format, Vprint_charset_text_property)
711 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
712 (Vprint_length, Vprint_level, Vprint_number_table)
713 (Vstandard_output, print_escape_multibyte)
714 (print_escape_newlines, print_escape_nonascii, print_quoted):
715 Remove.
716 * msdos.c (syms_of_msdos): Update.
717 (Vdos_unsupported_char_glyph): Remove.
718 (unibyte_display_via_language_environment): Remove declaration.
719 * minibuf.c (syms_of_minibuf): Update.
720 (Vcompletion_regexp_list, Vhistory_add_new_input)
721 (Vhistory_length, Vminibuffer_completing_file_name)
722 (Vminibuffer_completion_confirm)
723 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
724 (Vminibuffer_exit_hook, Vminibuffer_help_form)
725 (Vminibuffer_history_position, Vminibuffer_history_variable)
726 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
727 (Vread_buffer_function, Vread_expression_map)
728 (completion_ignore_case, enable_recursive_minibuffers)
729 (history_delete_duplicates, minibuffer_allow_text_properties)
730 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
731 Remove.
732 * marker.c (syms_of_marker): Update.
733 (byte_debug_flag): Remove.
734 * macros.c (syms_of_macros): Update.
735 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
736 * lread.c (syms_of_lread): Update.
737 (Vafter_load_alist, Vbyte_boolean_vars)
738 (Vbytecomp_version_regexp, Vcurrent_load_list)
739 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
740 (Vload_history, Vload_path, Vload_read_function)
741 (Vload_source_file_function, Vload_suffixes, Vobarray)
742 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
743 (Vread_symbol_positions_list, Vread_with_symbol_positions)
744 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
745 (force_load_messages, load_convert_to_unibyte)
746 (load_dangerous_libraries, load_force_doc_strings)
747 (load_in_progress): Remove.
748 * keymap.c (syms_of_keymap): Update.
749 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
750 (Vminibuffer_local_completion_map)
751 (Vminibuffer_local_filename_completion_map)
752 (Vminibuffer_local_filename_must_match_map)
753 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
754 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
755 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
756 Remove.
757 * keyboard.c (syms_of_keyboard): Update.
758 (Vauto_save_timeout, Vcommand_error_function)
759 (Vcommand_hook_internal, Vdeactivate_mark)
760 (Vdeferred_action_function, Vdeferred_action_list)
761 (Vdisable_point_adjustment, Vdouble_click_time)
762 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
763 (Vfunction_key_map, Vglobal_disable_point_adjustment)
764 (Vhelp_char, Vhelp_event_list, Vhelp_form)
765 (Vinput_method_function, Vinput_method_previous_message)
766 (Vkey_translation_map, Vlast_event_frame)
767 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
768 (Vminibuffer_message_timeout, Voverriding_local_map)
769 (Voverriding_local_map_menu_flag, Vpost_command_hook)
770 (Vpre_command_hook, Vprefix_help_command)
771 (Vsaved_region_selection, Vselect_active_regions)
772 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
773 (Vthis_command, Vthis_command_keys_shift_translated)
774 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
775 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
776 (Vtty_erase_char, Vunread_command_events)
777 (Vunread_input_method_events, Vunread_post_input_method_events)
778 (auto_save_interval, cannot_suspend, do_mouse_tracking)
779 (double_click_fuzz, extra_keyboard_modifiers)
780 (inhibit_local_menu_bar_menus, last_command_event)
781 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
782 (menu_prompting, meta_prefix_char, num_input_keys)
783 (num_nonmacro_input_events, polling_period, unread_command_char):
784 Remove.
785 * insdel.c (syms_of_insdel): Update.
786 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
787 * indent.c (syms_of_indent): Update.
788 (indent_tabs_mode): Remove.
789 * image.c (syms_of_image): Update.
790 (Vimage_cache_eviction_delay, Vimage_types)
791 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
792 (cross_disabled_images): Remove.
793 * fringe.c (syms_of_fringe): Update.
794 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
795 * frame.c (syms_of_frame): Update.
796 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
797 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
798 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
799 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
800 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
801 Remove.
802 * fontset.c (syms_of_fontset): Update.
803 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
804 (Vfontset_alias_alist, Vignore_relative_composition)
805 (Votf_script_alist, Vuse_default_ascent)
806 (Vvertical_centering_font_regexp): Remove.
807 * font.c (syms_of_font): Update.
808 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
809 (Vfont_weight_table, Vfont_width_table): Remove.
810 * fns.c (syms_of_fns): Update.
811 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
812 * filelock.c (syms_of_filelock): Update.
813 (Vtemporary_file_directory): Remove.
814 * fileio.c (syms_of_fileio): Update.
815 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
816 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
817 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
818 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
819 (Vinhibit_file_name_operation, Vset_auto_coding_function)
820 (Vwrite_region_annotate_functions)
821 (Vwrite_region_annotations_so_far)
822 (Vwrite_region_post_annotation_function)
823 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
824 (Vw32_get_true_file_attributes): Remove declaration.
825 * eval.c (syms_of_eval): Update.
826 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
827 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
828 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
829 (debug_on_next_call, debug_on_quit, debugger_may_continue)
830 (max_lisp_eval_depth, max_specpdl_size): Remove.
831 * emacs.c (syms_of_emacs): Update.
832 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
833 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
834 (Vinstallation_directory, Vinvocation_directory)
835 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
836 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
837 (Vsystem_configuration, Vsystem_configuration_options)
838 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
839 (inhibit_x_resources, noninteractive1): Remove.
840 * editfns.c (syms_of_editfns): Update.
841 (Vbuffer_access_fontified_property)
842 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
843 (Voperating_system_release, Vsystem_name, Vuser_full_name)
844 (Vuser_login_name, Vuser_real_login_name): Remove.
845 * dosfns.c (syms_of_dosfns): Update.
846 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
847 (dos_codepage, dos_country_code, dos_decimal_point)
848 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
849 (dos_super_key, dos_timezone_offset): Remove.
850 * doc.c (syms_of_doc): Update.
851 (Vbuild_files, Vdoc_file_name): Remove.
852 * dispnew.c (syms_of_display): Update.
853 (Vglyph_table, Vinitial_window_system)
854 (Vredisplay_preemption_period, Vstandard_display_table)
855 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
856 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
857 * dired.c (syms_of_dired): Update.
858 (Vcompletion_ignored_extensions): Remove.
859 (Vw32_get_true_file_attributes): Remove declaration.
860 * dbusbind.c (syms_of_dbusbind): Update.
861 (Vdbus_debug, Vdbus_registered_buses)
862 (Vdbus_registered_objects_table): Remove.
863 * data.c (syms_of_data): Update.
864 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
865 * composite.c (syms_of_composite): Update.
866 (Vauto_composition_function, Vauto_composition_mode)
867 (Vcompose_chars_after_function, Vcomposition_function_table):
868 Remove.
869 * coding.c (syms_of_coding): Update.
870 (Vcharset_revision_table, Vcoding_category_list)
871 (Vcoding_system_alist, Vcoding_system_for_read)
872 (Vcoding_system_for_write, Vcoding_system_list)
873 (Vdefault_process_coding_system, Venable_character_translation)
874 (Vfile_coding_system_alist, Vlast_code_conversion_error)
875 (Vlast_coding_system_used, Vlatin_extra_code_table)
876 (Vlocale_coding_system, Vnetwork_coding_system_alist)
877 (Vprocess_coding_system_alist)
878 (Vselect_safe_coding_system_function)
879 (Vstandard_translation_table_for_decode)
880 (Vstandard_translation_table_for_encode)
881 (Vtranslation_table_for_input, coding_system_require_warning)
882 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
883 (eol_mnemonic_unix, inherit_process_coding_system)
884 (inhibit_eol_conversion, inhibit_iso_escape_detection)
885 (inhibit_null_byte_detection): Remove.
886 * cmds.c (syms_of_cmds): Update.
887 (Vpost_self_insert_hook): Remove.
888 * charset.c (syms_of_charset): Update.
889 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
890 (inhibit_load_charset_map): Remove.
891 * character.c (syms_of_character): Update.
892 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
893 (Vchar_width_table, Vprintable_chars)
894 (Vscript_representative_chars, Vtranslation_table_vector)
895 (Vunicode_category_table): Remove.
896 * ccl.c (syms_of_ccl): Update.
897 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
898 (Vtranslation_hash_table_vector): Remove.
899 * category.c (syms_of_category): Update.
900 (Vword_combining_categories, Vword_separating_categories): Remove.
901 * callproc.c (syms_of_callproc): Update.
902 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
903 (Vexec_directory, Vexec_path, Vexec_suffixes)
904 (Vinitial_environment, Vprocess_environment)
905 (Vshared_game_score_directory, Vshell_file_name): Remove.
906 * callint.c (syms_of_callint): Update.
907 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
908 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
909 * bytecode.c (syms_of_bytecode): Update.
910 (Vbyte_code_meter, byte_metering_on): Remove.
911 * buffer.c (syms_of_buffer): Update.
912 (Vafter_change_functions, Vbefore_change_functions)
913 (Vchange_major_mode_hook, Vfirst_change_hook)
914 (Vinhibit_read_only, Vkill_buffer_query_functions)
915 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
916 * alloc.c (syms_of_alloc): Update.
917 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
918 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
919 (cons_cells_consed, floats_consed, garbage_collection_messages)
920 (gc_cons_threshold, gcs_done, intervals_consed)
921 (misc_objects_consed, pure_bytes_used, string_chars_consed)
922 (strings_consed, symbols_consed, vector_cells_consed): Remove.
923
924 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
925 (DEFVAR_INT): Assume global is in `globals'.
926 * alloc.c (globals): Define.
927
928 2011-01-18 Tom Tromey <tromey@redhat.com>
929
930 * image.c (Vimagemagick_render_type): Remove redundant
931 definition.
932
933 2011-01-18 Tom Tromey <tromey@redhat.com>
934
935 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
936 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
937 (redisplay_window): Update.
938 (syms_of_xdisp): Update.
939
940 2011-01-18 Tom Tromey <tromey@redhat.com>
941
942 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
943 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
944 Declare.
945 * gtkutil.c (xg_uses_old_file_dialog):
946 (xg_get_file_with_chooser):
947 (xg_tool_bar_detach_callback): Don't redeclare globals.
948
949 2011-01-18 Tom Tromey <tromey@redhat.com>
950
951 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
952 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
953
954 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
955
956 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
957 defined __GNUC__. ../configure now checks for this GCC feature,
958 which is now also supported by IBM and Oracle compilers.
959 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
960 since Solaris malloc returns mult-of-8.
961
962 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
963
964 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
965
966 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
967
968 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
969 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
970 * data.c (Fnumber_to_string): Use it.
971 * print.c (float_to_string, print_object): Likewise.
972
973 Include <unistd.h> unilaterally.
974 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
975 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
976 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
977 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
978 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
979 * xterm.c:
980 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
981 unistd.h is always present now, possibly supplied by gnulib.
982
983 * mktime.c: Remove; moving to ../lib.
984
985 Use gnulib's mktime module.
986 * deps.mk (mktime.o): Remove rule.
987
988 Use gnulib's ftoastr module.
989 * print.c: Include ftoastr.h.
990 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
991 Remove; no longer needed.
992 (float_to_string): Use dtoastr rather than rolling our own code,
993 which had an off-by-one bug on non-IEEE hosts.
994
995 Automate syncing from gnulib.
996 * Makefile.in (lib): New macro.
997 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
998 ($(lib)/libgnu.a): New rule.
999 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1000
1001 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1002 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1003 so change the type of 'ign' to unsigned int from int.
1004
1005 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1006
1007 * xterm.h (struct x_display_info): Remove stray semicolon.
1008 The extra semicolon didn't conform to the C standard.
1009 Problem reported by Sun cc.
1010
1011 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1012 These changes make compilation easier to follow with Sun cc.
1013 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1014 EMACS_INT values without provoking overflow diagnostics.
1015 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1016 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1017 diagnostic with signed left shift.
1018
1019 * fileio.c (make_temp_name): Remove unreachable code.
1020
1021 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1022 Previously it was marked by preceding it with "return;", but
1023 Sun cc complains about this.
1024
1025 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1026 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1027 which fixed Bug#2370. Caught by Sun cc.
1028
1029 2011-01-15 Martin Rudalics <rudalics@gmx.at>
1030
1031 * window.c (inhibit_point_swap): New variable.
1032 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1033 point this time.
1034 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1035 of setting selected_window to nil (Bug#7728).
1036
1037 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1038
1039 * image.c (imagemagick_load_image, Finit_image_library):
1040 Free intermediate image after creating a MagickWand from it.
1041 Terminate MagickWand environment after image loading.
1042
1043 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
1044
1045 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1046 unexpected return values.
1047 (Fdbus_register_method): Remove connection initialization.
1048
1049 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
1050
1051 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1052 used by Fdbus_register_service.
1053 (QCdbus_request_name_replace_existing): Likewise.
1054 (QCdbus_request_name_do_not_queue): Likewise.
1055 (QCdbus_request_name_reply_primary_owner): Likewise.
1056 (QCdbus_request_name_reply_in_queue): Likewise.
1057 (QCdbus_request_name_reply_exists): Likewise.
1058 (QCdbus_request_name_reply_already_owner): Likewise.
1059 (Fdbus_register_service): New function.
1060 (Fdbus_register_method): Use Fdbus_register_service to do the name
1061 registration.
1062 (syms_of_dbusbind): Add symbols dbus-register-service,
1063 :allow-replacement, :replace-existing, :do-not-queue,
1064 :primary-owner, :existing, :in-queue and :already-owner.
1065
1066 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
1067
1068 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1069 when removing extra buttons.
1070
1071 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
1072
1073 * fns.c (Fyes_or_no_p): Doc fix.
1074
1075 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1076
1077 * fns.c (Fyes_or_no_p): Add usage.
1078
1079 2011-01-08 Glenn Morris <rgm@gnu.org>
1080
1081 * makefile.w32-in ($(EMACS)):
1082 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1083
1084 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1085 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1086
1087 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1088
1089 * image.c (imagemagick_load_image): Fix some resource leaks and
1090 error handling.
1091
1092 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * fns.c (Fyes_or_no_p): Accept format string args.
1095
1096 2011-01-07 Glenn Morris <rgm@gnu.org>
1097
1098 * emacs.c (no_site_lisp): New int.
1099 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1100 (main): Set no_site_lisp.
1101 (standard_args): Add --no-site-lisp.
1102 * lisp.h (no_site_lisp): New int.
1103 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1104 directories to Vload_path.
1105
1106 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1107
1108 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1109
1110 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1111
1112 * dbusbind.c (Fdbus_register_method): Add optional parameter
1113 dont_register_service. Updated docstring accordingly.
1114
1115 2011-01-04 Glenn Morris <rgm@gnu.org>
1116
1117 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1118
1119 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1120
1121 * image.c (png_jmpbuf): Remove definition.
1122 (my_png_error, png_load): Don't use png_jmpbuf.
1123
1124 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1125
1126 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1127
1128 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1129
1130 * image.c <Qlibpng_version>: New variable.
1131 (syms_of_image): Intern and staticpro it. Set its value to the
1132 version of PNG library we were compiled with.
1133 (my_png_error, png_load): Avoid GCC warnings about direct access
1134 to png_ptr->jmpbuf. (Bug#7716)
1135 (png_jmpbuf): New macro.
1136 (my_png_error, png_load): Use it instead of #ifdef'ing according
1137 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1138
1139 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1140
1141 * .gdbinit (xgetptr): Fix the union+lsb case.
1142 (xbacktrace): Fix the union case.
1143
1144 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1145
1146 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1147 different from selected-window's.
1148
1149 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1150
1151 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1152 equivalent of a menu item when the key sequence is given by the
1153 `:keys' attribute. (Bug#7662)
1154
1155 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1156 the basic faces are supported.
1157
1158 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1159
1160 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1161
1162 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1163
1164 * xdisp.c (Fformat_mode_line): Fix last change.
1165
1166 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1167
1168 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1169 faces (Bug#7587).
1170
1171 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1172
1173 * fileio.c (Fexpand_file_name): One more doc fix.
1174
1175 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1176
1177 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1178 image or label in the container.
1179 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1180 (xg_show_toolbar_item): Function deleted.
1181 (xg_tool_item_stale_p): New function.
1182 (update_frame_tool_bar): Calculate tool-bar style once per call.
1183 Instead of hiding text labels, omit them. Don't use
1184 xg_show_toolbar_item; create new GtkToolItems from scratch if
1185 necessary, instead of trying to re-use them. This avoids an
1186 annoying animation when changing tool-bars.
1187
1188 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1191 title and buffer filename only for RepresentedFilename.
1192 Handle bad UTF-8 in buffer name (Bug#7517).
1193
1194 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1195
1196 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1197
1198 * nsfns.m (ns_set_name_iconic): Remove.
1199 (ns_set_name_internal): New function (Bug#7517).
1200 (Vicon_title_format): Extern declare.
1201 (ns_set_name): Call ns_set_name_internal.
1202 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1203 (x_implicitly_set_name): Ditto.
1204 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1205 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1206
1207 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1208
1209 * window.c (syms_of_window): Add missing defsubr for
1210 window-use-time.
1211
1212 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1213
1214 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1215 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1216
1217 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1218
1219 * buffer.c: Remove unused declarations.
1220 * buffer.h: Likewise.
1221 * charset.h: Likewise.
1222 * composite.h: Likewise.
1223 * dispextern.h: Likewise.
1224 * dispnew.c: Likewise.
1225 * font.h: Likewise.
1226 * fontset.c: Likewise.
1227 * fontset.h: Likewise.
1228 * intervals.h: Likewise.
1229 * keymap.h: Likewise.
1230 * lisp.h: Likewise.
1231 * syntax.c: Likewise.
1232 * syntax.h: Likewise.
1233 * termhooks.h: Likewise.
1234 * window.h: Likewise.
1235 * xsettings.h: Likewise.
1236 * xterm.c: Likewise.
1237 * xterm.h: Likewise.
1238
1239 * chartab.c (sub_char_table_ref): Make static.
1240 * dispnew.c (line_hash_code, required_matrix_height)
1241 (required_matrix_width): Likewise.
1242 * eval.c (interactive_p, apply_lambda): Likewise.
1243 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1244 Likewise.
1245 * font.c (QCadstyle, QCregistry, font_make_spec)
1246 (font_parse_fcname, font_encode_char, font_at): Likewise.
1247 * frame.c (x_frame_get_arg): Likewise.
1248 * keymap.c (get_keyelt): Likewise.
1249 * lread.c (read_filtered_event): Likewise.
1250 * print.c (write_string_1): Likewise.
1251 * window.c (delete_window, window_height, window_width)
1252 (foreach_window): Likewise.
1253 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1254 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1255 (xembed_send_message): Likewise.
1256
1257 * eval.c (run_hook_list_with_args): Delete.
1258 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1259 * terminal.c (get_terminal_param): Likewise.
1260 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1261
1262 * scroll.c: Fix comment.
1263
1264 * dispnew.c (add_window_display_history)
1265 (add_frame_display_history, glyph_row_slice_p)
1266 (find_glyph_row_slice, flush_stdout)
1267 (check_matrix_pointer_lossage, matrix_row)
1268 (check_matrix_invariants, check_window_matrix_pointers)
1269 (check_matrix_pointers, window_to_frame_vpos)
1270 (window_to_frame_hpos): Prototize.
1271 * textprop.c (erase_properties): Likewise.
1272
1273 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1274
1275 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1276 (print_preprocess): Fix handling of uninterned symbols in last change.
1277
1278 * print.c (print, print_preprocess, print_object): Use a hash table
1279 rather than a linear table for Vprint_number_table.
1280
1281 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1282
1283 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1284
1285 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1286
1287 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1288 (parse_tool_bar_item): Use it to obtain image separators for
1289 displays not using native tool-bar separators.
1290
1291 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1292 specially, since this is now done in parse_tool_bar_item.
1293
1294 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 Minor clean up to silence some gcc warnings.
1297 * window.c (Fset_window_buffer):
1298 * xterm.c (x_set_frame_alpha): Restructure code to silence
1299 compiler warning.
1300 (handle_one_xevent): Remove unused var `p'.
1301 (do_ewmh_fullscreen): Remove unused var `lval'.
1302 (xembed_set_info): Remove unused var `atom'.
1303 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1304 compiler warning.
1305 * fontset.c (fontset_id_valid_p, dump_fontset):
1306 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1307 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1308 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1309 label only when it's used.
1310 * image.c (x_create_bitmap_from_xpm_data):
1311 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1312 its callers.
1313 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1314 `consumed_chars'.
1315 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1316 (decode_coding_emacs_mule): Remove unused label `retry'.
1317 (detect_eol): Add parens to silence compiler warning.
1318 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1319 it's used to silence the compiler.
1320 (make_number): Modernize k&r declaration.
1321 (mark_char_table): Add parens to silence compiler warning.
1322
1323 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1324
1325 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1326 tool-bar maps.
1327 (menu_separator_name_p): New function, from gtkutil.c.
1328 (separator_names): Move from gtkutil.c.
1329
1330 * keyboard.h (menu_separator_name_p): Add prototype.
1331
1332 * gtkutil.c (XG_BIN_CHILD): New macro.
1333 (xg_get_menu_item_label, xg_update_menubar)
1334 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1335 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1336 (separator_names, xg_separator_p): Move to keyboard.c.
1337 (create_menus, xg_update_submenu, update_frame_tool_bar):
1338 Use menu_separator_name_p.
1339
1340 * nsmenu.m (name_is_separator): Function deleted.
1341 (addItemWithWidgetValue): Use menu_separator_name_p.
1342
1343 * w32menu.c (name_is_separator): Function deleted.
1344 (add_menu_item): Use menu_separator_name_p.
1345
1346 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1347
1348 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1349 same as the background, use the face forground as cursor.
1350
1351 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1352
1353 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1354
1355 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1356
1357 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1358 (face_before_or_after_it_pos, next_element_from_string)
1359 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1360 calculations of maximum string length before calling
1361 string_char_and_length and STRING_CHAR_AND_LENGTH.
1362 (string_char_and_length): Update commentary: MAXLEN is no longer
1363 needed.
1364
1365 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1366
1367 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1368 as (Qsave_session arg).
1369
1370 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1371 (smc_die_CB): Make an event with arg Qt.
1372 (Fhandle_save_session): If event has Qt as argument,
1373 call Fkill_emacs (Bug#7552).
1374
1375 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1376
1377 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1378
1379 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1380
1381 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1382
1383 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1384
1385 * dispextern.h (struct it): New member overlay_strings_charpos.
1386
1387 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1388 charpos where we computed n_overlay_strings.
1389 (next_overlay_string): Load overlay strings at recorded position,
1390 which may not be the same as the iterator's charpos (Bug#7016).
1391
1392 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1393
1394 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1395 obscured due to a vscroll (Bug#7537).
1396
1397 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
1398
1399 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1400
1401 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1402 Use FRAME_TOOLBAR_HEIGHT.
1403 (x_set_offset): Handle XNegative and YNegative in
1404 f->size_hint_flags (Bug#7510).
1405
1406 2010-12-11 Eli Zaretskii <eliz@gnu.org>
1407
1408 * w32fns.c (Fx_show_tip): Call try_window with last argument
1409 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1410 solved. Round up the tip height to an integral multiple of the
1411 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1412 (Bug#7398)
1413
1414 2010-12-08 Glenn Morris <rgm@gnu.org>
1415
1416 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1417
1418 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1419
1420 * xml.c (parse_region): Ignore blank HTML nodes.
1421 (make_dom): Return CDATA sections (like <style>foo</style>) as
1422 text nodes.
1423
1424 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1425
1426 * lread.c (read1): Allow newstyle unquote outside of backquote.
1427 Disallow old-style backquotes inside new-style backquotes.
1428 Don't count unquotes to figure out when we're "syntactically inside
1429 but semantically outside of a backquote" any more.
1430 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1431 to all contexts.
1432
1433 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
1434
1435 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1436
1437 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1438
1439 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1440 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1441 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1442
1443 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1444
1445 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1446 bit-field.
1447 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1448 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1449 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1450 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1451 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1452 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1453 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1454 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1455 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1456 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1457 * m/hp800.h: Remove file.
1458 * m/mips.h: Remove file.
1459
1460 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1461
1462 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1463 with cursor color and draw a rectangle around the image (Bug#7412).
1464
1465 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1466
1467 * frame.c (x_set_font): Remove unused variable.
1468
1469 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1470
1471 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1472
1473 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1474 drawing text under filled box cursor (Bug#7479).
1475
1476 2010-11-27 Kenichi Handa <handa@m17n.org>
1477
1478 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1479 i.e. integer.
1480 (Fdefine_charset_internal): Adjust for the above change.
1481 (init_charset_once): Likewise.
1482
1483 * charset.h (emacs_mule_charset): Adjust the prototype.
1484 Delete duplicated extern.
1485
1486 * coding.c (emacs_mule_char): Adjust for the change of
1487 emacs_mule_charset.
1488
1489 * lread.c (read_emacs_mule_char): Adjust for the change of
1490 emacs_mule_charset.
1491
1492 2010-11-27 Eli Zaretskii <eliz@gnu.org>
1493
1494 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1495 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1496
1497 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1498
1499 * alloc.c (mark_terminals): Ensure that the image cache is marked
1500 even if the terminal object was marked earlier (Bug#6301).
1501
1502 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
1503
1504 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1505
1506 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
1507
1508 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1509 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1510 Use 23 as menubar height if 0. (Bug#7425).
1511
1512 2010-11-26 Eli Zaretskii <eliz@gnu.org>
1513
1514 * xdisp.c (set_message_1): Force paragraph direction in echo area
1515 be left-to-right.
1516
1517 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1518 when the click is on the header or mode line.
1519
1520 2010-11-25 Eli Zaretskii <eliz@gnu.org>
1521
1522 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1523 `cursor' property of the first character in overlay strings.
1524 (Bug#7474) (Bug#7481)
1525
1526 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1527
1528 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1529 (NSLeftAlternateKeyMask): New defines.
1530 (keyDown): Parse left and right keys separately (Bug#7458).
1531 Compare Left key masks exactly (Bug#7458).
1532
1533 2010-11-23 Eli Zaretskii <eliz@gnu.org>
1534
1535 * intervals.c (temp_set_point_both): Define before calling, to
1536 avoid GCC warnings.
1537
1538 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1539
1540 * nsmenu.m: Use #include <config.h> instead of "config.h".
1541
1542 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1543 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1544 Move declarations ...
1545 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1546 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1547 ... here.
1548
1549 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1550 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1551 (gdb_pvec_type):
1552 * print.c (print_output_debug_flag):
1553 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1554 (safe_debug_print): New declaration.
1555
1556 * xterm.c:
1557 * systty.h:
1558 * sound.c: Include <sys/ioctl.h> unconditionally.
1559
1560 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1561
1562 * alloc.c (mark_maybe_object): Return early if given a Lisp
1563 integer (Bug#6301).
1564
1565 2010-11-21 Ken Brown <kbrown@cornell.edu>
1566
1567 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1568
1569 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1570
1571 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1572 Define (Bug#7458).
1573 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1574 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1575 NSRightControlKeyMask also (Bug#7458).
1576 (keyDown): Ditto (Bug#7458).
1577 (syms_of_nsterm): Defvar ns-right-command-modifier and
1578 ns-right-control-modifier (Bug#7458).
1579
1580 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1581
1582 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1583 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1584
1585 * intervals.h (temp_set_point, temp_set_point_both):
1586 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1587
1588 2010-11-20 Ken Brown <kbrown@cornell.edu>
1589
1590 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1591
1592 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1593
1594 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1595 \xNNNNNN for hex-code display of glyphless characters.
1596
1597 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1598
1599 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1600 Set important to ! vert_only.
1601 (xg_show_toolbar_item): Don't show label horizontally if
1602 tool item isn't important.
1603 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1604 xg_make_tool_item, or update important on existing tool item.
1605
1606 * keyboard.c (QCvert_only): New variable.
1607 (parse_tool_bar_item): Check for QCvert_only.
1608 (syms_of_keyboard): Initialize QCvert_only.
1609
1610 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1611
1612 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1613
1614 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1615 same in-line.
1616
1617 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1618
1619 * xfaces.c (lookup_face): Make static.
1620 * dispnew.c (copy_row_except_pointers): Likewise.
1621 * syntax.c (dec_bytepos): Likewise.
1622 (inc_bytepos): Remove.
1623 * dispextern.h (lookup_face): Remove declaration.
1624
1625 2010-11-19 Eli Zaretskii <eliz@gnu.org>
1626
1627 * xdisp.c (set_cursor_from_row): Display cursor after all the
1628 glyphs that come from an overlay. Don't overstep the last glyph
1629 when skipping glyphs from an overlay. (Bug#6687)
1630
1631 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1632
1633 * alloc.c (refill_memory_reserve): Move declaration ...
1634 * lisp.h (refill_memory_reserve): ... here.
1635
1636 * strftime.c (_strftime_copytm): Add declaration.
1637
1638 * callproc.c (syms_of_callproc): Use intern_c_string.
1639
1640 Move declarations from .c files to .h files.
1641 * process.c (timers_run):
1642 * minibuf.c (quit_char):
1643 * lread.c (read_emacs_mule_char):
1644 * keyboard.c (minibuf_level, message_enable_multibyte)
1645 (pending_malloc_warning):
1646 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1647 (Qonly): Remove declarations.
1648 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1649 (Vselect_active_regions):
1650 * keyboard.h (timers_run): Add declarations.
1651
1652 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1653 (tm_diff): Convert definitions to standard C.
1654 (extra_args_spec_iso): Remove, unused.
1655
1656 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
1657
1658 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1659
1660 * config.in (HAVE_G_TYPE_INIT): New symbol.
1661
1662 2010-11-18 Eli Zaretskii <eliz@gnu.org>
1663
1664 * lread.c (Fload): Mention `load-in-progress' and
1665 `load-file-name'. (Bug#7346)
1666
1667 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1668 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1669 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1670 subprocesses. Use buffer_free only ifdef subprocesses.
1671
1672 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1673 the subprocesses version, not in the non-subprocesses one.
1674
1675 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1676
1677 2010-11-17 Eli Zaretskii <eliz@gnu.org>
1678
1679 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1680 lines on text-mode terminals. (bug#7417)
1681
1682 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1685 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1686
1687 2010-11-17 Kenichi Handa <handa@m17n.org>
1688
1689 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1690 change (set charset-ID list instead of charset-symbol list).
1691
1692 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
1693
1694 * keyboard.c (make_lispy_position): For text area clicks, record Y
1695 pixel position relative to the text area, excluding header line.
1696 Also change X and Y to Lisp_Objects, not pointers; don't return
1697 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1698 buffer_posn_from_coords counting from the start of the text area.
1699 (Fposn_at_x_y, make_lispy_event): Callers changed.
1700
1701 * window.c (coordinates_in_window): Change X and Y to ints rather
1702 than pointers; don't return coordinates via pointers.
1703 (struct check_window_data): Change X and Y from pointers to ints.
1704 (window_from_coordinates): Remove args WX and WY; don't return
1705 coordinates via pointers.
1706 (Fcoordinates_in_window_p, window_from_coordinates):
1707 (check_window_containing, Fwindow_at): Callers changed.
1708 (window_relative_x_coord): New function.
1709
1710 * window.h (window_from_coordinates, window_relative_x_coord):
1711 Update prototypes.
1712
1713 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1714 the start of the text area.
1715
1716 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1717 call. Use window_relative_x_coord.
1718 (note_mouse_highlight): Change window_from_coordinates call.
1719
1720 * w32term.c (w32_read_socket):
1721 * msdos.c (dos_rawgetc):
1722 * xterm.c (handle_one_xevent): Likewise.
1723
1724 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1725
1726 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1727 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1728 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1729 Convert definitions to standard C.
1730 * regex.c: Do not include <stdlib.h>, config.h does it.
1731 Include unistd.h.
1732 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1733 (regerror, regfree): Convert definitions to standard C.
1734 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1735 (__mktime_internal): Convert definitions to standard C.
1736
1737 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1738
1739 * w32proc.c:
1740 * w32inevt.c:
1741 * w32heap.c:
1742 * w32.c: Remove config.h include guards.
1743
1744 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1745 No code changes.
1746
1747 * process.c: Include <sys/ioctl.h> unconditionally,
1748 keyboard.c already does it.
1749
1750 * keyboard.c (pending_malloc_warning): Add const to match
1751 definition in alloc.c.
1752 (Fset_input_interrupt_mode): Simplify #ifdefs.
1753
1754 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1755
1756 Clean up systty.h macros.
1757 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1758 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1759 definition in all uses.
1760 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1761 * sysdep.c (discard_tty_input, child_setup_tty)
1762 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1763 * emacs.c (shut_down_emacs):
1764 * callproc.c (child_setup):
1765 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1766
1767 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1768
1769 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1770
1771 * w32fns.c (Fx_create_frame):
1772 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1773 resource here; it's now done at startup.
1774
1775 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1776
1777 * xterm.c (set_wm_state): Add Qnil to final cons.
1778
1779 * xselect.c (x_send_client_event): Remove unused variables cons and
1780 size.
1781
1782 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1783
1784 * keyboard.c (modify_event_symbol) : Add const to array elements of
1785 arg NAME_TABLE.
1786 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1787 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1788 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1789 Add const to array elements.
1790 (scroll_bar_parts): Make static. Fix position of const.
1791
1792 * w32fns.c (lispy_function_keys): Add const to extern.
1793
1794 * w32inevt.c (lispy_function_keys): Likewise.
1795
1796 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1797
1798 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1799 resource here; it's now done at startup.
1800
1801 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1802
1803 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
1804
1805 Fix compilation on Solaris.
1806 * sysdep.c: Do not #include <term.h>.
1807 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1808
1809 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1810
1811 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1812
1813 * xterm.c (set_wm_state): Don't put Atom in cons, call
1814 make_fixnum_or_float on them first.
1815 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1816 Xatom_net_supported correctly.
1817
1818 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1819 (Fx_send_client_event): to here.
1820
1821 2010-11-13 Martin Rudalics <rudalics@gmx.at>
1822
1823 * window.c (Fwindow_use_time): New function.
1824
1825 2010-11-13 Eli Zaretskii <eliz@gnu.org>
1826
1827 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1828 zero-width characters.
1829
1830 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1831
1832 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1833 box before drawing the glyphs inside it.
1834
1835 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1836
1837 * dispextern.h (enum glyphless_display_method):
1838 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1839 All users changed.
1840
1841 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1842 Fix comments.
1843 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1844 whitespace in "[]", to simulate a box. Don't use uninitialized
1845 variable `width'.
1846
1847 2010-11-11 Julien Danjou <julien@danjou.info>
1848
1849 * xsettings.c (init_xsettings): Use already fetch atoms.
1850
1851 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1852 from dpyinfo.
1853
1854 * xselect.c (Fx_send_client_event): Split and create
1855 x_send_client_event.
1856
1857 * lisp.h: Do not EXFUN Fx_send_client_event.
1858
1859 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1860 from dpyinfo.
1861 (wm_supports): Use atoms from dpyinfo.
1862 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1863 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1864 (xembed_set_info): Use atoms from dpyinfo.
1865 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1866 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1867 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1868 Get all atoms in one round-trip.
1869 (set_wm_state): Use x_send_client_event rather than
1870 Fx_send_client_event, using Atom directly.
1871 (x_ewmh_activate_frame): Ditto.
1872 (x_set_sticky): Pass atoms to set_wm_state.
1873 (do_ewmh_fullscreen): Ditto.
1874
1875
1876 * xterm.h (x_display_info): Add Xatom_net_supported,
1877 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1878 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1879
1880 * xfns.c (Fx_show_tip): Fix typo in docstring.
1881
1882 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1883
1884 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1885 it's not negative.
1886
1887 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1888
1889 * font.c (font_filter_properties): Add const to array elements of
1890 properties args.
1891
1892 * font.h (font_filter_properties): Likewise.
1893
1894 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1895 elements.
1896
1897 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1898
1899 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
1900
1901 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1902 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1903 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1904 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1905 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1906
1907 2010-11-10 Glenn Morris <rgm@gnu.org>
1908
1909 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1910
1911 2010-11-09 Eli Zaretskii <eliz@gnu.org>
1912
1913 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
1914
1915 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
1916
1917 * image.c (free_image): Don't garbage the frame here, since this
1918 function can be called while redisplaying (Bug#7210).
1919 (uncache_image): Garbage the frame here (Bug#6426).
1920
1921 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
1922
1923 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1924 parent is the root window. Check this after traversing window tree.
1925
1926 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
1927
1928 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
1929
1930 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1931 before traversing window tree (Bug#5721).
1932
1933 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1934
1935 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1936
1937 * xdisp.c (note_mode_line_or_margin_highlight):
1938 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
1939
1940 2010-11-06 Eli Zaretskii <eliz@gnu.org>
1941
1942 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1943 adjust width of tool-tip frame to the width of text, excluding the
1944 stretch glyph at the beginning of R2L glyph rows.
1945
1946 * w32fns.c (Fx_show_tip): Likewise.
1947
1948 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1949
1950 * nsfont.m: Include termchar for new mouse-highlight.
1951 (nsfont_draw): Use MOUSE_HL_INFO.
1952
1953 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1954
1955 Unify mouse-highlight code for all GUI and TTY sessions.
1956
1957 * term.c: Remove static mouse_face_* variables. All users
1958 changed.
1959 (term_show_mouse_face, term_clear_mouse_face)
1960 (fast_find_position, term_mouse_highlight): Functions deleted.
1961 (tty_draw_row_with_mouse_face): New function.
1962 (term_mouse_movement): Call note_mouse_highlight instead of
1963 term_mouse_highlight.
1964
1965 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1966 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1967 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1968 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1969 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1970 Replace Display_Info with Mouse_HLInfo everywhere where
1971 mouse_face_* members were accessed for mouse highlight purposes.
1972
1973 * xterm.c (x_update_window_begin, x_update_window_end)
1974 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
1975 (handle_one_xevent, x_free_frame_resources, x_term_init):
1976 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
1977 members were accessed for mouse highlight purposes.
1978
1979 * w32term.c (x_update_window_begin, x_update_window_end)
1980 (x_update_end, w32_read_socket, x_free_frame_resources)
1981 (w32_initialize_display_info): Replace Display_Info with
1982 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1983 for mouse highlight purposes.
1984
1985 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1986 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1987 unless the frame is on a window-system.
1988 (get_tool_bar_item, handle_tool_bar_click)
1989 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1990 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1991 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1992 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1993 Replace Display_Info with Mouse_HLInfo everywhere where
1994 mouse_face_* members were accessed for mouse highlight purposes.
1995 (coords_in_mouse_face_p): Move prototype out of the
1996 HAVE_WINDOW_SYSTEM conditional.
1997 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1998 HAVE_WINDOW_SYSTEM block.
1999 (try_window_id) [HAVE_GPM || MSDOS]:
2000 Call x_clear_window_mouse_face.
2001 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
2002 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2003 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2004 calling draw_glyphs directly.
2005 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2006 (cursor_in_mouse_face_p, rows_from_pos_range)
2007 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2008 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2009 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2010 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2011 fragments.
2012 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2013 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2014 integer.
2015 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
2016 (x_consider_frame_title, tool_bar_lines_needed):
2017 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
2018 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2019 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2020 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2021 part.
2022
2023 * dispnew.c (mirror_make_current): Set Y coordinate of the
2024 mode-line and header-line rows.
2025 (init_display): Setup initial frame's output_data for text
2026 terminal frames.
2027
2028 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2029 its own definition on msdos.c.
2030
2031 * msdos.c (show_mouse_face, clear_mouse_face)
2032 (fast_find_position, IT_note_mode_line_highlight)
2033 (IT_note_mouse_highlight): Functions deleted.
2034 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2035 instead of IT_note_mouse_highlight.
2036 (draw_row_with_mouse_face, popup_activated): New functions.
2037 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2038 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2039 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2040 where mouse_face_* members were accessed for mouse highlight
2041 purposes.
2042
2043 * msdos.h (initialize_msdos_display): Add prototype.
2044
2045 * frame.h (MOUSE_HL_INFO): New macro.
2046
2047 * lisp.h (Mouse_HLInfo): New data type.
2048
2049 * xterm.h (struct x_display_info):
2050 * w32term.h (struct w32_display_info):
2051 * nsterm.h (struct ns_display_info):
2052 * termchar.h (struct tty_display_info): Use it instead of
2053 mouse_face_* members.
2054
2055 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2056 1st argument.
2057 (frame_to_window_pixel_xy, note_mouse_highlight)
2058 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2059 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2060 HAVE_WINDOW_SYSTEM conditional.
2061 (draw_row_with_mouse_face): Declare prototype.
2062 (tty_draw_row_with_mouse_face): Declare prototype.
2063
2064 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2065
2066 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2067 Remove unused variables.
2068
2069 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2070
2071 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2072 logic pointed out by Eli Zaretskii.
2073
2074 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2075
2076 * coding.c (coding-category-list): Refer to set-coding-system-priority
2077 instead of the obsolete set-coding-priority in the doc string.
2078
2079
2080 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2081
2082 * nsfont.m (nsfont_draw): Correct previous patch to return
2083 correct value.
2084 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2085 don't change the method signature, change the return.
2086
2087 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
2088
2089 * nsfont.m (nsfont_draw)
2090 * nsimage.m (EmacsImage-setXBMColor:)
2091 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
2092
2093 2010-11-03 Julien Danjou <julien@danjou.info>
2094
2095 * image.c (gif_load): Add support for transparency and specified
2096 :background.
2097
2098 2010-11-01 Kenichi Handa <handa@m17n.org>
2099
2100 * dispextern.h (lookup_glyphless_char_display): Extern it.
2101
2102 * termhooks.h (struct terminal): New member charset_list.
2103
2104 * coding.c (Fset_terminal_coding_system_internal): Set the
2105 `charset_list' member of struct terminal.
2106
2107 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2108 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2109
2110 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2111 (lookup_glyphless_char_display): Set it->what at the end.
2112 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2113 (last_glyphless_glyph_merged_face_id): Make them non-static.
2114
2115 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2116 Fix the arg with_background for font->driver->draw.
2117
2118 2010-11-01 Kenichi Handa <handa@m17n.org>
2119
2120 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2121 Surround chp by parentheses.
2122
2123 2010-11-01 Kenichi Handa <handa@m17n.org>
2124
2125 Implement various display methods for glyphless characters.
2126
2127 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2128 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2129 (Qzero_width): New variables.
2130 (THIN_SPACE_WIDTH): New macro.
2131 (lookup_glyphless_char_display): New funciton.
2132 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2133 (last_glyphless_glyph_merged_face_id): New variables.
2134 (get_next_display_element): Check glyphless characters.
2135 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2136 last_glyphless_glyph_face_id.
2137 (fill_glyphless_glyph_string): New function.
2138 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2139 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2140 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2141 (x_produce_glyphs): If a suitable font is not found, produce a
2142 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2143 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2144 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2145 Qzero_width.
2146 (Vglyphless_char_display): Declare it as a Lisp variable.
2147
2148 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2149 (struct glyph): Change the size of the member "type" to 3.
2150 Add glyphless to the union slice and u.
2151 (enum display_element_type): Add IT_GLYPHLESS.
2152 (enum glyphless_display_method): New enum.
2153 (struct it): New member glyphless_method.
2154 (Vglyphless_char_display): Extern it.
2155
2156 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2157 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2158
2159 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2160 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2161
2162 * nsterm.m (ns_draw_glyph_string): Handle the case
2163 GLYPHLESS_GLYPH (the detail is not yet implemented).
2164
2165 2010-10-31 Glenn Morris <rgm@gnu.org>
2166
2167 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2168
2169 * frame.c (syms_of_frame) <tool-bar-mode>:
2170 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2171
2172 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * xterm.c (x_connection_closed): Print informative error message
2175 when aborting on GTK. This requires using shut_down_emacs
2176 directly instead of Fkill_emacs.
2177
2178 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2179
2180 * emacs.c (main): Call syms_of_filelock unconditionally.
2181
2182 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2183 clause, but keep part of it conditioned on CLASH_DETECTION.
2184
2185 2010-10-29 Glenn Morris <rgm@gnu.org>
2186
2187 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2188 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2189 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2190 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2191 Sync docs between X, W32, NS.
2192
2193 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2194 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2195
2196 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2197
2198 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2199 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2200
2201 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2202
2203 * cmds.c (internal_self_insert): Don't insert if argument N is
2204 zero or negative. (Bug#7281)
2205
2206 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2207
2208 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2209
2210 2010-10-25 Glenn Morris <rgm@gnu.org>
2211
2212 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2213
2214 2010-10-24 Glenn Morris <rgm@gnu.org>
2215
2216 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2217 (Fx_window_property, Fx_file_dialog):
2218 * xfns.c (Fx_synchronize, Fx_change_window_property)
2219 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2220
2221 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2222
2223 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2224
2225 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2226
2227 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2228
2229 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2230 Deprecate use as a boolean flag.
2231
2232 2010-10-24 Jim Meyering <jim@meyering.net>
2233
2234 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2235
2236 2010-10-24 Glenn Morris <rgm@gnu.org>
2237
2238 * w16select.c (syms_of_win16select) <selection-coding-system>:
2239 <next-selection-coding-system>:
2240 * w32select.c (syms_of_w32select) <selection-coding-system>:
2241 <next-selection-coding-system>:
2242 Sync docs with select.el.
2243
2244 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2245 Lisp version.
2246
2247 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2248 Sync doc with the xterm.c version.
2249
2250 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2251 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2252
2253 2010-10-23 Glenn Morris <rgm@gnu.org>
2254
2255 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2256 * frame.c (syms_of_frame) <menu-bar-mode>:
2257 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2258 <hourglass-delay>: Sync docs with Lisp.
2259
2260 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2261
2262 Implement mouse highlight for bidi-reordered lines.
2263
2264 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2265 (mouse_face_from_string_pos): New function, replaces
2266 fast_find_string_pos.
2267 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2268 (note_mode_line_or_margin_highlight): Support bidi-reordered
2269 strings and R2L glyph rows. Fix comments.
2270 (note_mouse_highlight): When bidi reordering is turned on in a
2271 buffer, call next-single-property-change and
2272 previous-single-property-change with last argument nil.
2273 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2274 glyph that stands for no text beyond the line end.
2275 (row_containing_pos): Don't return too early when CHARPOS is in a
2276 bidi-reordered continued line. Return immediately when the first
2277 hit is found in a line that is not continued, or when an exact
2278 match for CHARPOS is found.
2279 (rows_from_pos_range): New function.
2280 (mouse_face_from_buffer_pos): Use it instead of calling
2281 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2282 function to support mouse highlight in bidi-reordered lines and
2283 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2284 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2285 that the former is always above the latter or identical to it.
2286 (show_mouse_face): Support drawing highlighted R2L lines.
2287 (coords_in_mouse_face_p): New function, bidi-aware.
2288 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2289 Call it instead of comparing with mouse-face members of dpyinfo.
2290 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2291 usage of hpos and vpos.
2292
2293 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2294
2295 * xrdb.c: Include keyboard.h for MOTIF.
2296
2297 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2298 MOTIF (Bug#7263).
2299
2300 * xfns.c: Include Xm/TextF and Xm/List.
2301 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2302 Make ANSI prototypes.
2303
2304 2010-10-22 Glenn Morris <rgm@gnu.org>
2305
2306 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2307 Remove ccl and duplicate mouse.
2308
2309 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2310
2311 * insdel.c (prepare_to_modify_buffer): Don't set
2312 saved-region-selection if modification hooks are disabled.
2313
2314 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * cmds.c (Fdelete_char): Doc fix.
2317
2318 2010-10-19 Ken Brown <kbrown@cornell.edu>
2319
2320 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2321
2322 2010-10-19 Kenichi Handa <handa@m17n.org>
2323
2324 Fix incorrect font metrics when the same font is opened with
2325 different pixelsizes.
2326
2327 * xftfont.c: Include composite.h.
2328 (xftfont_shape): New function.
2329 (syms_of_xftfont): Set xftfont_driver.shape.
2330
2331 2010-10-18 Julien Danjou <julien@danjou.info>
2332
2333 * frame.c (Fframe_pointer_visible_p):
2334 Add `frame-pointer-visible-p' to get the pointer visibility.
2335
2336 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2337
2338 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2339 non-"EAGAIN"-like error to signal to Emacs that the socket should
2340 be closed.
2341
2342 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2343
2344 * unexcoff.c (make_hdr): Fix prototype according to changes in
2345 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2346
2347 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2348
2349 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2350
2351 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2352 made building the X menu fail.
2353 (really-oldXMenu): Fix my previous fix.
2354
2355 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2356
2357 Fix handling of font properties on Windows (bug#6303).
2358 * font.c (font_filter_properties): New function, refactored from
2359 ftfont_filter_properties.
2360 * font.h (font_filter_properties): Declare.
2361 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2362 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2363 (w32font_filter_properties): New function.
2364 (w32font_driver): Add w32font_filter_properties.
2365
2366 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2367
2368 * font.c (Ffont_variation_glyphs):
2369 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2370
2371 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2372
2373 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2374 * w32font.c (w32_generic_family):
2375 * w32inevt.c (key_event):
2376 * w32menu.c (fill_in_menu):
2377 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2378 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2379 * w32term.c (w32_read_socket): Make static.
2380
2381 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2382
2383 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2384 prototypes; all callers changed.
2385
2386 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2387
2388 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2389 (OBJ2): New macro.
2390 (WIN32OBJ, FONTOBJ): Remove.
2391 (OBJ1): Redistribute object files with OBJ2.
2392 (LIBS, $(TEMACS)): Use TLIB2.
2393 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2394 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2395
2396 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2397
2398 * emacs.c (Vdynamic_library_alist)
2399 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2400 Doc fix.
2401
2402 * lisp.h (Vdynamic_library_alist): Declare extern.
2403
2404 * image.c (Vimage_library_alist)
2405 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2406 (lookup_image_type): Use Vdynamic_library_alist.
2407 (Finit_image_library): Doc fix.
2408
2409 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2410
2411 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2412 (lispdir): Remove trailing /, update all uses.
2413
2414 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
2415
2416 * nsterm.m (Qleft): Declare.
2417 (ns_right_alternate_modifier): New variable
2418 (NSRightAlternateKeyMask): New define.
2419 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2420 ns_right_alternate_modifier isn't Qleft.
2421 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2422 as emacs modifier for NSRightAlternateKeyMask.
2423 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2424
2425 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2426
2427 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2428 gnutls is ready, return EAGAIN as the errno.
2429
2430 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2431
2432 * vm-limit.c:
2433 * unexhp9k800.c:
2434 * unexelf.c:
2435 * unexaix.c:
2436 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2437
2438 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2439 (PROFILING_LDFLAGS): Remove, not needed anymore.
2440
2441 * Makefile.in: Use $(...) everywhere instead of ${...}
2442 (CRT_DIR): Move near potential user.
2443 (START_FILE): Move near CRT_DIR, it might use it.
2444
2445 * sysdep.c (LPASS8): Remove, unused.
2446 (emacs_ospeed): Change from being a global to a local in the only
2447 user: init_baud_rate.
2448
2449 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2450
2451 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
2452 (emacs_gnutls_write): Remove the debuggin fsync call.
2453 (emacs_gnutls_read): Return -1 if we got an error from
2454 gnutls_read. This allows us to actually read lots of data from
2455 the GnuTLS stream.
2456 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2457 According to the documentation, this is correct, and it seems to
2458 make things work.
2459
2460 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
2461
2462 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2463
2464 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2465
2466 * keyboard.c: Revert last change; it was not intended to be
2467 synchronized with the trunk.
2468
2469 2010-10-08 Kenichi Handa <handa@m17n.org>
2470
2471 * coding.c (complement_process_encoding_system): Fix previous change.
2472
2473 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2474
2475 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2476 (Fdbus_init_bus): ... here. (Bug#7113)
2477
2478 2010-10-08 Glenn Morris <rgm@gnu.org>
2479
2480 * buffer.c (before-change-functions, after-change-functions):
2481 Three-year overdue doc fix following 2007-08-13 change.
2482
2483 2010-10-08 Kenichi Handa <handa@m17n.org>
2484
2485 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2486 eol-format, inherit from the system's default.
2487 (complement_process_encoding_system): Make a new coding system
2488 inherit the original eol-format.
2489
2490 2010-10-08 Kenichi Handa <handa@m17n.org>
2491
2492 * coding.c (complement_process_encoding_system): New function.
2493
2494 * coding.h (complement_process_encoding_system): Extern it.
2495
2496 * callproc.c (Fcall_process): Complement the coding system for
2497 encoding arguments.
2498 (Fcall_process_region): Complement the coding system for encoding
2499 the input to the process.
2500
2501 * process.c (Fstart_process): Complement the coding system for
2502 encoding arguments.
2503 (send_process): Complement the coding system for encoding what
2504 sent to the process.
2505
2506 2010-10-08 Kenichi Handa <handa@m17n.org>
2507
2508 * xfont.c (xfont_open): Fix setting of font->average_width from
2509 :avgwidth property (Bug#7123).
2510
2511 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2512
2513 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2514 is more portable.
2515
2516 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2517 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2518 has not defined SIGIO.
2519
2520 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
2521
2522 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2523 draw the outermost line using the black relief, for legibility.
2524 Omit drawing the four corner pixels.
2525
2526 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
2527
2528 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2529 (read_key_sequence): Inline echo_prompt.
2530 (echo_dash): Add a dash only if key is continued (Bug#7137).
2531
2532 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2533
2534 Remove O_RDONLY, O_WRONLY definitions, not needed.
2535 * unexcoff.c:
2536 * lread.c:
2537 * fileio.c:
2538 * doc.c:
2539 * callproc.c:
2540 * alloc.c:
2541 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2542
2543 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2544
2545 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2546
2547 * gnutls.c: Add property list symbol holders.
2548 (emacs_gnutls_handshake): Clarify how sockets are passed to
2549 GnuTLS.
2550 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2551 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2552 and keyfiles to be a list of file names. Default to "NORMAL" for
2553 the priority string. Improve logging.
2554
2555 2010-10-03 Glenn Morris <rgm@gnu.org>
2556
2557 * fileio.c (Vdirectory_sep_char): Remove.
2558
2559 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2560
2561 * termhooks.h: Remove #ifdef CONSP.
2562
2563 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2564
2565 Include <fcntl.h> unconditionally.
2566 * termcap.c:
2567 * sysdep.c:
2568 * lread.c:
2569 * keyboard.c:
2570 * filelock.c:
2571 * fileio.c:
2572 * doc.c:
2573 * callproc.c:
2574 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2575 does it.
2576
2577 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2578
2579 * sysdep.c (flush_pending_output): Remove code, does not do
2580 anything on any platform.
2581
2582 Remove unused code.
2583 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2584 Remove select emulation, all systems support select.
2585 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2586 * process.c (create_process): Remove #if 0 code.
2587
2588 Remove unused arguments for unexec.
2589 The third one is never used, and the last two are always passed as zero.
2590 * emacs.c (unexec): Add declaration.
2591 (Fdump_emacs): Only pass the first two arguments to unexec.
2592 Simplify #ifdef.
2593 * unexw32.c (unexec):
2594 * unexsol.c (unexec):
2595 * unexhp9k800.c (unexec):
2596 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2597 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2598 (find_section): Use const.
2599 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2600 (unexec_error): Declare it NO_RETURN.
2601 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2602 it as an argument, remove data_start and entry_address arguments, unused.
2603 (unexec): Remove bss_start, data_start and
2604 entry_address arguments.
2605 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2606 it as an argument, remove data_start and entry_address arguments, unused.
2607 (unexec): Remove bss_start, data_start and
2608 entry_address arguments.
2609
2610 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
2611
2612 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2613
2614 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2615 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2616 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2617 Fix typos in docstrings.
2618 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2619 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2620
2621 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
2622
2623 * keyboard.c (command_loop_1): Make sure the mark is really alive
2624 before using it (Bug#7044).
2625
2626 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2627
2628 * makefile.w32-in (tags): Rename target to full-tags.
2629
2630 2010-10-02 Eli Zaretskii <eliz@gnu.org>
2631
2632 * emacs.c (main): Remove !WINDOWSNT conditional.
2633 (Fkill_emacs): Don't mention exemption on MS-Windows.
2634
2635 2010-10-02 Glenn Morris <rgm@gnu.org>
2636
2637 * character.c (Fchar_bytes): Remove obsolete function.
2638 (syms_of_character): Remove Schar_bytes.
2639
2640 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2641 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2642 in batch-mode.
2643 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2644 (kill-emacs-hook): Doc fix.
2645
2646 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2647
2648 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
2649 (parse_region): Rework to take regions instead of strings, and
2650 renamed to reflect that these are the libxml functions.
2651
2652 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2653
2654 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2655 screen dimensions in tty->Wcm.
2656
2657 * xdisp.c (set_cursor_from_row): When the row is truncated and
2658 point is outside the range of displayed characters, position the
2659 cursor inside the scroll margin. (Bug#6349)
2660
2661 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2662
2663 Do not include stdlib.h and string.h, config.h does it.
2664 * xfont.c:
2665 * w32term.c:
2666 * w32reg.c:
2667 * w32inevt.c:
2668 * w32heap.c:
2669 * w32console.c:
2670 * w16select.c:
2671 * unexsol.c:
2672 * term.c:
2673 * sound.c:
2674 * scroll.c (m):
2675 * gtkutil.c:
2676 * font.c:
2677 * filelock.c:
2678 * fileio.c:
2679 * dosfns.c:
2680 * dbusbind.c:
2681 * bidi.c:
2682 * callproc.c:
2683 * process.c:
2684 * msdos.c:
2685 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2686
2687 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2688 defines it.
2689
2690 * process.c: Move #include <pty.h> earlier.
2691 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2692 (pty_name): Move definition later.
2693
2694 * nsselect.m (syms_of_nsselect):
2695 * nsmenu.m (syms_of_nsmenu):
2696 * nsfns.m (syms_of_nsfns):
2697 * msdos.c (syms_of_msdos):
2698
2699 * image.c (syms_of_image):
2700 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2701
2702 * point.h: Remove, unused.
2703
2704 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2705
2706 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2707 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2708 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2709
2710 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2711
2712 * xml.c (parse_string): Use const.
2713
2714 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2715
2716 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2717 Also only override Vprint_level if it isn't already bound, and increase
2718 the level to 8 to produce more useful backtraces for bug reports.
2719
2720 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2721
2722 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2723
2724 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
2725
2726 * w32console.c (vga_stdcolor_name): Remove unused function;
2727 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2728
2729 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2730
2731 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2732 (Fgnutls_boot): Start the handshake.
2733 (emacs_gnutls_read): Perform the handshake from the reader loop.
2734 (Fgnutls_boot): Remove some debugging messages.
2735 Change indentation throughout to use the Emacs style.
2736 (emacs_gnutls_handshake): Cast the fds to something that's
2737 possibly the expected length.
2738 (emacs_gnutls_write): Return -1 if we try to write before handshake.
2739
2740 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2741
2742 * process.c (make_process): Set the gnutls_p field to zero by
2743 default.
2744 (read_process_output): Always call the gnutls_read function if the
2745 stream is a gnutls stream.
2746 (send_process): Ditto for writes.
2747
2748 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2749 or write anything until the state is GNUTLS_STAGE_READY.
2750 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2751
2752 2010-09-29 Eli Zaretskii <eliz@gnu.org>
2753
2754 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2755 NEUTRAL_DIR.
2756 (handle_invisible_prop, iterate_out_of_display_property)
2757 (next_element_from_buffer): If bidi_it.first_elt is set, call
2758 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2759 (Bug#7128)
2760
2761 * print.c (print_object): Fix format string and argument types for
2762 printing a Lisp_Misc_Marker.
2763
2764 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2765 (load_overlay_strings, get_overlay_strings_1)
2766 (get_overlay_strings, forward_to_next_line_start)
2767 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2768 (get_next_display_element, next_element_from_string)
2769 (next_element_from_c_string, next_element_from_buffer)
2770 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2771 (message_dolog, message_log_check_duplicate, message2_nolog)
2772 (message3, message3_nolog, vmessage, set_message, set_message_1)
2773 (hscroll_window_tree, text_outside_line_unchanged_p)
2774 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2775 (find_last_unchanged_at_beg_row)
2776 (find_first_unchanged_at_end_row, row_containing_pos)
2777 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
2778 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2779 Use EMACS_INT for buffer and string positions.
2780
2781 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2782 (row_containing_pos): Adjust prototype.
2783
2784 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2785 (message2_nolog, set_message): Adjust prototypes.
2786
2787 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2788
2789 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2790 (Fgnutls_boot): Use SDATA.
2791 (Fgnutls_handshake): Remove unused var `max_log_level'.
2792
2793 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2794
2795 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
2796 (Bug#7113)
2797
2798 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2799
2800 * xgselect.c (xg_select): Clear file descriptors not set from
2801 rfds and wfds.
2802
2803 * process.c (wait_reading_process_output): Add missing FD_CLR
2804 for write_mask (must mirror connect_wait_mask).
2805
2806 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2807
2808 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2809 prefix.
2810 (Fgnutls_boot): Use changed process members. Use log level with a
2811 function parameter to set it. Bring back Emacs-level debugging
2812 messages at log level 1 and 2.
2813
2814 * process.c (make_process): Initialize gnutls_log_level.
2815
2816 * process.h: Add gnutls_log_level and rename x509_cred and
2817 anon_cred to have the gnutls_ prefix for consistency.
2818
2819 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2820
2821 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
2822
2823 * w32.c (g_b_init_get_sid_identifier_authority)
2824 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2825 Remove, not used.
2826 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2827 (init_winsock): Remove useless assignment.
2828 (open_process_token, get_token_information, lookup_account_sid)
2829 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2830 (get_security_descriptor_owner, get_security_descriptor_group)
2831 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2832 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2833 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2834 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2835 (unc_volume_file_attributes, convert_from_time_t)
2836 (create_toolhelp32_snapshot, process32_first, process32_next)
2837 (open_thread_token, impersonate_self, revert_to_self)
2838 (get_process_memory_info, get_process_working_set_size)
2839 (global_memory_status, global_memory_status_ex, socket_to_fd)
2840 (shutdown_handler): Make static.
2841
2842 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2843
2844 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2845 (xd_pending_messages): Functions removed.
2846 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2847 order to be compatible with add_read_fd. Determine bus from data,
2848 and call xd_read_message just for this bus.
2849 (xd_add_watch): Use xd_read_queued_messages as callback function.
2850 Add data.
2851
2852 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2853
2854 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2855
2856 * gnutls.c (gnutls_log_function): Add more debugging.
2857 (emacs_gnutls_read): Don't infloop while reading.
2858
2859 2010-09-27 Kenichi Handa <handa@m17n.org>
2860
2861 These changes are to remove restriction on the number of glyphs in
2862 one composition.
2863
2864 * dispextern.h (struct glyph): Change the member "slice" to union.
2865 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
2866 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
2867
2868 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2869 instead of glyph->slice.
2870 (marginal_area_string): Likewise.
2871
2872 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2873 glyph->u.cmp.
2874 (append_composite_glyph): Likewise.
2875
2876 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2877 glyph->u.cmp.
2878 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2879 (append_composite_glyph): Likewise.
2880 (fill_image_glyph_string): Use glyph->slice.img instead of
2881 glyph->slice.
2882 (append_glyph, produce_image_glyph, append_stretch_glyph)
2883 (note_mouse_highlight): Likewise.
2884
2885 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2886
2887 * process.c (add_keyboard_wait_descriptor)
2888 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
2889 (wait_reading_process_output): Don't pass write_mask to select
2890 if SELECT_CANT_DO_WRITE_MASK is defined.
2891 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
2892
2893 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2894 (delete_write_fd): Declare.
2895
2896 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2897 (write_mask): New variable.
2898 (max_input_desc): Rename from max_keyboard_desc.
2899 (fd_callback_info): New variable.
2900 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2901 New functions.
2902 (Fmake_network_process): FD_SET write_mask.
2903 (deactivate_process): FD_CLR write_mask.
2904 (wait_reading_process_output): Connecting renamed to Writeok.
2905 check_connect removed. check_write is new. Remove references to gpm.
2906 Use Writeok/check_write unconditionally (i.e. no #ifdef
2907 NON_BLOCKING_CONNECT) instead of Connecting.
2908 Loop over file descriptors and call callbacks in fd_callback_info
2909 if file descriptor is ready for I/O.
2910 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2911 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2912 (keyboard_bit_set): Use max_input_desc.
2913 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2914 Remove #ifdef subprocesses. Use max_input_desc.
2915 (init_process): Initialize write_mask and fd_callback_info.
2916
2917 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2918
2919 * dbusbind.c: Include process.h.
2920 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2921 (xd_read_message_1): New functions.
2922 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2923 Handle watch for both read and write.
2924 (Fdbus_init_bus): Also register xd_toggle_watch.
2925 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2926 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2927 to dbus_connection_flush.
2928 (xd_read_message): Move most of the code to xd_read_message_1.
2929 Call xd_read_message_1 until status is COMPLETE.
2930
2931 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2932
2933 * term.c: Do not include sys/ioctl.h, not needed.
2934 (init_tty): Reorder code to reduce the number of #ifdefs.
2935 No code changes.
2936
2937 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2938
2939 * process.h: Set up GnuTLS support.
2940
2941 * process.c (make_process, Fstart_process)
2942 (read_process_output, send_process): Set up GnuTLS support for
2943 process input/output file descriptors.
2944
2945 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2946
2947 * gnutls.c: The source code for GnuTLS support in Emacs.
2948
2949 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2950
2951 * config.in: Set up GnuTLS support.
2952
2953 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2954 (obj, LIBES): Set up GnuTLS support.
2955
2956 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
2957
2958 * w32.c (get_emacs_configuration_options): Fix previous change.
2959
2960 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
2961
2962 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2963 alive before using it (Bug#6977).
2964
2965 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2966
2967 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2968
2969 * dispextern.h: EMACS_INT/int fixup.
2970
2971 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2972 fixup.
2973
2974 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2975
2976 2010-09-25 Eli Zaretskii <eliz@gnu.org>
2977
2978 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2979 (Fselect_window, window_scroll_pixel_based)
2980 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2981 Use EMACS_INT for buffer positions.
2982
2983 * textprop.c (validate_interval_range, interval_of)
2984 (property_change_between_p, Fadd_text_properties)
2985 (set_text_properties_1, Fremove_text_properties)
2986 (Fremove_list_of_text_properties, Ftext_property_any)
2987 (Ftext_property_not_all, copy_text_properties)
2988 (text_property_list, extend_property_ranges)
2989 (verify_interval_modification): Use EMACS_INT for buffer
2990 positions.
2991
2992 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2993 for buffer positions.
2994
2995 * process.c (read_process_output, send_process)
2996 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2997 and string positions and size.
2998
2999 * print.c (print_object, print_string, strout): Use EMACS_INT for
3000 string indices.
3001
3002 * minibuf.c (string_to_object): Use EMACS_INT for string position
3003 and size.
3004
3005 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3006
3007 * lread.c <read_from_string_index, read_from_string_index_byte>
3008 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3009 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3010 buffer positions and string length.
3011
3012 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3013 EMACS_INT.
3014 (echo_truncate, adjust_point_for_property, read_char)
3015 (gen_help_event, make_lispy_event, modify_event_symbol)
3016 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3017 for buffer positions and string length.
3018
3019 * keyboard.h (gen_help_event): Adjust prototype.
3020
3021 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3022
3023 * commands.h <last_point_position>: Declare EMACS_INT.
3024
3025 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3026 (truncate_echo_area): Accept EMACS_INT argument.
3027
3028 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3029
3030 * lisp.h (truncate_echo_area): Adjust prototype.
3031
3032 * composite.c (composition_adjust_point): Return EMACS_INT.
3033
3034 * composite.h (composition_adjust_point): Adjust prototype.
3035
3036 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
3037
3038 * process.c (Fmake_network_process): When arg :host is 'local,
3039 use address 127.0.0.1, not name "localhost". (Bug#6781)
3040
3041 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3042
3043 * indent.c (Fcurrent_indentation, indented_beyond_p)
3044 (compute_motion): Use EMACS_INT for buffer position variables.
3045
3046 * lisp.h (indented_beyond_p): Adjust prototype.
3047
3048 * buffer.c (overlay_strings): Return EMACS_INT.
3049
3050 * buffer.h (overlay_strings): Adjust prototype.
3051
3052 * region-cache.c (pp_cache): Adjust format to arguments.
3053
3054 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3055 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3056 (verror): Use EMACS_INT for size of allocated buffer.
3057
3058 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3059 positions.
3060
3061 * xdisp.c (redisplay_internal, try_window_id)
3062 (set_cursor_from_row, find_first_unchanged_at_end_row):
3063 Use EMACS_INT for buffer positions.
3064
3065 * dispextern.h (set_cursor_from_row): Adjust prototype.
3066
3067 * dispnew.c (increment_matrix_positions)
3068 (increment_row_positions, copy_glyph_row_contents)
3069 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3070 positions.
3071
3072 * dispextern.h (mode_line_string, marginal_area_string)
3073 (increment_matrix_positions, increment_row_positions):
3074 Adjust prototypes.
3075
3076 * data.c (Faref, Faset): Use EMACS_INT for string length and
3077 positions.
3078
3079 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3080 characters to insert.
3081
3082 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3083 position and size.
3084
3085 * syntax.c (scan_words, update_syntax_table)
3086 (prev_char_comend_first, back_comment, skip_chars)
3087 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3088 Use EMACS_INT for buffer and string positions.
3089
3090 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3091
3092 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3093 positions.
3094
3095 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3096
3097 * scroll.c (calculate_scrolling, line_ins_del)
3098 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3099 conversion.
3100
3101 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3102 (region_cache_backward, region_cache_forward)
3103 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3104 conversion.
3105
3106 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3107
3108 * eval.c (verror): Fix EMACS_INT/int conversion.
3109
3110 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3111 (print_preprocess, print_check_string_charset_prop)
3112 (print_object): Fix EMACS_INT/int conversion.
3113
3114 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3115
3116 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3117
3118 * callproc.c (Fcall_process): Use EMACS_INT for count of
3119 characters read from the subprocess.
3120
3121 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3122 positions.
3123 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3124 positions.
3125
3126 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3127 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3128 length.
3129 (advance_to_char_boundary, Fset_buffer_multibyte)
3130 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3131 (overlay_touches_p, record_overlay_string, overlay_strings)
3132 (recenter_overlay_lists, fix_start_end_in_overlays)
3133 (modify_overlay, Fmove_overlay, report_overlay_modification)
3134 (evaporate_overlays): Use EMACS_INT for buffer positions.
3135
3136 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3137 Adjust prototypes.
3138
3139 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3140 positions.
3141
3142 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3143 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3144 (Fsubstring_no_properties, substring_both, Ffillarray)
3145 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3146 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3147 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3148 (Fmd5): Use EMACS_INT for buffer and string positions and length
3149 variables and arguments.
3150
3151 * lisp.h (substring_both): Adjust prototype.
3152
3153 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3154
3155 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3156 * w32fns.c (clipboard_sequence_fn): Don't declare.
3157 (globals_of_w32fns): Don't initialize it.
3158
3159 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3160
3161 * syntax.c (back_comment): Detect the case where a 1-char comment
3162 starter is also the 2nd char of a 2-char comment ender.
3163
3164 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3165
3166 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3167
3168 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3169
3170 * eval.c (verror): EMACS_INT/int cleanup.
3171
3172 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3173 unwind_protect more than 2GB worth of functions.
3174
3175 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3176
3177 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3178 string and avoid compiler warnings.
3179 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3180 all users.
3181
3182 * lread.c (oblookup): EMACS_INT/int cleanup.
3183
3184 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3185
3186 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3187
3188 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3189
3190 * lisp.h (clip_to_bounds): Adjust prototype.
3191
3192 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3193
3194 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3195
3196 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3197
3198 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3199
3200 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3201 cleanup.
3202
3203 * lisp.h: Change the definition of all marker.c functions that
3204 take and return buffer stuff to be EMACS_INT instead of int.
3205
3206 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3207 (buf_charpos_to_bytepos, bytepos_to_charpos)
3208 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3209 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3210 for all buffer positions.
3211
3212 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3213
3214 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3215 (split_interval_right, find_interval, next_interval)
3216 (delete_node, delete_interval, interval_deletion_adjustment)
3217 (adjust_intervals_for_deletion, merge_interval_right)
3218 (merge_interval_left, graft_intervals_into_buffer)
3219 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3220
3221 * intervals.h (traverse_intervals): Update prototype.
3222
3223 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3224
3225 * indent.c (compute_motion): Use EMACS_INT for arguments to
3226 region_cache_forward.
3227
3228 * region-cache.c (struct boundary, struct region_cache):
3229 Use EMACS_INT for positions.
3230 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3231 (delete_cache_boundaries, set_cache_region)
3232 (invalidate_region_cache, know_region_cache)
3233 (region_cache_forward, region_cache_backward, pp_cache):
3234 Use EMACS_INT for buffer positions.
3235
3236 * region-cache.h (know_region_cache, invalidate_region_cache)
3237 (region_cache_forward, region_cache_backward): Adjust prototypes.
3238
3239 * search.c (string_match_1, fast_c_string_match_ignore_case)
3240 (looking_at_1, scan_buffer, scan_newline)
3241 (find_next_newline_no_quit, find_before_next_newline)
3242 (search_command, trivial_regexp_p, search_buffer, simple_search)
3243 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3244 and string positions and length.
3245
3246 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3247 (find_before_next_newline): Adjust prototypes.
3248
3249 * editfns.c (transpose_markers, update_buffer_properties)
3250 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3251 (get_pos_property, Fconstrain_to_field)
3252 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3253 (Fchar_after, Fchar_before, Finsert_char)
3254 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3255 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3256 Use EMACS_INT for buffer and string position variables.
3257 (Finsert_char): Protect against too large insertions.
3258
3259 * lisp.h (clip_to_bounds): Adjust prototype.
3260
3261 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3262 (balance_an_interval, split_interval_right, split_interval_left)
3263 (find_interval, next_interval, update_interval)
3264 (adjust_intervals_for_insertion, delete_node, delete_interval)
3265 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3266 (offset_intervals, merge_interval_right, merge_interval_left)
3267 (graft_intervals_into_buffer, adjust_for_invis_intang)
3268 (move_if_not_intangible, get_local_map, copy_intervals)
3269 (copy_intervals_to_string, compare_string_intervals)
3270 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3271 and for interval tree size.
3272
3273 * intervals.h (traverse_intervals, split_interval_right)
3274 (split_interval_left, find_interval, offset_intervals)
3275 (graft_intervals_into_buffer, copy_intervals)
3276 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3277 (update_interval): Adjust prototypes.
3278
3279 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3280 Use EMACS_INT for buffer position variables and arguments.
3281
3282 * composite.c (get_composition_id, find_composition)
3283 (run_composition_function, compose_text)
3284 (composition_gstring_width, autocmp_chars)
3285 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3286 for buffer positions and string length variables and arguments.
3287
3288 * composite.h (get_composition_id, find_composition, compose_text)
3289 (composition_gstring_width): Adjust prototypes.
3290
3291 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3292
3293 * xdisp.c (store_mode_line_noprop, display_mode_element):
3294 Use EMACS_INT for string positions.
3295
3296 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3297 position arguments.
3298
3299 * intervals.h (get_property_and_range): Adjust prototype.
3300
3301 * character.c (parse_str_as_multibyte, str_as_multibyte)
3302 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3303 (string_count_byte8, string_escape_byte8, c_string_width)
3304 (strwidth, lisp_string_width, multibyte_chars_in_text):
3305 Use EMACS_INT for string length variables and arguments.
3306
3307 * character.h (parse_str_as_multibyte, str_as_multibyte)
3308 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3309 (c_string_width, strwidth, lisp_string_width):
3310 Adjust prototypes.
3311
3312 * font.c (font_intern_prop): Use EMACS_INT for string length
3313 variables.
3314
3315 * font.c (font_intern_prop): Use EMACS_INT for string length
3316 variables.
3317
3318 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3319 variables.
3320
3321 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3322 (Fmake_string): Protect against too large strings.
3323 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3324 (live_misc_p): Use ptrdiff_t instead of int for pointer
3325 differences.
3326 (string_bytes, check_sblock, check_string_free_list)
3327 (allocate_string_data, compact_small_strings, Fmake_string)
3328 (Fmake_bool_vector, make_string, make_unibyte_string)
3329 (make_multibyte_string, make_string_from_bytes)
3330 (make_specified_string_string, Fmake_list, Fmake_vector):
3331 Use EMACS_INT for string length variables and arguments.
3332 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3333 (Fpurecopy): Use EMACS_INT for string size.
3334 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3335 for vector size.
3336
3337 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3338 (make_string_from_bytes, make_specified_string_string)
3339 (make_pure_string, string_bytes, check_point_in_composition):
3340 Adjust prototypes.
3341
3342 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3343
3344 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3345 (check_translation): Use EMACS_INT for buffer positions and
3346 length.
3347
3348 * undo.c (record_marker_adjustment, record_delete)
3349 (record_change, record_point, record_insert)
3350 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3351 buffer positions.
3352
3353 * lisp.h (record_marker_adjustment, record_delete)
3354 (record_change, record_point, record_insert)
3355 (record_property_change, Fprimitive_undo): Adjust prototypes.
3356
3357 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3358 Eli Zaretskii <eliz@gnu.org>
3359
3360 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3361
3362 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3363
3364 * minibuf.c (Fminibuffer_contents)
3365 (Fminibuffer_contents_no_properties)
3366 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3367 positions.
3368
3369 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3370 mark.
3371
3372 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3373 (allocate_string_data): Accept EMACS_INT for string length.
3374
3375 * editfns.c (Ffield_string, Ffield_string_no_properties)
3376 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3377 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3378 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3379 (Ffield_end): Use EMACS_INT for buffer positions.
3380
3381 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3382 point with mark.
3383
3384 * lisp.h (allocate_string_data, make_uninit_string)
3385 (make_uninit_multibyte_string, make_buffer_string)
3386 (make_buffer_string_both): Adjust prototypes.
3387
3388 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3389
3390 * xml.c: Switch to GNU indentation.
3391 (make_dom): Change parse tree format to match xml.el.
3392 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3393 (Fxml_parse_string_internal): Rename from xml-parse-string.
3394
3395 2010-09-22 Kenichi Handa <handa@m17n.org>
3396
3397 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3398 only if we are not at a composition.
3399 (set_iterator_to_next): Give it->end_charpos to
3400 composition_compute_stop_pos.
3401 (set_iterator_to_next, next_element_from_buffer): Likewise.
3402
3403 * dispnew.c (buffer_posn_from_coords): Fix position when the
3404 current display element is a grapheme cluster in bidi-reordered
3405 region.
3406
3407 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3408
3409 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3410 the regions may overlap.
3411
3412 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
3413
3414 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3415
3416 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3417
3418 * emacs.c: Do not include sys/ioctl.h, not needed.
3419
3420 * doprnt.c: Do not include stdlib.h, config.h does it.
3421 Move #include before macro definition.
3422
3423 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3424
3425 * Makefile.in (temacs): Link using $(CC) not $(LD).
3426 (LD_FIRSTFLAG): Define using autoconf.
3427 (LD): Remove.
3428
3429 Remove HAVE_TERMIOS definitions.
3430 * s/usg5-4-common.h (HAVE_TERMIOS):
3431 * s/template.h (HAVE_TERMIOS):
3432 * s/gnu-linux.h (HAVE_TERMIOS):
3433 * s/darwin.h (HAVE_TERMIOS):
3434 * s/cygwin.h (HAVE_TERMIOS):
3435 * s/bsd-common.h (HAVE_TERMIOS):
3436 * s/aix4-2.h (HAVE_TERMIOS):
3437 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3438 defined on all non-MS platforms.
3439 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3440
3441 * xterm.c (xt_action_hook): Use const.
3442
3443 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
3444
3445 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3446 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3447 (gethostname) [!HAVE_SOCKETS]: Remove.
3448 (SOCK_REPLACE_HANDLE): Remove macro.
3449 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3450 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3451 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3452 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3453
3454 2010-09-18 Eli Zaretskii <eliz@gnu.org>
3455
3456 * deps.mk (xml.o): Add dependencies.
3457
3458 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3459 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
3460
3461 * bidi.c (bidi_paragraph_init): Accept an additional argument
3462 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3463 search back until a paragraph with a strong directional character
3464 is found, and use that to determine paragraph's base direction.
3465
3466 * dispextern.h (bidi_paragraph_init): Update prototype.
3467
3468 2010-09-17 Eli Zaretskii <eliz@gnu.org>
3469
3470 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3471 of w32api >= 3.15. (Bug#6989)
3472
3473 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3474
3475 * process.c (wait_reading_process_output): Don't message about
3476 accept-process-output unless the time limit really is zero.
3477
3478 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3479
3480 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3481 int/Lisp_Object mixup).
3482
3483 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3484
3485 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3486 not HELP.
3487
3488 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
3489
3490 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3491 bar's pixel width to Lisp (Bug#7048).
3492
3493 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3494
3495 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3496
3497 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3498
3499 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3500 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3501
3502 2010-09-17 Kenichi Handa <handa@m17n.org>
3503
3504 * ftfont.c (ftfont_check_otf): Fix previous change.
3505
3506 2010-09-14 Kenichi Handa <handa@m17n.org>
3507
3508 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3509 existence of GSUB or GPOS.
3510
3511 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3512
3513 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3514
3515 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3516
3517 * xml.c (parse_buffer): Rename to parse_string(), since that's
3518 what it does.
3519 (parse_string): Return nil when the document can't be parsed.
3520
3521 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
3522
3523 * xterm.c (get_current_vm_state): New function.
3524 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3525 want_fullscreen so set_wm_state calls are few (Bug#7013).
3526 (x_handle_net_wm_state): Move code to get_current_vm_state and
3527 call that function.
3528
3529 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
3530
3531 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3532
3533 2010-09-14 Kenichi Handa <handa@m17n.org>
3534
3535 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3536 we may use designation or locking-shift.
3537
3538 2010-09-14 Kenichi Handa <handa@m17n.org>
3539
3540 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3541 sequence when the source is multibyte.
3542
3543 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3544
3545 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3546 Don't make first argument optional. Doc fix.
3547
3548 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3549
3550 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3551 parameters for the doc string.
3552
3553 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3554
3555 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3556
3557 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3558
3559 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3560 (syms_of_fns): Don't defsubr Sy_or_n_p.
3561 * lisp.h: Don't declare Fy_or_n_p.
3562 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3563
3564 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3565
3566 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3567
3568 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3569
3570 * xml.c: New file.
3571 (Fhtml_parse_buffer): New function to interface to the libxml2
3572 html parsing function.
3573
3574 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
3575
3576 * biditype.h: Regenerate.
3577
3578 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3579
3580 * nsimage.m (ns_load_image): Check argument types.
3581
3582 * image.c: Remove all uses of gcpro.
3583 (xpm_load): Check all lisp types.
3584 (pbm_load): Likewise.
3585 (png_load): Likewise.
3586 (jpeg_load): Likewise.
3587 (tiff_load): Likewise.
3588 (gif_load): Likewise.
3589 (imagemagick_load_image): Likewise.
3590 (imagemagick_load): Likewise.
3591 (svg_load): Likewise.
3592 (gs_load): Likewise.
3593
3594 2010-09-04 Eli Zaretskii <eliz@gnu.org>
3595
3596 * w32uniscribe.c (uniscribe_shape): Update commentary.
3597 Don't try to reorder grapheme clusters, since LGSTRING should always
3598 hold them in the logical order.
3599 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3600 return glyph codes in the logical order.
3601
3602 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3603
3604 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
3605 (imagemagick_load_image): Fix type mismatch.
3606 (Fimagemagick_types): Likewise. Doc fix.
3607
3608 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3609
3610 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3611
3612 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3613
3614 * xselect.c: Remove declaration of cut-buffer objects and functions.
3615 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3616 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3617 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3618 (Fx_rotate_cut_buffers_internal): Remove.
3619 (syms_of_xselect): Remove defsubr of above.
3620 Remove intern of QCUT_BUFFERn.
3621
3622 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3623
3624 * cmds.c (Vblink_paren_function): Remove.
3625 (internal_self_insert): Make it insert N chars at a time.
3626 Don't call blink-paren-function.
3627 (Fself_insert_command): Adjust accordingly.
3628 (syms_of_cmds): Don't declare blink-paren-function.
3629
3630 2010-08-31 Kenichi Handa <handa@m17n.org>
3631
3632 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3633 characters.
3634
3635 * term.c (encode_terminal_code): Fix the previous change.
3636 (produce_glyphs): Don't set it->char_to_display here.
3637 Don't handle unibyte-display-via-language-environment here.
3638 (produce_special_glyphs): Set temp_it.char_to_display before
3639 calling produce_glyphs.
3640
3641 * xdisp.c (get_next_display_element): Set it->char_to_display
3642 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3643 characters.
3644 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3645 calling PRODUCE_GLYPHS.
3646 (append_space_for_newline): Save and store it->char_to_display.
3647 Set it->char_to_display before calling PRODUCE_GLYPHS.
3648 (extend_face_to_end_of_line): Set it->char_to_display before
3649 calling PRODUCE_GLYPHS.
3650 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3651 character to its byte value.
3652 (get_char_glyph_code): New function.
3653 (produce_stretch_glyph): Set it2.char_to_display too before
3654 calling x_produce_glyphs.
3655 (x_produce_glyphs): Simplify by using the same code for ASCII and
3656 non-ASCII characters. Don't set it->char_to_display here.
3657 Don't handle unibyte-display-via-language-environment here. For a
3658 character of no glyph, use font->space_width instead of FONT_WIDTH.
3659
3660 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3661
3662 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3663
3664 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
3665
3666 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3667
3668 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3669
3670 * marker.c (Fcopy_marker): Make the first arg optional.
3671
3672 2010-08-30 Kenichi Handa <handa@m17n.org>
3673
3674 * composite.c (composition_update_it): Fix computing of
3675 cmp_it->width.
3676
3677 2010-08-29 Kenichi Handa <handa@m17n.org>
3678
3679 * term.c (encode_terminal_code): Encode byte chars to the
3680 corresponding bytes.
3681
3682 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3683
3684 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3685
3686 2010-08-26 Kenichi Handa <handa@m17n.org>
3687
3688 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3689 on calling composition_compute_stop_pos.
3690
3691 2010-08-25 Kenichi Handa <handa@m17n.org>
3692
3693 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3694 :otf.
3695
3696 * composite.c (composition_compute_stop_pos): Don't break
3697 composition at PT.
3698 (composition_reseat_it): Likewise. Fix calculation of character
3699 position starting a composition.
3700 (Fcomposition_get_gstring): Don't limit the number of components
3701 for automatic composition.
3702
3703 2010-08-25 Kenichi Handa <handa@m17n.org>
3704
3705 * composite.c (composition_compute_stop_pos): In forward search,
3706 pay attention to the possibility that some character after ENDPOS
3707 will be composed with charactrs before ENDPOS.
3708
3709 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
3710
3711 * keyboard.c (command_loop_1): Don't clobber primary selection
3712 during handle-switch-frame (Bug#6872).
3713
3714 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
3715
3716 * dbusbind.c: Accept UNIX domain sockets as bus address.
3717 (Fdbus_close_bus): New function.
3718 (Vdbus_registered_buses): New variable.
3719 (xd_initialize): Implement string as bus address.
3720 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3721 (Fdbus_get_unique_name, Fdbus_call_method)
3722 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3723 (Fdbus_method_error_internal, Fdbus_send_signal)
3724 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3725 check. This is done in xd_initialize_bus. Adapt doc string, if
3726 necessary.
3727 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3728 Vdbus_registered_buses.
3729 (Vdbus_registered_objects_table): Create hash.
3730
3731 2010-08-22 Juri Linkov <juri@jurta.org>
3732
3733 * keyboard.c (Fexecute_extended_command): Move reading a command name
3734 with `completing-read' to a new Elisp function `read-extended-command'.
3735 Call it to read a command to `function' (bug#5364, bug#5214).
3736
3737 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3738
3739 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3740
3741 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
3742
3743 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3744 instead of SAFE_ALLOCA.
3745
3746 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3747
3748 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3749 (Bug#6214).
3750
3751 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3752
3753 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3754
3755 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3756
3757 * doc.c (Fsnarf_documentation): Initialize skip_file before
3758 build-files test.
3759
3760 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
3761
3762 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3763 New definitions.
3764 (HAVE_TERMIO): Remove.
3765
3766 2010-08-22 Eli Zaretskii <eliz@gnu.org>
3767
3768 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3769
3770 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3771 for w32.
3772
3773 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3774 it's done in nt/config.nt.
3775
3776 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3777
3778 * unexcoff.c (report_error, make_hdr, write_segment)
3779 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3780 Convert argument lists and prototypes to ANSI C.
3781 (make_hdr, write_segment): Remove unused variables.
3782 (unexec): Remove commented-out line. Initialize `new' to shut up
3783 compiler warnings.
3784
3785 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3786
3787 Simplify termio code.
3788 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3789 HAVE_TERMIO code is obsolete.
3790 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3791 * systty.h: Do not define HAVE_TCATTR.
3792 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3793 Do not define EMACS_HAVE_TTY_PGRP. Only define
3794 EMACS_GET_TTY_PGRP for !DOS_NT.
3795 * sysdep.c: Include sysselect.h unconditionally. Do not include
3796 sys/ioctl.h and termios.h, systty.h does it.
3797 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
3798 (init_baud_rate): Remove HAVE_TERMIO code.
3799 (child_setup_tty): Remove HAVE_TERMIO code.
3800 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3801 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3802 (new_ltchars, new_tchars): Remove, unused.
3803 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
3804 code. Remove special casing for __mips__, it was a no-op.
3805 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
3806 (init_sys_modes): Remove HPUX special case.
3807 * process.c: Include stdlib.h unconditionally. Do not include
3808 fcntl.h, systty.h does it. Remove conditional code for
3809 HAVE_SERIAL, it is always true.
3810 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3811 always true when SIGNALS_VIA_CHARACTERS is true.
3812 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3813 !WINDOWSNT means HAVE_TERMIOS.
3814 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3815 conditional, which is true for all HAVE_TERMIOS systems.
3816 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3817 instead of HAVE_TERMIOS.
3818 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3819 EMACS_HAVE_TTY_PGRP.
3820 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3821 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3822 anyway.
3823
3824 2010-08-21 Eli Zaretskii <eliz@gnu.org>
3825
3826 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3827 mirroring pixel positions.
3828
3829 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3830
3831 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3832 write only.
3833 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3834 malloc_sbrk_used, nothing uses them.
3835
3836 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3837 defined, unconditionally defined in lisp.h.
3838
3839 * term.c: Do not include <termios.h>, systty.h does it.
3840
3841 * s/unixware.h (HAVE_TCATTR):
3842 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3843 systty.h defines it when HAVE_TERMIOS is defined.
3844
3845 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3846
3847 * dispnew.c (buffer_posn_from_coords): Fix last change for text
3848 terminals: add one-character offset for R2L lines.
3849
3850 * emacs.c <emacs_version>: Add a comment regarding
3851 msdos/mainmake.v2's dependency on the syntax of this declaration.
3852
3853 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3854
3855 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3856 position for R2L lines by mirroring the pixel position wrt the
3857 text are box. Improve commentary.
3858
3859 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3860
3861 * image.c (imagemagick_clear_image): Remove debugging output.
3862
3863 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3864
3865 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3866 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3867 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3868 self-insert-face.
3869 (syms_of_cmds): Initialize the new vars.
3870
3871 2010-08-19 Jason Rumney <jasonr@gnu.org>
3872
3873 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3874
3875 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3876
3877 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3878
3879 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3880
3881 2010-08-18 Eli Zaretskii <eliz@gnu.org>
3882
3883 * xterm.c (x_draw_bar_cursor):
3884 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3885 R2L, draw the bar cursor on its right rather than on its left.
3886
3887 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3888
3889 * eval.c (Fdefmacro): Only obey one declaration.
3890
3891 * casefiddle.c (casify_region): Setup gl_state.
3892
3893 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3894
3895 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3896
3897 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3898
3899 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
3900
3901 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
3902
3903 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3904 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3905 QPRIMARY => NXPrimaryPboard.
3906 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3907 NXPrimaryPboard => QPRIMARY.
3908 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3909 NXSecondaryPboard = SecondarySelection.
3910 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3911
3912 2010-08-18 Joakim Verona <joakim@verona.se>
3913
3914 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3915 defined:
3916 (imagemagick_image_p): New function to test for ImageMagic image.
3917 (imagemagick_load): New function to load ImageMagick image.
3918 (imagemagick_load_image): New function, helper for imagemagick_load.
3919 (imagemagick-types): New function.
3920 (Qimagemagick): New Lisp_object.
3921 (imagemagick-render-type): New variable, decides which renderer to use.
3922
3923 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3924
3925 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3926 is a string.
3927
3928 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3929
3930 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3931 x_set_tool_bar_position handler.
3932
3933 2010-08-17 Eli Zaretskii <eliz@gnu.org>
3934
3935 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3936 x_set_tool_bar_position handler, needed to support changes from
3937 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3938
3939 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3940
3941 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3942 declaration (Bug#6863).
3943 (syms_of_nsselect): Don't intern QPRIMARY.
3944
3945 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3946
3947 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3948
3949 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
3950
3951 * keyboard.c (command_loop_1): Avoid setting selection twice,
3952 since it's done in deactivate-mark as well.
3953 (Vselect_active_regions): Change default to t. Replace `lazy'
3954 with non-default value `only', meaning only set PRIMARY for
3955 temporarily active regions.
3956
3957 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3958 select-active-regions.
3959
3960 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3961
3962 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3963 isn't a string.
3964
3965 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3966
3967 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3968
3969 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3970
3971 * keyboard.c (parse_tool_bar_item): malloc buf.
3972 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3973 new_lbl (Bug#6855).
3974
3975 2010-08-14 Eli Zaretskii <eliz@gnu.org>
3976
3977 * xterm.c (x_draw_stretch_glyph_string):
3978 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3979 the cursor on the right edge of the stretch glyph.
3980
3981 * xdisp.c (window_box_right_offset, window_box_right):
3982 Fix commentary.
3983
3984 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3985 direction when point is inside a run of whitespace characters.
3986
3987 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3988
3989 2010-08-14 Jason Rumney <jasonr@gnu.org>
3990
3991 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3992
3993 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
3994
3995 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3996
3997 2010-08-13 Jason Rumney <jasonr@gnu.org>
3998
3999 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4000 (MessageBoxW_Proc): New function typedef.
4001 (unicode-message-box): New function pointer.
4002 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4003
4004 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4005
4006 * frame.h (Qtool_bar_position): Declare.
4007
4008 * xfns.c (Fx_create_frame): Call x_default_parameter for
4009 Qtool_bar_position.
4010
4011 2010-08-13 Eli Zaretskii <eliz@gnu.org>
4012
4013 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4014 (report_error, report_error_1): Ditto.
4015 (write_segment): Remove "#if 0" unused code.
4016 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4017 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4018 (start_of_text): Remove unused function (was used only if NO_REMAP
4019 was NOT defined).
4020
4021 * msdos.c (IT_set_face): Fix format string to match argument
4022 types.
4023 (IT_write_glyphs, IT_note_mode_line_highlight)
4024 (IT_set_frame_parameters): Remove unused variables.
4025 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4026 (IT_set_terminal_modes): Disambiguate expression in if clause.
4027 (Fmsdos_remember_default_colors): Return Qnil.
4028 (IT_set_frame_parameters): Add parens to disambiguate boolean
4029 expression for logging the cursor type to termscript.
4030 (keyboard_layout_list, keypad_translate_map)
4031 (grey_key_translate_map): Add braces in inner initializers.
4032 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4033 (dos_rawgetc): Remove unused label.
4034 (XMenuActivate): Add braces to remove ambiguous `else'.
4035 (dos_ttraw): Always return a value.
4036 (spawnve): Declare.
4037 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4038
4039 * dosfns.h (x_set_title): Declare.
4040
4041 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4042 Remove unused variables.
4043
4044 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4045 variables.
4046 (init_dosfns): Declare get_lim_data.
4047 (system_process_attributes): Declare Fget_internal_run_time.
4048
4049 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4050 list to be consistent with menu.h.
4051
4052 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4053 warnings due to mixing of "char *" and "const char *".
4054
4055 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4056
4057 Introduce a new comment style "c" flag.
4058 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4059 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4060 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4061 (syntax_prefix_flag_p): New function.
4062 (Fstring_to_syntax): Understand new "c" flag.
4063 (Finternal_describe_syntax_value): Recognize new flag; use the
4064 SYNTAX_FLAGS_* macros.
4065 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4066 comment style to accomodate the new styles.
4067 (back_comment, forw_comment, Fforward_comment, scan_lists)
4068 (scan_sexps_forward): Update code to obey the new comment style flag.
4069
4070 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4071
4072 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4073
4074 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4075
4076 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4077 first.
4078 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
4079
4080 * gtkutil.h (xg_check_special_colors): Declare.
4081
4082 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4083 (xg_create_frame_widgets): Connect theme name changes to
4084 style_changed_cb.
4085
4086 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4087 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4088 (x_term_init): Use char[] display_opt and name_opt instead of
4089 string literal. file is const char*.
4090
4091 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4092 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4093 props. Free them at the end.
4094
4095 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4096
4097 * xrdb.c (get_system_app): Make path const and use char *p for
4098 non-const char.
4099
4100 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4101 (xmenu_show): error parameter is const char **. pane_string is const
4102 char *.
4103 (button_names): Is const char *.
4104 (xdialog_show): error_name and pane_string is const.
4105
4106 * process.h (synch_process_death): Is const char*.
4107
4108 * w32menu.c (w32_menu_show):
4109 * nsmenu.m (ns_menu_show): error parameter is const char **.
4110
4111 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4112 is const char **.
4113
4114 * menu.c (Fx_popup_menu): error_name is const.
4115
4116 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4117 with unsigned char and XtPointer with void *.
4118
4119 * gtkutil.h: Replace widget_value with struct _widget_value.
4120 (enum button_type, struct _widget_value): Remove and use the one from
4121 keyboard.h.
4122
4123 * gtkutil.c (get_utf8_string): Always return an allocated string.
4124 Parameter is const.
4125 (create_dialog, xg_create_one_menuitem, create_menus)
4126 (xg_item_label_same_p, xg_update_menu_item): Free result from
4127 get_utf8_string.
4128 (xg_separator_p, xg_item_label_same_p): label is const.
4129
4130 * font.h (font_open_by_name): Make name const.
4131
4132 * font.c (font_open_by_name): Make name const.
4133
4134 * floatfns.c (matherr): Use a const char* variable for x->name.
4135
4136 * emacs.c (main): Pass char[] to putenv instead of literal.
4137
4138 * callproc.c (synch_process_death): Make const.
4139 (Fcall_process): Make signame const.
4140
4141 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4142 (addDisplayItemWithImage): Use const char*.
4143
4144 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4145 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4146
4147 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4148
4149 * keyboard.h (_widget_value): name, value and key are const char*.
4150
4151 * unexmacosx.c (unexec_error): Use const char *.
4152
4153 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4154
4155 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4156 (font_parse_name, font_open_by_name):
4157 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4158 (font_parse_name, font_open_by_name): Remove const.
4159
4160 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4161
4162 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4163 definition.
4164
4165 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4166 * m/amdx86-64.h: Likewise.
4167 * m/arm.h: Likewise.
4168 * m/hp800.h: Likewise.
4169 * m/ia64.h: Likewise.
4170 * m/ibmrs6000.h: Likewise.
4171 * m/ibms390.h: Likewise.
4172 * m/intel386.h: Likewise.
4173 * m/iris4d.h: Likewise.
4174 * m/m68k.h: Likewise.
4175 * m/macppc.h: Likewise.
4176 * m/mips.h: Likewise.
4177 * m/sh3.h: Likewise.
4178 * m/sparc.h: Likewise.
4179 * m/template.h: Likewise.
4180 * m/vax.h: Likewise.
4181 * m/xtensa.h: Likewise.
4182 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4183 WORDS_BIG_ENDIAN.
4184 * lisp.h: Likewise.
4185 * md5.c: Likewise.
4186 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4187
4188 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4189
4190 Use const char* instead of char*.
4191 Reduce the number of warnings with -Wwrite-strings.
4192 * xrdb.c (get_environ_db, get_system_name):
4193 * unexelf.c (find_section):
4194 * term.c (string_cost, string_cost_one_line, per_line_cost)
4195 (get_named_tty, init_tty):
4196 * sysdep.c (sys_subshell):
4197 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4198 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4199 * search.c (Freplace_match):
4200 * process.c (Fmake_network_process, send_process, init_process):
4201 * lread.c (Fload, init_lread):
4202 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4203 * keyboard.c (parse_tool_bar_item, struct event_head):
4204 * gtkutil.h (xg_get_font_name):
4205 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4206 (make_widget_for_menu_item, make_menu_item, create_menus)
4207 (xg_make_tool_item):
4208 * font.c (parse_matrix, font_parse_name):
4209 * floatfns.c (rounding_driver, float_error_fn_name):
4210 * filelock.c (get_boot_time_1, lock_file_1):
4211 * fileio.c (barf_or_query_if_file_exists, check_writable):
4212 * editfns.c (get_system_name, get_operating_system_release)
4213 (Fencode_time, Fset_time_zone_rule):
4214 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4215 * buffer.c (defvar_per_buffer): Use const.
4216
4217 2010-08-08 Kenichi Handa <handa@m17n.org>
4218
4219 * charset.c: Include <stdlib.h>.
4220 (struct charset_sort_data): New struct.
4221 (charset_compare): New function.
4222 (Fsort_charsets): New function.
4223 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4224
4225 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4226 number in CTEXT extended segment.
4227
4228 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4229
4230 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4231 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4232
4233 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4234
4235 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4236 (Fhash_table_size): Fix typos in docstrings.
4237 (Fmake_hash_table): Doc fix.
4238
4239 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4240
4241 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4242 Doc fix (bug#5625).
4243
4244 2010-08-08 Ken Brown <kbrown@cornell.edu>
4245
4246 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4247 the MSDOS definition.
4248
4249 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4250
4251 Use const char* instead of char*.
4252 * xterm.c (x_create_toolkit_scroll_bar):
4253 * xfont.c (xfont_list_pattern):
4254 * xfns.c (x_default_scroll_bar_color_parameter)
4255 (xic_create_fontsetname, x_default_font_parameter)
4256 (x_screen_planes):
4257 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4258 (store_mode_line_string, decode_mode_spec, display_string):
4259 * menu.c (digest_single_submenu):
4260 * keymap.h (initial_define_key, initial_define_lispy_key):
4261 * keymap.c (initial_define_key, initial_define_lispy_key):
4262 * image.c (image_error, image_keyword):
4263 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4264 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4265 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4266 (ftfont_list, ftfont_match):
4267 * frame.c (frame_parm_table):
4268 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4269 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4270 (font_add_log, font_deferred_log):
4271 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4272 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4273 (font_add_log, font_deferred_log):
4274 * emacs.c (argmatch):
4275 * dispextern.h (struct it):
4276 * coding.c (ENCODE_DESIGNATION):
4277 * charset.c (define_charset_internal): Use const.
4278
4279 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4280
4281 * xrdb.c: Remove include guard.
4282 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4283 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4284 realloc->xrealloc instead of using #defines.
4285
4286 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4287
4288 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4289 * editfns.c (Fline_beginning_position, Fline_end_position):
4290 State in the doc strings that start and end of line are in the
4291 logical order.
4292
4293 * xdisp.c (display_line): Move the handling of overlay arrow after
4294 the call to find_row_edges. (Bug#6699)
4295
4296 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4297
4298 * keyboard.c (command_loop_1):
4299 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4300
4301 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4302
4303 * insdel.c (prepare_to_modify_buffer): Save active region text to
4304 Vsaved_region_selection.
4305
4306 * xselect.c (QPRIMARY): Move to keyboard.c.
4307
4308 * keyboard.c (Vselect_active_regions): Move from simple.el.
4309 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4310 (command_loop_1): Set window selection prior to deactivating the mark.
4311
4312 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4313
4314 * alloc.c (lisp_malloc):
4315 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4316 * charset.h (emacs_mule_charset):
4317 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4318 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4319 (bitch_at_user):
4320 * lisp.h (Fcheck_coding_system, Fget_text_property)
4321 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4322 Remove duplicate declarations.
4323
4324 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4325
4326 * process.c: Simplify include logic.
4327
4328 * keyboard.h (quit_char): Add declaration.
4329 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4330 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4331 Add declarations.
4332 * sysdep.c:
4333 * w32.c: Remove the above declarations.
4334
4335 Remove extern declarations in .c files, .h files have them.
4336 * xterm.c:
4337 * xdisp.c:
4338 * msdos.c:
4339 * image.c:
4340 * gtkutil.c:
4341 * fileio.c:
4342 * eval.c: Remove declarations.
4343
4344 * frame.c (frame_params): Make const.
4345
4346 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4347
4348 * emacs.c (emacs_copyright, emacs_version): Make static.
4349 (Vinitial_window_system, Vauto_save_list_file_name)
4350 (Vinhibit_redisplay): Remove declarations.
4351 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4352 for AIX.
4353
4354 Use const for some arrays and functions.
4355 * xterm.h (xg_set_icon_from_xpm_data):
4356 * xfns.c (xg_set_icon_from_xpm_data):
4357 * term.c (fkeys):
4358 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4359 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4360 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4361 (frame.c frame_parms):
4362 * emacs-icon.h (gnu_xpm_bits):
4363 * callint.c (callint_argfuns): Use const.
4364
4365 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4366
4367 * sysdep.c: Move include term.h last of includes (Bug#6812).
4368
4369 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4370
4371 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4372
4373 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4374
4375 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4376
4377 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4378
4379 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4380
4381 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4382
4383 * xterm.h (x_get_focus_frame): Declare.
4384
4385 * keyboard.h (poll_for_input_1): Unconditionally declare.
4386
4387 * nsterm.h (x_set_menu_bar_lines): Declare.
4388
4389 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4390
4391 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4392
4393 * window.c: Include menu.h.
4394
4395 * unexmacosx.c (print_region_list, print_regions)
4396 (build_region_list, find_emacs_zone_regions)
4397 (unexec_regions_merge, read_load_commands, dump_it)
4398 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4399
4400 * term.c: Check HAVE_SYS_IOCTL_H.
4401
4402 * sysdep.c: Check HAVE_TERM_H.
4403
4404 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
4405
4406 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4407 (ns_ring_bell, ns_defined_color, hide_hourglass)
4408 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4409 Convert to ANSI C prototypes.
4410 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4411 before code.
4412
4413 * nsterm.h : Include sysselect.h.
4414 (x_sync, x_get_focus_frame, x_set_mouse_position)
4415 (x_set_mouse_pixel_position, x_make_frame_visible)
4416 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4417 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4418 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4419 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
4420 Declare.
4421
4422 * nsmenu.m (popup_activated, name_is_separator)
4423 (syms_of_nsmenu): Convert to ANSI C prototypes.
4424 (runMenuAt): Prototypes and move declarations before code.
4425
4426 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4427
4428 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4429 prototypes.
4430
4431 * nsfns.m (have_menus_p, ns_display_info_for_name)
4432 (x_set_cursor_type, ns_appkit_version_str)
4433 (ns_appkit_version_int, ns_do_applescript)
4434 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4435 (syms_of_nsfns): Convert to ANSI C prototypes.
4436
4437 * menu.h (x_set_menu_bar_line): Declare.
4438 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4439
4440 * lisp.h (fmod_float): Declare.
4441
4442 * image.c (xpm_scan, xpm_make_color_table_v)
4443 (xpm_put_color_table_v, xpm_get_color_table_v)
4444 (xpm_make_color_table_h, xpm_put_color_table_h)
4445 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4446 (xpm_load): Convert to ANSI C prototypes.
4447
4448 * emacs.c: Include nsterm.h if HAVE_NS.
4449
4450 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4451
4452 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4453
4454 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4455 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4456 (socket_options): Use const char* for name.
4457
4458 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4459
4460 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4461
4462 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4463 Don't declare xmalloc_widget_value and digest_single_submenu.
4464
4465 * w32font.c (Qlatin): Remove declaration.
4466
4467 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4468
4469 * dired.c (compile_pattern): Restore declaration.
4470
4471 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4472
4473 Remove extern declarations in .c files, .h files have them.
4474 * data.c:
4475 * dired.c:
4476 * editfns.c:
4477 * filelock.c:
4478 * fns.c:
4479 * font.c:
4480 * fontset.c:
4481 * frame.c:
4482 * fringe.c:
4483 * ftfont.c:
4484 * gtkutil.c:
4485 * indent.c:
4486 * keyboard.c:
4487 * keymap.c:
4488 * lread.c:
4489 * menu.c:
4490 * print.c:
4491 * search.c:
4492 * sound.c:
4493 * window.c:
4494 * xdisp.c:
4495 * xfaces.c:
4496 * xfns.c:
4497 * xfont.c:
4498 * xftfont.c:
4499 * xmenu.c:
4500 * xterm.c: Remove declarations.
4501
4502 Cleanup syssignal.h.
4503 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4504 (main_thread): Move down to remove #ifdef.
4505 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4506 Remove conditional definition following unconditional ones.
4507
4508 * lisp.h: Remove HAVE_SHM code, unused.
4509 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4510 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4511 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4512 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4513 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4514 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4515 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4516 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4517 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4518 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4519 (Qwindow_scroll_functions, Vafter_load_alist)
4520 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4521 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4522 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4523 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4524 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4525 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4526 (initial_argv, last_nonmenu_event, load_in_progress)
4527 (noninteractive_need_newline, scroll_margin): Add declarations.
4528
4529 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4530 Remove declarations, menu.h has them.
4531 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4532 (Vinput_method_function, Qinput_method_function)
4533 (Qevent_symbol_element_mask, last_event_timestamp):
4534 * dispextern.h (Voverflow_newline_into_fringe):
4535 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4536 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4537 (syms_of_w32font, syms_of_nsfont):
4538 * fontset.h (find_font_encoding, Qlatin):
4539 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4540 (Vtool_bar_mode, set_frame_menubar):
4541 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4542 * xterm.h (Qx_gtk_map_stock):
4543 * keymap.h (meta_prefix_char): Add declarations.
4544
4545 * term.c: Remove dead code.
4546
4547 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4548 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4549 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4550 which is what was there before BSD_PGRPS was removed.
4551
4552 2010-08-05 Eli Zaretskii <eliz@gnu.org>
4553
4554 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4555
4556 * unexcoff.c: Renamed from unexec.c.
4557
4558 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4559
4560 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4561
4562 2010-08-03 Johan Bockgård <bojohan@gnu.org>
4563
4564 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4565 (Bug#6744)
4566
4567 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4568
4569 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4570 to TRUE if depth of screen is < 16.
4571
4572 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4573 USE_GTK_TOOLTIP.
4574 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4575 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4576 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
4577 USE_GTK_TOOLTIP.
4578 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4579
4580 * xterm.h (USE_GTK_TOOLTIP): New define.
4581 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4582
4583 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4584 to Control-D (Bug#6771).
4585
4586 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
4587
4588 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4589 Wording by Drew Adams <drew.adams@oracle.com>.
4590
4591 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4592
4593 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4594 ttip_lbl.
4595
4596 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4597 calling gtk_widget_queue_draw.
4598 (x_free_frame_resources): Call xg_free_frame_widgets.
4599
4600 * xfns.c (x_gtk_use_system_tooltips): New variable.
4601 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4602 new gtkutil tooltip functions to show the tooltip.
4603 (Fx_hide_tip): Call xg_hide_tooltip.
4604 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4605
4606 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4607 (xg_show_tooltip, xg_hide_tooltip): Declare.
4608
4609 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
4610 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4611 New functions.
4612 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4613 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4614 Remove code that is commented out.
4615
4616 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4617
4618 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4619
4620 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
4621
4622 * xselect.c (x_own_selection): Use list4.
4623
4624 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4625
4626 * buffer.c (Qwindow): Do not define, already defined in data.c.
4627 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4628
4629 2010-07-29 Chad Brown <yandros@mit.edu>
4630
4631 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4632 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4633 * config.in: Undef HAVE_DIRENT_H.
4634 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
4635 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
4636
4637 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4638
4639 Rename s/usg5-4.h -> s/usg5-4-common.h.
4640 * s/usg5-4.h: Rename file to ...
4641 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4642 * s/unixware.h:
4643 * s/sol2-6.h:
4644 * s/irix6-5.h: Update includes accordingly.
4645
4646 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4647
4648 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4649
4650 * xterm.h (struct x_output): Add toolbar_top_height,
4651 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4652 Remove toolbar_height.
4653 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
4654 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4655 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4656 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4657
4658 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4659
4660 * xfns.c (x_set_tool_bar_position): New function.
4661 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4662 (x_frame_parm_handlers): Add x_set_tool_bar_position.
4663 (syms_of_xfns): If USE_GTK, provide move-toolbar.
4664
4665 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4666 and FRAME_TOOLBAR_LEFT_WIDTH.
4667
4668 * gtkutil.h (xg_change_toolbar_position): Declare.
4669
4670 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4671 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4672 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4673 (xg_create_frame_widgets): Create a hobox for placing widgets
4674 vertically. Use gtk_box_pack_start.
4675 (xg_height_or_width_changed): Rename from xg_height_changed.
4676 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4677 (xg_update_frame_menubar, free_frame_menubar): Change to
4678 xg_height_or_width_changed.
4679 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4680 size correctly. Remove hardcoded 4, instead use handlebox size -
4681 toolbar size.
4682 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
4683 size correctly. Use handlebox size + toolbar size as additional size.
4684 (xg_pack_tool_bar): POS is a new parameter.
4685 Set orientation of tool bar based on pos.
4686 Only make handlebox_widget if NULL.
4687 Check if tool bar goes to vbox or hbox depending on pos.
4688 (xg_update_tool_bar_sizes): New function.
4689 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
4690 height, call xg_update_tool_bar_sizes instead.
4691 (free_frame_tool_bar): Remove from hbox or vbox depending on
4692 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4693 (xg_change_toolbar_position): New function.
4694
4695 * frame.h (struct frame): Add tool_bar_position.
4696 (Qbottom): Declare.
4697
4698 * frame.c (Qtool_bar_position): New variable.
4699 (make_frame): Set tool_bar_position to Qtop.
4700 (frame_parms): Add tool-bar-position.
4701 (x_report_frame_params): Store tool_bar_position.
4702 (x_set_fringe_width): Reset wm size hint after fringe changes.
4703
4704 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4705
4706 Make lisp_time_argument declaration work on all systems.
4707 * lisp.h (lisp_time_argument): Move declaration ...
4708 * systime.h (lisp_time_argument): ... here
4709 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4710
4711 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4712
4713 * vm-limit.c (POINTER): Add typedef for it.
4714 (start_of_data): Change return type from POINTER to char *.
4715
4716 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4717 HAVE_WINDOW_SYSTEM.
4718
4719 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4720
4721 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4722 Remove reference to __osf__, unused.
4723
4724 * mem-limits.h: Remove duplicated includes.
4725 (NULL): Remove definition, unused.
4726 (POINTER): Remove definition.
4727 (start_of_data): Use char* in prototype, as the function
4728 definition does.
4729
4730 Remove extern declarations from .c files, and them to .h files.
4731 * keyboard.h (Qhelp_echo, waiting_for_input)
4732 (input_available_clear_time, ignore_mouse_drag_p)
4733 (Vdouble_click_time, real_this_command, Vthis_original_command):
4734 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4735 (Voverriding_local_map_menu_flag):
4736 * lisp.h (Qinteractive_form, use_file_dialog)
4737 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4738 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4739 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4740 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4741 (Qfunction, debug_on_next_call, Qfield)
4742 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4743 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4744 (Qfile_directory_p, Qinsert_file_contents)
4745 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4746 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4747 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4748 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4749 (Qminibuffer_prompt)
4750 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4751 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4752 (gray_bitmap_bits, xic_create_fontsetname):
4753 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4754
4755 * xsmfns.c (Vuser_login_name):
4756 * xrdb.c (Vdouble_click_time):
4757 * xfaces.c (xic_create_fontsetname):
4758 * w32select.c (waiting_for_input):
4759 * print.c (minibuffer_auto_raise):
4760 * msdos.c (Qhelp_echo):
4761 * macros.c (real_this_command):
4762 * keymap.c (Voverriding_local_map):
4763 * xterm.c (poll_for_input_1, gray_bitmap_width)
4764 (gray_bitmap_height, gray_bitmap_bits;
4765 * xmenu.c ( Voverriding_local_map)
4766 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4767 (use_file_dialog, Xt_app_con):
4768 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4769 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4770 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4771 (Qtool_bar_lines, ignore_mouse_drag_p):
4772 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4773 (Qrear_nonsticky, nconc2):
4774 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4775 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4776 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4777 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4778 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4779 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4780 (gc_in_progress):
4781 * doc.c (Voverriding_local_map, Qremap):
4782 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4783 (Vcompletion_regexp_list):
4784 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4785 (Qcompletion_ignore_case):
4786 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4787 (Vhistory_length, Vthis_original_command, real_this_command)
4788 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4789 * image.c (Qrisky_local_variable):
4790 * fontset.c (QCname):
4791 * fns.c (minibuffer_auto_raise, QCname):
4792 * dispnew.c (char_ins_del_cost):
4793 * composite.c (font_fill_lglyph_metrics):
4794 * cmds.c (Qface, Vtranslation_table_for_input):
4795 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4796 * ccl.c (charset_unicode):
4797 * callproc.c (Vtemporary_file_directory):
4798 * buffer.c (emacs_strerror): Remove extern declarations.
4799
4800 * data.c (Qwindow): Make non-static, used from other files too.
4801 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4802
4803 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4804 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4805 * s/usg5-4.h (COFF):
4806 * s/template.h:
4807 * s/msdos.h (COFF, NO_REMAP):
4808 * s/ms-w32.h (NO_REMAP):
4809 * s/hpux10-20.h (NO_REMAP):
4810 * m/sparc.h (SEGMENT_MASK):
4811 * m/m68k.h (NO_REMAP):
4812 * m/intel386.h (SEGMENT_MASK):
4813 * m/arm.h (NO_REMAP):
4814 * m/alpha.h (COFF):
4815 * m/template.h: Remove references to unused defines.
4816
4817 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4818
4819 * xsettings.c (Ftool_bar_get_system_style): Also check for
4820 Qtext_image_horiz.
4821
4822 * xdisp.c (Qtext_image_horiz): Define.
4823 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
4824 to documentation of tool-bar-style.
4825
4826 * lisp.h (Qtext_image_horiz): Declare.
4827
4828 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4829 style text_image_horiz.
4830
4831 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4832
4833 * emacs.c (Fkill_emacs): Remove return statement.
4834
4835 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4836 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
4837 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4838 Remove local extern declarations.
4839
4840 * xmenu.c: Do not included lwlib.h, not needed.
4841
4842 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4843
4844 * process.c: Move definitions earlier to minimize #ifdefs.
4845
4846 * xterm.h (x_get_customization_string, x_load_resources)
4847 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4848 (x_check_errors, x_property_data_to_lisp, defined_color)
4849 (xic_set_xfontset, x_defined_color): Use const.
4850
4851 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4852 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4853
4854 * xselect.c (selection_data_to_lisp_data)
4855 (x_property_data_to_lisp):
4856 * xrdb.c (x_get_string_resource, file_p)
4857 (x_get_customization_string, magic_file_p, search_magic_path)
4858 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4859 (x_get_string_resource): Use const.
4860
4861 * xfns.c: Include xlwmenu.h when USE_LUCID.
4862 (x_defined_color, xic_set_xfontset): Use const.
4863 (Fx_hide_tip): Remove local extern declaration.
4864
4865 * xfaces.c (Qmouse_face): Remove declaration.
4866 (face_color_gray_p, tty_defined_color, defined_color)
4867 (face_color_gray_p, face_color_supported_p): Add const.
4868
4869 * xdisp.c (do_mouse_tracking): Remove declaration.
4870 (add_to_log): Use const.
4871
4872 * minibuf.c (Qmouse_face): Remove declaration.
4873
4874 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4875
4876 * keyboard.h (do_mouse_tracking): Add declaration.
4877
4878 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4879 (QCdata, QCtype, Qcenter): Remove declarations.
4880
4881 * frame.c (x_get_resource_string, x_get_string_resource)
4882 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4883 (x_default_parameter): Use const.
4884
4885 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4886 (QCheight, QCsize, QCname): Remove declarations.
4887
4888 * emacs.c (main): Remove local extern declaration.
4889
4890 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4891 declarations.
4892
4893 * dispnew.c: Remove duplicate #include <unistd.h>.
4894 (update_window, update_frame_1, init_display): Remove local extern
4895 declarations.
4896
4897 * dispextern.h (add_to_log): Remove declaration.
4898 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4899 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4900
4901 * dired.c (scmp): Add const.
4902 (directory_files_internal): Remove local extern declaration.
4903
4904 * data.c (Finteractive_form): Use const.
4905
4906 * composite.c (syms_of_composite): Remove local extern declarations.
4907
4908 * charset.c (add_to_log): Remove declaration.
4909
4910 * character.c (strwidth, parse_str_to_multibyte): Add const.
4911
4912 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4913
4914 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4915
4916 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
4917 (Lisp_Subr): Make doc and intspec constant.
4918 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4919 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4920 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4921 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4922 (display_arg): Add declarations.
4923
4924 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
4925
4926 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4927
4928 * window.c (Fwindow_height): Doc fix (bug#6518).
4929
4930 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
4931
4932 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4933
4934 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4935
4936 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4937 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4938 functions.
4939
4940 * frame.h (Qtty_color_mode): Add declaration.
4941
4942 * lisp.h (Ftop_level, Fexit_recursive_edit)
4943 (Fabort_recursive_edit): Mark as NO_RETURN.
4944
4945 2010-07-26 Kenichi Handa <handa@m17n.org>
4946
4947 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
4948 number of glyphs gets smaller than the original length. (Bug#6621)
4949
4950 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
4951
4952 * lread.c (unreadpure, mapatoms_1): Make static.
4953
4954 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4955
4956 * terminfo.c (tparam): Fix prototype of tparm.
4957
4958 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4959
4960 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4961 find start of text segment.
4962 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4963 is defined.
4964
4965 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4966
4967 2010-07-25 Ken Brown <kbrown@cornell.edu>
4968
4969 * vm-limit.c (check_memory_limits): Fix previous change;
4970 accidentally reverted an earlier change.
4971
4972 2010-07-25 Ken Brown <kbrown@cornell.edu>
4973
4974 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4975 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4976
4977 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4978
4979 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4980 * dired.c (opendir, readdir): Fix prototypes.
4981 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4982 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4983 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4984 (telldir): Remove declaration.
4985 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4986 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4987 * syssignal.h (strsignal): Fix prototype.
4988 * term.c (tparam): Fix prototype.
4989 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4990 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4991 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4992 and __morecore.
4993 * w32gui.h (XParseGeometry): Fix prototype.
4994 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4995 * w32term.c (my_set_focus): Declare inside #if 0.
4996 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4997 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4998 (drain_message_queue, get_next_msg, post_msg, parse_button)
4999 (ClipboardSequence_Proc): Fix prototypes.
5000 (wait_for_sync): Remove declaration.
5001
5002 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
5003
5004 * w32fns.c (w32_to_x_color): Remove, unused.
5005
5006 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5007
5008 * lisp.h: Remove leftover P_.
5009
5010 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5011
5012 * ecrt0.c, unexalpha.c: Remove files, unused.
5013
5014 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5015
5016 * cmds.c (internal_self_insert): Make static.
5017 * lisp.h (internal_self_insert): Remove declaration.
5018
5019 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
5020
5021 * alloc.c (free_float):
5022 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5023 * frame.c (delete_frame_handler):
5024 * ralloc.c (reorder_bloc):
5025 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5026 Remove unused static functions.
5027
5028 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5029 it is called only from NS code.
5030
5031 * w32term.c (my_set_focus): #ifdef away; it is called only from
5032 "#ifdef 0" code.
5033
5034 * w32fns.c (x_edge_detection):
5035 * xfaces.c (may_use_scalable_font_p):
5036 Remove obsolete static declarations.
5037
5038 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
5039
5040 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5041 (emacs_blocked_realloc, uninterrupt_malloc):
5042 * fringe.c (w32_reset_fringes):
5043 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5044 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5045 * sound.c (be2hs, do_play_sound):
5046 * vm-limit.c (get_lim_data, ret_lim_data):
5047 * w32term.c (x_free_frame_resources):
5048 * xfaces.c (x_create_gc, x_free_gc):
5049 Convert definitions to standard C.
5050
5051 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5052
5053 * eval.c (Feval, Ffuncall): Use the new names.
5054
5055 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5056 (DEFUN): Add braces around the union initialisation and use ## to
5057 specify the right union alternative and avoid a cast.
5058
5059 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
5060
5061 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5062
5063 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
5064
5065 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5066
5067 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5068
5069 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5070 is related to the menu bar (Bug#6499).
5071 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
5072
5073 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5074
5075 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5076
5077 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5078
5079 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5080 i.e. don't put back ButtonRelease (Bug#6608).
5081
5082 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5083 instead of Window. Call xg_event_is_for_menubar when
5084 USE_GTK (Bug#6499).
5085
5086 * gtkutil.h (xg_event_is_for_menubar): Declare.
5087
5088 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5089
5090 2010-07-16 Eli Zaretskii <eliz@gnu.org>
5091
5092 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5093 when it's the same as the old foreground. (Bug#6609)
5094
5095 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5096
5097 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5098 widget is non-null (Bug#6645).
5099
5100 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5101
5102 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5103 Convert old-style definition.
5104
5105 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5106 timestamp argument.
5107
5108 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5109
5110 * fringe.c (update_window_fringes): Restore mistakenly reverted
5111 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5112
5113 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5114
5115 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5116 (SET_SAVED_KEY_EVENT): Remove (not used).
5117 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5118 remove size parameter.
5119 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5120 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5121 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5122 ButtonRelease.
5123 (x_set_window_size_1): scroll_bar_actual_width is always
5124 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5125
5126 * xdisp.c (pending_menu_activation): Remove extern declaration.
5127 (prepare_menu_bars): Remove setting of pending_menu_activation.
5128
5129 * xmenu.c (pending_menu_activation): Remove.
5130 (x_activate_menubar): Set popup_activated_flag for Xt also.
5131 Remove setting of pending_menu_activation.
5132 (set_frame_menubar): Remove check of pending_menu_activation.
5133 Declare menubar_size before code. Correct spelling in comment.
5134
5135 2010-07-14 Kenichi Handa <handa@m17n.org>
5136
5137 * font.c (font_open_entity): Cancel previous change.
5138 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5139
5140 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5141
5142 Remove subprocesses #ifdefs.
5143 * process.c <inhibit_sentinels>: Move to the common part.
5144 (Fwaiting_for_user_input_p): Move to the common part; return nil
5145 if async subprocesses aren't supported.
5146 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5147 MS-DOS. Remove "#ifdef subprocesses".
5148 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5149 (gettimeofday): Remove "#ifdef subprocesses".
5150 (wait_without_blocking): Remove function.
5151 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5152 Remove "#ifdef subprocesses".
5153 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5154 compiled on MS-DOS.
5155 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5156 wait_for_termination on MS-DOS.
5157 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5158 initialization of inhibit_sentinels.
5159 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5160 subprocesses" conditional.
5161 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5162 wait_for_termination, since `buffer' cannot be an integer when
5163 async subprocesses are not supported
5164 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5165 for ifdefing away the call to Fprocess_status.
5166
5167 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5168 away the entire body of the function.
5169
5170 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5171
5172 Remove subprocesses #ifdefs from term.c.
5173 * process.c (add_keyboard_wait_descriptor)
5174 (delete_keyboard_wait_descriptor): Move to common section, do
5175 nothing when subprocesses is not defined.
5176 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5177 Remove subprocesses #ifdefs.
5178
5179 Convert maybe_fatal to standard C.
5180 * lisp.h (verror): Declare.
5181 * eval.c (verror): New function containing the code from ...
5182 (error): ... this. Call verror.
5183 * term.c (vfatal): New function containing the code from ...
5184 (fatal): ... this. Call vfatal.
5185 (maybe_fatal): Convert to standard C, use variable number of
5186 arguments. Declare as non-return.
5187 (init_tty): Fix maybe_fatal call.
5188
5189 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5190
5191 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5192 (_scroll_bar_note_movement): Convert definitions to standard C.
5193 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5194 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5195
5196 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5197
5198 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5199 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5200 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5201 (xaw_jump_callback, xaw_scroll_callback)
5202 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5203 (x_wm_set_size_hint, x_activate_timeout_atimer):
5204 Convert definitions to standard C.
5205 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5206 (popup_activate_callback, popup_deactivate_callback)
5207 (menu_highlight_callback, menubar_selection_callback)
5208 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5209 (free_frame_menubar, popup_selection_callback, as)
5210 (create_and_show_popup_menu, dialog_selection_callback)
5211 (create_and_show_dialog):
5212 * xfns.c (hack_wm_protocols, x_window):
5213 * xfaces.c (x_update_menu_appearance):
5214 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5215 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5216 (set_frame_size, update_wm_hints, setup_frame_gcs)
5217 (update_various_frame_slots, update_from_various_frame_slots)
5218 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5219 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5220 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5221
5222 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5223
5224 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5225
5226 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5227
5228 * process.c (setup_process_coding_systems): Move to the part
5229 shared by non-subprocesses systems, and make its body empty when
5230 subprocesses is not defined.
5231 (close_process_descs): Move to the part shared by non-subprocesses
5232 systems.
5233 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5234 ANSI C.
5235
5236 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5237
5238 * editfns.c (transpose_markers): Convert old-style definition.
5239 * emacs.c (abort, shut_down_emacs, fixup_locale)
5240 (synchronize_system_time_locale)
5241 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5242 * floatfns.c (extract_float, matherr, init_floatfns)
5243 (syms_of_floatfns): Likewise.
5244 * fns.c (make_hash_table): Likewise.
5245 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5246 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5247 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5248 (ftfont_variation_glyphs): Likewise.
5249 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5250 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5251 * lread.c (read_filtered_event): Likewise.
5252 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5253 * process.c (wait_reading_process_output): Likewise.
5254 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5255 * search.c (search_buffer, boyer_moore): Likewise.
5256 * syntax.c (scan_sexps_forward): Likewise.
5257 * xdisp.c (try_scrolling): Likewise.
5258 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5259 (face_at_string_position): Likewise.
5260 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5261 * xselect.c (x_get_window_property, receive_incremental_selection)
5262 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5263 Likewise.
5264 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5265
5266 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5267
5268 * callproc.c (child_setup): Remove subprocesses conditional.
5269 Remove code dealing with SET_EMACS_PRIORITY, unused.
5270
5271 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5272 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5273
5274 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5275 (__do_global_dtors, __main): Use void in definition.
5276 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5277 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5278 the only users from ...
5279 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5280 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5281 (HAVE_VOLATILE): Remove, unused.
5282
5283 Convert more function definitions to standard C.
5284 * xdisp.c (window_box_edges, handle_single_display_spec)
5285 (display_string): Convert definition to standard C.
5286 * scroll.c (do_direct_scrolling, scrolling_1):
5287 * dispnew.c (allocate_matrices_for_frame_redisplay)
5288 (mirrored_line_dance):
5289 * coding.c (code_convert_string):
5290 * charset.c (map_charset_chars):
5291 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5292 (Fregister_ccl_program, Fregister_code_conversion_map):
5293 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5294 (head_table): Make static and const.
5295
5296 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5297
5298 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5299 (PROFILING_LDFLAGS): Set from substitution.
5300 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5301 CFLAGS last.
5302
5303 2010-07-12 Kenichi Handa <handa@m17n.org>
5304
5305 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5306 (shortlisp): Likewise.
5307
5308 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5309
5310 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5311 of FONT_ENTITY_INDEX.
5312 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5313 property, get the property value dynamically.
5314 (Ffont_put): Accept font-entity and font-object too.
5315 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5316 return value changed.
5317 (syms_of_font): Adjust for the above change.
5318
5319 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5320
5321 * blockinput.h: Remove obsolete comment.
5322
5323 * lisp.h: Include <stddef.h>.
5324 (OFFSETOF): Don't define.
5325 (VECSIZE): Use offsetof instead of OFFSETOF.
5326 (PSEUDOVECSIZE): Likewise.
5327 * process.c (conv_sockaddr_to_lisp): Likewise.
5328 * alloc.c: Don't include <stddef.h>.
5329 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5330
5331 * process.c: Remove obsolete comment.
5332
5333 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5334
5335 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5336
5337 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5338
5339 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5340 index, rindex.
5341 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5342 * editfns.c (Fuser_full_name, Fformat): Likewise.
5343 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5344 * fileio.c (Ffile_symlink_p): Likewise.
5345 * filelock.c (current_lock_owner): Likewise.
5346 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5347 * fontset.c (fontset_pattern_regexp): Likewise.
5348 * lread.c (read1): Likewise.
5349 * sysdep.c (init_system_name): Likewise.
5350 * xfns.c (select_visual): Likewise.
5351 * s/hpux10-20.h (index, rindex): Don't define.
5352 * s/ms-w32.h (index): Likewise.
5353 * s/usg5-4.h: Likewise.
5354
5355 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5356
5357 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5358 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5359 (egetenv): Likewise.
5360 * doprnt.c (doprnt): Likewise.
5361 * editfns.c (set_time_zone_rule, format2): Likewise.
5362 * emacs.c (decode_env_path): Likewise.
5363 * eval.c (signal_error, error): Likewise.
5364 * insdel.c (replace_range_2): Likewise.
5365 * keyboard.c (cmd_error_internal): Likewise.
5366 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5367 * print.c (write_string, write_string_1, print_error_message):
5368 Likewise.
5369 * vm-limit.c (warn_function, memory_warnings): Likewise.
5370 * xdisp.c (message1, message1_nolog, message_with_string)
5371 (vmessage, message, message_nolog): Likewise.
5372 * emacs.c: Remove duplicate declaration.
5373 * keyboard.h: Likewise.
5374 * lisp.h: Update prototypes.
5375
5376 * eval.c: Fix indentation problem.
5377
5378 * keyboard.c: Include "process.h"
5379
5380 * eval.c: Remove obsolete noinline declaration.
5381 * fns.c: Likewise.
5382
5383 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5384
5385 * doprnt.c (doprnt): Take a va_list argument instead of count and
5386 pointer.
5387 * eval.c (error): Change to a standard-C variadic function.
5388 * xdisp.c (vmessage): Rename from message, made static, and
5389 changed to take a va_list argument.
5390 (message): New variadic wrapper.
5391 (message_nolog): Now a variadic function, calling vmessage.
5392 * lisp.h: Include stdarg.h for va_list.
5393 (doprnt, error, message, message_nolog): Decls updated.
5394
5395 2010-07-11 Eli Zaretskii <eliz@gnu.org>
5396
5397 * process.c (syms_of_process) <delete-exited-processes>: Define
5398 even if !subprocesses.
5399 (delete_exited_processes): Ditto.
5400
5401 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5402 (delete_exited_processes): Don't define.
5403
5404 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
5405
5406 * frame.c (make_frame): Initialize menu_bar_lines and
5407 tool_bar_lines members.
5408 (make_initial_frame, make_terminal_frame):
5409 Initialize menu_bar_lines using value of menu-bar-mode.
5410
5411 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5412
5413 2010-07-10 Eli Zaretskii <eliz@gnu.org>
5414
5415 * process.c: Reshuffle #include's. Condition some of the global
5416 and static variables on `subprocesses'.
5417 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5418 Leave only one implementation.
5419 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5420 (kill_buffer_processes, Flist_system_processes)
5421 (Fprocess_attributes, init_process, syms_of_process): Unify the
5422 implementations for with subprocesses and without them.
5423
5424 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5425
5426 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5427 correct size for Motif.
5428 (free_frame_menubar): Call x_set_window_size to update frame size.
5429
5430 * xfns.c (x_window): Set borderWidth to 0 for pane and
5431 EmacsFrame. Frame size calculation is wrong otherwise.
5432
5433 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
5434
5435 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5436 allows to suppress errors when polling in Emacs' main loop.
5437 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5438 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5439 (Fdbus_method_error_internal, Fdbus_send_signal)
5440 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5441 (Fdbus_register_method): Use it. (Bug#6579)
5442
5443 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5444
5445 * alloc.c: Convert DEFUNs to standard C.
5446 * buffer.c:
5447 * bytecode.c:
5448 * callint.c:
5449 * callproc.c:
5450 * casefiddle.c:
5451 * casetab.c:
5452 * category.c:
5453 * character.c:
5454 * charset.c:
5455 * chartab.c:
5456 * cmds.c:
5457 * coding.c:
5458 * composite.c:
5459 * data.c:
5460 * dbusbind.c:
5461 * dired.c:
5462 * dispnew.c:
5463 * doc.c:
5464 * dosfns.c:
5465 * editfns.c:
5466 * emacs.c:
5467 * eval.c:
5468 * fileio.c:
5469 * filelock.c:
5470 * floatfns.c:
5471 * fns.c:
5472 * font.c:
5473 * fontset.c:
5474 * frame.c:
5475 * fringe.c:
5476 * image.c:
5477 * indent.c:
5478 * insdel.c:
5479 * keyboard.c:
5480 * keymap.c:
5481 * lread.c:
5482 * macros.c:
5483 * marker.c:
5484 * menu.c:
5485 * minibuf.c:
5486 * msdos.c:
5487 * nsfns.m:
5488 * nsmenu.m:
5489 * nsselect.m:
5490 * print.c:
5491 * process.c:
5492 * search.c:
5493 * sound.c:
5494 * syntax.c:
5495 * term.c:
5496 * terminal.c:
5497 * textprop.c:
5498 * undo.c:
5499 * w16select.c:
5500 * w32console.c:
5501 * w32fns.c:
5502 * w32font.c:
5503 * w32menu.c:
5504 * w32proc.c:
5505 * w32select.c:
5506 * window.c:
5507 * xdisp.c:
5508 * xfaces.c:
5509 * xfns.c:
5510 * xmenu.c:
5511 * xselect.c:
5512 * xsettings.c:
5513 * xsmfns.c: Likewise.
5514
5515 2010-07-08 Eli Zaretskii <eliz@gnu.org>
5516
5517 * process.c (kbd_is_on_hold, hold_keyboard_input)
5518 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5519
5520 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5521
5522 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5523 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5524 unless USE_LUCID.
5525
5526 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5527
5528 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5529 declaration.
5530
5531 Clean up include guards.
5532 * tparam.c: Remove include guards for config.h, string.h and code
5533 that assumes #ifndef emacs.
5534 * termcap.c:
5535 * unexalpha.c:
5536 * sysdep.c:
5537 * filemode.c:
5538 * filelock.c:
5539 * bidi.c: Likewise.
5540
5541 Remove prefix-args.c
5542 * prefix-args.c: Remove file.
5543 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5544 * Makefile.in (temacs${EXEEXT}): Remove references to
5545 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5546 (mostlyclean): Remove reference to prefix-args.
5547 (prefix-args): Remove.
5548
5549 Simplify cstart_of_data, start_of_code and related code.
5550 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5551 (start_of_data): Merge into start_of_data function.
5552 * sysdep.c (start_of_text): Remove. Move simplified versions of
5553 it in the only users: unexaix.c and unexec.c.
5554 (read_input_waiting): Remove local declaration of quit_char.
5555 (start, etext): Remove declarations.
5556 (start_of_data): Merge with the version in mem-limits.h and move
5557 to vm-limits.c.
5558 * vm-limit.c (start_of_data): Merged and simplified version of the
5559 code formerly in mem-limits.h and sysdep.c.
5560 * unexec.c (start): New declaration, moved from sysdep.c.
5561 (start_of_text): Simplified version of the code formerly in sysdep.c.
5562 * unexaix.c (start_of_text): Simplified version of the code
5563 formerly in sysdep.c.
5564 * m/alpha.h (HAVE_TEXT_START): Remove.
5565 (TEXT_START): Move ...
5566 * unexalpha.c (TEXT_START): ... here.
5567 * s/hpux10-20.h (TEXT_START): Remove.
5568 * s/darwin.h (TEXT_START):
5569 * m/mips.h (TEXT_START):
5570 * m/macppc.h (HAVE_TEXT_START):
5571 * m/m68k.h (TEXT_START):
5572 * m/iris4d.h (TEXT_START):
5573 * m/intel386.h (TEXT_START):
5574 * m/ibmrs6000.h (TEXT_START):
5575 * m/ia64.h (HAVE_TEXT_START):
5576 * s/msdos.h (TEXT_START): Likewise.
5577
5578 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5579
5580 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5581 (overrun_check_free, xstrdup, allocate_string)
5582 (allocate_string_data, compact_small_strings, Fmake_string)
5583 (make_unibyte_string, make_multibyte_string)
5584 (make_string_from_bytes, make_specified_string, make_float)
5585 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5586 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5587 memcpy, memmove, memset, memcmp.
5588 * atimer.c (start_atimer, set_alarm): Likewise.
5589 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5590 (mmap_realloc, init_buffer_once): Likewise.
5591 * callint.c (Fcall_interactively): Likewise.
5592 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5593 (getenv_internal_1): Likewise.
5594 * casefiddle.c (casify_object): Likewise.
5595 * ccl.c (ccl_driver): Likewise.
5596 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5597 * charset.c (load_charset_map_from_file)
5598 (load_charset_map_from_file, load_charset_map_from_vector)
5599 (Fdefine_charset_internal): Likewise.
5600 * cm.c (Wcm_clear): Likewise.
5601 * coding.c (decode_eol, decode_coding_object)
5602 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5603 * data.c (Faset): Likewise.
5604 * dired.c (directory_files_internal, file_name_completion_stat):
5605 Likewise.
5606 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5607 (clear_glyph_row, copy_row_except_pointers)
5608 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5609 (save_current_matrix, restore_current_matrix)
5610 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5611 (mirror_line_dance, scrolling_window): Likewise.
5612 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5613 Likewise.
5614 * doprnt.c (doprnt): Likewise.
5615 * editfns.c (Fuser_full_name, make_buffer_string_both)
5616 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5617 * emacs.c (sort_args): Likewise.
5618 * eval.c (Fapply, Ffuncall): Likewise.
5619 * fileio.c (Ffile_name_directory, make_temp_name)
5620 (Fexpand_file_name, search_embedded_absfilename)
5621 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5622 (auto_save_error): Likewise.
5623 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5624 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5625 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5626 (Fmake_hash_table): Likewise.
5627 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5628 * ftfont.c (ftfont_text_extents): Likewise.
5629 * getloadavg.c (getloadavg): Likewise.
5630 * image.c (define_image_type, make_image, make_image_cache)
5631 (x_create_x_image_and_pixmap, xbm_image_p)
5632 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5633 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5634 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5635 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5636 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5637 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5638 Likewise.
5639 * indent.c (scan_for_column, compute_motion): Likewise.
5640 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5641 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5642 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5643 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5644 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5645 (store_user_signal_events, menu_bar_items, tool_bar_items)
5646 (process_tool_bar_item, append_tool_bar_item)
5647 (read_char_minibuf_menu_prompt, read_key_sequence)
5648 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5649 Likewise.
5650 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5651 Likewise.
5652 * lisp.h (STRING_COPYIN): Likewise.
5653 * lread.c (Fload, read1, oblookup): Likewise.
5654 * msdos.c (Frecent_doskeys): Likewise.
5655 * nsfns.m (Fx_create_frame): Likewise.
5656 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5657 Likewise.
5658 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5659 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5660 Likewise.
5661 * nsmenu.m (ns_update_menubar): Likewise.
5662 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5663 * print.c (print_unwind, printchar, strout, print_string)
5664 (print_error_message): Likewise.
5665 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5666 (Fmake_network_process, Fnetwork_interface_list)
5667 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5668 (init_process): Likewise.
5669 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5670 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5671 Likewise.
5672 * scroll.c (do_scrolling, do_direct_scrolling)
5673 (scrolling_max_lines_saved): Likewise.
5674 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5675 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5676 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5677 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5678 (emacs_set_tty): Likewise.
5679 * term.c (encode_terminal_code, calculate_costs)
5680 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5681 Likewise.
5682 * termcap.c (tgetst1, gobble_line): Likewise.
5683 * termhooks.h (EVENT_INIT): Likewise.
5684 * tparam.c (tparam1): Likewise.
5685 * unexalpha.c (unexec): Likewise.
5686 * unexec.c (write_segment): Likewise.
5687 * unexmacosx.c (unexec_write_zero): Likewise.
5688 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5689 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5690 * w32font.c (w32font_list_family, w32font_text_extents)
5691 (w32font_list_internal, w32font_match_internal)
5692 (w32font_open_internal, compute_metrics, Fx_select_font):
5693 Likewise.
5694 * w32menu.c (set_frame_menubar, add_menu_item)
5695 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5696 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5697 * w32uniscribe.c (uniscribe_list_family): Likewise.
5698 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5699 * window.c (make_window, replace_window, set_window_buffer)
5700 (Fsplit_window): Likewise.
5701 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5702 (add_to_log, message3, x_consider_frame_title)
5703 (append_space_for_newline, extend_face_to_end_of_line)
5704 (decode_mode_spec_coding, init_glyph_string): Likewise.
5705 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5706 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5707 (face_attr_equal_p, make_realized_face, make_face_cache)
5708 (free_realized_faces, lookup_named_face, smaller_face)
5709 (face_with_height, lookup_derived_face)
5710 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5711 (Finternal_set_font_selection_order, realize_default_face)
5712 (compute_char_face, face_at_buffer_position)
5713 (face_for_overlay_string, face_at_string_position, merge_faces):
5714 Likewise.
5715 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5716 (Fx_window_property, x_create_tip_frame)
5717 (Fx_backspace_delete_keys_p): Likewise.
5718 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5719 (xfont_text_extents): Likewise.
5720 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5721 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5722 * xselect.c (x_queue_event, x_get_window_property)
5723 (receive_incremental_selection): Likewise.
5724 * xsmfns.c (x_session_check_input): Likewise.
5725 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5726 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5727 Likewise.
5728 * character.h (BCOPY_SHORT): Removed.
5729 * config.in: Regenerate.
5730 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5731 * emacs.c (main) [PROFILING]: Don't declare
5732 dump_opcode_frequencies.
5733 * lisp.h (safe_bcopy): Remove declaration.
5734 (memset) [!HAVE_MEMSET]: Declare.
5735 (memcpy) [!HAVE_MEMCPY]: Likewise.
5736 (memmove) [!HAVE_MEMMOVE]: Likewise.
5737 (memcmp) [!HAVE_MEMCMP]: Likewise.
5738 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5739 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5740 Don't define.
5741 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5742 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5743 (BCOPY_DOWNWARD_SAFE): Don't define.
5744 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5745 (memcpy) [!HAVE_MEMCPY]: Define.
5746 (memmove) [!HAVE_MEMMOVE]: Define.
5747 (memcmp) [!HAVE_MEMCMP]: Define.
5748
5749 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5750
5751 * process.c (kbd_is_on_hold): New variable.
5752 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5753 New functions.
5754 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5755 select on empty input mask.
5756 (init_process): Initialize kbd_is_on_hold to 0.
5757
5758 * process.h (hold_keyboard_input, unhold_keyboard_input)
5759 (kbd_on_hold_p): Declare.
5760
5761 * keyboard.c (input_available_signal): Declare.
5762 (kbd_buffer_nr_stored): New function.
5763 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5764 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5765 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5766 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5767 (tty_read_avail_input): If input is on hold, return.
5768 Don't read more that free slots in kbd_buffer (Bug#6571).
5769
5770 2010-07-07 Eli Zaretskii <eliz@gnu.org>
5771
5772 * msdos.h:
5773 * msdos.c:
5774 * dosfns.c:
5775 * w16select.c: Convert function definitions to ANSI C.
5776
5777 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5778 Remove unused prototypes.
5779
5780 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5781
5782 * coding.c, sysdep.c: Convert some more functions to standard C.
5783
5784 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5785
5786 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5787 (encode_coding_object): Use SPECPDL_INDEX.
5788 (syms_of_coding): Use DOS_NT.
5789
5790 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5791
5792 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5793
5794 Make the function member of Lisp_Subr use standard C prototypes.
5795 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5796 (DECL_ALIGN): Add a cast for the function.
5797 * eval.c (Feval, Ffuncall): Use the proper type for each type
5798 function call.
5799
5800 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
5801
5802 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5803 fringe face id, so face-remapping-alist works (Bug#6091).
5804
5805 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
5806
5807 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5808 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5809 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5810
5811 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5812
5813 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5814 * lisp.h: Declare x_get_keysym_name.
5815 * keyboard.c (modify_event_symbol): Don't declare
5816 x_get_keysym_name here.
5817
5818 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5819
5820 * ecrt0.c: Revert conversion to standard C.
5821
5822 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5823
5824 * vm-limit.c (memory_warnings):
5825 * keyboard.c (modify_event_symbol):
5826 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5827 (round2, emacs_rint):
5828 * process.c (send_process, old_sigpipe): Convert function
5829 definitions and declarations to standard C.
5830
5831 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
5832
5833 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5834 * xdisp.c: Convert function definitions to standard C.
5835
5836 * cm.c (cmputc): Arg C is now int, not char.
5837 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5838
5839 2010-07-05 James Cloos <cloos@jhcloos.com>
5840
5841 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5842
5843 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5844 _NET_WM_ICON_NAME atoms.
5845
5846 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5847 and _NET_WM_ICON_NAME properties, too, matching what is
5848 done in the Gtk+ case.
5849
5850 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5851
5852 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5853
5854 * xsmfns.c (SSDATA): New macro.
5855 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5856 passed to strlen/strcpy/strcat.
5857 (create_client_leader_window): Surround with #ifndef USE_GTK.
5858 Cast 7:th arg to XChangeProperty to (unsigned char *).
5859
5860 * xsettings.c (something_changedCB, parse_settings)
5861 (apply_xft_settings): Reformat prototype.
5862 (something_changedCB, init_gconf): Remove unused variable i.
5863 (read_settings): Remove unused variable long_len.
5864
5865 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5866 (xg_get_image_for_pixmap, create_dialog)
5867 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5868 (menuitem_highlight_callback, make_menu_item)
5869 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5870 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5871 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5872 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5873 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5874 (xg_tool_bar_item_expose_callback): Reformat prototype.
5875 (xg_update_menubar): GList *group => GSList *group.
5876 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5877 before use.
5878 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5879 to GTK_IMAGE (wimage).
5880
5881 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5882
5883 * atimer.c: Use "" instead of <> for local includes for
5884 consistency with the rest of the code.
5885
5886 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5887 * xrdb.c (get_system_name):
5888 * window.c (shrink_windows):
5889 * syntax.c (forw_comment):
5890 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5891 (ins_del_costs):
5892 * mem-limits.h (start_of_data):
5893 * lread.c (readevalloop):
5894 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5895 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5896 * frame.c (x_get_focus_frame):
5897 * floatfns.c (fmod_float):
5898 * fileio.c (choose_write_coding_system):
5899 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5900 (malloc_initialize_hook, sort_args, synchronize_locale):
5901 * doprnt.c (doprnt):
5902 * dired.c (compile_pattern):
5903 * data.c (fmod_float):
5904 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5905 (map_char_table_for_charset):
5906 * charset.c (define_charset_internal):
5907 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5908 to standard C.
5909
5910 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
5911 Stefan Monnier <monnier@iro.umontreal.ca>
5912
5913 * lread.c (read1): Fix up last change to not mess up `c'.
5914
5915 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5916
5917 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5918
5919 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5920
5921 Fix prototypes.
5922
5923 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
5924 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
5925 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5926 arg, as required by internal_condition_case_1.
5927 * print.c (strout): Use const char* for arg PTR.
5928 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5929 (analyse_first): Fix "const const".
5930 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
5931 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
5932 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
5933
5934 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5935
5936 * alloc.c: Convert function definitions to standard C.
5937 * atimer.c:
5938 * bidi.c:
5939 * bytecode.c:
5940 * callint.c:
5941 * callproc.c:
5942 * casefiddle.c:
5943 * casetab.c:
5944 * category.c:
5945 * ccl.c:
5946 * character.c:
5947 * charset.c:
5948 * chartab.c:
5949 * cmds.c:
5950 * coding.c:
5951 * composite.c:
5952 * data.c:
5953 * dbusbind.c:
5954 * dired.c:
5955 * dispnew.c:
5956 * doc.c:
5957 * doprnt.c:
5958 * ecrt0.c:
5959 * editfns.c:
5960 * fileio.c:
5961 * filelock.c:
5962 * filemode.c:
5963 * fns.c:
5964 * font.c:
5965 * fontset.c:
5966 * frame.c:
5967 * fringe.c:
5968 * ftfont.c:
5969 * ftxfont.c:
5970 * gtkutil.c:
5971 * indent.c:
5972 * insdel.c:
5973 * intervals.c:
5974 * keymap.c:
5975 * lread.c:
5976 * macros.c:
5977 * marker.c:
5978 * md5.c:
5979 * menu.c:
5980 * minibuf.c:
5981 * prefix-args.c:
5982 * print.c:
5983 * ralloc.c:
5984 * regex.c:
5985 * region-cache.c:
5986 * scroll.c:
5987 * search.c:
5988 * sound.c:
5989 * strftime.c:
5990 * syntax.c:
5991 * sysdep.c:
5992 * termcap.c:
5993 * terminal.c:
5994 * terminfo.c:
5995 * textprop.c:
5996 * tparam.c:
5997 * undo.c:
5998 * unexelf.c:
5999 * window.c:
6000 * xfaces.c:
6001 * xfns.c:
6002 * xfont.c:
6003 * xftfont.c:
6004 * xgselect.c:
6005 * xmenu.c:
6006 * xrdb.c:
6007 * xselect.c:
6008 * xsettings.c:
6009 * xsmfns.c:
6010 * xterm.c: Likewise.
6011
6012 2010-07-03 Eli Zaretskii <eliz@gnu.org>
6013
6014 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6015 frames other than the initial one. Fix reversal of colors when
6016 `reverse' is specified in the frame parameters.
6017 Call update_face_from_frame_parameter instead of
6018 internal-set-lisp-face-attribute. Initialize screen colors from
6019 initial_screen_colors[] when f->default_face_done_p is zero,
6020 instead of depending on being called with default-frame-alist as
6021 the alist argument.
6022
6023 * xfaces.c (update_face_from_frame_parameter): Move out of
6024 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6025 with HAVE_WINDOW_SYSTEM.
6026
6027 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6028 to menu-bar-mode, if not set in the frame parameters or in
6029 default-frame-alist.
6030
6031 * w32console.c (sys_tputs): Adjust argument list to prototype in
6032 term.c.
6033
6034 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
6035
6036 * lisp.h (memory_warnings): Fix prototype.
6037
6038 * cm.h (evalcost): Fix prototype.
6039
6040 * cm.c (evalcost): Fix arg type.
6041
6042 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6043
6044 * term.c (term_clear_mouse_face, Fidentity):
6045 * syssignal.h (signal_handler_t):
6046 * lisp.h (memory_warnings):
6047 * coding.h (preferred_coding_system):
6048 * cm.h (evalcost):
6049 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6050
6051 2010-07-02 Eli Zaretskii <eliz@gnu.org>
6052
6053 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6054 from prototypes.
6055
6056 * msdos.h (load_pixmap): Don't define away.
6057
6058 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6059
6060 * lisp.h:
6061 * atimer.h: Remove define for P_.
6062
6063 * alloc.c: Remove __P and P_ from .c and .m files.
6064 * atimer.c:
6065 * buffer.c:
6066 * callint.c:
6067 * category.c:
6068 * charset.c:
6069 * chartab.c:
6070 * cm.c:
6071 * coding.c:
6072 * composite.c:
6073 * data.c:
6074 * dired.c:
6075 * dispnew.c:
6076 * doc.c:
6077 * editfns.c:
6078 * emacs.c:
6079 * eval.c:
6080 * fileio.c:
6081 * filelock.c:
6082 * fns.c:
6083 * font.c:
6084 * fontset.c:
6085 * frame.c:
6086 * ftfont.c:
6087 * ftxfont.c:
6088 * gmalloc.c:
6089 * gtkutil.c:
6090 * image.c:
6091 * indent.c:
6092 * intervals.c:
6093 * keyboard.c:
6094 * keymap.c:
6095 * lread.c:
6096 * marker.c:
6097 * menu.c:
6098 * minibuf.c:
6099 * print.c:
6100 * process.c:
6101 * scroll.c:
6102 * search.c:
6103 * sound.c:
6104 * strftime.c:
6105 * syntax.c:
6106 * sysdep.c:
6107 * term.c:
6108 * terminal.c:
6109 * textprop.c:
6110 * unexalpha.c:
6111 * w32console.c:
6112 * w32fns.c:
6113 * w32font.c:
6114 * w32menu.c:
6115 * w32term.c:
6116 * w32uniscribe.c:
6117 * window.c:
6118 * xdisp.c:
6119 * xfaces.c:
6120 * xfns.c:
6121 * xfont.c:
6122 * xftfont.c:
6123 * xmenu.c:
6124 * xselect.c:
6125 * xterm.c: Likewise.
6126
6127 Remove P_ and __P macros.
6128 * atimer.h: Remove P_ and __P macros.
6129 * buffer.h:
6130 * category.h:
6131 * ccl.h:
6132 * character.h:
6133 * charset.h:
6134 * cm.h:
6135 * coding.h:
6136 * composite.h:
6137 * dispextern.h:
6138 * disptab.h:
6139 * dosfns.h:
6140 * font.h:
6141 * fontset.h:
6142 * frame.h:
6143 * gtkutil.h:
6144 * indent.h:
6145 * intervals.h:
6146 * keyboard.h:
6147 * keymap.h:
6148 * lisp.h:
6149 * macros.h:
6150 * md5.h:
6151 * menu.h:
6152 * msdos.h:
6153 * nsterm.h:
6154 * puresize.h:
6155 * region-cache.h:
6156 * syntax.h:
6157 * syssignal.h:
6158 * systime.h:
6159 * termhooks.h:
6160 * w32font.h:
6161 * w32term.h:
6162 * widget.h:
6163 * window.h:
6164 * xgselect.h:
6165 * xsettings.h:
6166 * xterm.h: Likewise.
6167
6168 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6169
6170 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6171
6172 Cleanup old code.
6173 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6174 * syssignal.h: Remove code for Lynx, not supported anymore.
6175 * vm-limit.c: Remove unused code the depends on emacs not being
6176 defined and NO_LIM_DATA being defined.
6177 * mem-limits.h: Remove dead code.
6178
6179 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6180
6181 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6182
6183 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6184 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6185
6186 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6187 parameters, they are already absolute.
6188
6189 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6190 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6191
6192 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6193
6194 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6195 Update FRAME_TOOLBAR_HEIGHT.
6196
6197 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6198 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6199
6200 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6201
6202 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6203 Don't check default-frame-alist.
6204
6205 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6206
6207 * process.c (create_process): Avoid using invalid file descriptors.
6208
6209 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6210
6211 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6212
6213 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6214 Improve documentation. Return font regardless of use_system_font.
6215 (syms_of_xsettings): Improve documentation for font-use-system-font.
6216
6217 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6218
6219 * xfaces.c (realize_face): Garbage the frame if a face is removed
6220 (Bug#6593).
6221
6222 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6223
6224 * keyboard.c: Remove duplicate <setjmp.h>.
6225 (read_key_sequence): Remove volatile qualifiers.
6226
6227 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6228
6229 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6230 (struct glyph_row): New members left_fringe_offset and
6231 right_fringe_offset.
6232
6233 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6234 specially.
6235 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6236 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6237
6238 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6239 Take account of bitmap offset.
6240 (draw_window_fringes): Take account of window vscroll.
6241 (update_window_fringes): Likewise. Extend top-aligned top indicator
6242 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6243 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6244 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6245
6246 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6247
6248 * w32fns.c (Qtooltip): Declare.
6249 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6250
6251 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6252
6253 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6254 grab on just Press (Bug#6499).
6255
6256 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6257
6258 * frame.c (Qtooltip): New var.
6259 (delete_frame): Use it. Fix faulty if statement. Don't update
6260 mode line for tooltip frames. Suggested by Martin Rudalics.
6261
6262 * xfns.c (x_create_tip_frame):
6263 * w32fns.c (x_create_tip_frame): Use it.
6264
6265 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6266
6267 * xftfont.c (xftfont_open): Check font width one by one also when
6268 spacing is dual.
6269
6270 * ftfont.c (ftfont_open): Ditto.
6271
6272 2010-06-30 Glenn Morris <rgm@gnu.org>
6273
6274 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6275
6276 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6277
6278 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6279 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6280 * s/darwin.h (SYSTEM_MALLOC):
6281 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6282
6283 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6284
6285 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6286 (ns_get_screen): Don't assign integer to f.
6287 (Fx_display_color_cells): Declarations before statements.
6288
6289 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6290
6291 * xfns.c (x_default_font_parameter): Remove got_from_system
6292 (Bug#6526).
6293
6294 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6295 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6296 New defines based on what configure finds.
6297
6298 * xterm.c (XTflash): Use gtk_widget_get_window.
6299 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6300 gtk_adjustment_get_page_size.
6301 (handle_one_xevent): Use gtk_widget_get_mapped.
6302 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6303 messages.
6304
6305 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6306
6307 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6308 HAVE_GTK_FILE_SELECTION_NEW.
6309
6310 * gtkutil.c (xg_display_open, xg_display_close):
6311 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6312 (xg_display_open): Return type is void.
6313 (gtk_widget_set_has_window)
6314 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6315 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6316 (gtk_adjustment_set_page_increment)
6317 (gtk_adjustment_get_step_increment): #define these if not found
6318 by configure.
6319 (remove_submenu): New define based on Gtk+ version.
6320 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6321 Use gtk_widget_get_window.
6322 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6323 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6324 (create_dialog): Use gtk_dialog_get_action_area and
6325 gtk_dialog_get_content_area.
6326 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6327 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6328 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6329 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6330 Use g_object_ref and g_object_unref.
6331 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6332 Use gtk_widget_get_sensitive.
6333 (xg_update_submenu): Use remove_submenu.
6334 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6335 properties instead to get old x and y position.
6336 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6337 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6338 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6339 (xg_get_tool_bar_widgets): New function.
6340 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6341 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6342 (toolbar_set_orientation): New #define based on if configure
6343 finds gtk_orientable_set_orientation.
6344 (xg_create_tool_bar): Call toolbar_set_orientation.
6345 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6346 instead of gtk_box_pack_start_defaults.
6347
6348 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * cmds.c (Fdelete_backward_char): Move into Lisp.
6351
6352 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6353
6354 * s/freebsd.h (BSD4_2): Remove redundant definition.
6355 bsd-common.h defines it already.
6356
6357 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6358
6359 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6360 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6361 tool-bar-mode, which are now set using these X resources at
6362 startup, to determine the defaults (Bug#2249).
6363
6364 * w32fns.c (Fx_create_frame):
6365 * nsfns.m (Fx_create_frame): Likewise.
6366
6367 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6368
6369 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6370
6371 * gtkutil.c (xg_update_scrollbar_pos):
6372 Avoid C99 mid-block variable declaration.
6373
6374 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6375
6376 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6377
6378 * gtkutil.h (xg_show_scroll_bar): Remove.
6379
6380 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6381 if height is less than scroll bar min size.
6382 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6383
6384 * xfns.c (x_default_font_parameter): Try to open font from system
6385 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6386
6387 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6388
6389 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6390
6391 2010-06-20 Eli Zaretskii <eliz@gnu.org>
6392
6393 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6394 most-positive-fixnum, be extra accurate when scrolling window
6395 start, to avoid missing the cursor line.
6396
6397 2010-06-19 Eli Zaretskii <eliz@gnu.org>
6398
6399 * xdisp.c (try_scrolling): Compute the limit for searching point
6400 in forward scroll from scroll_max, instead of an arbitrary limit
6401 of 10 screen lines.
6402 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
6403 and
6404 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6405 for details.
6406
6407 2010-06-16 Glenn Morris <rgm@gnu.org>
6408
6409 * editfns.c (Fbyte_to_string): Pacify compiler.
6410
6411 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6412
6413 * lread.c (read1): Phase out old-style backquotes a bit more.
6414
6415 2010-06-12 Eli Zaretskii <eliz@gnu.org>
6416
6417 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6418 bidimirror.h.
6419
6420 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6421
6422 * bidi.c (bidi_initialize): Remove explicit initialization of
6423 bidi_type_table; include biditype.h instead. Don't support
6424 entries whose second codepoint is zero. Initialize bidi_mirror_table.
6425 (bidi_mirror_char): Use bidi_mirror_table.
6426
6427 * biditype.h: New file.
6428
6429 * bidimirror.h: New file.
6430
6431 * window.c (syms_of_window): Doc fix (bug#6409).
6432
6433 2010-06-12 Romain Francoise <romain@orebokech.com>
6434
6435 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6436 ediff-hook.
6437
6438 2010-06-10 Glenn Morris <rgm@gnu.org>
6439
6440 * editfns.c (Fbyte_to_string): Pacify compiler.
6441
6442 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6443
6444 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6445
6446 * alloc.c (Fmake_byte_code): Don't access undefined argument
6447 (Bug#6517).
6448
6449 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * xdisp.c (next_element_from_image): Ensure that after-strings are
6452 read the next time we hit handle_stop (Bug#1336).
6453
6454 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6455
6456 * lread.c (read1): Signal error if #s is not followed by paren.
6457
6458 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
6459
6460 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6461
6462 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6463
6464 2010-06-15 Glenn Morris <rgm@gnu.org>
6465
6466 * editfns.c (Fbyte_to_string): Pacify compiler.
6467
6468 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6469
6470 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6471 Check `object's type before accessing its guts.
6472
6473 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6474
6475 * s/usg5-4.h: Fix previous change.
6476 Suggested by Lawrence Mitchell <wence@gmx.li>
6477
6478 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6479
6480 * minibuf.c (Fall_completions): Add more checks.
6481
6482 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
6483
6484 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6485
6486 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6487
6488 * lread.c (X_OK): Remove, unused.
6489
6490 * dispnew.c: Remove obsolete comment.
6491
6492 Remove INCLUDED_FCNTL.
6493 * xterm.c (INCLUDED_FCNTL):
6494 * callproc.c (INCLUDED_FCNTL):
6495 * alloc.c (INCLUDED_FCNTL):
6496 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6497 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6498
6499 2010-06-07 Martin Rudalics <rudalics@gmx.at>
6500
6501 * window.c (Fselect_window): Move `record_buffer' up to the
6502 beginning of this function, so the buffer gets recorded
6503 even if the selected window does not change.
6504 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6505
6506 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
6507
6508 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6509 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6510
6511 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6512
6513 Remove BSTRING related code, all platforms define it.
6514 * s/usg5-4.h (BSTRING): Remove definition.
6515 * s/template.h (BSTRING):
6516 * s/msdos.h (BSTRING):
6517 * s/ms-w32.h (BSTRING):
6518 * s/hpux10-20.h (BSTRING):
6519 * s/gnu-linux.h (BSTRING):
6520 * s/darwin.h (BSTRING):
6521 * s/cygwin.h (BSTRING):
6522 * s/bsd-common.h (BSTRING):
6523 * s/aix4-2.h (BSTRING): Likewise.
6524 * sysdep.c: Remove code depending on BSTRING not being defined.
6525
6526 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
6527
6528 Remove obsolete macro BASE_LEADING_CODE_P.
6529 * character.h (BASE_LEADING_CODE_P): Remove.
6530 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6531 * buffer.c (Fset_buffer_multibyte):
6532 * indent.c (scan_for_column, compute_motion):
6533 * insdel.c (count_combining_before, count_combining_after):
6534 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6535
6536 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
6537
6538 Turn `directory-sep-char' into a noop.
6539
6540 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6541 (DIRECTORY_SEP): Define unconditionally.
6542
6543 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6544
6545 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6546 call dostounix_filename directly.
6547
6548 * fileio.c (CORRECT_DIR_SEPS): Remove.
6549 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6550 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6551 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6552 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6553
6554 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6555 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6556
6557 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6558
6559 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6560 (Bug#6346)
6561
6562 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6563
6564 * ccl.c (Fccl_program_p): Fix typo in docstring.
6565
6566 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6567
6568 Move UNEXEC definition to autoconf.
6569 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6570 * s/sol2-10.h (UNEXEC):
6571 * s/irix6-5.h (UNEXEC):
6572 * s/hpux10-20.h (UNEXEC):
6573 * s/gnu-linux.h (UNEXEC):
6574 * s/darwin.h (UNEXEC):
6575 * s/cygwin.h (UNEXEC):
6576 * s/bsd-common.h (UNEXEC):
6577 * s/aix4-2.h (UNEXEC):
6578 * m/alpha.h (UNEXEC): Likewise.
6579 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6580
6581 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6582
6583 Remove obsolete pre-unicode2 macros.
6584 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6585 * composite.c (composition_reseat_it):
6586 * data.c (Faset):
6587 * fns.c (Ffillarray):
6588 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6589 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6590
6591 2010-06-03 Juri Linkov <juri@jurta.org>
6592
6593 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6594 (Fswitch_to_buffer): Remove unused variable `err'.
6595
6596 2010-06-03 Glenn Morris <rgm@gnu.org>
6597
6598 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6599
6600 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6601 now that AH_BOTTOM does it.
6602
6603 * m/hp800.h (HAVE_ALLOCA):
6604 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6605
6606 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6607 Remove NOT_C_CODE tests, it is always true now.
6608
6609 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6610
6611 Fix config.h includes.
6612 * xsettings.c:
6613 * xgselect.c:
6614 * nsterm.m:
6615 * nsselect.m:
6616 * nsimage.m:
6617 * nsfont.m:
6618 * nsfns.m:
6619 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6620 other files do.
6621
6622 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6623
6624 * s/sol2-6.h: Remove obsolete comments.
6625
6626 Remove unnecessary alloca.h includes.
6627 * keymap.c: Do not include alloca.h, config.h does that.
6628 * sysdep.c: Likewise. Do not define fwrite, not used.
6629
6630 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6631
6632 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6633 the HAVE_TERMIO where it belongs (bug#6149).
6634
6635 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6636
6637 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6638 of bug#6305).
6639
6640 2010-05-30 Eli Zaretskii <eliz@gnu.org>
6641
6642 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6643 state is always cached (bug#6306).
6644
6645 2010-05-29 Eli Zaretskii <eliz@gnu.org>
6646
6647 Fix cursor motion in bidi-reordered continued lines.
6648 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6649 only after finding point's row. Fix the logic. Rewrite the loop
6650 over continuation lines in bidi-reordered buffers.
6651 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6652 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6653
6654 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
6655
6656 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6657
6658 2010-05-28 Kenichi Handa <handa@m17n.org>
6659
6660 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6661 Don't sheck SPEC if it is nil.
6662 (font_list_entities): Call font_delete_unmatched if
6663 Vface_ignored_fonts is non-nil. (Bug#6287)
6664
6665 2010-05-28 Glenn Morris <rgm@gnu.org>
6666
6667 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6668
6669 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6670
6671 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6672 whether to trash.
6673 (internal_delete_file, Frename_file): Callers changed.
6674 (delete_by_moving_to_trash): Doc fix.
6675 (Fdelete_directory_internal): Don't move to trash.
6676
6677 * callproc.c (delete_temp_file):
6678 * buffer.c (Fkill_buffer): Callers changed.
6679
6680 * lisp.h: Update prototype.
6681
6682 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6683
6684 * xdisp.c (redisplay_window): After redisplay, check if point is
6685 still valid before setting it (Bug#6177).
6686
6687 2010-05-27 Glenn Morris <rgm@gnu.org>
6688
6689 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6690 Convert comments to Makefile format.
6691
6692 * Makefile.in (bootstrap-clean): No more Makefile.c.
6693
6694 2010-05-26 Glenn Morris <rgm@gnu.org>
6695
6696 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6697 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6698
6699 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6700 Remove.
6701 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6702
6703 2010-05-26 Kenichi Handa <handa@m17n.org>
6704
6705 * composite.c (composition_compute_stop_pos): Fix condition for
6706 backward scanning.
6707
6708 2010-05-25 Glenn Morris <rgm@gnu.org>
6709
6710 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6711 Move before TEMACS_LDFLAGS.
6712 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6713 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6714
6715 * Makefile.in (NOT_C_CODE): No longer define.
6716 (config.h): No longer include.
6717
6718 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6719 variables it may reference.
6720
6721 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6722 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6723
6724 2010-05-25 Kenichi Handa <handa@m17n.org>
6725
6726 * dispextern.h (struct composition_it): New members rule_idx and
6727 charpos.
6728
6729 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6730 that the character positions of IT point the last character of the
6731 current grapheme cluster.
6732 (next_element_from_composition): Don't change character positions
6733 of IT.
6734 (append_composite_glyph): Set glyph->charpos to
6735 it->cmp_it.charpos.
6736
6737 * composite.c (autocmp_chars): Change the first argument to RULE,
6738 and try composition with RULE only.
6739 (composition_compute_stop_pos): Record the index number of the
6740 composition rule in CMP_IT->rule_idx.
6741 (composition_reseat_it): Call autocmp_chars repeatedly until the
6742 correct rule of the composition is found.
6743 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6744 is at the last character of the current grapheme cluster when
6745 CMP_IT->reversed_p is nonzero.
6746
6747 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6748
6749 * editfns.c (Fbyte_to_string): New function.
6750
6751 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6752
6753 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6754 Suggested by Masatake YAMATO <yamato@redhat.com>.
6755
6756 2010-05-23 Eli Zaretskii <eliz@gnu.org>
6757
6758 * dispextern.h (init_iterator): Sync prototype with changed definition.
6759
6760 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6761
6762 * s/netbsd.h: If terminfo is found, use it in preference to
6763 termcap. (Bug#6190) [Backport from trunk]
6764
6765 2010-05-19 Eli Zaretskii <eliz@gnu.org>
6766
6767 Redesign and reimplement bidi-aware edge positions of glyph rows.
6768
6769 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6770 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6771 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6772 and maxpos members instead of start.pos and end.pos, respectively.
6773
6774 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6775 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6776 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
6777 (try_window_reusing_current_matrix, try_window_id):
6778 Use ROW->minpos rather than ROW->start.pos.
6779 (init_from_display_pos, init_iterator): Use EMACS_INT for
6780 character and byte positions.
6781 (find_row_edges): Rename from find_row_end. Accept additional
6782 arguments for minimum and maximum buffer positions seen by
6783 display_line for this row. Don't use iterator to find the
6784 position following the maximum one; instead, increment the
6785 position found by display_line directly. Fix logic; eol_pos
6786 should be tested before the rest. Handle the case of characters
6787 delivered from display vector (bug#6036). Fix tests related to
6788 it->method. Handle the truncated_on_right_p rows.
6789 (RECORD_MAX_MIN_POS): New macro.
6790 (display_line): Use it to record the minimum and maximum buffer
6791 positions for glyphs in the row being assembled. Record the
6792 position of the newline that terminates the line. If word wrap is
6793 in effect, restore minimum and maximum positions seen up to the
6794 wrap point, when iterator returns to it.
6795 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6796 row and cursor not already at point. Restore original pre-bidi
6797 code for unidirectional buffers.
6798
6799 * dispnew.c (increment_row_positions, check_matrix_invariants):
6800 Increment and check row->start.pos and row->end.pos, in addition
6801 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6802
6803 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6804 Display truncated_on_left_p and truncated_on_right_p flags.
6805 Formatting fixes.
6806 (pmtxrows): Display the ordinal number of each row. Don't display
6807 rows beyond the last one.
6808
6809 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6810 it is not copied by bidi_copy_it.
6811
6812 2010-05-22 Eli Zaretskii <eliz@gnu.org>
6813
6814 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6815 (Bug#6237)
6816
6817 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
6818
6819 * image.c (Fimage_flush): Rename from image-refresh.
6820
6821 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
6822
6823 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6824 just one window.
6825
6826 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6827 (clear_image_cache): If the number of cached images is unusually
6828 large, decrease the cache eviction delay (Bug#6230).
6829
6830 2010-05-21 Glenn Morris <rgm@gnu.org>
6831
6832 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6833 Move these rules to ns.mk.
6834 * ns.mk: New file.
6835
6836 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6837
6838 * Makefile.in (CANNOT_DUMP): New, set by configure.
6839 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6840
6841 2010-05-20 Juri Linkov <juri@jurta.org>
6842
6843 * fileio.c (Fdelete_file): Change interative spec to use
6844 `read-file-name' like in `find-file-read-args' where the default
6845 value is `default-directory' instead of `buffer-file-name'.
6846 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6847
6848 2010-05-20 Kevin Ryde <user42@zip.com.au>
6849
6850 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6851 (Voverriding_terminal_local_map, Vsystem_key_alist)
6852 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6853
6854 2010-05-20 Glenn Morris <rgm@gnu.org>
6855
6856 * Makefile.in (DEPDIR): New constant.
6857 (DEPFLAGS): Set with configure, not cpp.
6858 (MKDEPDIR): New, set by configure.
6859 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6860 (clean): Use $DEPDIR.
6861 (deps_frag): Include from configure.
6862 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6863 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6864
6865 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6866 Fix reallocation of the cache. (Bug#6210)
6867
6868 2010-05-19 Glenn Morris <rgm@gnu.org>
6869
6870 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6871
6872 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6873 (GNULIB_VAR): Remove.
6874 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6875
6876 * m/ibms390x.h (LINKER):
6877 * m/macppc.h (LINKER) [GNU_LINUX]:
6878 * s/aix4-2.h (ORDINARY_LINK):
6879 * s/cygwin.h (LINKER):
6880 * s/darwin.h (ORDINARY_LINK):
6881 * s/gnu.h (ORDINARY_LINK):
6882 * s/netbsd.h (LINKER):
6883 * s/usg5-4.h (ORDINARY_LINK):
6884 Move to configure.
6885
6886 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6887
6888 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
6889
6890 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6891 prevent stack overflow if number of arguments is too large
6892 (Bug#6214).
6893
6894 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
6895
6896 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6897
6898 2010-05-18 Glenn Morris <rgm@gnu.org>
6899
6900 * s/gnu-linux.h: Combine two conditionals.
6901
6902 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6903 $(POST_ALLOC_OBJ).
6904
6905 * Makefile.in (RALLOC_OBJ): New, set by configure.
6906 (rallocobj): Replace with the previous variable.
6907 (otherobj): Use $RALLOC_OBJ.
6908
6909 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6910 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6911
6912 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6913 (gmallocobj, vmlimitobj): Replace with previous two variables.
6914 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6915
6916 2010-05-17 Glenn Morris <rgm@gnu.org>
6917
6918 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6919 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6920
6921 2010-05-16 Glenn Morris <rgm@gnu.org>
6922
6923 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6924
6925 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6926
6927 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6928 trailing "/".
6929
6930 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6931 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6932
6933 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6934 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6935 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6936 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6937 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6938
6939 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6940 Remove ${STARTFLAGS}, nothing ever sets it.
6941
6942 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6943
6944 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6945
6946 2010-05-16 Glenn Morris <rgm@gnu.org>
6947
6948 * Makefile.in (LIBX_BASE): Always define.
6949
6950 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6951
6952 * Makefile.in (LIBXT): Always define.
6953
6954 2010-05-15 Glenn Morris <rgm@gnu.org>
6955
6956 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
6957
6958 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6959 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6960
6961 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
6962
6963 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
6964 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6965
6966 * emacs.c (main): Initialize initial-environment and
6967 process-environment before generating from env, not after.
6968
6969 Handle --version reasonably in CANNOT_DUMP configuration.
6970 * emacs.c (emacs_version, emacs_copyright): New string variables.
6971 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6972 (syms_of_emacs): Defvar them, and initialize them from the C
6973 string variables.
6974 (main): If initialization hasn't been done, print initial version
6975 info from the C strings, instead of starting an interactive session.
6976
6977 2010-05-15 Eli Zaretskii <eliz@gnu.org>
6978
6979 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6980 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
6981 (bidi_paragraph_init): Remove redundant assertion that we are at
6982 the beginning of a line after call to bidi_find_paragraph_start.
6983
6984 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6985 (syms_of_xdisp): Defsubr it.
6986
6987 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6988
6989 * Makefile.in: Fix MSDOS-related comments.
6990
6991 2010-05-15 Glenn Morris <rgm@gnu.org>
6992
6993 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6994 (really-lwlib, really-oldXMenu): Always define.
6995 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6996
6997 * Makefile.in: Simplify cpp conditional.
6998
6999 * Makefile.in (${ns_appdir}): Simplify using umask.
7000
7001 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7002
7003 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7004
7005 * eval.c (specbind): Remove left-over duplicate test.
7006 Disallow let-binding frame-local vars. Add comment.
7007
7008 2010-05-14 Eli Zaretskii <eliz@gnu.org>
7009
7010 Make the cache of bidi iterator states dynamically allocated.
7011 * bidi.c (bidi_cache_shrink): New function.
7012 (bidi_init_it): Call it.
7013 (bidi_cache_iterator_state): Enlarge the cache if needed.
7014
7015 * bidi.c (bidi_move_to_visually_next): Rename from
7016 bidi_get_next_char_visually. All callers changed.
7017
7018 2010-05-14 Kenichi Handa <handa@m17n.org>
7019
7020 * dispextern.h (struct composition_it): New member reversed_p.
7021
7022 * composite.c (composition_compute_stop_pos): Search backward if
7023 ENDPOS < CHARPOS.
7024 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7025 Set CMP_IT->reversed_p.
7026 (composition_update_it): Pay attention to CMP_IT->reversed_p.
7027
7028 * xdisp.c (set_iterator_to_next):
7029 Call composition_compute_stop_pos with negative ENDPOS if we are
7030 scanning backward. Call composition_compute_stop_pos if scan
7031 direction is changed.
7032 (next_element_from_buffer): Call composition_compute_stop_pos with
7033 negative ENDPOS if we are scanning backward.
7034 (next_element_from_composition): Pay attention to
7035 IT->cmp_it.reversed_p.
7036
7037 2010-05-14 Kenichi Handa <handa@m17n.org>
7038
7039 * font.c (font_range): Return the range for the font found at first.
7040
7041 2010-05-14 Glenn Morris <rgm@gnu.org>
7042
7043 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7044
7045 * Makefile.in (mktime, X11, register): Move undefs to configure.
7046
7047 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7048 (MSDOS_X_OBJ): New variable.
7049 (MSDOS_SUPPORT_REAL): New constant.
7050 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7051 (obj): Use MSDOS_X_OBJ.
7052 (lisp): Use MSDOS_SUPPORT as a variable.
7053
7054 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7055 (GPM_MOUSE_SUPPORT): Now it's a constant.
7056 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7057 not cpp.
7058
7059 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
7060 (ns_appresdir): Remove, unused.
7061
7062 * Makefile.in (SHELL): Move outside cpp section.
7063
7064 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7065
7066 2010-05-13 Glenn Morris <rgm@gnu.org>
7067
7068 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7069 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7070
7071 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7072 HAVE_WINDOW_SYSTEM must be too.
7073
7074 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7075 (lisp): Remove WINNT_SUPPORT.
7076
7077 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7078 Let configure set these variables (to empty) in this case as well.
7079
7080 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7081 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7082
7083 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7084 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7085 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7086 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7087 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
7088 the values output by configure.
7089 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7090
7091 2010-05-12 Glenn Morris <rgm@gnu.org>
7092
7093 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7094 (LINKER_WAS_SPECIFIED): Remove.
7095
7096 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7097 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7098 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7099 * s/cygwin.h (LIB_GCC):
7100 * s/freebsd.h (LIB_GCC):
7101 * s/gnu-linux.h (LIB_GCC):
7102 * s/msdos.h (LIB_GCC):
7103 * s/netbsd.h (LIB_GCC):
7104 Move to configure.
7105
7106 2010-05-11 Karel Klíč <kklic@redhat.com>
7107
7108 * ftfont.c: Fix incorrect parentheses of #if condition for
7109 definining M17N_FLT_USE_NEW_FEATURE.
7110
7111 2010-05-11 Glenn Morris <rgm@gnu.org>
7112
7113 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7114 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7115
7116 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7117
7118 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7119 unibyte buffers. See
7120 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7121
7122 2010-05-10 Glenn Morris <rgm@gnu.org>
7123
7124 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7125 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7126 (LIBES): Use LIBS_SYSTEM as a variable.
7127 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7128 * s/aix4-2.h (LIBS_SYSTEM):
7129 * s/freebsd.h (LIBS_SYSTEM):
7130 * s/hpux10-20.h (LIBS_SYSTEM):
7131 * s/sol2-6.h (LIBS_SYSTEM):
7132 * s/unixware.h (LIBS_SYSTEM):
7133 Move to configure.
7134
7135 * s/aix4-2.h (MAIL_USE_LOCKF):
7136 * s/bsd-common.h (MAIL_USE_FLOCK):
7137 * s/darwin.h (MAIL_USE_FLOCK):
7138 * s/gnu-linux.h (MAIL_USE_FLOCK):
7139 * s/irix6-5.h (MAIL_USE_FLOCK):
7140 * s/template.h (MAIL_USE_FLOCK):
7141 Move to configure.
7142
7143 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7144
7145 * Version 23.2 released.
7146
7147 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7148
7149 * composite.c (autocmp_chars): Save point as marker before calling
7150 auto-composition-function (Bug#5984).
7151
7152 * lisp.h (restore_point_unwind): Add prototype.
7153
7154 * fileio.c (restore_point_unwind): Remove static attribute.
7155
7156 2010-05-08 Kenichi Handa <handa@m17n.org>
7157
7158 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7159 new feature of libotf and m17n-flt.
7160 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7161 Call OTF_check_features even if no specific feature is given.
7162 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7163 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7164 that OUT is NULL. Use OTF_drive_gsub_with_log and
7165 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7166 OTF_drive_gpos.
7167 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7168 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7169 Setup mflt_enable_new_feature and mflt_try_otf.
7170
7171 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7172
7173 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7174
7175 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7176 box and toolbar (Bug #6139).
7177 (xg_create_tool_bar): Remove comment (Bug #6139).
7178 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7179 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7180
7181 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7182
7183 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7184 Update dependencies.
7185
7186 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7187
7188 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7189 R2L lines.
7190
7191 2010-05-08 Glenn Morris <rgm@gnu.org>
7192
7193 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7194
7195 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7196 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7197 (termcapobj): Replace with TERMCAP_OBJ.
7198 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7199 (LIBES): Use LIBS_TERMCAP as a variable.
7200
7201 * s/freebsd.h (osreldate.h): No longer include, since this file
7202 does not use __FreeBSD_version any more.
7203
7204 * s/aix4-2.h (TERMINFO):
7205 * s/cygwin.h (TERMINFO):
7206 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7207 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7208 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7209 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7210 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7211 * s/irix6-5.h (TERMINFO):
7212 * s/netbsd.h (LIBS_TERMCAP):
7213 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7214 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7215 * s/usg5-4.h (TERMINFO):
7216 Move to configure.
7217
7218 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 * eval.c (unbind_to): Don't unbind a local binding into the global
7221 binding when the local binding disappeared. Inversely, don't unbind
7222 a global binding into a newly created local binding.
7223 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7224 can specify the frame to use, when applicable. Adjust callers.
7225
7226 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7227 Stefan Monnier <monnier@iro.umontreal.ca>
7228
7229 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7230
7231 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7232
7233 * w32fns.c: Include w32.h.
7234 (Fw32_shell_execute): Decode the error message before passing it
7235 to `error'. (Bug#6126)
7236
7237 * msdos.c (dos_set_window_size):
7238 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7239 instead of `XSYMBOL (foo)->value'.
7240
7241 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7242
7243 Fix the MS-DOS build, broken by autoconfiscation.
7244
7245 * Makefile.in: Don't use Make-style comments past the "start of
7246 cpp stuff" line.
7247 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7248
7249 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7250 edited directly by msdos/sed1v2.inp).
7251
7252 2010-05-07 Glenn Morris <rgm@gnu.org>
7253
7254 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7255 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7256 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7257 move out of cpp section.
7258 * s/freebsd.h (LD_SWITCH_SYSTEM):
7259 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7260 * s/netbsd.h (LD_SWITCH_SYSTEM):
7261 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7262
7263 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7264
7265 Define LIB_STANDARD and START_FILES using autoconf.
7266 * s/usg5-4.h (LIB_STANDARD):
7267 * s/netbsd.h (START_FILES):
7268 * s/irix6-5.h (LIB_STANDARD):
7269 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7270 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7271 * s/freebsd.h (START_FILES):
7272 * s/darwin.h (START_FILES):
7273 * s/cygwin.h (START_FILES):
7274 * s/aix4-2.h (LIB_STANDARD):
7275 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7276 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7277 autoconf, not cpp.
7278
7279 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7280
7281 Remove NEED_BSDTTY and NEED_UNISTD_H.
7282 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7283 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7284 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7285 <sys/ptyio.h> and <unistd.h>.
7286
7287 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7288
7289 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7290 * s/gnu.h (START_FILES): Remove empty definition.
7291
7292 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7293
7294 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7295
7296 2010-05-06 Glenn Morris <rgm@gnu.org>
7297
7298 * Makefile.in (CPP, LN_S): Remove unused variables.
7299
7300 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7301
7302 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7303
7304 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7305
7306 * m/sparc.h: Fix typo in earlier change.
7307
7308 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7309
7310 Misc tweaks.
7311 * eval.c (Fdefvaralias): Remove unintended nested if.
7312 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7313
7314 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7315
7316 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7317
7318 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7319
7320 Remove BSD_PGRPS.
7321 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7322 * s/gnu-linux.h (BSD_PGRPS): Remove.
7323 * term.c (dissociate_if_controlling_tty):
7324 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7325 (init_sys_modes, reset_sys_modes):
7326 * emacs.c (main):
7327 * callproc.c (Fcall_process, child_setup): Remove code depending
7328 on BSD_PGRPS.
7329
7330 Remove POSIX_SIGNALS.
7331 * s/usg5-4.h (POSIX_SIGNALS):
7332 * s/netbsd.h (POSIX_SIGNALS):
7333 * s/msdos.h (POSIX_SIGNALS):
7334 * s/ms-w32.h (POSIX_SIGNALS):
7335 * s/hpux11.h (POSIX_SIGNALS):
7336 * s/gnu.h (POSIX_SIGNALS):
7337 * s/gnu-linux.h (POSIX_SIGNALS):
7338 * s/freebsd.h (POSIX_SIGNALS):
7339 * s/darwin.h (POSIX_SIGNALS):
7340 * s/cygwin.h (POSIX_SIGNALS):
7341 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7342 * s/unixware.h:
7343 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7344 * process.c (create_process):
7345 * syssignal.h:
7346 * sysdep.c (wait_for_termination, init_signals):
7347 * process.c (create_process):
7348 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7349 remove all code that assumes the contrary.
7350
7351 2010-05-04 Glenn Morris <rgm@gnu.org>
7352
7353 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7354 variable.
7355 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7356 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7357 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7358 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7359 LD_SWITCH_SYSTEM_tmp.
7360 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7361 New variables, set by configure.
7362
7363 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7364 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7365 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7366 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7367 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7368
7369 * s/aix4-2.h (C_SWITCH_SYSTEM):
7370 * m/alpha.h (C_SWITCH_MACHINE):
7371 Move to configure.in.
7372 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7373 New variables, set by configure.
7374 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7375 $c_switch_machine and $c_switch_system.
7376
7377 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7378
7379 * s/hpux10-20.h (LIB_STANDARD): New definition.
7380 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7381 on it, not used anymore.
7382
7383 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7384
7385 * eval.c (internal_condition_case_n): Rename from
7386 internal_condition_case_2.
7387 (internal_condition_case_2): New function.
7388
7389 * xdisp.c (safe_call): Use internal_condition_case_n.
7390
7391 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7392 (internal_delete_file, Frename_file): Callers changed.
7393
7394 * buffer.c (Fkill_buffer):
7395 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7396
7397 * lisp.h: Update prototypes.
7398
7399 2010-05-03 Glenn Morris <rgm@gnu.org>
7400
7401 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7402 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7403 (LIBXT): Set with configure, not cpp.
7404 (LIBX): Remove.
7405 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7406
7407 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7408
7409 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7410 The FreeBSD is not needed, the default works, Solaris version is
7411 not needed, and the remaining case is not supported by configure.
7412
7413 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7414
7415 * xsmfns.c (CHDIR_OPT): New define.
7416 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7417 restarting emacs.
7418
7419 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7420 shut_down_emacs.
7421
7422 * emacs.c (USAGE1): Mention --chdir.
7423 (main): Handle --chdir.
7424 (standard_args): Add --chdir.
7425 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7426 #5552).
7427
7428 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7429
7430 Remove LD_SWITCH_MACHINE.
7431 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7432 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7433
7434 Clean up IRIX code.
7435 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7436 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7437
7438 Clean up AIX code.
7439 * m/ibmrs6000.inp: Remove file, unused.
7440 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7441 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7442 definition ...
7443 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7444
7445 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7446 unused.
7447
7448 2010-05-01 Eli Zaretskii <eliz@gnu.org>
7449
7450 Emulate POSIX_SIGNALS on MS-Windows.
7451
7452 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7453 (SIG_SETMASK, SIG_UNBLOCK): Define.
7454
7455 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7456 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7457 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7458
7459 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7460 New stubs.
7461
7462 Miscellaneous fixes of bidi display.
7463
7464 * xdisp.c (find_row_end): New function, refactored from display_line.
7465 (display_line): Use it.
7466 (extend_face_to_end_of_line): In almost-filled rows, extend only
7467 if the row is R2L and not continued.
7468 (display_line): Fix prepending of truncation glyphs to R2L rows.
7469 Preserve overlay and string info in row->end.
7470 (insert_left_trunc_glyphs): Support addition of left truncation
7471 glyphs to R2L rows.
7472 (set_cursor_from_row): Don't place cursor on the vertical border
7473 glyph between adjacent windows. Fix a crash when a display string
7474 is continued to the next line. Don't return zero if cursor was
7475 found by `cursor' property of a display string.
7476 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7477 test for that explicitly.
7478
7479 2010-05-01 Glenn Morris <rgm@gnu.org>
7480
7481 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7482 for clarity.
7483 (OTHER_OBJ): Remove.
7484 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7485 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7486
7487 2010-05-01 Karel Klíč <kklic@redhat.com>
7488
7489 * fileio.c (Ffile_selinux_context): Context functions may return null.
7490
7491 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7492
7493 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
7494
7495 2010-04-30 Glenn Morris <rgm@gnu.org>
7496
7497 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7498 (OTHER_OBJ): Define as a separate variable, for clarity.
7499
7500 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7501
7502 * xsettings.c: include limits.h and update file comment.
7503
7504 2010-04-30 Glenn Morris <rgm@gnu.org>
7505
7506 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7507 Set with configure, not cpp.
7508 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7509
7510 * Makefile.in (mallocobj): Remove.
7511 (otherobj): Simplify using @OTHER_OBJ@.
7512
7513 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7514 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7515 Don't bother making nsgui.h dependency platform-specific.
7516
7517 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7518
7519 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * process.c (read_process_output, exec_sentinel): Don't burp if the
7522 sentinel/filter kills the current buffer (bug#6060).
7523
7524 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
7525 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7526 Remove unused var `args'.
7527 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7528 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7529 * doc.c (store_function_docstring): Use XSETCAR.
7530
7531 2010-04-28 Glenn Morris <rgm@gnu.org>
7532
7533 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7534 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7535
7536 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7537
7538 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7539 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7540
7541 * Makefile.in (FONT_OBJ): New, set by configure.
7542 (FONT_DRIVERS): Use $FONT_OBJ.
7543
7544 * Makefile.in (LIBXMU): Set with configure, not cpp.
7545 * s/aix4-2.h (LIBXMU):
7546 * s/hpux10-20.h (LIBXMU):
7547 Remove definition, now set in configure.
7548
7549 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7550
7551 * m/amdx86-64.h [i386]: Move this test to configure.in.
7552
7553 2010-04-27 Glenn Morris <rgm@gnu.org>
7554
7555 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7556 * s/unixware.h (NEED_LIBW): Remove definition.
7557
7558 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7559 (TOOLKIT_LIBW): New, set by configure.
7560 (@X_TOOLKIT_TYPE@): No longer define it.
7561
7562 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7563 (MOTIF_LIBW): Set with configure, not cpp.
7564 * s/aix4-2.h (LIB_MOTIF):
7565 * s/gnu-linux.h (LIB_MOTIF):
7566 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7567
7568 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7569
7570 Reduce CPP usage.
7571 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7572 (obj): Use autoconf for unexec instead of cpp.
7573 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7574 Remove definitions and undefs. Inline definitions in the only user.
7575 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
7576
7577 2010-04-27 Glenn Morris <rgm@gnu.org>
7578
7579 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7580 since the defaults (set by the system file) are fine in most cases.
7581 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7582 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7583 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7584 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7585 Remove definitions, since they are set correctly in s/gnu-linux.h.
7586 * s/freebsd.h (START_FILES, LIB_STANDARD):
7587 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7588 * s/hpux10-20.h (START_FILES):
7589 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7590 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7591
7592 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7593 (MOTIF_LIBW): Use $LIBXP.
7594 (otherobj): Use $WIDGET_OBJ.
7595
7596 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7597
7598 * Makefile.in (LIBS_MACHINE): Remove, unused.
7599
7600 Use autoconf instead of cpp for LIB_MATH.
7601 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7602 * s/cygwin.h (LIB_MATH): Likewise.
7603 * Makefile.in (LIB_MATH): Do not define with cpp.
7604 (LIBES): Use autoconf for LIB_MATH.
7605
7606 2010-04-26 Kenichi Handa <handa@m17n.org>
7607
7608 * composite.c (Ffind_composition_internal): Fix the return value
7609 for an automatic composition.
7610
7611 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7612
7613 Remove all NO_ARG_ARRAY uses.
7614 * fns.c (concat2, concat3, nconc2):
7615 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7616 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7617 * m/xtensa.h (NO_ARG_ARRAY):
7618 * m/template.h (NO_ARG_ARRAY):
7619 * m/sparc.h (NO_ARG_ARRAY):
7620 * m/sh3.h (NO_ARG_ARRAY):
7621 * m/mips.h (NO_ARG_ARRAY):
7622 * m/macppc.h (NO_ARG_ARRAY):
7623 * m/iris4d.h (NO_ARG_ARRAY):
7624 * m/intel386.h (NO_ARG_ARRAY):
7625 * m/ibms390x.h (NO_ARG_ARRAY):
7626 * m/ibms390.h (NO_ARG_ARRAY):
7627 * m/ibmrs6000.h (NO_ARG_ARRAY):
7628 * m/ia64.h (NO_ARG_ARRAY):
7629 * m/hp800.h (NO_ARG_ARRAY):
7630 * m/arm.h (NO_ARG_ARRAY):
7631 * m/amdx86-64.h (NO_ARG_ARRAY):
7632 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7633
7634 2010-04-25 Eli Zaretskii <eliz@gnu.org>
7635
7636 * xdisp.c (display_line): Don't assume 2nd call to
7637 get_next_display_element cannot return zero. (Bug#6030)
7638 (iterate_out_of_display_property): New function, body from pop_it.
7639 (pop_it): Use it.
7640
7641 2010-04-24 Glenn Morris <rgm@gnu.org>
7642
7643 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7644 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7645 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7646 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7647
7648 2010-04-24 Eli Zaretskii <eliz@gnu.org>
7649
7650 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7651 use `get_next_display_element' and `set_iterator_to_next' to
7652 advance to the next character, when looking for the character that
7653 begins the next row.
7654
7655 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
7656 definition of "struct Lisp_Symbol".
7657
7658 2010-04-24 Glenn Morris <rgm@gnu.org>
7659
7660 * Makefile.in (CRT_DIR): New variable, set by configure.
7661 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7662 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7663
7664 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7665
7666 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7667
7668 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7669
7670 Remove redundant flags.
7671 * s/freebsd.h (C_SWITCH_SYSTEM):
7672 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7673 * s/netbsd.h (C_SWITCH_SYSTEM):
7674 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7675 of these.
7676
7677 Simplify m/intel386.h.
7678 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7679 user: ecrt0.c.
7680 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7681 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7682 the only user: s/unixware.h.
7683 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7684 from m/intel386.h.
7685 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7686 Definitions moved here from m/intel386.h.
7687
7688 * m/mips.h: Remove #if 0 code.
7689
7690 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7691
7692 Fix display of composed characters from L2R scripts in bidi buffers.
7693 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7694 After advancing IT past the composition, resync the bidi iterator
7695 with IT's position. (Bug#5977)
7696
7697 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7700 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7701
7702 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7703
7704 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7705
7706 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7707
7708 Support `display' text properties and overlay strings in bidi buffers.
7709 * xdisp.c (pop_it): When the stack is popped after displaying
7710 from a string, bidi-iterate to exit from the text portion covered
7711 by the `display' property or overlay. (Bug#5988, bug#5920)
7712
7713 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7714
7715 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7716 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7717
7718 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7719 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7720
7721 Simplify STARTFILES definition.
7722 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7723 relying on Makefile.in to define it.
7724 * s/cygwin.h (START_FILES): Likewise.
7725 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7726
7727 Clean up Solaris code.
7728 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7729 (LIB_MOTIF): Remove, configure takes care of this.
7730 (NOT_USING_MOTIF): Remove, unused.
7731 * xrdb.c: Remove #if 0-ed #include.
7732 (SYSV): Remove conditional for old SysV.
7733 * sysdep.c (closedir): Remove conditional code for Solaris,
7734 Solaris has closedir.
7735
7736 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7737
7738 * xsettings.c (read_and_apply_settings): Check if current_font is
7739 NULL before strcmp (Bug#6001).
7740
7741 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7742
7743 Clean up HP-UX files.
7744 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7745 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7746 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7747 * s/hpux10-20.h: ... to the only user, here.
7748
7749 2010-04-21 Eli Zaretskii <eliz@gnu.org>
7750
7751 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7752 use buffer-local values of paragraph-start and paragraph-separate.
7753 <paragraph_start_re, paragraph_separate_re>: Rename from
7754 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7755 (Bug#5992)
7756
7757 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7758
7759 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7760 current_tool_bar_style are new.
7761 (store_config_changed_event): Rename from store_font_changed_event.
7762 (XSETTINGS_TOOL_BAR_STYLE): New define.
7763 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7764 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7765 HAVE_XFT.
7766 (something_changedCB): store_font_changed_event is now
7767 store_config_changed_event.
7768 (parse_settings): Rename from parse_xft_settings.
7769 Read non-xft xsettings outside #ifdef HAVE_XFT.
7770 (read_settings): Rename from read_xft_settings.
7771 (apply_xft_settings): Take current settings as parameter. Do not
7772 call read_(xft)_settings.
7773 (read_and_apply_settings): New function.
7774 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7775 Call read_and_apply_settings if there are settings to be read.
7776 (init_xsettings): Rename from init_xfd_settings.
7777 Call read_and_apply_settings unconditionally.
7778 (xsettings_initialize): Call init_xsettings.
7779 (Ftool_bar_get_system_style): New function.
7780 (syms_of_xsettings): Define Qmonospace_font_name and
7781 Qtool_bar_style. Initialize current_tool_bar_style to nil.
7782 defsubr Stool_bar_get_system_style. Fprovide on
7783 dynamic-setting.
7784 Move misplaced HAVE_GCONF
7785
7786 * xsettings.h (Ftool_bar_get_system_style): Declare.
7787
7788 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7789 Qtext, Qboth, Qboth_horiz are new.
7790 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7791 Vtool_bar_style, tool_bar_max_label_size.
7792
7793 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7794
7795 * keyboard.c: QClabel is new.
7796 (parse_tool_bar_item): Take out QClabel from tool bar items.
7797 Try to construct a label if ther is no QClabel.
7798 (syms_of_keyboard): Intern :label as QClabel.
7799
7800 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7801 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7802 New.
7803
7804 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7805 dynamic-setting.el.
7806
7807 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7808 (xg_make_tool_item, xg_show_toolbar_item): New function.
7809 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7810 Call xg_make_tool_item to make a tool bar item.
7811 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7812
7813 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7814 into account for toolbars.
7815
7816 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7817
7818 * data.c (make_blv): Declarations before code (Bug#5993).
7819
7820 2010-04-21 Glenn Morris <rgm@gnu.org>
7821
7822 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7823 Define using autoconf, not cpp.
7824 (LIBXSM): New variable, set by autoconf.
7825 (LIBXT): Use $LIBXSM.
7826
7827 2010-04-21 Dan Nicolaescu <local_user@dannlt>
7828
7829 Remove NOMULTIPLEJOBS, unused.
7830 * s/template.h (NOMULTIPLEJOBS):
7831 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7832
7833 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7834 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7835 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7836 detects -znocombreloc and passes it to the linker
7837 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7838
7839 2010-04-21 Glenn Morris <rgm@gnu.org>
7840
7841 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7842
7843 2010-04-21 Karel Klíč <kklic@redhat.com>
7844
7845 * Makefile.in (LIBSELINUX_LIBS): New.
7846 (LIBES): Add $LIBSELINUX_LIBS.
7847 * eval.c, lisp.h (call7): New function.
7848 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7849 (Ffile_selinux_context, Fset_file_selinux_context):
7850 New functions.
7851 (Fcopy_file): New parameter preserve-selinux-context.
7852 (Frename_file): Preserve selinux context when renaming by copy-file.
7853
7854 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
7855 Eli Zaretskii <eliz@gnu.org>
7856
7857 Don't depend on cm.c or termcap.c on Windows, use stubs.
7858 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7859 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7860 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7861 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7862 (sys_tputs, sys_tgetstr): New stubs.
7863 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7864 (tputs, tgetstr): New; define to sys_*.
7865
7866 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
7867
7868 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7869
7870 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7871
7872 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7873 Just signal a warning rather than an error when inside a let.
7874 (Fmake_variable_frame_local): Add the same test.
7875
7876 * font.c (syms_of_font): Make the style table vars read-only.
7877
7878 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7879 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7880
7881 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7882
7883 2010-04-20 Eli Zaretskii <eliz@gnu.org>
7884
7885 Fix R2L paragraph display on TTY.
7886
7887 * xdisp.c (unproduce_glyphs): New function.
7888 (display_line): Use it when produced glyphs are discarded from R2L
7889 glyph rows.
7890 (append_composite_glyph): In R2L rows, prepend the glyph rather
7891 than appending it.
7892
7893 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7894 rather than append it. Set up the resolved_level and bidi_type
7895 attributes of the appended glyph.
7896 (produce_special_glyphs): Mirror the backslash continuation
7897 character in R2L lines.
7898
7899 Implement display of R2L paragraphs in GUI sessions.
7900
7901 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7902 append_stretch_glyph.
7903 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7904 Fix off-by-one error in computing x at end of text in the row.
7905 (append_stretch_glyph): In reversed row, prepend the glyph rather
7906 than append it. Set resolved_level and bidi_type of the glyph.
7907 (extend_face_to_end_of_line): If the row is reversed, prepend a
7908 stretch glyph whose width is such that the rightmost glyph will be
7909 drawn at the right margin of the window. Fix off-by-one error on
7910 TTY frames in testing whether a line needs face extension.
7911 Fix face extension at ZV. If this is the last glyph row, use
7912 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7913 region face.
7914 (set_cursor_from_row, display_line):
7915 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
7916 row->continuation_lines_width.
7917 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7918 are at ZV. Fixes a crash when reseated to ZV by
7919 try_window_reusing_current_matrix.
7920 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7921 which happens with R2L glyph rows. Fixes a crash when inserting a
7922 character at end of an R2L line.
7923 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7924 treat them as having zero-width characters. Improve comments.
7925 Don't reverse pos_before and pos_after for reversed glyph rows.
7926 Set cursor.x to negative value when the cursor might be on the
7927 left fringe.
7928 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7929 left fringe, not the right one.
7930 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7931 (erase_phys_cursor): For reversed cursor_row, support cursor on
7932 the left fringe.
7933
7934 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7935 of continuation indicators on the fringes.
7936 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7937 left fringe.
7938
7939 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7940 draw cursor on the left fringe.
7941
7942 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7943 cursor on the left fringe.
7944
7945 * dispnew.c (update_text_area): Handle reversed desired rows when
7946 the cursor is on the left fringe.
7947 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7948 below, not by 0, for when the cursor is on the left fringe.
7949
7950 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7951
7952 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7953 widget is a scrollbar.
7954
7955 2010-04-20 Kenichi Handa <handa@m17n.org>
7956
7957 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7958 only when the arg CHARSET_LIST is nil.
7959
7960 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7961
7962 Make variable forwarding explicit rather the using special values.
7963 Basically, this makes the structure of buffer-local values and object
7964 forwarding explicit in the type of Lisp_Symbols rather than use
7965 special Lisp_Objects for that. This tends to lead to slightly more
7966 verbose code, but is more C-like, simpler, and makes it easier to make
7967 sure we handled all cases, among other things by letting the compiler
7968 help us check it.
7969 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7970 Removing forwarding objects.
7971 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7972 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7973 explicit rather than hiding them inside Lisp_Object "values".
7974 (XFWDTYPE): New macro.
7975 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7976 (XBUFFER_LOCAL_VALUE): Remove.
7977 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7978 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7979 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7980 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7981 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7982 Remove the Lisp_Misc_* header.
7983 (struct Lisp_Buffer_Local_Value): Redefine.
7984 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7985 (struct Lisp_Misc_Any): Add filler to get the right size.
7986 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7987 Lisp_Intfwd.
7988 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7989 (DEFVAR_KBOARD): Allocate a forwarding object.
7990 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7991 (let_shadows_global_binding_p): New function.
7992 (union Lisp_Val_Fwd): New type.
7993 (make_blv): New function.
7994 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7995 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7996 (swap_in_symval_forwarding, find_symbol_value, Fset)
7997 (let_shadows_buffer_binding_p, set_internal, default_value)
7998 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7999 (Fkill_local_variable, Fmake_variable_frame_local)
8000 (Flocal_variable_p, Flocal_variable_if_set_p)
8001 (Fvariable_binding_locus):
8002 * xdisp.c (select_frame_for_redisplay):
8003 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8004 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8005 * frame.c (store_frame_param):
8006 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8007 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8008 value structure.
8009 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8010 (clone_per_buffer_values): Only adjust markers into the current buffer.
8011 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8012 (Fbuffer_local_value, set_buffer_internal_1)
8013 (swap_out_buffer_local_variables):
8014 Adapt to the new symbol value structure.
8015 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8016 (defvar_per_buffer): Take a new arg for the fwd object.
8017 (buffer_lisp_local_variables): Return a proper alist (different fix
8018 for bug#4138).
8019 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8020 (Fgarbage_collect): Don't handle buffer_defaults specially.
8021 (mark_object): Handle new symbol value structure rather than the old
8022 special Lisp_Misc_* objects.
8023 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8024 * term.c (set_tty_color_mode):
8025 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8026 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8027 a buffer_local_flags.
8028 * print.c (print_object): Get rid of impossible forwarding objects.
8029
8030 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8031
8032 * bidi.c (bidi_get_type, bidi_get_category)
8033 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
8034 (bidi_type_of_next_char, bidi_level_of_next_char):
8035 Declare static. Use `INLINE' rather than `inline'.
8036
8037 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
8038
8039 * dired.c (Ffile_attributes): Fix typo in docstring.
8040
8041 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8042
8043 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8044 NSInteger (Bug#5811).
8045
8046 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8047
8048 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8049 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8050
8051 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8052
8053 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8054
8055 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
8056
8057 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8058 terminal frames (Bug#5837).
8059
8060 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8061
8062 * .gdbinit (xsubchartable): New command.
8063
8064 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8065
8066 * xdisp.c (display_line): Don't write beyond the last glyph row in
8067 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
8068 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8069 and
8070 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8071
8072 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8073
8074 * alloc.c (Fpurecopy): Hash-cons if requested.
8075 (syms_of_alloc): Update purify-flag docstring.
8076
8077 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8078
8079 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8080 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8081
8082 2010-04-17 Eli Zaretskii <eliz@gnu.org>
8083
8084 Fix a crash when an NSM character is inserted at BEGV.
8085
8086 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8087 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8088 NEUTRAL_B or UNKNOWN_BT.
8089
8090 2010-04-16 Eli Zaretskii <eliz@gnu.org>
8091
8092 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8093 other rows with cursor unless they are different from this row and
8094 this row is part of a continued line. (Bug#5943)
8095
8096 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8097
8098 * s/freebsd.h: Restore osreldate.h include.
8099 Suggested by Naohiro Aota.
8100
8101 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8102
8103 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8104
8105 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8106
8107 * s/cygwin.h: Avoid linking against static libgcc.
8108
8109 2010-04-15 Juri Linkov <juri@jurta.org>
8110
8111 * window.c: Add Qscroll_command.
8112 Remove Vscroll_preserve_screen_position_commands.
8113 (window_scroll_pixel_based, window_scroll_line_based): Check the
8114 `scroll-command' property on the last command instead of searching
8115 the last command in Vscroll_preserve_screen_position_commands.
8116 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8117 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8118 (scroll-preserve-screen-position): Doc fix.
8119 (Vscroll_preserve_screen_position_commands): Remove variable.
8120
8121 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8122
8123 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8124
8125 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8126
8127 Reduce cpp use in Makefile.in.
8128 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8129 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8130 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8131 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8132 (CRT0_COMPILE): Remove, inline it in the only user.
8133
8134 2010-04-14 Juri Linkov <juri@jurta.org>
8135
8136 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8137 `scroll-up-command' and `M-v' from `scroll-down' to
8138 `scroll-down-command'.
8139
8140 2010-04-14 Juri Linkov <juri@jurta.org>
8141
8142 * window.c (Vscroll_preserve_screen_position_commands): New variable
8143 with the default value as the list of Qscroll_down and Qscroll_up.
8144 (window_scroll_pixel_based, window_scroll_line_based): Search the
8145 last command in the list Vscroll_preserve_screen_position_commands
8146 instead of comparing with Qscroll_up and Qscroll_down.
8147
8148 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8149
8150 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8151 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8152 does that.
8153
8154 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8155 to zero.
8156
8157 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8158
8159 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8160
8161 Try to solve the problem of spurious EOF chars in long lines of text
8162 sent to interactive subprocesses.
8163 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8164 (system_process_attributes): Remove unused var `ttotal'.
8165 * process.c (send_process): Don't bother breaking long line with EOF
8166 chars when talking to ttys any more.
8167 (wait_reading_process_output): Output a warning when called in such
8168 a way that it could block without being interruptible.
8169
8170 Try to detect file modification within the same second.
8171 * buffer.h (struct buffer): New field modtime_size.
8172 * buffer.c (reset_buffer): Initialize it.
8173 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8174 (Fverify_visited_file_modtime): Check it.
8175 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8176 (Fset_visited_file_modtime): Set (or clear) it.
8177
8178 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * process.c (status_notify): Remove unused var `ro'.
8181
8182 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8183
8184 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8185 more than one visual (Bug#5938).
8186
8187 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8188
8189 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8190 Undefine.
8191
8192 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8193
8194 Remove C_SWITCH_SYSTEM_TEMACS.
8195 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8196 (malloc, realloc, free): Use emacs, not temacs for conditional
8197 definition.
8198
8199 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8200 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8201
8202 Use autoconf, not cpp for some variables.
8203 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8204 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8205 (ALL_CFLAGS): Use them as make variables.
8206 (really-lwlib, really-oldXMenu): Do not pass them.
8207
8208 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8209
8210 * xmenu.c (apply_systemfont_to_dialog): New.
8211 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8212
8213 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8214
8215 * process.c (exec_sentinel): Preserve current-buffer.
8216
8217 * process.c (read_process_output): Move the save-current-buffer to
8218 apply to both the filter and the non-filter branches.
8219
8220 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8221
8222 * s/msdos.h (UNEXEC): New definition.
8223
8224 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8225
8226 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8227 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8228
8229 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8230 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8231 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8232 TRY_WINDOW_CHECK_MARGINS.
8233
8234 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8235 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8236 width only when it is for padding.
8237
8238 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8239
8240 * xfns.c (Fx_show_tip): Call try_window in a loop until
8241 fonts_changed_p is zero (Bug#2423).
8242
8243 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8244
8245 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8246 the end of TEXT_AREA. (Bug#5856)
8247
8248 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8249
8250 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8251 HAVE_GCONF.
8252
8253 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8254
8255 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8256 prev.orig_type, for resolving type of NSM. (Bug#5858)
8257
8258 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8259
8260 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8261 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8262 in current_font.
8263 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8264 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8265 New functions.
8266 (syms_of_xsettings): Initialize current_font.
8267 defsubr Sfont_get_system_normal_font.
8268
8269 * xsettings.h (Ffont_get_system_normal_font)
8270 (xsettings_get_system_normal_font): Declare.
8271
8272 * xfns.c (extern xlwmenu_default_font): Remove.
8273 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8274 to xlwmenu.c.
8275
8276 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8277 menu items in UTF-8.
8278
8279 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8280 (apply_systemfont_to_menu): New function.
8281 (set_frame_menubar, create_and_show_popup_menu):
8282 Call apply_systemfont_to_menu.
8283
8284 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8285
8286 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8287 FRAME_LINE_TO_PIXEL_Y.
8288
8289 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8290 pixelwidth/height.
8291
8292 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8293
8294 Simplify code for HP machines.
8295 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8296 for GNU_LINUX, not needed.
8297 (UNEXEC, NEED_BSDTTY): Move definitions...
8298 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8299
8300 * m/iris4d.h (UNEXEC): Move definition ...
8301 * s/irix6-5.h (UNEXEC): ... here.
8302
8303 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8304
8305 * xfns.c (set_machine_and_pid_properties): New function.
8306 (Fx_create_frame): Call set_machine_and_pid_properties.
8307
8308 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8309
8310 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8311 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8312 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8313
8314 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8315 in this function. (Bug#5703)
8316
8317 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8318
8319 * nsterm.h: Fix last change.
8320
8321 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8322
8323 * m/intel386.h (NO_REMAP): Move definition ...
8324 * s/msdos.h (NO_REMAP): ... here.
8325
8326 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8327
8328 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8329 used on those platforms.
8330
8331 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8332
8333 Remove extern errno declarations.
8334 * xterm.c:
8335 * xrdb.c:
8336 * w32term.c:
8337 * unexec.c:
8338 * unexaix.c:
8339 * sysdep.c:
8340 * process.c:
8341 * lread.c:
8342 * keyboard.c:
8343 * floatfns.c:
8344 * filelock.c:
8345 * fileio.c:
8346 * emacs.c (main):
8347 * ecrt0.c:
8348 * dispnew.c:
8349 * callproc.c:
8350 * buffer.c: Remove errno extern declarations.
8351 * s/netbsd.h (NEED_ERRNO): Remove.
8352
8353 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8354
8355 Remove all uses of LIBX11_SYSTEM.
8356 * Makefile.in (LIBX11_SYSTEM): Remove.
8357 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8358 instead.
8359
8360 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8361
8362 Remove support for DJGPP v1.x (bug#5813).
8363
8364 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8365 * s/msdos.h:
8366 * unexec.c (make_hdr, copy_text_and_data):
8367 * sysdep.c (wait_for_termination, sys_subshell):
8368 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8369 (IT_set_terminal_modes, __write, _rename, gethostname)
8370 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8371 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8372 the value of __DJGPP__.
8373 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8374 compatibility code.
8375 * lread.c:
8376 * gmalloc.c (memalign):
8377 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8378 * emacs.c (main):
8379 * dosfns.c (init_dosfns):
8380 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8381
8382 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8383
8384 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8385 string with `cursor' property comes from an `after-string'
8386 overlay. (Bug#5816)
8387
8388 2010-04-01 Glenn Morris <rgm@gnu.org>
8389
8390 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8391 Define as Makefile variables.
8392 (LIBX): Use above variables rather than directly using autoconf.
8393
8394 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8395
8396 Clean up BSD_SYSTEM use.
8397 * xterm.c:
8398 * process.c:
8399 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8400 for including <sys/ioctl.h>.
8401 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8402 code is only used for MSDOS.
8403
8404 2010-03-31 Juri Linkov <juri@jurta.org>
8405
8406 * image.c: Add `Qextension_data'.
8407 (syms_of_image): Initialize and staticpro `Qextension_data'.
8408 (Fimage_metadata): Rename from `Fimage_extension_data'.
8409 (gif_load): Put GIF extension data to the property
8410 `Qextension_data'.
8411
8412 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8413
8414 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8415 * nsterm.h: Fix prototype.
8416
8417 2010-03-31 Eli Zaretskii <eliz@gnu.org>
8418
8419 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8420 trailing whitespace in right-to-left rows.
8421
8422 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8423
8424 Get rid of the direct_output optimizations.
8425 * keyboard.c (nonundocount): Remove extern declaration.
8426 (command_loop_1): Remove brittle optimisation for cheap and
8427 common operations.
8428 * xdisp.c (redisplay_internal): Don't bother checking
8429 redisplay_performed_directly_p any more.
8430 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8431 any more.
8432 * dispnew.c (redisplay_performed_directly_p)
8433 (direct_output_for_insert, direct_output_forward_char):
8434 * dispextern.h (redisplay_performed_directly_p)
8435 (direct_output_for_insert, direct_output_forward_char): Remove.
8436 * cmds.c (nonundocount): Make it static.
8437
8438 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
8439
8440 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8441
8442 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
8443
8444 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8445 invisible (Bug#5766).
8446
8447 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
8448
8449 * xdisp.c (x_consider_frame_title, update_window_cursor):
8450 Remove HAVE_NS conditionals.
8451 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
8452
8453 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8454 filename for the title.
8455 (ns_set_doc_edited): Do nothing if the selected window is a
8456 minibuffer window.
8457
8458 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8459 ns_set_doc_edited.
8460
8461 * nsterm.m: Remove unneeded prototype.
8462
8463 2010-03-31 Glenn Morris <rgm@gnu.org>
8464
8465 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8466 in the DOC file. (Bug#5336)
8467
8468 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8471
8472 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8473
8474 * window.c (keys_of_window): Remove redundant/overridden bindings.
8475
8476 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8477
8478 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8479 Restore original behavior when the iterator is not bidi_p.
8480
8481 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8482
8483 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8484
8485 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8486
8487 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8488 are outside the range of cached character positions.
8489
8490 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
8491
8492 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8493
8494 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8495
8496 Initial support for bidirectional editing.
8497
8498 * Makefile.in (obj): Include bidi.o.
8499 (bidi.o): New target.
8500
8501 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8502 ($(BLD)/bidi.$(O)): New target.
8503
8504 * bidi.c: New file.
8505
8506 * buffer.h (struct buffer): New members bidi_display_reordering
8507 and bidi_paragraph_direction.
8508
8509 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8510 and bidi_paragraph_direction.
8511 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8512 and bidi-paragraph-direction.
8513 (Fbuffer_swap_text): Swap the values of
8514 bidi_display_reordering and bidi_paragraph_direction.
8515
8516 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8517 (bidi_type_t, bidi_dir_t): New types.
8518 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8519 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8520 prev_stop, base_level_stop, and eol_pos.
8521 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8522 (IT_STACK_SIZE): Enlarge to 5.
8523 (struct glyph_row): New member reversed_p.
8524 <string_buffer_position>: Update prototype.
8525 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8526 glyph_row if bidi_it.paragraph_dir == R2L.
8527 (struct glyph): New members resolved_level and bidi_type.
8528
8529 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8530 processing or buffer's direction is right-to-left.
8531 (prepare_desired_row): Preserve the reversed_p flag.
8532 (row_equal_p): Compare the reversed_p attributes as well.
8533
8534 * xdisp.c (init_iterator): Initialize it->bidi_p.
8535 Call bidi_init_it and set it->paragraph_embedding from the current
8536 buffer's value of bidi_paragraph_direction.
8537 (reseat_1): Initialize bidi_it.first_elt.
8538 (set_iterator_to_next, next_element_from_buffer): Use the value of
8539 paragraph_embedding to determine the paragraph direction.
8540 (set_iterator_to_next): Under bidi reordering, call
8541 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8542 new_paragraph flag is set in the bidi iterator.
8543 (next_element_from_buffer): If bidi_it.first_elt is set,
8544 initialize paragraph direction and find the first character to
8545 display in the visual order. If reseated to a middle of a line,
8546 prime the bidi iterator starting at the line's beginning.
8547 Handle the situation where we overstepped stop_charpos due to
8548 non-linearity of the bidi iteration. Likewise for when we back up
8549 beyond the previous stop_charpos. When moving across stop_charpos,
8550 record it in prev_stop.
8551 (display_line): Set row->end and it->start for the next row to the
8552 next character in logical order. Always extend reversed_p rows to
8553 the end of line, even if they end at ZV. Copy the reversed_p flag
8554 to the next glyph row. Keep calling set_cursor_from_row for
8555 bidi-reordered rows even if we already have a possible candidate
8556 for cursor position. Set row_end after all the row's glyphs have
8557 been produced, by looping over the glyphs. Record the position
8558 after EOL in it->eol_pos, and use it to set end_pos of the last
8559 row produced for a continued line.
8560 <Qright_to_left, Qleft_to_right>: New variables.
8561 (syms_of_xdisp): Initialize and staticpro them.
8562 (string_buffer_position_lim): New function.
8563 (string_buffer_position): Most of code moved to
8564 string_buffer_position_lim. Last argument and return value are
8565 now EMACS_INT; all callers changed.
8566 (set_cursor_from_row): Rewritten to support bidirectional text and
8567 reversed glyph rows.
8568 (text_outside_line_unchanged_p, try_window_id):
8569 Disable optimizations if we are reordering bidirectional text and the
8570 paragraph direction can be affected by the change.
8571 (append_glyph, append_composite_glyph)
8572 (produce_image_glyph, append_stretch_glyph): Set the
8573 resolved_level and bidi_type members of each glyph.
8574 (append_glyph): If the glyph row is reversed, prepend the glyph
8575 rather than appending it.
8576 (handle_stop_backwards): New function.
8577 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8578 (reseat): call handle_stop_backwards to recompute prev_stop and
8579 base_level_stop for the new position.
8580 (handle_invisible_prop): Under bidi iteration, skip invisible text
8581 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8582 paragraph direction. Update IT->prev_stop after skipping
8583 invisible text.
8584 (move_it_in_display_line_to): New variables prev_method
8585 and prev_pos. Compare for strict equality in
8586 BUFFER_POS_REACHED_P.
8587 (try_cursor_movement): Examine all the candidate rows that occlude
8588 point, to return the best match. If rows are bidi-reordered
8589 and point moved backwards, back up to the row that is not a
8590 continuation line, and start looking for a suitable row from
8591 there.
8592
8593 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8594 rather than appending, if the glyph_row's reversed_p flag is set.
8595 Set the resolved_level and bidi_type members of each glyph.
8596
8597 * .gdbinit (pbiditype): New command.
8598 (pgx): Use it to display bidi level and type of the glyph.
8599 (pitx): Display some bidi information about the iterator.
8600 (prowlims, pmtxrows): New commands.
8601
8602 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8603
8604 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8605 * s/usg5-4.h (LIBS_DEBUG):
8606 * s/irix6-5.h (C_DEBUG_SWITCH):
8607 * s/gnu-linux.h (LIBS_DEBUG):
8608 * s/darwin.h (LIBS_DEBUG):
8609 * s/bsd-common.h (LIBS_DEBUG):
8610 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8611 * m/iris4d.h (LIBS_DEBUG):
8612 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8613
8614 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8615 (LIBS_DEBUG): Remove definition.
8616
8617 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
8618
8619 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8620 Windows.
8621
8622 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8623
8624 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8625 `connect' (Bug#5723).
8626
8627 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
8628
8629 * process.c (Fmake_network_process): Call `select' for interrupted
8630 `connect' rather than creating new socket (Bug#5173).
8631
8632 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
8633
8634 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8635
8636 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8637
8638 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8639
8640 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8641
8642 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8643 XLoadQueryFont.
8644
8645 2010-03-24 Kenichi Handa <handa@m17n.org>
8646
8647 * coding.c (decode_coding_ccl): Fix previous change for the
8648 multibyte case.
8649 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8650 case that the output buffer is fullfilled.
8651 (encode_coding): Setup ccl program here.
8652
8653 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8654
8655 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8656
8657 Simplify LIBS_MACHINE definitions.
8658 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8659 * m/iris4d.h (LIBS_MACHINE): Likewise.
8660 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8661 * s/aix4-2.h (LIBS_SYSTEM): ... here.
8662 * s/netbsd.h: Remove commented out code.
8663
8664 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8665
8666 Remove dead code dealing with POSIX_SIGNALS.
8667 * atimer.c (set_alarm): Remove dead code, all USG systems define
8668 POSIX_SIGNALS.
8669 * data.c (arith_error): Likewise.
8670 * keyboard.c (input_available_signal, handle_user_signal)
8671 (interrupt_signal): Likewise.
8672 * process.c (sigchld_handler): Likewise.
8673 (create_process): Remove if 0 code. Remove HPUX conditional when
8674 !defined (POSIX_SIGNALS), it cannot be true.
8675 * syssignal.h: Remove USG5_4 and USG conditionals when
8676 !POSIX_SIGNALS, they cannot be true.
8677
8678 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8679 NO_SOCK_SIGIO, not used anymore.
8680
8681 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8682
8683 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8684 support vax on BSDs.
8685
8686 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8687 * s/aix4-2.h (ORDINARY_LINK): ... here.
8688
8689 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8690
8691 * Makefile.in (abs_builddir): Define.
8692 (bootstrap_exe): Use it.
8693 (VPATH): Use $(srcdir) instead of @srcdir@.
8694
8695 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8696
8697 * Makefile.in (bootstrap_exe): Use an absolute name.
8698
8699 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8700
8701 Remove support for old GNU/Linux using libc version 5.
8702 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8703 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8704
8705 Consolidate redundant definitions in s/bsd-common.h.
8706 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8707 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8708 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8709 doing it in all files that include this one.
8710 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8711 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8712 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8713 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8714 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8715 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8716 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8717 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8718 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8719
8720 Consolidate redundant definitions.
8721 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8722 it's undefined in all files that include this one.
8723 (POSIX_SIGNALS): Define here instead of doing it in all files that
8724 include this one.
8725 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8726 (POSIX_SIGNALS): Do not define.
8727 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8728 (POSIX_SIGNALS): Do not define.
8729 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8730 (POSIX_SIGNALS): Do not define.
8731
8732 Remove support for old UNIX System V systems.
8733 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8734 * s/usg-5-4-2.h: Remove.
8735
8736 Remove support for Solaris on PPC and for old versions.
8737 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8738 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8739 that cancel each other.
8740 * s/sol2-3.h:
8741 * s/sol2-4.h:
8742 * s/sol2-5.h: Remove.
8743 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8744 (NO_REMAP): Remove, unused.
8745 (UNEXEC): Move definition ...
8746 * s/aix4-2.h (UNEXEC): ... here.
8747
8748 * s/openbsd.h: Remove support for non-ELF and for systems that do
8749 not support shared libraries.
8750 * s/netbsd.h:
8751 * s/freebsd.h: Likewise.
8752
8753 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8754
8755 Remove non-working support for lynxos 3.0.
8756 * s/lynxos.h: Remove file.
8757
8758 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8759 COFF_BSD_SYMBOLS, nothing defines it anymore.
8760
8761 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8762
8763 Remove obsolete uses of HAVE_SHM.
8764 * emacs.c (standard_args):
8765 (Fdump_emacs):
8766 (syms_of_emacs): Remove code depending on HAVE_SHM.
8767
8768 * alloc.c: Remove HAVE_SHM dependent definition.
8769
8770 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8771
8772 2010-03-18 Glenn Morris <rgm@gnu.org>
8773
8774 * emacs.c (USAGE4): Hard-code bug address.
8775 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8776 (bug_reporting_address): Remove.
8777 (main): Don't call bug_reporting_address.
8778
8779 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8780 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8781
8782 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
8783
8784 * xfns.c (Fx_create_frame):
8785 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8786 on left.
8787
8788 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8789
8790 * editfns.c (Fformat): Account for string precision when computing
8791 field width (Bug#5710).
8792
8793 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
8794
8795 * xfns.c (Fx_create_frame): Set default to Qright.
8796
8797 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8798 all window systems.
8799
8800 2010-03-12 Eli Zaretskii <eliz@gnu.org>
8801
8802 These changes remove termcap.c from the build on Posix platforms.
8803 * Makefile.in (termcapobj): Move termcap.o from here...
8804 (MSDOS_OBJ): ...to here.
8805 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8806 now identical to when LIBS_TERMCAP is defined.
8807
8808 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8809
8810 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8811
8812 * config.in: Regenerated. (See top-level ChangeLog.)
8813
8814 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
8815
8816 * Branch for 23.2.
8817
8818 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8819
8820 Cleanup setup of gl_state in various parts of the code.
8821 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8822 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8823 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8824 (skip_chars):
8825 * regex.c (regex_compile): Use it.
8826 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8827 it's now set in regex_compile when/if we need it.
8828
8829 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8832 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8833 (QUIT): Use it to consolidate code and remove redundancy.
8834 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8835
8836 * regex.c (regex_compile): Setup gl_state as well.
8837
8838 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8839 (in_classes): Use CONSP before XCAR/XCDR.
8840
8841 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
8842
8843 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8844 definitions, so that keyboard macros are correctly handled
8845 (Bug#5481).
8846
8847 2010-03-02 Eli Zaretskii <eliz@gnu.org>
8848
8849 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8850 text that could be relocated inside the call to emacs_mule_char.
8851 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8852 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8853
8854 2010-03-02 Kenichi Handa <handa@m17n.org>
8855
8856 * character.c (parse_str_as_multibyte): Fix handling of the
8857 multibyte form of raw-bytes.
8858 (str_as_multibyte): Likewise.
8859
8860 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8861 form of raw-bytes.
8862
8863 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
8864
8865 * charset.c (load_charset_map_from_file)
8866 (load_charset_map_from_vector): Zero out allocated
8867 charset_map_entries before using them.
8868
8869 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8870
8871 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8872
8873 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
8874
8875 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8876 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
8877
8878 2010-02-26 Kenichi Handa <handa@m17n.org>
8879
8880 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8881
8882 * xdisp.c (reseat_to_string): Fix previous change.
8883
8884 2010-02-26 David Reitter <david.reitter@gmail.com>
8885
8886 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8887 Lisp_Object (Bug#4736).
8888
8889 2010-02-25 Kenichi Handa <handa@m17n.org>
8890
8891 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8892
8893 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8894
8895 * xterm.c (XTflash): Move declarations before statements.
8896
8897 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8898 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8899 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8900 (xg_create_tool_bar): Remove unused variables.
8901 (x_wm_set_size_hint): Move declarations before statements.
8902 (xg_create_frame_widgets): Remove variable grav.
8903
8904 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
8905
8906 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8907
8908 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8909
8910 * term.c (fatal): Add a final \n if needed (bug#5596).
8911
8912 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
8913
8914 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8915
8916 2010-02-18 Glenn Morris <rgm@gnu.org>
8917
8918 * callint.c (Finteractive): Doc fix.
8919
8920 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8921
8922 * coding.c (record_conversion_result):
8923 Handle CODING_RESULT_INSUFFICIENT_DST.
8924 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8925 memory allocation error.
8926
8927 2010-02-17 Kenichi Handa <handa@m17n.org>
8928
8929 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8930 Fix for the case that the output buffer is fullfilled.
8931 (decode_coding): Setup ccl program here. Keep looping when the
8932 decoder stopped because the output buffer is
8933 fullfilled (bug#5534).
8934
8935 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8936
8937 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8938
8939 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
8940 bug #5571.
8941 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
8942 overdrawn.
8943
8944 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8945
8946 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8947 doing_interact here.
8948 (ice_connection_closed): New function.
8949 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8950 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8951 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8952 returns I/O error.
8953 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8954 bug #5512.
8955
8956 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
8957
8958 * nsfont.m (nsfont_open): The system's value for the font descent
8959 is negative, so round it down to avoid clipping.
8960
8961 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
8962
8963 * charset.c (load_charset_map_from_file)
8964 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
8965 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
8966
8967 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
8968
8969 * charset.c (load_charset_map_from_file): Allocate large
8970 charset_map_entries structure on the heap rather than the stack.
8971 (Bug#5526).
8972
8973 2010-01-31 Kenichi Handa <handa@m17n.org>
8974
8975 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
8976 size in NAME is invalid, return -1 (Bug#5396).
8977
8978 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
8979
8980 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8981 <deactivated@gmail.com> (Bug#3605).
8982
8983 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
8984
8985 * fileio.c (Frename_file): Correctly rename symlinks to
8986 directories (Bug#5496).
8987
8988 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8989
8990 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8991
8992 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8993
8994 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8995
8996 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
8997
8998 * frame.c (DEFAULT_ROWS): Change default to 35.
8999
9000 * xfns.c (x_default_font_parameter): Change default XFT font to
9001 monospace-10 (Bug#3643).
9002
9003 2010-01-29 Eli Zaretskii <eliz@gnu.org>
9004
9005 * w32inevt.c (key_event): Remove unnecessary comparison of
9006 event->uChar.AsciiChar with 128.
9007
9008 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
9009
9010 * fileio.c (Frename_file): Fix last change (Bug#5487).
9011
9012 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9013
9014 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9015
9016 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9017
9018 * xfns.c (Fx_create_frame): Remove window size matching code from
9019 2010-01-15.
9020 (x_get_current_desktop, x_get_desktop_workarea): Remove.
9021
9022 2010-01-27 Jason Rumney <jasonr@gnu.org>
9023
9024 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
9025 (key_event): Use unicode for characters 128 and higher (Bug#4567).
9026
9027 2010-01-27 Kenichi Handa <handa@m17n.org>
9028
9029 * regex.c (analyse_first): Fix setting of fastmap for unibyte
9030 pattern string (Bug#4209).
9031
9032 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
9033
9034 * fileio.c (Frename_file): Call copy-directory and
9035 delete-directory for directories, in order to handle cross-device
9036 renaming (Bug#3353).
9037
9038 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9039
9040 * xfns.c (Fx_create_frame): If frame height is too big, try
9041 sizes 24 and 10. Bug #3643.
9042
9043 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9044
9045 Try and fix bug#788, hopefully for real this time.
9046 * keymap.c (shadow_lookup): Add `remap' arg.
9047 (describe_map, describe_vector): Update calls to shadow_lookup.
9048 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9049 `remapped' so this flag is applicable to `sequence'. Be careful to
9050 perform remapping during shadow_lookup check of remapped_sequences.
9051
9052 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9053
9054 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9055 png_check_sig, which has been removed in libpng 1.4.
9056
9057 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9058
9059 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9060 lacks this header file).
9061
9062 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9063
9064 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9065 as in Emacs 22.
9066
9067 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9068
9069 * lisp.h (make_pure_string): String pointer arg now points to const.
9070
9071 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9072 args now point to const.
9073
9074 2010-01-22 Eli Zaretskii <eliz@gnu.org>
9075
9076 * lread.c (Fload): Don't treat files without .elc extension as
9077 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9078 them. (bug#5303)
9079
9080 2010-01-20 Kenichi Handa <handa@m17n.org>
9081
9082 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9083 treat the source as actual byte sequence.
9084
9085 2010-01-19 Alan Mackenzie <acm@muc.de>
9086
9087 Fix spurious before-change-functions invocation from (insert ?\n).
9088 * textprop.c (set_text_properties): Rename parameter
9089 `signal_after_change_p' to `coherent_change_p', and make the
9090 invocation of `modify_region' conditional on it.
9091
9092 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9093
9094 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9095 for debug purpose.
9096 (syms_of_xsettings): Declare xft-settings.
9097
9098 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9099
9100 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9101
9102 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9103
9104 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9105
9106 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * emacs.c (standard_args): Adjust arg priorities to reflect how
9109 they are processed in startup.el.
9110
9111 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9112
9113 * Makefile.in (lisp, shortlisp): Update.
9114
9115 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9116
9117 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9118 code, link the new kboard into all_kboard before running Lisp code,
9119 and protect the new terminal with GCPRO (Bug#5365).
9120 (x_term_init): Remove unused var `atom'.
9121 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9122
9123 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9124
9125 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9126 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9127 to find out usable size of the desktop. Don't make frames larger than
9128 this. Bug #3643.
9129
9130 2010-01-15 Kenichi Handa <handa@m17n.org>
9131
9132 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9133
9134 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9135
9136 * nsterm.m (Qnone): Define.
9137
9138 * nsfns.m (Qnone): Move definition to nsterm.m.
9139
9140 2010-01-14 Kenichi Handa <handa@m17n.org>
9141
9142 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9143 systems.
9144
9145 2010-01-14 Kenichi Handa <handa@m17n.org>
9146
9147 Make auto-composition work on all buffers even if they are
9148 fundamental mode.
9149
9150 * composite.c (Vauto_composition_mode): New variable.
9151 (composition_compute_stop_pos): Check Vauto_composition_mode
9152 instead of Vauto_composition_function.
9153 (composition_adjust_point, Ffind_composition_internal): Likewise.
9154 (syms_of_composite): Declare Lisp variable
9155 "auto-composition-mode" here.
9156
9157 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9158
9159 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9160 during call to vendor-specific-keysyms (Bug#5365).
9161
9162 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9163
9164 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9165 Call SIGNAL_THREAD_CHECK (Bug#5333).
9166
9167 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9168 Call SIGNAL_THREAD_CHECK.
9169
9170 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 Try to fix bug#5314. This is probably not the final word, tho.
9173 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9174 recent-auto-save-p as a side-effect.
9175 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9176 * buffer.c (Fkill_buffer, reset_buffer):
9177 * editfns.c (Fsubst_char_in_region):
9178 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9179 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9180
9181 2010-01-13 Kenichi Handa <handa@m17n.org>
9182
9183 Display buffer name, etc. in mode line by composing correctly.
9184
9185 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9186 STRING is not nil.
9187 (display_mode_element): Adjust for the change of
9188 decode_mode_spec and display_line.
9189 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9190 (display_string): Handle the case that STRING is non-null and
9191 LISP_STRING is not nil.
9192
9193 * xterm.c (x_draw_composite_glyph_string_foreground):
9194 Pay attention to s->face->overstrike.
9195
9196 * composite.c (composition_reseat_it): Don't check PT if STRING is
9197 non nil.
9198
9199 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9200
9201 * keyboard.c (read_char): Don't apply previous change when current
9202 buffer is unchanged by command execution.
9203
9204 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9205
9206 * keyboard.c (read_char): Return after executing from special map.
9207
9208 2010-01-12 Glenn Morris <rgm@gnu.org>
9209
9210 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9211 bug-gnu-emacs rather than emacs-pretest-bug.
9212
9213 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9214
9215 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9216 initializing the Lisp variables that depend on them.
9217
9218 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9219
9220 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9221 Clear areas that will not be updated after change of menu bar lines.
9222 Clear the menu bar window's current matrix when the window gets empty.
9223
9224 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * intervals.h, textprop.c (extend_property_ranges): Return value
9227 and args changed. Discard properties that begin at or after the
9228 new end (Bug#5306).
9229
9230 * editfns.c (Fformat): Caller changed.
9231
9232 * nsterm.m (ns_set_default_prefs): Delete function.
9233 (syms_of_nsterm): Initialize ns_command_modifier,
9234 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9235 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9236
9237 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9238 position (Bug#4040).
9239
9240 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9241
9242 * editfns.c (Ffloat_time): Doc fix.
9243
9244 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9245
9246 * xfns.c (Fx_create_frame): Don't create frame larger than display
9247 by default bug#3643.
9248
9249 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9250
9251 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9252 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9253 windows above internal border.
9254
9255 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9256 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9257 windows above internal border.
9258
9259 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9260 tool bar windows specially.
9261
9262 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9263
9264 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9265 specially.
9266 (XTflash): Take account of menu bar height.
9267
9268 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9269 specially.
9270
9271 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9272
9273 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9274 also be true before we can return early (bug #5339).
9275
9276 2010-01-06 David Reitter <david.reitter@gmail.com>
9277
9278 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9279 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9280 (Bug#3233).
9281
9282 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9283
9284 * font.c (font_open_entity): Enable chache and call cached_font_ok
9285 for the driver if defined.
9286 (QCuser_spec): New symbol.
9287 (font_spec_from_name): Save name as user-spec.
9288 (font_load_for_lface): Keep user-spec instead of name.
9289 (font_open_by_name): Save name as user-spec.
9290 (syms_of_font): Initialize QCuser_spec.
9291 (font_clear_prop): Clear name if it exists in font (bug#5157).
9292
9293 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9294 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9295 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9296
9297 * font.h (struct font_driver): Add cached_font_ok.
9298
9299 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9300
9301 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9302
9303 * xterm.c (x_new_font): Move code for setting rows/cols before
9304 resizing ...
9305 (x_set_window_size): ... to here. Bug #2568.
9306
9307 * gtkutil.c (xg_clear_under_internal_border): New function.
9308 (xg_frame_resized, xg_frame_set_char_size):
9309 Call xg_clear_under_internal_border.
9310 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9311
9312 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9313
9314 * keyboard.c (read_key_sequence): Catch keyboard switch after
9315 making a new tty frame (Bug#5095).
9316
9317 2010-01-05 Kenichi Handa <handa@m17n.org>
9318
9319 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9320
9321 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9322
9323 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9324 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9325 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9326
9327 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9328
9329 * dbusbind.c (xd_add_watch): Improve debug message.
9330 (xd_remove_watch): Improve debug message. If DATA is the session
9331 bus, unset D-Bus session environment.
9332 (Fdbus_init_bus): Pass the bus as argument to
9333 dbus_connection_set_watch_functions. (Bug#5283)
9334
9335 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9336
9337 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9338
9339 * lread.c (syms_of_lread): Make it clearer that these are the
9340 names of loaded files (Bug#5068).
9341
9342 * eval.c (run_hook_with_args): Handle the case where the global
9343 value has the obsolete single-function form (Bug#5026).
9344
9345 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9346
9347 * minibuf.c (Fall_completions): Minor optimization.
9348
9349 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9350
9351 * .gdbinit (pgx): Fix display of composite glyphs.
9352 Display cmp.from and cmp.to as well.
9353 (pitx): Fix last change.
9354
9355 2009-12-25 Kenichi Handa <handa@m17n.org>
9356
9357 * composite.h (composition_adjust_point): Update prototype.
9358
9359 * composite.c (composition_reseat_it): Don't make a composition
9360 spanning over point.
9361 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9362 composable characters.
9363 (composition_adjust_point): New arg NEW_PT. Callers changed.
9364
9365 * keyboard.c (command_loop_1): Force redisplay if the last point
9366 was within a composition.
9367 (adjust_point_for_property): Don't adjust point for automatic
9368 composition when called after buffer modification.
9369
9370 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9371
9372 * .gdbinit (pitx): Don't use enum names, use their values.
9373 Remove reference to non-existing value GET_FROM_COMPOSITION.
9374 (pgx): Don't use enum names, use their values.
9375 (pitmethod): New helper command.
9376 (pitx): Use it to display iteration method.
9377 (pgrowit): New command.
9378
9379 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9380
9381 Update dependencies in Makefile.in.
9382
9383 * Makefile.in (alloc.o): Depend on termhooks.h.
9384 (atimer.o): Depend on blockinput.h.
9385 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9386 and frame.h.
9387 (callint.o): Depend on systime.h, coding.h, and composite.h.
9388 (callproc.o): Depend on buffer.h.
9389 (casefiddle.o): Don't depend on charset.h.
9390 (casetab.o): Depend on character.h.
9391 (ccl.o): Depend on composite.h.
9392 (chartab.o): Depend on ccl.h.
9393 (cm.o): Depend on dispextern.h.
9394 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9395 (coding.o): Don't depend on $(INTERVALS_H).
9396 (composite.o): Don't depend on dispextern.h explicitly (it's in
9397 $(INTERVALS_H)). Depend on ccl.h.
9398 (data.o): Depend on systime.h, coding.h, composite.h,
9399 dispextern.h, font.h, and ccl.h.
9400 (dired.o): Depend on composite.h.
9401 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9402 composite.h (it's in $(INTERVALS_H)).
9403 (doc.o): Depend on systime.h, coding.h, and composite.h.
9404 (editfns.o): Don't depend explicitly on dispextern.h.
9405 (emacs.o): Depend on frame.h and coding.h.
9406 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9407 (fileio.o): Depend on frame.h and commands.h. Don't depend
9408 explicitly on dispextern.h.
9409 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9410 composite.h.
9411 (fns.o): Don't depend on termhooks.h.
9412 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9413 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9414 coding.h, $(INTERVALS_H), window.h, xterm.h.
9415 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9416 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9417 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9418 fontset.h, ccl.h, and ftfont.h.
9419 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9420 (gtkutil.o): Depend on dispextern.h and composite.h.
9421 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9422 termhooks.h, and ccl.h.
9423 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9424 (intervals.o): Depend on systime.h and coding.h.
9425 (keyboard.o): Depend on composite.h and coding.h.
9426 (keymap.o): Depend on coding.h and frame.h.
9427 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9428 (macros.o): Depend on systime.h, coding.h, and composite.h.
9429 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9430 and atimer.h.
9431 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9432 dispextern.h explicitly.
9433 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9434 Don't depend explicitly on dispextern.h and composite.h.
9435 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9436 (regex.o): Don't depend on charset.h.
9437 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9438 (search.o): Don't depend explicitly on composite.h.
9439 (sound.o): Depend on atimer.h and systime.h.
9440 (syntax.o): Don't depend explicitly on composite.h.
9441 (sysdep.o): Depend on coding.h and composite.h.
9442 (term.o): Depend on xterm.h and buffer.h.
9443 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9444 (textprop.o): Don't depend on dispextern.h explicitly.
9445 (undo.o): Depend on dispextern.h.
9446 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9447 dispextern.h and composite.h explicitly.
9448 (xdisp.o): Depend on ccl.h.
9449 (xfaces.o): Depend on coding.h and ccl.h.
9450 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9451 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9452 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9453 ftfont.h.
9454 (xgselect.o): New dependency.
9455 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9456 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9457 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9458 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9459 (xsmfns.o): Depend on frame.h and dispextern.h.
9460 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9461 sysselect.h.
9462
9463 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9464
9465 * font.c (Fclear_font_cache): Pass correct cache argument to
9466 font_clear_cache.
9467
9468 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9469
9470 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9471 twice.
9472
9473 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
9474
9475 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9476 calling file-remote-p. Reported by Jim Meyering.
9477
9478 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
9479
9480 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9481 avoid compiler warnings. (Bug #5217)
9482
9483 2009-12-14 Kenichi Handa <handa@m17n.org>
9484
9485 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9486 in 8-bit encoding.
9487
9488 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
9489
9490 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9491 tooltip windows.
9492
9493 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9494
9495 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9496 Xatom_net_window_type.
9497
9498 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9499 Xatom_net_window_type.
9500
9501 * xterm.c (my_log_handler): New function.
9502 (x_term_init): Set my_log_handler as log handler during gtk_init
9503 so we can filter out buggy messages. (Bug #5120).
9504
9505 * xterm.c (xg_scroll_callback): Parameter list changed,
9506 use parameter GtkScrollType to determine scroll/line/page.
9507 Only allow dragging if a button < 4 is grabbed (bug #5177).
9508 (xg_end_scroll_callback): New function.
9509 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9510 xg_create_scroll_bar.
9511
9512 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9513 (scroll_end_callback): Remove.
9514 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9515 button-release-event. Replace value-changed event with change-value,
9516 bug #5177.
9517 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9518 bug #5177.
9519
9520 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9521 (xg_create_scroll_bar): Add GCallback end_callback.
9522
9523 * xftfont.c (QClcdfilter): New variable.
9524 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9525 (syms_of_xftfont): Initialize QClcdfilter.
9526
9527 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9528
9529 * xsettings.c (struct xsettings): Add member seen.
9530 (parse_xft_settings): Update member seen with what we have read.
9531 Return non-zero if Xft-settings have been parsed, 0 otherwise.
9532 (apply_xft_settings): Only update Xft settings with what member seen
9533 indicates as new.
9534
9535 2009-12-12 Eli Zaretskii <eliz@gnu.org>
9536
9537 * dispextern.h (struct text_pos): Use EMACS_INT.
9538 (struct glyph): Use EMACS_INT for charpos.
9539 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9540 region_beg_charpos, region_end_charpos,
9541 redisplay_end_trigger_charpos, and also for
9542 iterator_stack_entry.end_charpos and
9543 iterator_stack_entry.stop_charpos.
9544
9545 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9546
9547 * gtkutil.c (scroll_end_callback): New function (bug #5177).
9548 (xg_create_scroll_bar): Call scroll_end_callback on button release
9549 event (bug #5177).
9550 (xg_event_is_for_scrollbar): != replaced with ==.
9551
9552 2009-12-12 Kenichi Handa <handa@m17n.org>
9553
9554 * ftfont.c (struct ftfont_info): New member matrix.
9555 (ftfont_open): Setup xftfont_info->matrix.
9556 (MFLTFontFT): New member matrix.
9557 (FLOOR, CEIL, ROUND): New macros.
9558 (ftfont_get_metrics): Handle matrix transformation.
9559 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9560
9561 * xftfont.c (struct xftfont_info): New member matrix.
9562 (xftfont_open): Setup xftfont_info->matrix.
9563
9564 2009-12-10 Kenichi Handa <handa@m17n.org>
9565
9566 * xdisp.c (append_space_for_newline): Consider face-remapping.
9567
9568 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9569
9570 * xsettings.c: Include "keyboard.h".
9571
9572 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9573
9574 Fix implicit function declarations.
9575 * cmds.c: Include "frame.h".
9576 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9577 * frame.h: Move declaration of delete_frame outside of
9578 HAVE_WINDOW_SYSTEM.
9579
9580 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9581
9582 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9583
9584 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9585 GTK builds.
9586
9587 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9588
9589 * unexelf.c (unexec): Don't search for .data twice.
9590
9591 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
9592
9593 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9594 if push failed.
9595 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9596 of push_display_prop (Bug#5000).
9597
9598 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9599 value of font_list_entities (Bug#5085).
9600
9601 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
9602
9603 Fix `string-to-number' to deal consistently with integers and floats.
9604 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9605 trailing characters, not just whitespace.
9606 (read1): Pass new arg 0 to keep old behavior.
9607 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9608 trailing chars, as it is already done for integers. Doc fixes.
9609 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9610
9611 2009-12-04 Eli Zaretskii <eliz@gnu.org>
9612
9613 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9614 Delete unused enumeration value.
9615
9616 2009-12-03 Eli Zaretskii <eliz@gnu.org>
9617
9618 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9619
9620 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9621
9622 * process.c (Fmake_network_process): Fix up the tests for
9623 "connectionless socket", so they DTRT for seqpacket sockets as well.
9624
9625 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9626
9627 * process.c (Qseqpacket): New symbol.
9628 (HAVE_SEQPACKET): New macro.
9629 (Fmake_network_process): Accept new :type `seqpacket'.
9630 (init_process): Add `seqpacket' feature when applicable.
9631 (syms_of_process): Initialize Qseqpacket.
9632
9633 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9634
9635 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9636 if entity is Qnil.
9637
9638 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9639
9640 * print.c (print_preprocess): Preprocess the key_and_value table of
9641 hashtables, even tho they're "hidden" (bug#5082).
9642
9643 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9644
9645 * frame.c (frame_make_pointer_invisible)
9646 (frame_make_pointer_visible): Declare f before statements.
9647
9648 2009-11-28 Eli Zaretskii <eliz@gnu.org>
9649
9650 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9651 omitted dependencies on lisp.h.
9652
9653 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9654
9655 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9656 is NULL.
9657
9658 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9659
9660 * frame.c (frame_make_pointer_invisible)
9661 (frame_make_pointer_visible): Just return if there isn't any selected
9662 frame.
9663
9664 * search.c (simple_search): Remove warning by making *p const.
9665
9666 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9667
9668 * xdisp.c (power_letter): Remove duplicate const.
9669
9670 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9671
9672 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9673
9674 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
9675 defaults (bug #5025).
9676
9677 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9678
9679 * insdel.c (adjust_markers_for_delete): Move it in the
9680 right direction! (bug#4803)
9681
9682 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9683
9684 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9685
9686 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9687
9688 2009-11-24 Glenn Morris <rgm@gnu.org>
9689
9690 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9691
9692 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9693
9694 * Makefile.in: Must create deps for ecrt0.o in its rule.
9695
9696 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9697 because that is what Gtk+ font dialog understands.
9698
9699 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9700 of Fcopy_sequence.
9701 (font_open_by_name): Put name given into QCname for font-object returned.
9702
9703 * frame.c (x_set_font): Save original font name as frame parameter
9704 font-parameter.
9705
9706 * xsettings.c (set_default_xft_settings): New function.
9707 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9708 is found.
9709
9710 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9711
9712 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9713 searching backwards through multibyte buffer.
9714
9715 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9716
9717 * xterm.c: #include xgselect.h.
9718 (x_initialize): Call xgselect_initialize.
9719
9720 * xsettings.c (something_changedCB): C++ comments => C comments.
9721 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9722 does that now.
9723
9724 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9725 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9726 (scroll_bar_button_cb): Remove.
9727 (create_menus): C++ comments => C comments. Don't bind grab-notify
9728 event.
9729 (xg_create_scroll_bar): Don't bind button-press-event and
9730 button-release-event.
9731
9732 * process.c: Include xgselect.h if defined (USE_GTK) ||
9733 defined (HAVE_GCONF).
9734 (wait_reading_process_output): Call xg_select for the same condition.
9735
9736 * xgselect.c (xg_select): New function to better integrate with
9737 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9738
9739 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9740
9741 * Makefile.in (XOBJ): Add xgselect.o.
9742
9743 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9744
9745 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9746 Remove ignored second argument. All callers changed.
9747 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9748 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9749 * xdisp.c (string_char_and_length): Likewise.
9750
9751 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9752
9753 * xterm.c (x_new_font):
9754 * print.c (print_object):
9755 * cmds.c (Fself_insert_command): Move declarations before statements.
9756
9757 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9758
9759 * s/cygwin.h: Remove unneeded linker flags.
9760
9761 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9762
9763 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9764
9765 * xsettings.h: Declare xsettings_get_system_font.
9766
9767 * xsettings.c (xsettings_get_system_font): New function.
9768 (init_gconf): No use initiating gconf unless we have Xft also.
9769 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9770 HAVE_GCONF.
9771
9772 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9773 add a blank entry so it doesn't collapse into nothing.
9774
9775 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9776
9777 * lread.c (Funintern): Comment out last change.
9778
9779 2009-11-19 Richard Stallman <rms@gnu.org>
9780
9781 * lread.c (Funintern): Error if symbol is t or nil.
9782
9783 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9784
9785 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9786 representation of Lisp integers.
9787 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9788
9789 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9790
9791 * lisp.h: Remove declaration of Ffont_get_system_font.
9792 * xfns.c: Move include of "xsettings.h".
9793 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9794
9795 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9796
9797 * xsettings.c (something_changedCB, Ffont_get_system_font):
9798 Check use_system_font.
9799 (syms_of_xsettings): DEFVAR font-use-system-font.
9800
9801 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9802
9803 * xfns.c (x_default_font_parameter): Remove dead assignment.
9804
9805 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9806
9807 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9808
9809 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
9810 not have FC_LCD_*. #define them if not there.
9811
9812 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
9813
9814 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9815
9816 * xterm.c (handle_one_xevent): Call xft_settings_event for
9817 ClientMessage, PropertyNotify and DestroyNotify.
9818 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9819 Call xsettings_initialize.
9820
9821 * xftfont.c (xftfont_fix_match): New function.
9822 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9823 Call xftfont_fix_match after XftFontMatch.
9824
9825 * xfont.c (xfont_driver): Initialize all members.
9826
9827 * xfns.c (x_default_font_parameter):
9828 Try font from Ffont_get_system_font.
9829 Do not get font from x_default_parameter if we got one from
9830 Ffont_get_system_font.
9831 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
9832
9833 * w32font.c (w32font_driver): Initialize all members.
9834
9835 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9836
9837 * lisp.h: Declare syms_of_xsettings.
9838
9839 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9840 Handle CONFIG_CHANGED_EVENT.
9841
9842 * ftfont.c (ftfont_filter_properties): New function.
9843
9844 * frame.c (x_set_font): Remove unused variable lval.
9845
9846 * font.h (struct font_driver): Add filter_properties.
9847
9848 * font.c (font_put_extra): Don't return if val is nil, it means
9849 boolean option is off.
9850 (font_parse_fcname): Collect all extra properties in extra_props
9851 and call filter_properties for all drivers with extra_props and
9852 font as parameter.
9853 (font_open_entity): Do not use cache, it does not pick up new
9854 fontconfig settings like hinting.
9855 (font_load_for_lface): If spec had a name in it, store it in entity.
9856
9857 * emacs.c (main): Call syms_of_xsettings.
9858
9859 * config.in: HAVE_GCONF is new.
9860
9861 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9862 xsettings.o is new.
9863
9864 2009-11-17 Kenichi Handa <handa@m17n.org>
9865
9866 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9867 back to the default font in case that no suitable font is found.
9868
9869 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9870
9871 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9872 Suggested by Chad Brown <yandros@mit.edu>.
9873 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9874
9875 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9876
9877 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9878
9879 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9880
9881 * Makefile.in: Ignore errors from mkdir when creating deps directory.
9882
9883 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9884
9885 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9886 has a parent.
9887
9888 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
9889 dependency files in deps/. Include those files into Makefile.
9890
9891 * config.in: Generated (AUTO_DEPEND).
9892
9893 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
9894
9895 * dbusbind.c (Vdbus_registered_objects_table): Rename from
9896 Vdbus_registered_functions_table, because it contains also
9897 properties. Fix docstring.
9898 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
9899
9900 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9901
9902 * alloc.c (mark_object): Don't reprocess marked strings.
9903 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9904 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9905
9906 2009-11-13 Kenichi Handa <handa@m17n.org>
9907
9908 * category.c (word_boundary_p): Adjust for the change of the
9909 semantics of Vword_combining_categories.
9910 (Vword_combining_categories): Describe the slight change of the
9911 semantics.
9912
9913 2009-11-13 Eli Zaretskii <eliz@gnu.org>
9914
9915 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9916
9917 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9918
9919 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9920
9921 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9922
9923 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
9924
9925 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9926
9927 2009-11-11 David Reitter <david.reitter@gmail.com>
9928
9929 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9930 variables to fix 2009-11-09 change.
9931
9932 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9933
9934 * process.c (ifflag_def): Make flag_sym constant.
9935 (Fnetwork_interface_info): Use a constant pointer.
9936 (ifflag_table):
9937 * xfns.c (cursor_bits):
9938 * xdisp.c (power_letter):
9939 * termcap.c (speeds, esctab):
9940 * sysdep.c (baud_convert):
9941 * keyboard.c (lispy_accent_codes, modifier_names):
9942 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9943 (jpeg_format, tiff_format, gif_format, svg_format)
9944 (interlace_start, interlace_increment, gs_format):
9945 * gtkutil.c (separator_names):
9946 * fringe.c (swap_nibble):
9947 * fns.c (base64_value_to_char, base64_char_to_value):
9948 * fileio.c (make_temp_name_tbl):
9949 * coding.c (suffixes): Make constant.
9950
9951 * frame.c (make_initial_frame):
9952 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9953 build_string.
9954 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9955
9956 * s/freebsd.h:
9957 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9958
9959 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9960 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9961
9962 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9963 * xterm.c (syms_of_xterm):
9964 * xfaces.c (syms_of_xfaces):
9965 * xdisp.c (syms_of_xdisp):
9966 * lread.c (syms_of_lread):
9967 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9968 build_string.
9969
9970 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9971
9972 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9973
9974 * fns.c (Fplist_get): Merge the active and the commented out code.
9975
9976 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9977
9978 * keyboard.h: Declare timer_check.
9979
9980 * keyboard.c (timer_check_2): New function that does what the old
9981 timer_check did.
9982 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9983 returned, i.e. don't return -1 with timers pending.
9984
9985 * process.c: Remove extern declaration of timer_check.
9986
9987 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9988 even if timer_check returned -1.
9989
9990 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9991 xg_dialog_data.
9992 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9993 the event loop.
9994 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9995 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9996 Destroy the dialog after xg_dialog_run.
9997
9998 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9999
10000 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10001
10002 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10003
10004 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10005
10006 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
10007
10008 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10009
10010 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10011
10012 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10013 w32menu.c, and nsmenu.m.
10014 Simplify the obsolete case where position is nil.
10015 (cleanup_popup_menu): New function, moved from nsmenu.m.
10016 (struct skp): Remove slot `notreal'.
10017 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10018 adjust callers.
10019 (single_menu_item): Adjust call to parse_menu_item.
10020 (syms_of_menu): Defsubr x-popup-menu.
10021 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10022 (keymap_panes): Don't export any more.
10023 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10024 (xmenu_show): Declare.
10025 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10026 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10027 * keyboard.h (parse_menu_item): Update declaration.
10028 * xmenu.c (Fx_popup_menu): Remove.
10029 (syms_of_xmenu): Don't defsubr x-popup-menu.
10030 * w32menu.c (Fx_popup_menu): Remove.
10031 (syms_of_w32menu): Don't defsubr x-popup-menu.
10032 * nsmenu.m (cleanup_popup_menu): Remove.
10033 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10034 moved to menu.c's Fx_popup_menu.
10035 (Fx_popup_menu): Remove.
10036 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10037 menu_items (it's done in menu.c already).
10038
10039 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10040
10041 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10042 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10043
10044 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
10045
10046 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
10047 xmenu_show. Hide any tooltip before opening a menu.
10048 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10049 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10050
10051 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 Let integers use up 2 tags to give them one extra bit and thus double
10054 their range.
10055 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10056 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10057 New macros.
10058 (enum Lisp_Type): Use them. Give explicit values.
10059 (Lisp_Type_Limit): Remove.
10060 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10061 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10062 Pay attention to USE_2_TAGS_FOR_INTS.
10063 (INTEGERP): Use LISP_INT_TAG_P.
10064 * fns.c (internal_equal): Simplify the default case.
10065 (sxhash): Use case_Lisp_Int.
10066 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10067 any more.
10068 (Ftype_of): Use case_Lisp_Int.
10069 (store_symval_forwarding): Take into account the fact that Ints can
10070 now have more than one tag.
10071 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
10072 (buffer_slot_type_mismatch):
10073 * xfaces.c (face_attr_equal_p):
10074 * print.c (print_object):
10075 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10076 Use case_Lisp_Int.
10077
10078 2009-11-06 Eli Zaretskii <eliz@gnu.org>
10079
10080 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10081
10082 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10083 warning.
10084
10085 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10086
10087 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10088
10089 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10090
10091 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10092 ButtonPressRelease and MotionNotify (bug#4870).
10093
10094 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10095
10096 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10097
10098 * xterm.c (syms_of_xterm):
10099 * xselect.c (syms_of_xselect):
10100 * xmenu.c (syms_of_xmenu):
10101 * xfns.c (syms_of_xfns):
10102 * xfaces.c (syms_of_xfaces):
10103 * xdisp.c (syms_of_xdisp):
10104 * window.c (syms_of_window):
10105 * w32fns.c (syms_of_w32fns):
10106 * undo.c (syms_of_undo):
10107 * textprop.c (syms_of_textprop):
10108 * terminal.c (syms_of_terminal):
10109 * syntax.c (syms_of_syntax):
10110 * sound.c (syms_of_sound):
10111 * search.c (syms_of_search):
10112 * print.c (syms_of_print):
10113 * minibuf.c (syms_of_minibuf):
10114 * macros.c (syms_of_macros):
10115 * keymap.c (syms_of_keymap, initial_define_key)
10116 (initial_define_lispy_key):
10117 * keyboard.c (syms_of_keyboard):
10118 * insdel.c (syms_of_insdel):
10119 * image.c (syms_of_image):
10120 * fringe.c (syms_of_fringe):
10121 * frame.c (syms_of_frame):
10122 * fontset.c (syms_of_fontset):
10123 * fns.c (syms_of_fns):
10124 * fns.c (syms_of_fns):
10125 * fileio.c (syms_of_fileio):
10126 * fileio.c (syms_of_fileio):
10127 * eval.c (syms_of_eval):
10128 * doc.c (syms_of_doc):
10129 * dispnew.c (syms_of_display):
10130 * dired.c (syms_of_dired):
10131 * dbusbind.c (syms_of_dbusbind):
10132 * data.c (syms_of_data):
10133 * composite.c (syms_of_composite):
10134 * coding.c (syms_of_coding):
10135 * cmds.c (syms_of_cmds):
10136 * charset.c (define_charset_internal, syms_of_character):
10137 * ccl.c (syms_of_ccl):
10138 * category.c (syms_of_category, init_category_once):
10139 * casetab.c (syms_of_casetab):
10140 * casefiddle.c (syms_of_casefiddle):
10141 * callint.c (syms_of_callint):
10142 * bytecode.c (syms_of_bytecode):
10143 * buffer.c (keys_of_buffer, syms_of_buffer):
10144 * alloc.c (syms_of_alloc):
10145 * process.c (syms_of_process, init_process):
10146 * lread.c (syms_of_lread, init_obarray):
10147 * font.c (build_style_table):
10148 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10149 intern_c_string, calls to make_pure_string with
10150 make_pure_c_string. Use pure_cons instead of Fcons.
10151
10152 * process.c (socket_options): Make it const.
10153 (set_socket_option, init_process): Use a const pointer.
10154
10155 * lread.c (intern_c_string): New function.
10156 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10157 (defvar_int): Uset it. Make the name const char*.
10158
10159 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10160 (defvar_int): Update prototypes.
10161 (DEFUN, EXFUN): Support for prototypes is now required.
10162 (intern_c_string): New prototype.
10163 (struct Lisp_Subr): Make symbol_name constant.
10164
10165 * font.c (struct table_entry): Remove unused member. Make NAMES
10166 constant.
10167 (weight_table, slant_table, width_table): Make constant.
10168
10169 * emacs.c (struct standard_args): Make name and longname constant.
10170
10171 * character.h (DEFSYM): Use intern_c_string.
10172
10173 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10174
10175 * alloc.c (make_pure_c_string): New function.
10176
10177 * eval.c (Fautoload): Purecopy all arguments.
10178
10179 2009-11-05 Kenichi Handa <handa@m17n.org>
10180
10181 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10182 the buffer in case of replace.
10183
10184 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10185
10186 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10187
10188 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10189
10190 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10191 when applicable (bug#4851).
10192
10193 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10194 (P_): Support for prototypes is now required.
10195
10196 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10197
10198 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10199 (Bug#4827).
10200
10201 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10202
10203 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10204
10205 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10206
10207 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10208
10209 * lread.c (Fload): Purecopy the file name when building
10210 Vpreloaded_file_list.
10211
10212 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10213
10214 * w32fns.c (syms_of_w32fns): Change default value of
10215 w32-scroll-lock-modifier to nil. (Bug#2827)
10216
10217 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10218
10219 * minibuf.c (Fall_completions): Fix typos in docstring.
10220
10221 2009-10-26 Andreas Schwab <schwab@redhat.com>
10222
10223 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10224
10225 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10226
10227 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10228 For delta < 0, skip check that only makes sense when the mini-window
10229 is going to be enlarged. (Bug#4534)
10230
10231 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10232
10233 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10234 string in menu maps (Bug#4471).
10235
10236 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10237
10238 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10239 FRAME_NS_VIEW on terminal frames (Bug#4765).
10240
10241 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10242
10243 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10244 DBUS_TYPE_UINTnn separately to get proper sign extension.
10245
10246 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10247 can properly handle unsigned types.
10248 (make_uid, make_gid): Remove.
10249
10250 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10251 types again.
10252
10253 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10254 (system_process_attributes): Likewise.
10255
10256 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10257
10258 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10259
10260 * eval.c (Fautoload): Purecopy the filename. Simplify.
10261
10262 * category.c (Fdefine_category): Purecopy docstring.
10263
10264 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10265
10266 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10267
10268 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10269
10270 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10271
10272 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10273 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10274 (Bug#4775).
10275
10276 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10277
10278 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10279 (init_fileio_once):
10280 * lisp.h (init_fileio_once): Remove.
10281 * emacs.c (main): Don't call init_fileio_once.
10282
10283 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10284
10285 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10286
10287 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10288
10289 * doprnt.c (doprnt): Fix overflow check.
10290
10291 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10292
10293 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10294
10295 * xterm.h (x_wait_for_event): Declare it.
10296
10297 * xterm.c (pending_event_wait): New variable.
10298 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10299 see pending_event_wait.eventtype.
10300 (handle_one_xevent): Don't change gravity when parent changes.
10301 (x_new_font): Call change_frame_size with new rows/columns before we
10302 try to resize the frame.
10303 (x_wait_for_event): New function.
10304 (x_set_window_size_1): Don't change gravity unless change_gravity
10305 is set.
10306 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10307 don't change frame size, instead wait for the ConfigureNotify.
10308 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10309 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10310 (x_initialize): Initialize pending_event_wait.
10311
10312 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10313 size.
10314
10315 * widget.c (EmacsFrameSetValues): Add comment.
10316 (EmacsFrameSetCharSize): Just call x_set_window_size.
10317
10318 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10319 x_wait_for_event.
10320 (flush_and_sync): Remove again.
10321 (xg_get_font_name): Suggest monospace if no previous font is known.
10322
10323 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10324
10325 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10326 8th bit, since that only made sense in the ASCII world (bug#4751).
10327
10328 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10329
10330 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10331 processing pending events when event is filtered for input method.
10332 (Bug#3681)
10333
10334 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10335
10336 * fns.c: Add #endif accidentally removed in previous change.
10337
10338 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10339
10340 * fns.c: Remove code for unsupported system: MAC_OS.
10341 * image.c: Likewise. Include setjmp.h.
10342
10343 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10344
10345 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10346 pixel -1 (bug #4742).
10347
10348 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10349
10350 * process.c (create_pty): Remove conditionals for no longer
10351 supported systems: UNIPLUS and RTU.
10352
10353 * xterm.c:
10354 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10355
10356 * alloc.c: Do not define struct catchtag.
10357 * eval.c: Move struct catchtag definition ...
10358 * lisp.h: ... here.
10359
10360 * image.c: Move png.h #include earlier to avoid warnings.
10361
10362 * xterm.c:
10363 * xsmfns.c:
10364 * xselect.c:
10365 * xrdb.c:
10366 * xmenu.c:
10367 * xftfont.c:
10368 * xfont.c:
10369 * xfns.c:
10370 * xfaces.c:
10371 * xdisp.c:
10372 * window.c:
10373 * widget.c:
10374 * w32xfns.c:
10375 * w32uniscribe.c:
10376 * w32term.c:
10377 * w32select.c:
10378 * w32reg.c:
10379 * w32proc.c:
10380 * w32menu.c:
10381 * w32inevt.c:
10382 * w32heap.c:
10383 * w32font.c:
10384 * w32fns.c:
10385 * w32console.c:
10386 * w32.c:
10387 * w16select.c:
10388 * vm-limit.c:
10389 * unexsol.c:
10390 * unexec.c:
10391 * unexcw.c:
10392 * unexaix.c:
10393 * undo.c:
10394 * tparam.c:
10395 * textprop.c:
10396 * terminfo.c:
10397 * terminal.c:
10398 * termcap.c:
10399 * term.c:
10400 * syntax.c:
10401 * sound.c:
10402 * sheap.c:
10403 * search.c:
10404 * scroll.c:
10405 * region-cache.c:
10406 * regex.c:
10407 * ralloc.c:
10408 * process.c:
10409 * print.c:
10410 * nsterm.m:
10411 * nsselect.m:
10412 * nsmenu.m:
10413 * nsimage.m:
10414 * nsfont.m:
10415 * nsfns.m:
10416 * msdos.c:
10417 * minibuf.c:
10418 * menu.c:
10419 * marker.c:
10420 * macros.c:
10421 * keymap.c:
10422 * keyboard.c:
10423 * intervals.c:
10424 * insdel.c:
10425 * indent.c:
10426 * gtkutil.c:
10427 * ftxfont.c:
10428 * ftfont.c:
10429 * fringe.c:
10430 * frame.c:
10431 * fontset.c:
10432 * font.c:
10433 * fns.c:
10434 * floatfns.c:
10435 * filelock.c:
10436 * fileio.c:
10437 * emacs.c:
10438 * editfns.c:
10439 * dosfns.c:
10440 * doprnt.c:
10441 * doc.c:
10442 * dispnew.c:
10443 * dired.c:
10444 * dbusbind.c:
10445 * data.c:
10446 * composite.c:
10447 * coding.c:
10448 * cmds.c:
10449 * cm.c:
10450 * chartab.c:
10451 * charset.c:
10452 * character.c:
10453 * ccl.c:
10454 * category.c:
10455 * casetab.c:
10456 * casefiddle.c:
10457 * callproc.c:
10458 * callint.c:
10459 * bytecode.c:
10460 * buffer.c:
10461 * atimer.c: Include setjmp.h. (Bug#4643)
10462
10463 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10464
10465 Remove leftover table unibyte_to_multibyte_table.
10466 * character.c (unibyte_to_multibyte_table): Remove.
10467 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10468 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10469 * character.h (UNIBYTE_TO_CHAR): New macro.
10470 (MAKE_CHAR_MULTIBYTE): Use it.
10471 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10472 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10473 (message_dolog, set_message_1):
10474 * search.c (Freplace_match):
10475 * editfns.c (Fcompare_buffer_substrings):
10476 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10477 (concat):
10478 * insdel.c (copy_text, count_size_as_multibyte):
10479 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10480 * term.c (produce_glyphs):
10481 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10482 * regex.c (RE_CHAR_TO_MULTIBYTE):
10483 * cmds.c (internal_self_insert):
10484 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10485
10486 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10487
10488 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10489
10490 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10491
10492 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
10493
10494 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10495
10496 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10497
10498 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10499 still needed under Tiger.
10500
10501 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10502
10503 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10504 __Apple__.
10505
10506 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10507
10508 2009-10-15 Kenichi Handa <handa@m17n.org>
10509
10510 * print.c (print_object): Escape a symbol like "2E10" too.
10511
10512 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
10513
10514 Cleanups and changes for 64-bit compile under Snow Leopard.
10515 Based on suggestions by Erik Charlebois.
10516
10517 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10518
10519 * nsfont.m (ns_char_width): Replace deprecated call.
10520 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10521 cast argument.
10522 (nsfont_open): Use ns_char_width() everywhere.
10523 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
10524
10525 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10526
10527 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10528 where appropriate.
10529
10530 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10531 where appropriate.
10532 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10533 Use stringWithUTF8String.
10534 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10535
10536 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10537 Add formal protocol mention to inheritance.
10538 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10539
10540 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10541 Fix printf format.
10542 (ns_query_color): Use CGFloat where appropriate.
10543 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
10544 (EmacsScroller-mouseDown:): Use long format in printf, and cast
10545 argument.
10546
10547 * config.in (NS_HAVE_NSINTEGER): Drop.
10548
10549 * dbusbind.c (dbus-method-return-internal)
10550 (dbus-method-error-internal): Use long format in printf, and cast
10551 argument.
10552
10553 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10554 in printf, and cast argument.
10555
10556 * process.c (list_processes_1): Use long format in printf, and
10557 cast argument.
10558
10559 2009-10-11 Glenn Morris <rgm@gnu.org>
10560
10561 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10562
10563 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10564
10565 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10566 menu bar with a small width so it doesn't enlarge the frame.
10567
10568 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
10569
10570 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10571
10572 2009-10-06 Glenn Morris <rgm@gnu.org>
10573
10574 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10575 SOME_MACHINE_LISP (this enters indirectly via DOC).
10576
10577 2009-10-05 Eli Zaretskii <eliz@gnu.org>
10578
10579 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10580
10581 2009-10-04 Eli Zaretskii <eliz@gnu.org>
10582
10583 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10584 Doc fix.
10585
10586 2009-10-03 Martin Rudalics <rudalics@gmx.at>
10587
10588 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10589
10590 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
10591
10592 * lisp.h (Qdelete_directory_internal): Remove, because it is not
10593 used anymore outside fileio.c.
10594
10595 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10596
10597 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
10598
10599 * lisp.h (Qdelete_directory_internal):
10600 Declare, instead of Qdelete_directory.
10601
10602 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10603
10604 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10605
10606 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10607
10608 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
10609
10610 * fileio.c (Fdelete_directory_internal): Rename from
10611 Fdelete_directory. It is not a command anymore. It has no file
10612 name handler.
10613
10614 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10615
10616 * xdisp.c (get_next_display_element): Use an enum in last change.
10617
10618 2009-09-28 Kenichi Handa <handa@m17n.org>
10619
10620 * xdisp.c (get_next_display_element): Pay attention to
10621 unibyte_display_via_language_environment in handling
10622 Vnobreak_char_display.
10623
10624 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10625
10626 * nsterm.h (ns_app_name): New extern variable.
10627
10628 * nsterm.m (ns_app_name): New variable.
10629 (ns_term_init): Set and use it.
10630 (ns_term_shutdown): Use it.
10631
10632 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10633 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10634
10635 * nsfns.m (ns_set_name_iconic, ns_set_name)
10636 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10637 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10638
10639 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10640 Remove double-casting in client_data comparison.
10641
10642 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10643
10644 * keyboard.c (make_lispy_event): Remember last wheel direction.
10645 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10646
10647 2009-09-26 Glenn Morris <rgm@gnu.org>
10648
10649 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10650 internal.elc. Add term/pc-win.elc.
10651 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10652 term/x-win.elc.
10653 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10654 term/w32-win.elc.
10655 (NS_SUPPORT): New.
10656 (lisp): Add NS_SUPPORT.
10657 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10658
10659 2009-09-25 David Reitter <david.reitter@gmail.com>
10660
10661 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10662 on Mac OS X 10.6+ (bug#4513).
10663
10664 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10665
10666 * frame.c (xrdb_get_resource): Return nil for empty string resources;
10667 some parts of Emacs code (like font selection) don't grok them.
10668 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
10669
10670 2009-09-24 Andreas Schwab <schwab@redhat.com>
10671
10672 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10673
10674 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10675
10676 * dired.c (Fdirectory_files): Fix typo in docstring.
10677
10678 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10679
10680 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10681 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10682 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10683 under GNUstep.
10684 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10685
10686 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10687 glyph advancement.
10688
10689 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10690
10691 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
10692 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
10693
10694 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10695 deleted (bug #4492).
10696
10697 * nsfont.m (Vns_reg_to_script): New lisp variable.
10698 (syms_of_nsfont): Declare it.
10699 (ns_registry_to_script): New function.
10700 (ns_get_req_script): Call it.
10701 (ns_findfonts): Don't give up on non-unicode registry.
10702
10703 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10704
10705 2009-09-20 Tom Tromey <tromey@redhat.com>
10706
10707 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10708 batch mode (bug#4228).
10709
10710 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
10711
10712 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
10713 carefully. (Bug #4339)
10714
10715 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
10716
10717 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
10718
10719 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10720
10721 * emacs.c (inhibit_x_resources): Update doc string for NS.
10722 (main) [HAVE_NS]: Don't process --no-init-file option.
10723 Remove legacy code for -NXHost. Fix error printf in daemon case.
10724
10725 * nsterm.h (ns_no_defaults): Remove.
10726
10727 * nsterm.m (ns_no_defaults): Remove.
10728 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10729 (ns_use_qd_smoothing): Remove legacy variable.
10730 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10731 don't update the NSWindow itself.
10732 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10733 Improve state detection and store user rect ourselves. (Bug #3581)
10734
10735 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10736 ns_use_qd_smoothing.
10737
10738 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10739 platform versions. Drop support for emacs-20-style face specs.
10740 (x-close-connection): Drop PSFlush() under OS X.
10741 (x-focus-frame): Activate the app first. (Bug #4180)
10742
10743 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
10744
10745 * emacs.c (inhibit_x_resources): New variable.
10746 (main) [HAVE_NS]: Don't process --quick command line option.
10747 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10748
10749 * lisp.h (inhibit_x_resources): Declare it extern.
10750
10751 * w32reg.c (x_get_string_resource):
10752 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10753
10754 2009-09-17 Eli Zaretskii <eliz@gnu.org>
10755
10756 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10757 Add lisp/term/internal.elc.
10758
10759 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10760
10761 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10762 (bug#4461).
10763
10764 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10765
10766 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10767
10768 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10769 (OBJECTS_MACHINE): Remove, unused.
10770
10771 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10772
10773 * frame.c (x_get_resource_string): Remove unused.
10774
10775 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10776
10777 * xterm.c (x_new_font): Call change_frame_size before calling
10778 x_set_window_size, in case frame size won't change.
10779
10780 * frame.c (x_set_font): Remove dead code.
10781
10782 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10783
10784 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10785
10786 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10787
10788 * lread.c (Fload): Don't output a message after loading an obsolete
10789 package any more (done in Lisp now).
10790
10791 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
10792
10793 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10794
10795 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10796
10797 * keymap.c (Fwhere_is_internal): Use nconc2.
10798
10799 2009-09-11 Alan Mackenzie <acm@muc.de>
10800
10801 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10802 batch mode.
10803
10804 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10805
10806 * xdisp.c (display_mode_element): Detect cycles.
10807
10808 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10809
10810 * keymap.c (where_is_internal): Don't erroneously return nil right after
10811 filling the cache.
10812 (where_is_internal_1): Fix up typo.
10813
10814 2009-09-11 Glenn Morris <rgm@gnu.org>
10815
10816 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10817 share a common doc-string.
10818
10819 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10820
10821 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10822 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10823
10824 * keymap.c (QCadvertised_binding): New constant.
10825 (syms_of_keymap): Initialize it.
10826 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10827 if applicable.
10828
10829 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10830
10831 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10832 (parse_menu_item): Streamline since bindings are recomputed all the
10833 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10834 more and don't support lmenu's menu-alias any more either.
10835
10836 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10837 (where_is_internal): Strip it down to only traverse the keymaps.
10838 Move the cache handling from Fwhere_is_internal to here.
10839 (Fwhere_is_internal): Move the handling of remapping and the choice of
10840 the best binding from where_is_internal to here.
10841 Unify the cached/noncached paths, so remapping is also handled
10842 correctly when the cache is used, and so the cache can be used to
10843 speed up remap-handling when applicable.
10844 Give preference to non-remapped bindings.
10845 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10846 non-remapped bindings.
10847 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10848 command remapping.
10849
10850 * xdisp.c (display_mode_element): Move list length limit from 50 to
10851 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10852
10853 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
10854
10855 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10856
10857 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10858
10859 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10860 (Bug#4334)
10861
10862 * keymap.c (where_is_internal): Filter out shadowed remappings.
10863 Assume that where_is_internal returns unshadowed bindings to simplify
10864 the code and get rid of the gotos. Use ASIZE.
10865
10866 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10867
10868 * xterm.c (x_focus_changed): If we get a focusout and pointer
10869 is invisible, make it visible.
10870
10871 * xterm.h: Remove condition for declaration of
10872 x_*_window_to_frame.
10873
10874 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10875
10876 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10877 initial terminal as well.
10878
10879 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10880
10881 * xterm.h: Rename x_non_menubar_window_to_frame to
10882 x_menubar_window_to_frame.
10883
10884 * xterm.c: Remove declarations also in xterm.h.
10885 (XTmouse_position): Do not return valid positions
10886 for clicks in the menubar and the toolbar for Gtk+.
10887
10888 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10889 if the widget for the event has the same top level as a frame,
10890 return the frame.
10891 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10892 internal windows, bug #4122.
10893 (x_non_menubar_window_to_frame): Remove.
10894
10895 2009-09-02 Glenn Morris <rgm@gnu.org>
10896
10897 * buffer.c (default-major-mode): Move most of the doc from here...
10898 (major-mode): ... to here.
10899
10900 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
10901
10902 * process.c (wait_reading_process_output): Keep the descriptor
10903 when pty is used by a non-child process, e.g., in I/O buffer of
10904 GDB this allows inferior to be restarted.
10905
10906 2009-08-29 Eli Zaretskii <eliz@gnu.org>
10907
10908 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10909 both branches into one.
10910
10911 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10912
10913 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10914 (main): Use enable-multibyte-characters rather than
10915 default-enable-multibyte-characters. Output a warning message when
10916 running a unibyte session.
10917
10918 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10919
10920 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10921 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10922 (copy_data_segment): Also copy __program_vars section.
10923 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10924 (dump_it) [LC_DYLD_INFO]: Use it.
10925
10926 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10927
10928 2009-08-28 Eli Zaretskii <eliz@gnu.org>
10929
10930 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10931 $(SRC)/buildobj.h.
10932 (buildobj.h): Rename from $(SRC)/buildobj.h.
10933 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10934 $(SRC)/buildobj.h.
10935 (clean): Add buildobj.h.
10936
10937 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10938
10939 * print.c (print_object): Set escapeflag to 1 when printing
10940 hashtable keys and values.
10941
10942 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10943
10944 * lread.c (read_integer): Use doubles (and potentially return a float
10945 number) as we do in string-to-number.
10946 (read1): Use strtol to read integers, signal errors on strtol's
10947 overflow and use floats if strtol's output is too large for
10948 Elisp integers.
10949
10950 2009-08-27 Eli Zaretskii <eliz@gnu.org>
10951
10952 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10953 (make-buildobj-SH): Fix last change.
10954 (SRC): Move to before where it's first used.
10955
10956 2009-08-27 Kenichi Handa <handa@m17n.org>
10957
10958 * process.c (send_process): Use encode_coding_object instead of
10959 encode_coding_string to perform eol-conversion even if the string
10960 is unibyte.
10961
10962 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10963 character.
10964
10965 * cmds.c (Fself_insert_command): Avoid unnecessay
10966 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
10967
10968 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10969
10970 * callproc.c (Fcall_process): Remove always true #if.
10971
10972 * lisp.h: Replace #if 0 code for checking with text pointing to
10973 the --enable-checking configure flag.
10974
10975 * emacs.c (main): Mention the --enable-profiling configure flag
10976 instead of using CFLAGS.
10977
10978 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
10979
10980 * Makefile.in (buildobj.h): New target.
10981 (doc.o): Depend on it.
10982 (temacs${EXEEXT}): Don't generate buildobj.lst.
10983 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10984 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10985 ($(BLD)/doc.$(O)): Depend on it.
10986 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10987 provided by Eli Zaretskii.)
10988 ($(TEMACS)): Don't generate buildobj.lst.
10989 * doc.c: Include buildobj.h.
10990 (buildobj): New static variable.
10991 (Fsnarf_documentation): Use it, instead of opening and reading
10992 buildobj.lst.
10993
10994 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
10995
10996 * dbusbind.c (Fdbus_call_method)
10997 (Fdbus_call_method_asynchronously): Use English numeric format for
10998 timeout values in doc string.
10999
11000 2009-08-25 Kenichi Handa <handa@m17n.org>
11001
11002 * alloc.c (mark_char_table): New function.
11003 (mark_object): Use mark_char_table for a char-table.
11004
11005 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11006 (CHAR_TABLE_REF): Use it.
11007
11008 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
11009
11010 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11011 before invoking the newly build emacs to check for load-path
11012 shadowing.
11013
11014 2009-08-22 Glenn Morris <rgm@gnu.org>
11015
11016 * Makefile.in (bootstrap_exe): New variable.
11017 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11018 Use ${bootstrap_exe}.
11019
11020 2009-08-22 Eli Zaretskii <eliz@gnu.org>
11021
11022 * coding.h (encode_coding_string): Don't encode unibyte strings.
11023 (Bug#4047)
11024
11025 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
11026
11027 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11028
11029 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11030 intended as hotfix only.
11031 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11032
11033 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11034
11035 * nsterm.m (ns_get_color): Update documentation properly for last
11036 change, and clean up loose ends in the code left by it.
11037 Fix longstanding bug with 16-bit hex parsing, and add support for
11038 yet another X11 format (rgb:r/g/b) for compatibility.
11039 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11040 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11041
11042 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11043
11044 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11045
11046 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
11047
11048 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11049 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11050 (xd_initialize, xd_pending_messages): Check, whether
11051 $DBUS_SESSION_BUS_ADDRESS is set.
11052
11053 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11054
11055 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11056
11057 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11058
11059 2009-08-20 Glenn Morris <rgm@gnu.org>
11060
11061 * emacs.c (system-type): Doc fix.
11062
11063 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11064
11065 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11066 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11067
11068 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
11069
11070 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11071 New functions.
11072 (xd_initialize): Revert change from 2009-08-16.
11073
11074 2009-08-18 Kenichi Handa <handa@m17n.org>
11075
11076 * fontset.c (Ffontset_font): If a nil element is found in a
11077 font-group vector, return nil.
11078
11079 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
11080
11081 * process.c (status_notify): Don't perform redisplay.
11082 (Fdelete_process, list_processes_1, process_send_signal):
11083 Expliticly perform redisplay.
11084 (wait_reading_process_output): Always check process status, but
11085 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11086
11087 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
11088
11089 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
11090 (XFLOAT_INIT): New macro for storing a float value.
11091 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11092 * fns.c (sxhash): Copy out the value of a float in order to
11093 examine its bytes.
11094 * dbusbind.c (xd_append_arg): Likewise.
11095
11096 * emacs.c (main): Don't call syms_of_data twice.
11097
11098 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11099
11100 * dbusbind.c (xd_initialize): Add connection file descriptor to
11101 input_wait_mask, in order to let select() detect, whether a new
11102 message has been arrived.
11103 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11104
11105 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11106
11107 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11108 New functions.
11109
11110 * lisp.h (xd_pending_messages): Declare.
11111
11112 * keyboard.c (readable_events): Call xd_pending_messages.
11113
11114 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11115
11116 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11117
11118 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11119
11120 * buffer.c (set_buffer_internal_1)
11121 (swap_out_buffer_local_variables): Check for unbound local
11122 variables (Bug#4138).
11123
11124 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11125
11126 * process.c (create_pty): Fix last change.
11127
11128 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11129
11130 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11131 (xbm_load_image): Caller changed.
11132 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11133
11134 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11135
11136 * process.c (create_pty): New function.
11137 (Fstart_process): Use it to allow Emacs to just associate a pty
11138 with the buffer. See associated change in gdb-mi.el.
11139 (list_processes_1): Deal with no program name.
11140 (start_process_unwind): Use pid == -2 to mean no process.
11141
11142 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11143
11144 * cmds.c (nonundocount): New global variable.
11145 (keys_of_cmds): Initialize it.
11146 (Fself_insert_command): Use it to combine upto 20 sequential chars
11147 into a single undo entry, just like the Qself_insert_command code in
11148 keyboard.c does.
11149 Call frame_make_pointer_invisible, also like the Qself_insert_command
11150 code in keyboard.c does.
11151 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11152 than its own local replacement for it.
11153
11154 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11155
11156 * fns.c (concat): Don't re-set string length to its current value.
11157
11158 * coding.h (decode_coding_string, encode_coding_string):
11159 Use SBYTES macro.
11160
11161 * doprnt.c (doprnt_lisp): Delete unused function.
11162 (doprnt): Merge with doprnt1, discarding lispstrings code.
11163 * lisp.h (doprnt_lisp): Don't declare.
11164
11165 2009-08-07 Juri Linkov <juri@jurta.org>
11166
11167 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11168
11169 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11170
11171 * print.c (syms_of_print): Undo previous change.
11172
11173 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11174
11175 * lread.c (read1, syms_of_lread): Read hashtables back from the
11176 readable format.
11177
11178 * print.c (print_preprocess, print_object): Print hashtables fully
11179 and readably.
11180 (syms_of_print): Provide 'hashtable-print-readable.
11181
11182 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11183
11184 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11185 no family set.
11186 (nsfont_open): Handle case when entity has no family.
11187
11188 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11189
11190 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11191 element, not a list, for match case.
11192
11193 2009-07-28 Kenichi Handa <handa@m17n.org>
11194
11195 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11196 rigidly.
11197
11198 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11199 font_parse_xlfd. Check font properties more rigidly.
11200
11201 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11202
11203 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11204 bsd-common.h.
11205
11206 2009-07-27 Kenichi Handa <handa@m17n.org>
11207
11208 * xfaces.c (face_with_height): Call font_clear_prop.
11209
11210 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11211
11212 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11213
11214 * xterm.c (x_term_init): Use Qx.
11215
11216 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11217
11218 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11219 (ns_get_color): Revert 2009-07-16 change.
11220
11221 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11222
11223 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11224 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11225
11226 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11227
11228 * coding.h (decode_coding_string, encode_coding_string):
11229 Use SCHARS macro.
11230
11231 * lread.c: Rewrite 2009-07-21 changes.
11232 (load_depth): Delete.
11233 (Qload_in_progress): New variable.
11234 (load_unwind): Don't reference load_depth or load_in_progress.
11235 (Fload): Likewise; specbind Qload_in_progress instead.
11236 (init_lread): Don't initialize load_depth.
11237 (syms_of_lread): Initialize and protect Qload_in_progress.
11238
11239 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11240
11241 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11242
11243 2009-07-23 Yavor Doganov <yavor@gnu.org>
11244
11245 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11246
11247 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11248
11249 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11250 Bugs 3792, 3720, 2402.
11251 (ns_lookup_indexed_color): Check for bad index.
11252 (ns_index_color): Init unused slot to 0.
11253 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11254 Bug 3714, possibly 3082.
11255
11256 2009-07-22 Jason Rumney <jasonr@gnu.org>
11257
11258 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11259 Position IME window at cursor (Bug#2570).
11260 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11261 (globals_of_w32fns): Dynamically load functions required above.
11262
11263 * w32term.c (w32_draw_window_cursor): Send message to reposition
11264 any IME window.
11265
11266 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11267
11268 * fileio.c: Revert 2009-07-16 changes.
11269 (Vauto_save_include_big_deletions): New variable.
11270 (Fdo_auto_save): Disable auto-save only if
11271 auto-save-include-big-deletions is nil.
11272
11273 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11274
11275 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11276 the overflowed pixels into account (Bug#3879).
11277
11278 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11279
11280 * lread.c (load_depth): New variable.
11281 (Fload, load_unwind, init_lread): Set it to the load recursion
11282 depth; set load_in_progress as a simple boolean based on the
11283 current load_depth. (Bug#3892)
11284
11285 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11286
11287 * nsfont.m (ns_has_attribute): Remove.
11288 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11289
11290 2009-07-18 Juri Linkov <juri@jurta.org>
11291
11292 * process.c (Fset_process_query_on_exit_flag): Mention killing
11293 a buffer in docstring.
11294
11295 2009-07-17 Kenichi Handa <handa@m17n.org>
11296
11297 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11298
11299 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11300
11301 * nsfns.m (Fns_set_alpha): Remove function.
11302 (syms_of_nsfns): Don't defsubr it.
11303
11304 * nsterm.m (ns_get_color): Remove incompatible color formats.
11305 (ns_color_to_lisp): Generate #rrggbb color format string.
11306
11307 2009-07-16 Richard Stallman <rms@gnu.org>
11308
11309 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11310 (Fset_buffer_auto_saved): Handle save_length = -2.
11311
11312 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11313
11314 * xterm.c (Qx_gtk_map_stock): New var.
11315
11316 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11317 of calling intern each time.
11318
11319 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11320
11321 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11322 does tiling.
11323
11324 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11325
11326 2009-07-14 Kenichi Handa <handa@m17n.org>
11327
11328 * font.c (font_vconcat_entity_vectors): New function.
11329 (struct font_sort_data): New member font_driver_preference.
11330 (font_compare): Check font_driver_preference.
11331 (font_sort_entities): The format of the first argument changed.
11332 (font_delete_unmatched): Likewise.
11333 (font_list_entities): The return type changed.
11334 (font_select_entity): The format of the second argument changed.
11335 (font_find_for_lface): Adjuste for the above changes.
11336 Don't suppress the checking of C even if the repertory supports it.
11337 (Flist_fonts): Adjust for the above changes.
11338
11339 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11340 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11341 Reject a font who has adstyle property that is different from a
11342 langname derived from registry property.
11343 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11344
11345 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11346
11347 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11348 local copy of dirfilename.
11349
11350 2009-07-13 Kenichi Handa <handa@m17n.org>
11351
11352 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11353 against max_char.
11354
11355 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11356 calling XSYMBOL (sym).
11357
11358 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11359
11360 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11361 New function.
11362 (directory_files_internal) [WINDOWSNT]:
11363 Bind w32-get-true-file-attributes to either t or nil, depending whether
11364 the filesystem of the directory is fast or slow.
11365
11366 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11367 file name.
11368 (is_slow_fs): New function.
11369 (stat): Use it to determine whether to issue more system calls to
11370 get accurate file attributes, when w32-get-true-file-attributes is
11371 `local'.
11372
11373 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11374
11375 * xfns.c (Fx_select_font): Remember last font selected in
11376 x_last_font_name and use that the next time. Also try the frame
11377 parameter font-parameter as default to the font dialog.
11378
11379 2009-07-10 Kenichi Handa <handa@m17n.org>
11380
11381 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11382
11383 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11384
11385 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11386
11387 * w32.c (stat): Treat UNC file names as residing on remote
11388 drives. (Bug#3542)
11389
11390 2009-07-09 Kenichi Handa <handa@m17n.org>
11391
11392 * fontset.c (fontset_find_font): Fix previous change.
11393
11394 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
11395
11396 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11397 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11398 error flag.
11399
11400 2009-07-08 Kenichi Handa <handa@m17n.org>
11401
11402 * fontset.c (fontset_find_font): Fix the logic of handling
11403 charset_matched.
11404 (font_for_char): Delete unused var.
11405 (generate_ascii_font_name): Delete it.
11406
11407 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11408
11409 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11410 (encode_coding_sjis): Fix the code range check.
11411
11412 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11415 (Fexpand_file_name): Copy string data properly (Bug#3772).
11416
11417 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11418
11419 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11420 first MapNotify.
11421
11422 2009-07-07 Kenichi Handa <handa@m17n.org>
11423
11424 * character.h (unibyte_has_multibyte_table): Delete extern.
11425 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11426
11427 * charset.c (Fset_charset_priority): Update charset_unibyte.
11428 (syms_of_charset): Initialize charset_unibyte.
11429
11430 * character.c (unibyte_has_multibyte_table): Delete it.
11431 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11432 charset_unibyte.
11433 (multibyte_char_to_unibyte_safe): Likewise.
11434 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11435
11436 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
11437 (x_produce_glyphs): Likewise.
11438
11439 * .gdbinit (xcharset): Fix the treating $arg0.
11440
11441 2009-07-04 Eli Zaretskii <eliz@gnu.org>
11442
11443 Emulation of `getloadavg' on MS-Windows.
11444 * w32.c: Include float.h.
11445 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11446 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11447 (get_native_system_info, get_system_times): New functions.
11448 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11449 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11450 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11451 g_b_init_get_system_times, and num_of_processors.
11452
11453 2009-07-03 Jason Rumney <jasonr@gnu.org>
11454
11455 * w32term.c (w32_initialize): Use standard types.
11456
11457 2009-07-03 Eli Zaretskii <eliz@gnu.org>
11458
11459 * dired.c (Ffile_attributes): Decode user and group names by the
11460 locale's encoding. (Bug#3443)
11461
11462 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11463
11464 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11465 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11466
11467 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11468
11469 * term.c (init_tty): Remove spurious #ifdef.
11470
11471 * m/mips.h: Mention this file is also used for netbsd.
11472 * m/pmax.h: Remove file.
11473
11474 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11475
11476 * xterm.h (struct x_display_info): Add invisible_cursor.
11477 (struct x_output): Add current_cursor.
11478
11479 * xterm.c (XTtoggle_invisible_pointer): New function.
11480 (x_define_frame_cursor): Don't define cursor if invisible or the
11481 same as before. Set current_cursor.
11482 (x_create_terminal): Set toggle_invisible_pointer_hook.
11483
11484 * xfns.c (make_invisible_cursor): New function.
11485 (x_set_mouse_color): Call make_invisible_cursor.
11486 Set current_cursor.
11487 (x_window): Set current_cursor.
11488
11489 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11490
11491 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11492 inserting a character.
11493 (read_avail_input): Call frame_make_pointer_visible.
11494
11495 * frame.c (Vmake_pointer_invisible): New variable.
11496 (frame_make_pointer_invisible, frame_make_pointer_visible):
11497 New functions.
11498 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11499
11500 * frame.h: Declare frame_make_pointer_invisible and
11501 frame_make_pointer_visible.
11502 (struct frame): Add pointer_invisible.
11503
11504 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11505
11506 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11507 frame isn't visible.
11508 (xg_frame_resized): If width/height is -1, get size of window
11509 from X server.
11510
11511 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11512 for MapNotify.
11513
11514 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
11515 here or call change_frame_size. Just call flush_and_sync.
11516 (flush_and_sync): Reintroduce.
11517
11518 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
11519
11520 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
11521
11522 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11523 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11524
11525 * frame.h: Declare Qsticky.
11526
11527 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11528
11529 * nsfns.m (ns_frame_parm_handlers): Ditto.
11530
11531 * frame.c: Declare Qsticky.
11532 (frame_parms): Add sticky.
11533
11534 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11535
11536 * xterm.h: Declare x_set_sticky.
11537
11538 * xterm.c (x_set_sticky): New function.
11539
11540 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11541 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11542 xg_tool_bar_proxy_help_callback.
11543
11544 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11545
11546 * frame.c: Qmaximized is new.
11547 (x_set_frame_parameters): Do not handle fullscreen specially.
11548 Only set width and height if explicitly set.
11549 (x_set_fullscreen): Handle Qmaximized.
11550 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11551 (syms_of_frame): Initialize Qmaximized.
11552
11553 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11554 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
11555
11556 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
11557 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11558 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
11559 set gravity to NorthWestGravity when USE_GTK.
11560 (set_wm_state): New function.
11561 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
11562 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11563 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
11564 or the case when no window manager is running. That means remove calls
11565 to x_real_positions and x_fullscreen_adjust.
11566
11567 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11568 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11569 flush_and_sync.
11570 (xg_height_changed): New function.
11571 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
11572 and gtk_window_set_policy. Set frame gravity after parsing the
11573 geometry string.
11574 (xg_update_frame_menubar, free_frame_menubar)
11575 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11576 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11577 Remove calls to xg_frame_set_char_size.
11578
11579 2009-07-01 Kenichi Handa <handa@m17n.org>
11580
11581 * keyboard.c (decode_keyboard_code): New function.
11582 (tty_read_avail_input): Decode the input bytes if necessary.
11583
11584 * coding.c (setup_coding_system):
11585 Initialize coding->carryover_bytes to 0.
11586 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11587 use Qno_conversion.
11588
11589 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11590
11591 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11592
11593 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
11596
11597 2009-06-30 Jason Rumney <jasonr@gnu.org>
11598
11599 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11600 is already loaded.
11601 Set user model ID if supported (bug#1849).
11602
11603 2009-06-29 Jim Meyering <meyering@redhat.com>
11604
11605 Remove useless if-before-xfree test.
11606 * nsfont.m (nsfont_close): Remove useless test.
11607 * term.c (delete_tty): Likewise.
11608 * w32.c (system_process_attributes): Likewise.
11609 * w32font.c (w32font_close): Likewise.
11610 * xfaces.c (x_free_gc): Likewise.
11611 * xselect.c (buffer): Likewise.
11612
11613 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11614
11615 * process.c (send_process): Keep decoded string in a local
11616 variable and protect it from GC. (Bug#3521)
11617
11618 2009-06-28 Eli Zaretskii <eliz@gnu.org>
11619
11620 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11621 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11622
11623 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
11624
11625 * xdisp.c (start_display, handle_face_prop)
11626 (move_it_vertically_backward, cursor_row_fully_visible_p)
11627 (redisplay_window, try_window_id, produce_image_glyph):
11628 Delete some #ifdef-ed out code chunks that are now obsolete.
11629
11630 * xterm.c (x_update_window_begin, x_new_focus_frame)
11631 (x_scroll_bar_handle_click, handle_one_xevent)
11632 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11633 (x_make_frame_visible, x_make_frame_invisible)
11634 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11635 code chunks that are now obsolete.
11636
11637 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
11638
11639 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11640 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11641 for hours, when optimzation is enabled.
11642 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11643 (xd_read_message): Make them static.
11644
11645 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11646
11647 * term.c (turn_on_face): Allow simultaneously bold and dim
11648 terminal faces (Bug#3530).
11649
11650 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
11651
11652 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11653
11654 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11655 truncation glyphs (Bug#3686).
11656
11657 2009-06-27 Glenn Morris <rgm@gnu.org>
11658
11659 * m/pmax.h: Restore file, with only netbsd portions.
11660
11661 2009-06-26 David Reitter <david.reitter@gmail.com>
11662
11663 * nsterm.m (keydown): Avoid infinite loop.
11664
11665 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11666
11667 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11668 the arg FORCE_SYMBOL.
11669
11670 2009-06-25 Kenichi Handa <handa@m17n.org>
11671
11672 * fontset.c (fontset_find_font): When a usable rfont_def is found
11673 in a fallback font-group, make it the first element of the group.
11674
11675 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
11676
11677 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11678
11679 2009-06-24 Kenichi Handa <handa@m17n.org>
11680
11681 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11682 set for C.
11683 (fontset_font): Record the availability of a font for C both in
11684 the realized fontsets of the current one and the default one.
11685
11686 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11687
11688 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11689 conditional, it is always defined on AIX.
11690
11691 2009-06-23 Miles Bader <miles@gnu.org>
11692
11693 * window.c (Vrecenter_redisplay): New variable.
11694 (syms_of_window): Initialize it.
11695 (Qtty): New extern declaration.
11696 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11697
11698 2009-06-23 Jim Meyering <meyering@redhat.com>
11699
11700 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11701 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
11702 pointer dereferences are guaranteed to be valid.
11703
11704 2009-06-23 Kenichi Handa <handa@m17n.org>
11705
11706 * emacs.c (main): Call init_font ().
11707
11708 * font.h (Vfont_log): Extern it.
11709 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11710
11711 * font.c (font_sort_entities, font_list_entities)
11712 (font_matching_entity, font_open_entity)
11713 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11714 (Vfont_log): Delete static.
11715 (font_log_env_checked): Delete this variable.
11716 (font_add_log): Don't check font_log_env_checked.
11717 (font_deferred_log): Check Vfont_log.
11718 (init_font): New function.
11719
11720 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11721
11722 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11723
11724 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11725
11726 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11727
11728 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11729 (face_for_char): Don't call font_deferred_log here.
11730 (font_for_char): Likewise.
11731
11732 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
11733
11734 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11735 rather than its background_width for drawing the overline and
11736 underline (Bug#489).
11737
11738 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11739 rather than its background_width for drawing the overline and
11740 underline (Bug#489).
11741 (xg_default_icon_file): New variable.
11742 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11743 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
11744
11745 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11746 (load_overlay_strings): Remove externs.
11747 (fast_find_position): Function deleted.
11748 (mouse_face_from_buffer_pos): New function, based on
11749 fast_find_position. Correctly handle before-strings,
11750 display-strings, and after-strings (Bug#1220).
11751 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11752
11753 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11754
11755 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
11756 (move_it_in_display_line_to, move_it_in_display_line_to)
11757 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11758
11759 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11760
11761 * Branch for 23.1.
11762
11763 2009-06-21 Jason Rumney <jasonr@gnu.org>
11764
11765 * w32term.c (keyboard_codepage): New static variable.
11766 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11767 (w32_read_socket) [WM_CHAR]: Use it to decode character
11768 input (bug#3237).
11769 (w32_initialize): Initialize it.
11770 (codepage_for_locale): New function.
11771
11772 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
11773
11774 * process.c (status_message): Pass Faset index argument as a lisp
11775 object, so as to work with USE_LISP_UNION_TYPE.
11776
11777 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11778
11779 * coding.c (Ffind_coding_systems_region_internal):
11780 Cache checked characters.
11781
11782 2009-06-18 Kenichi Handa <handa@m17n.org>
11783
11784 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
11785
11786 2009-06-18 Andreas Schwab <aschwab@redhat.com>
11787
11788 * xdisp.c (redisplay_internal): Check that the frame is still
11789 live after redisplay of its windows.
11790 (redisplay_windows): Check that the window is still live.
11791
11792 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11793
11794 * coding.c (detect_coding_utf_16): Fix previous change.
11795
11796 2009-06-16 Kenichi Handa <handa@m17n.org>
11797
11798 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11799 UTF-16 by checking the dispersion of Eth and Oth bytes.
11800
11801 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11802
11803 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11804
11805 2009-06-15 Kenichi Handa <handa@m17n.org>
11806
11807 * process.c (status_message): Fix previous change. Be sure to
11808 decode a localized string.
11809
11810 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11811
11812 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11813 add comment explaining why.
11814
11815 2009-06-14 Sidney Markowitz <sidney@sidney.com>
11816
11817 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
11818
11819 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11820
11821 * nsfont.m (ns_attribute_value): Remove.
11822 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11823 (ns_has_attribute): Shrink the normal range.
11824 (ns_findfonts): Don't worry about requested spec in determining
11825 need for synthItal.
11826 (ns_get_covering_families): Retain scriptToFamilies.
11827
11828 2009-06-14 Seiji Zenitani <zenitani@mac.com>
11829
11830 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11831
11832 2009-06-11 Kenichi Handa <handa@m17n.org>
11833
11834 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11835 overhang for the static composition case.
11836
11837 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11838
11839 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11840 overhang for the automatic composition case.
11841
11842 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11843 composition case.
11844
11845 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
11846
11847 * xdisp.c (get_next_display_element): When handling wrap-prefix
11848 and line-prefix, treat \n as a control character (bug#3502).
11849
11850 2009-06-10 Kenichi Handa <handa@m17n.org>
11851
11852 * font.c (font_parse_family_registry): Fix for one-char foundry.
11853 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11854
11855 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11856
11857 * process.c (status_message): Fix handling of multibyte signal
11858 string (Bug#3499).
11859
11860 2009-06-09 Jim Meyering <meyering@redhat.com>
11861
11862 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11863 color name is missing.
11864
11865 2009-06-09 Kenichi Handa <handa@m17n.org>
11866
11867 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11868 FROM-CODE and TO-CODE are codepoints of CHARSET.
11869
11870 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11871
11872 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11873
11874 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11875
11876 Changes to support :script/:lang/:otf in NS font driver.
11877 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11878 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11879 indicate not part of font driver interface, and change callers.
11880 (ns_get_family): Remove pointless null check.
11881 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11882 ns_spec_to_descriptor, ns_descriptor_to_entity.
11883 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11884 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11885 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11886 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11887 (ns_get_req_script, ns_accumulate_script_ranges)
11888 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11889 New functions.
11890 (nsfont_list, nsfont_match): Use ns_findfonts.
11891 (nsfont_open): Use font descriptor instead of traits.
11892 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11893 (dump_glyphstring): Rename to ns_dump_glyphstring.
11894
11895 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11896
11897 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11898
11899 * fontset.c (fontset_from_font): Remove NS-specific code.
11900
11901 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
11902
11903 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11904 nonactive windows.
11905
11906 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
11907
11908 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
11909
11910 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11911
11912 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11913
11914 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
11915
11916 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11917 account for the overflowing of newlines into the last glyph on the
11918 display line (Bug#3482).
11919
11920 2009-06-05 David Reitter <david.reitter@gmail.com>
11921
11922 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11923 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
11924 Fns_selection_exists_p, Fns_selection_owner_p.
11925
11926 2009-06-03 Jason Rumney <jasonr@gnu.org>
11927
11928 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11929 available. (Bug#3379)
11930
11931 2009-05-29 Kenichi Handa <handa@m17n.org>
11932
11933 * coding.c (get_translation_table):
11934 Check Venable_character_translation.
11935
11936 2009-05-26 David Reitter <david.reitter@gmail.com>
11937
11938 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11939 (x_make_frame_visible): Move frame to front rather than calling
11940 ns_raise_frame().
11941 (keyDown:): Do not swallow events that aren't re-sent if frame
11942 isn't key window.
11943 (drawRect:): Do not set visibility/iconified flags because
11944 drawRect may be called by NSView even if the frame is hidden.
11945
11946 * nsfns.m (Fx_create_frame): Follow other ports in
11947 determining visibility; default to t. Ensure async_visible is set.
11948
11949 2009-05-23 Eli Zaretskii <eliz@gnu.org>
11950
11951 * dired.c (Ffile_attributes): Doc fix.
11952
11953 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
11954
11955 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11956
11957 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11960 and xfont_scratch_props.
11961 (syms_of_xfont): Do it here instead.
11962 (xfont_find_ccl_program): Delete, unused.
11963 (xfont_open): Delete unused var `i'.
11964
11965 2009-05-21 Kenichi Handa <handa@m17n.org>
11966
11967 * fontset.c (Qlatin): Don't make it static.
11968
11969 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11970 New functions.
11971 (xfont_scripts_cache, xfont_scratch_props): New variables.
11972 (Qlatin, Vscalable_fonts_allowed): Extern it.
11973 (xfont_list_pattern): Argument changed. Callers changed.
11974 Check Vscalable_fonts_allowed. Check the support of a script.
11975 (xfont_list): Don't reject a font spec with :script property.
11976 (xfont_has_char): Fix setting of encoding.
11977 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11978 xfont_scratch_props.
11979
11980 2009-05-19 Kenichi Handa <handa@m17n.org>
11981
11982 * font.c (font_sort_entities): Rename from font_sort_entites.
11983 Callers changed.
11984
11985 2009-05-18 Kenichi Handa <handa@m17n.org>
11986
11987 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11988
11989 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11990
11991 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11992 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11993
11994 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11995
11996 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11997 (x_delete_terminal): Dissociate resource database from display and
11998 then call XrmDestroyDatabase before closing display.
11999
12000 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12001
12002 * nsterm.m (ns_read_socket): Remove unused variable.
12003 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12004 whether selected frame is viable before raising it (based on patch
12005 by David Reitter), and improve commentary.
12006 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
12007
12008 2009-05-15 Kenichi Handa <handa@m17n.org>
12009
12010 * font.c (Ffont_spec): Check arguments.
12011
12012 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
12013
12014 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12015 weight when testing attributes (Bug#3282).
12016
12017 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12018
12019 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12020 what we expect to get in the next ConfigureNotify event.
12021
12022 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12023 before Xft one (Bug#1696).
12024
12025 2009-05-07 David Reitter <david.reitter@gmail.com>
12026
12027 * nsfns.m (Fx_display_planes): Compute bitplanes using
12028 NSBitsPerPixelFromDepth (Bug#3207).
12029
12030 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
12031
12032 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12033
12034 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
12035
12036 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12037
12038 2009-05-07 David Reitter <david.reitter@gmail.com>
12039
12040 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12041 Respect mouse face background.
12042
12043 2009-05-07 David Reitter <david.reitter@gmail.com>
12044
12045 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12046 Mouse movement/highlight: bracket drawing operations
12047 in ns_update_begin and ns_update_end.
12048
12049 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12050
12051 * nsfns.m (ns_get_screen): Rewrite.
12052 Don't presume selected-frame is of type `ns'.
12053
12054 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12055 all drivers.
12056
12057 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12058
12059 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * keyboard.h (add_user_signal): Fix typo in extern.
12062
12063 * lisp.h (add_user_signal): Remove extern.
12064
12065 * unexelf.c (unexec): Consider a section to precede the .bss section
12066 if its addresses overlap that of .bss.
12067 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12068 instead of dumping process.
12069
12070 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12073
12074 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12075
12076 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12077
12078 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12079
12080 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12081 any statements.
12082
12083 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12084
12085 * process.c (read_process_output): Make sure the current buffer is
12086 always restored.
12087
12088 * coding.c (record_conversion_result): Don't modify
12089 Vlast_code_conversion_error for successful result.
12090 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12091
12092 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12093
12094 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
12095 (load_charset_map): Remove unnecessary code.
12096
12097 2009-04-30 David Reitter <david.reitter@gmail.com>
12098
12099 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12100 through f24.
12101
12102 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12103
12104 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12105
12106 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12107 face_at_buffer_position.
12108 (face_before_or_after_it_pos, get_next_display_element)
12109 (note_mouse_highlight): Update face_at_buffer_position call.
12110
12111 * term.c (term_mouse_highlight):
12112 * msdos.c (IT_note_mouse_highlight):
12113 * fontset.c (Finternal_char_font):
12114 * font.c (font_at, font_range): Update face_at_buffer_position call.
12115
12116 * dispextern.h (face_at_buffer_position): Update prototype.
12117
12118 2009-04-30 Kenichi Handa <handa@m17n.org>
12119
12120 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12121
12122 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12123
12124 * callproc.c (Fcall_process): Fix GC protection. Make sure
12125 current buffer is always restored.
12126
12127 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12128
12129 * atimer.c (init_atimer): Also clear stopped_atimers.
12130
12131 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12132
12133 * process.c (create_process): Clean up merger residues of
12134 2008-07-17 change.
12135
12136 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12137
12138 * lread.c (Vread_circle): New variable.
12139 (read1): Disable recursive read if Vread_circle is nil.
12140
12141 2009-04-29 Kenichi Handa <handa@m17n.org>
12142
12143 * fontset.h (set_default_ascii_font): Delete extern.
12144
12145 * fontset.c (set_default_ascii_font): Delete this unused function.
12146
12147 * frame.c (x_set_font): When ARG is a font-object, check if the
12148 font-object matches with the ASCII font-spec of the frame's
12149 fontset. If not, create a new fontset for the frame. (Bug #3075)
12150
12151 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12152
12153 * fns.c (Flocale_info): Protect vector from GC during decoding.
12154
12155 * process.c (Fstart_process): Protect argv strings from GC during
12156 encoding.
12157
12158 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12159
12160 * sysdep.c: Include <ctype.h>.
12161
12162 2009-04-27 David Reitter <david.reitter@gmail.com>
12163
12164 * nsfont.m (nsfont_open): Remove unused variable shrink.
12165 Remove commented-out code.
12166
12167 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12168
12169 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12170
12171 2009-04-25 Jason Rumney <jasonr@gnu.org>
12172
12173 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12174
12175 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12176
12177 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12178 Swap bytes in short integer if fringe bitmap width > 8.
12179
12180 2009-04-23 Kenichi Handa <handa@m17n.org>
12181
12182 * xfaces.c (Fx_list_fonts): If a font size is specified in
12183 PATTERN, set it in returned scalable fonts.
12184
12185 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12186
12187 * keyboard.c (Fset_input_meta_mode): Doc fix.
12188
12189 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12190
12191 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12192
12193 * coding.c (Fterminal_coding_system): Doc fix.
12194
12195 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12196 (Fx_display_pixel_height, Fx_display_planes)
12197 (Fx_display_color_cells, Fx_server_max_request_size)
12198 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12199 (Fx_display_mm_height, Fx_display_mm_width)
12200 (Fx_display_backing_store, Fx_display_visual_class)
12201 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12202 Doc fixes, replacing "terminal id" with "terminal object".
12203 (check_x_display_info): Handle terminal objects instead of
12204 terminal ids.
12205
12206 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12207 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12208 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12209 Doc fixes, replacing "terminal id" with "terminal object".
12210
12211 2009-04-21 Kenichi Handa <handa@m17n.org>
12212
12213 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12214 (font_score): Check AVGWIDTH too.
12215
12216 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12217 worst case.
12218 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12219 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12220
12221 2009-04-19 Jason Rumney <jasonr@gnu.org>
12222
12223 The following changes fix Bug#3005 for wide glyphs on each platform,
12224 without reintroducing Bug#1258 for stretch glyphs.
12225
12226 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12227 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12228 get_phys_cursor_geometry.
12229
12230 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12231 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12232 using get_phys_cursor_geometry.
12233
12234 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12235 correctly calculated.
12236
12237 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12238
12239 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12240 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12241 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12242 is deprecated.
12243
12244 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12245
12246 * font.c (font_put_frame_data): Use xfree instead of free.
12247
12248 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12249
12250 * w32font.c (Qja, Qko): Remove declarations.
12251 (syms_of_w32font): Don't DEFSYM them.
12252
12253 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12254
12255 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12256
12257 * font.h (Qja, Qko): Extern them.
12258
12259 * ftfont.c (Qja, Qko): Remove declarations.
12260
12261 * xfont.c (Qja, Qko): Remove declarations.
12262
12263 2009-04-17 Kenichi Handa <handa@m17n.org>
12264
12265 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12266 string from a vector to handle Latin-1 characters correctly.
12267
12268 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12269 entity even if the cache hits.
12270
12271 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12272
12273 * search.c (boyer_moore): Use zero as marker value for a possible
12274 match instead of depending on overflow behavior. (Bug#2844)
12275
12276 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12277 * lisp.h: Adjust prototypes.
12278
12279 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12280
12281 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12282 change (Bug#3003).
12283
12284 2009-04-16 Kenichi Handa <handa@m17n.org>
12285
12286 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12287
12288 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12289 adstyle.
12290
12291 * ftfont.c (Qja, Qko): Don't make them static.
12292 (enum ftfont_cache_for): New enum.
12293 (fc_charset_table): Undo the previous change.
12294 (ftfont_get_latin1_charset): Delete it.
12295 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12296 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12297 non-scarable font, try to get AVERAGE_WIDTH.
12298 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12299 Change ft_face_cache from a list of a hash-table. Don't check
12300 `ja' and `ko' adstyle here.
12301 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12302 FTFONT_CACHE_FOR_CHARET.
12303 (ftfont_get_charset): Undo the previous change.
12304 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12305 (ftfont_close): Likewise.
12306 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12307
12308 * font.c (font_sort_entites): Change the meaning of the arg
12309 BEST-ONLY. Don't optimize for VEC of lenght 1.
12310 (font_select_entity): Just return the value of font_sort_entites.
12311
12312 * xfaces.c (merge_face_vectors): Reflect font properties in
12313 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12314 font_clear_prop if a face attribute doesn't change.
12315
12316 * charset.h (charset_ksc5601): Extern it.
12317
12318 * charset.c (charset_ksc5601): New variable.
12319 (Fdefine_charset_internal): Set charset_ksc5601.
12320 (init_charset_once): Initialize charset_ksc5601 to -1.
12321
12322 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12323
12324 * fileio.c (history_delete_duplicates): Remove unused declaration.
12325
12326 * callint.c (history_delete_duplicates): New declaration.
12327 (Fcall_interactively): Remove command history duplicates when
12328 history_delete_duplicates is true.
12329
12330 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12331
12332 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12333
12334 2009-04-14 Kenichi Handa <handa@m17n.org>
12335
12336 * font.c (Ffont_info): Fix docstring. Fix the second element of
12337 the returned value (bug#2949).
12338
12339 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12340
12341 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12342
12343 2009-04-14 Kenichi Handa <handa@m17n.org>
12344
12345 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12346 encoding charset is ascii_compatible.
12347
12348 * charset.c (Fdefine_charset_internal): Make charset
12349 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12350 code_offset is 0, and covers all ASCII characters.
12351
12352 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12353
12354 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12355 (ns_string_to_pasteboard_internal):
12356 * nsmenu.m (process_dialog):
12357 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12358 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12359 * lisp.h (Fx_load_color_file): Declare.
12360
12361 2009-04-13 Kenichi Handa <handa@m17n.org>
12362
12363 * font.c (font_delete_unmatched): Preserve the order of list elements.
12364 (font_select_entity): Suppress the code to optimize for the same
12365 kind of fonts.
12366 (font_load_for_lface): Get a font that supports at least ASCII
12367 characters.
12368
12369 * ftfont.c (Qja, Qko): New variables.
12370 (fc_charset_table): Delete uniquifier data for iso8859-1.
12371 (ftfont_get_latin1_charset): New function.
12372 (get_adstyle_property): New function.
12373 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12374 bitmap fonts.
12375 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12376 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12377 `ko' or `ja'.
12378 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12379 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12380 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12381 property.
12382 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12383 (syms_of_ftfont): DEFSYM Qja and Qko.
12384
12385 2009-04-09 Kenichi Handa <handa@m17n.org>
12386
12387 * charset.c (map_charset_chars): For a charset of `superset'
12388 method, fix calculation of code range.
12389
12390 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12391 from the list of extra properties.
12392 (font_clear_prop): Be sure to delete `:name' font property.
12393
12394 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12395
12396 * dispnew.c (redraw_overlapping_rows): Fix detection of
12397 overlapping for topmost and bottommost rows.
12398
12399 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
12400
12401 2009-04-06 Jason Rumney <jasonr@gnu.org>
12402
12403 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12404
12405 2009-04-06 Kenichi Handa <handa@m17n.org>
12406
12407 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12408
12409 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12410
12411 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12412
12413 * ftfont.c (ftfont_open): Fix checking of the return value of
12414 FT_Load_Char. Fix setting font->underline_thickness.
12415
12416 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
12417
12418 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12419 (Fterminal_parameters, Fterminal_parameter)
12420 (Fset_terminal_parameter): In doc string, refer to terminal
12421 objects rather than terminal ids.
12422
12423 2009-04-04 Eli Zaretskii <eliz@gnu.org>
12424
12425 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12426 ret_lim_data. (Bug#2867)
12427
12428 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
12429
12430 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12431 so they don't get wider than the window, matching 2006-01-23
12432 change to the partner function in xdisp.c (Bug#2800).
12433
12434 2009-04-03 Kenichi Handa <handa@m17n.org>
12435
12436 * print.c (print_object): Make each lowest sub_char_table start a
12437 new line (Bug#2866).
12438
12439 2009-04-02 Kenichi Handa <handa@m17n.org>
12440
12441 * fontset.c (fontset_font): Record no-font when a fontset
12442 explicitly tells not to try another font-specs.
12443
12444 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12445
12446 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12447
12448 2009-03-30 Kenichi Handa <handa@m17n.org>
12449
12450 * fontset.c (fontset_from_font): Specify only registry in a
12451 font-spec for all characters supported by that registry.
12452
12453 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12454 even if HAVE_M17N_FLT is not defined.
12455
12456 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12457
12458 * ftfont.c: Conditionalize prototyping and use of
12459 ftfont_variation_glyphs.
12460
12461 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12462
12463 * frame.c (delete_frame): Work around compiler bug.
12464
12465 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12466 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12467 Some more EMACS_INT.
12468 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12469
12470 * xdisp.c (dump_glyph): Fix typo.
12471
12472 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12473 (adjust_markers_gap_motion, adjust_markers_for_delete)
12474 (adjust_markers_for_insert, adjust_point)
12475 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12476 (make_gap, copy_text, count_size_as_multibyte, insert)
12477 (insert_and_inherit, insert_before_markers)
12478 (insert_before_markers_and_inherit, insert_1)
12479 (count_combining_before, count_combining_after, insert_1_both)
12480 (insert_from_string, insert_from_string_before_markers)
12481 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12482 (insert_from_buffer_1, adjust_after_replace)
12483 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12484 (replace_range_2, del_range, del_range_1, del_range_byte)
12485 (del_range_both, del_range_2, modify_region)
12486 (prepare_to_modify_buffer, signal_before_change)
12487 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12488 for buffer positions and sizes.
12489 * lisp.h: Adjust prototypes accordingly.
12490
12491 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12492 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12493 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12494
12495 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12496
12497 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12498
12499 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12500 lines and columns so we keep the same pixel height and width.
12501
12502 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12503 the property _NET_WM_STATE has changed.
12504 (x_handle_net_wm_state): New function to update frame parameter
12505 fullscreen.
12506 (x_term_init): Initialize atoms for _NET_WM_STATE.
12507
12508 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12509
12510 2009-03-27 Kevin Ryde <user42@zip.com.au>
12511
12512 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12513 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12514 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12515 (Fgpm_mouse_stop): Pass that new parameter.
12516 * termhooks.h (close_gpm): Adjust prototype.
12517
12518 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12519
12520 * lisp.h (Fx_focus_frame): Declare.
12521
12522 * callint.c (Fcall_interactively): For '^' just delegate the work to
12523 handle-shift-selection.
12524 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12525
12526 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
12527
12528 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12529
12530 * data.c (Qinteractive_form): New variable.
12531 (Finteractive_form): Use it.
12532
12533 * eval.c (Fcommandp): Use Qinteractive_form.
12534
12535 2009-03-24 Jason Rumney <jasonr@gnu.org>
12536
12537 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12538 Calculate total size precisely. Decode environment variables
12539 before substituting. (Bug#38)
12540
12541 2009-03-24 Kenichi Handa <handa@m17n.org>
12542
12543 * font.c (find_font_encoding): Return Qnil for unsupported
12544 encoding (Bug#2722).
12545
12546 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12547
12548 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12549 that gdpy is set.
12550
12551 2009-03-22 Alan Mackenzie <acm@muc.de>
12552
12553 * callint.c (Finteractive): Clarify the doc string - even
12554 promptless elements need \n separators.
12555
12556 2009-03-22 Jason Rumney <jasonr@gnu.org>
12557
12558 * w32term.c (syms_of_w32term): Doc fix for
12559 x-use-underline-position-properties.
12560
12561 2009-03-21 Eli Zaretskii <eliz@gnu.org>
12562
12563 * w32.c (getpwuid): Change argument type to unsigned.
12564 (struct w32_id): Change type of `rid' member to unsigned.
12565 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12566 argument ID to unsigned. All callers changed.
12567 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12568
12569 2009-03-20 Eli Zaretskii <eliz@gnu.org>
12570
12571 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12572 negative, produce a float value.
12573
12574 * dired.c (make_uid, make_gid): New functions.
12575 (Ffile_attributes): Use them to avoid negative UID and GID.
12576
12577 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
12578
12579 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12580 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12581 Fix typos in docstrings.
12582
12583 2009-03-19 Kenichi Handa <handa@m17n.org>
12584
12585 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
12586 changed, use font_load_for_lface to get a new font object.
12587 Call free_realized_fontset after handling ASCII font change.
12588
12589 * frame.c (x_set_font): Handle the case that ARG is a cons.
12590
12591 2009-03-19 Glenn Morris <rgm@gnu.org>
12592
12593 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12594
12595 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
12596
12597 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12598
12599 2009-03-19 Kenichi Handa <handa@m17n.org>
12600
12601 * charset.c (load_charset_map_from_file): When a mapfile can't be
12602 loaded, signal an error.
12603
12604 2009-03-18 Eli Zaretskii <eliz@gnu.org>
12605
12606 * dired.c (Ffile_attributes): Make sure UID and GID are always
12607 positive, even if the value is too large for a positive EMACS_INT.
12608 Doc fix.
12609
12610 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12611
12612 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12613
12614 * xmenu.c (xdialog_show): Move Fredisplay call ...
12615 (Fx_popup_dialog): ... here.
12616
12617 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 * dired.c (file_name_completion): Disable the first optimization just
12620 installed, since it is not implemented correctly.
12621
12622 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12623
12624 * dired.c (file_name_completion): Check completion-ignored-extensions
12625 only if the entry can affect bestmatch.
12626 Stop the search early, as Ftry_completion already does.
12627
12628 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
12629
12630 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
12631
12632 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
12633
12634 * keyboard.c (parse_menu_item): Don't display remappings as menu
12635 equivalent bindings (Bug#788).
12636
12637 2009-03-15 Jason Rumney <jasonr@gnu.org>
12638
12639 * w32term.h (WM_EMACS_PAINT): New message.
12640 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12641 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12642 before passing to lisp thread. (Bug#950)
12643
12644 2009-03-14 David Reitter <david.reitter@gmail.com>
12645
12646 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12647 variable as it was never reset.
12648 (ns_term_init): Remove initialization of Lisp-settable defaults
12649 and ns_expand_space.
12650 (-setPanelFromDefaultValues): Remove ns_expand_space.
12651 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12652 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
12653 i.e. no additional spacing, similar to Carbon port.
12654
12655 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12656 * nsfns.m (ns-popup-prefs-panel): Remove.
12657
12658 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12659
12660 * sound.c (alsa_configure): Remove call to deprecated
12661 snd_pcm_sw_params_set_xfer_align.
12662
12663 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
12664
12665 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12666 after clicking in a detached tool bar.
12667 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12668
12669 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12670
12671 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12672 int/Lisp_Object mixup).
12673
12674 2009-03-13 Kenichi Handa <handa@m17n.org>
12675
12676 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
12677 Handle NAME nil and t correctly. Callers changed.
12678 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12679 (set_fontset_font): Change ARG to a vector. Handle range_list in
12680 ARG correctly.
12681 (Fset_fontset_font): Fix the case that TARGET is both a script
12682 name and charset name. Adjust the arg to set_fontset_font for
12683 the above change.
12684 (fontset_from_font): Fix previous change.
12685 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
12686 entry. If FONTSET is the default fontset, don't set the extra
12687 slot of the returning char-table.
12688
12689 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
12690
12691 * nsfns.m (Fx_close_connection): Doc fix.
12692 (Fns_do_applescript): Reflow docstring.
12693 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12694 (Fx_display_pixel_width, Fx_display_pixel_height)
12695 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12696 Fix typos in docstrings.
12697 (Fns_set_alpha): Fix typos in error messages.
12698
12699 2009-03-12 David Reitter <david.reitter@gmail.com>
12700
12701 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
12702 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12703 were used for such events.
12704
12705 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12706 (toggleToolbar, performDragOperation, runHelp): Use it.
12707
12708 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
12709 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12710
12711 2009-03-11 Kenichi Handa <handa@m17n.org>
12712
12713 * font.h (font_open_by_spec): Extern it.
12714
12715 * font.c (font_open_by_spec): New function.
12716 (font_open_by_name): Use font_open_by_spec.
12717
12718 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12719 fontset of the frame.
12720
12721 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12722 modify the default font of frames that use this fontset.
12723 (num_auto_fontsets): New variable.
12724 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12725 name. Be sure to set FONTSET_ASCII to the correct font name.
12726 (update_auto_fontset_alist): New function.
12727
12728 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
12729
12730 * makefile.w32-in: Update dependencies.
12731
12732 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12733
12734 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12735
12736 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12737
12738 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12739
12740 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * lread.c (Feval_buffer): Doc fix.
12743
12744 2009-03-09 Kenichi Handa <handa@m17n.org>
12745
12746 * charset.c (Qfile_name_handler_alist): Extern it.
12747 (load_charset_map_from_file): Temporarily bind
12748 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12749
12750 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
12751
12752 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12753 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
12754
12755 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12756
12757 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12758 (x_set_window_size): Change back to calculated method of setting
12759 toolbar height under Cocoa. (Bug#2546)
12760 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12761 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12762
12763 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12764
12765 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12766 accelerator in parens under GNUstep.
12767
12768 2009-03-06 Kenichi Handa <handa@m17n.org>
12769
12770 These changes are to detect incorrect composition sequence without
12771 looking ahead the source. (Bug#2370)
12772
12773 * coding.h: Include "composite.h".
12774 (enum compisition_state): New enum.
12775 (struct compisition_status): New struct.
12776 (struct iso_2022_spec): New member cmp_status.
12777 (struct emacs_mule_spec): New struct.
12778 (struct coding_system): New members ctext_extended_segment_len and
12779 embedded_utf_8. Change the union member
12780 spec.emacs_mule_full_support to spec.emacs_mule.
12781
12782 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12783 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
12784 (MAX_ANNOTATION_LENGTH): Define to 5.
12785 (ADD_COMPOSITION_DATA): New arg nbytes.
12786 (emacs_mule_char): New arg cmp_status.
12787 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12788 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12789 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12790 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12791 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12792 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12793 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12794 (EMACS_MULE_COMPOSITION_END): New macro.
12795 (emacs_mule_finish_composition): New function.
12796 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12797 (decode_coding_emacs_mule): Avoid long looking ahead while
12798 handling composition.
12799 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12800 (ENCODE_COMPOSITION_RULE): New macro.
12801 (finish_composition): New function.
12802 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12803 (DECODE_COMPOSITION_START): New implementation.
12804 (DECODE_COMPOSITION_END): Likewise.
12805 (STORE_COMPOSITION_RULE): New macro.
12806 (decode_coding_iso_2022): Avoid long looking ahead while handling
12807 composition, CTEXT extended segment, and embedded UTF-8.
12808 (setup_coding_system): For a coding of type iso-2022, reset
12809 CODING_ISO_EXTSEGMENT_LEN (coding) and
12810 CODING_ISO_EMBEDDED_UTF_8 (coding).
12811 (get_translation): Delete arguments last_block, from_nchars,
12812 to_nchars. Callers changed.
12813 (produce_chars): Don't modify charbuf. Adjusted for the change of
12814 get_translation.
12815 (produce_composition): Adjust for the new annotation sequence.
12816 (handle_composition_annotation): Likewise.
12817 (consume_chars): Adjust for the change of get_translation.
12818
12819 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12820
12821 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
12822
12823 2009-03-05 Kenichi Handa <handa@m17n.org>
12824
12825 * font.c (font_select_entity): New function.
12826 (font_find_for_lface): Use font_select_entity to select a font.
12827
12828 * fontset.c (fontset_find_font): If a font found without
12829 restricting to the characters C doesn't support C, try to find a
12830 font with C restriction.
12831
12832 2009-03-04 Nikolaj Schumacher <me@nschum.de>
12833
12834 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
12835
12836 2009-03-04 Jason Rumney <jasonr@gnu.org>
12837
12838 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12839 characters that have already been read. (Bug#2569)
12840
12841 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12842 Log an error message if check_image_size failed.
12843 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12844 (gs_load): Mention max-image-size in size error message. (Bug#2560)
12845
12846 2009-03-02 Eli Zaretskii <eliz@gnu.org>
12847
12848 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12849 when decoding process output.
12850
12851 2009-03-01 Richard M Stallman <rms@gnu.org>
12852
12853 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12854
12855 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12856
12857 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12858
12859 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12860 (decode_coding_emacs_mule, decode_coding_iso_2022)
12861 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12862 (decode_coding_raw_text, decode_coding_charset)
12863 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12864 Honor inhibit-eol-conversion. (Bug #2186)
12865
12866 2009-02-28 Jason Rumney <jasonr@gnu.org>
12867
12868 * coding.c (detect_coding_charset): If not checking latin extra,
12869 fail on characters between 0x80 and 0xA0. (Bug#2354)
12870
12871 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12872
12873 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
12874 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
12875
12876 2009-02-27 Glenn Morris <rgm@gnu.org>
12877
12878 * callint.c (Finteractive): Doc fix.
12879
12880 2009-02-27 Kenichi Handa <handa@m17n.org>
12881
12882 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12883
12884 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
12885
12886 * font.c (font_style_to_value): Set value for unknown symbols to
12887 100 instead of 255.
12888 (weight_table, slant_table, width_table): Treat "unspecified" as
12889 the default value.
12890
12891 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
12892
12893 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12894
12895 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
12896
12897 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12898 error as soon as a recursive load is detected.
12899
12900 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12901
12902 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12903 before caching.
12904
12905 2009-02-24 Kenichi Handa <handa@m17n.org>
12906
12907 * fontset.c (fontset_find_font): Fix the condition for checking
12908 unavailable font.
12909
12910 2009-02-24 Glenn Morris <rgm@gnu.org>
12911
12912 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12913 whitespace that confuses documentation.
12914
12915 2009-02-23 Miles Bader <miles@gnu.org>
12916
12917 * process.c (Flist_system_processes, Fprocess_attributes)
12918 (syms_of_process): Rename `system-process-attributes' to
12919 `process-attributes'.
12920
12921 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12922
12923 * coding.h (struct coding_system): Make safe_charsets a pointer to
12924 unsigned char.
12925 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12926 being 255.
12927 (SAFE_CHARSET_P): Likewise.
12928 (setup_iso_safe_charsets): Properly setup safe_charsets.
12929 (Fdefine_coding_system_internal): Likewise.
12930 (setup_coding_system): Likewise. Remove unneeded casts.
12931 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
12932 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12933 Remove unneeded casts.
12934
12935 * insdel.c (del_range_2): Don't modify gap contents when called
12936 from decode_coding_object. (Bug#1809)
12937
12938 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
12939
12940 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12941 Qfont_object.
12942 (Ftype_of): Recognize font objects.
12943
12944 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12945
12946 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12947 Definitions moved to data.c.
12948
12949 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12950
12951 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12952 async_iconified. Based on a patch by Christian Lynbech
12953 <christian.lynbech@tieto.com>.
12954 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12955
12956 2009-02-20 Glenn Morris <rgm@gnu.org>
12957
12958 * syntax.c (Fskip_chars_forward): Fix doc typo.
12959
12960 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
12961
12962 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12963
12964 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
12965
12966 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12967
12968 2009-02-19 Kenichi Handa <handa@m17n.org>
12969
12970 * coding.c (detect_coding): Preserve coding->mode.
12971 Don't overflow coding->carryover. (Bug#2370)
12972
12973 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12974
12975 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12976
12977 2009-02-18 Kenichi Handa <handa@m17n.org>
12978
12979 * font.c (font_check_otf_features): Fix handling of `nil' element.
12980 (Ffont_spec): Describe :lang and :otf in the docstring.
12981
12982 2009-02-16 Andreas Schwab <schwab@suse.de>
12983
12984 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12985 string.
12986
12987 2009-02-16 Kenichi Handa <handa@m17n.org>
12988
12989 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
12990 (Bug#1723)
12991
12992 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
12993
12994 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
12995
12996 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12997 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12998
12999 2009-02-14 Eli Zaretskii <eliz@gnu.org>
13000
13001 * msdos.c (MAX_SCREEN_BUF): New macro.
13002 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13003 Encode the entire run of glyphs sharing the same face, instead of
13004 doing that one glyph at a time (fixes a bug with displaying
13005 double-size characters).
13006
13007 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13008
13009 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13010
13011 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13012 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
13013 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
13014
13015 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
13016 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
13017
13018 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13019
13020 * keyboard.c (adjust_point_for_property): Allow stopping between two
13021 invisible areas.
13022
13023 2009-02-12 Jason Rumney <jasonr@gnu.org>
13024
13025 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13026 (add_font_entity_to_list): Call check_face_name even when family
13027 is unspecified.
13028
13029 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13030 Release DC when finished. Use NULL window to refer to desktop.
13031 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
13032
13033 * w32font.c (add_font_entity_to_list): Fix check for substituted
13034 raster fonts. (Bug#2219)
13035
13036 2009-02-12 Kenichi Handa <handa@m17n.org>
13037
13038 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13039 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13040 (autocmp_chars): Use fast_looking_at. Don't compose more
13041 characters than MAX_COMPOSITION_COMPONENTS.
13042 (find_automatic_composition): While looking forward and backward,
13043 check static composition. Fix where to stop looking forward.
13044 (composition_adjust_point): Fix checking of static composition.
13045 (Fcomposition_get_gstring): Pay attention to
13046 MAX_COMPOSITION_COMPONENTS.
13047
13048 * lisp.h (fast_looking_at): Extern it.
13049
13050 * search.c (fast_looking_at): New function.
13051
13052 * term.c (encode_terminal_code): Adjust for the change of
13053 <struct glyph>.u.cmp.to.
13054 (append_composite_glyph): Likewise.
13055
13056 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
13057 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13058 composition.
13059 (append_composite_glyph): Adjust for the change of
13060 <strcut glyph>.u.cmp.to.
13061
13062 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
13063
13064 * casetab.c (init_casetab_once):
13065 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13066 * font.c (font_update_lface):
13067 * fontset.c (Fnew_fontset):
13068 * ftfont.c (ftfont_drive_otf):
13069 * xfont.c (xfont_open):
13070 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13071
13072 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13073
13074 * fileio.c (Fwrite_region): !NILP -> CONSP.
13075
13076 2009-02-10 Andreas Schwab <schwab@suse.de>
13077
13078 * process.c (send_process): Properly relocate pointer into data
13079 when using encoded data. (Bug#2272)
13080
13081 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13082
13083 * coding.c (detect_coding_charset): Fix previous change.
13084
13085 2009-02-08 Jason Rumney <jasonr@gnu.org>
13086
13087 * w32fns.c (w32_hide_hourglass): Handle case where frame
13088 disappeared while hourglass was displayed. (Bug #2193)
13089
13090 2009-02-07 Andreas Schwab <schwab@suse.de>
13091
13092 * unexelf.c (unexec): Fix error message.
13093
13094 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13095
13096 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13097 when modal window is active. (Bug #2152)
13098 (applicationShouldTerminate:): Remove now-unneeded while loop
13099 around NSRunAlertPanel.
13100
13101 * nsmenu.m (popupSession): New file-global variable.
13102 (pop_down_menu): End the popupSession before closing dialog.
13103 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13104 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13105 don't query NSApp for events (just sleep instead).
13106
13107 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13108
13109 * coding.c (syms_of_coding) <translation-table-for-input>:
13110 Modify doc string to discourage use for character code unification.
13111
13112 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13113
13114 * atimer.c (run_timers): Update pending_atimers.
13115
13116 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13117
13118 * image.c (svg_load_image): Fix last change.
13119
13120 * xfns.c (Fx_create_frame): Signal an error if no font is
13121 found (Bug#2147).
13122
13123 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13124
13125 * character.c (syms_of_character) <script-representative-chars>:
13126 Fix typo in docstring.
13127
13128 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13129
13130 * nsmenu.m (pop_down_menu): New function.
13131 (ns_popup_dialog): Call it on unwind.
13132 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13133 call timer_check() (Bug#2154).
13134 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13135 handling_signal is set.
13136 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13137
13138 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13139
13140 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13141
13142 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13143
13144 * keyboard.c (poll_for_input_1, handle_async_input):
13145 Set handling_signal under HAVE_NS.
13146
13147 2009-02-04 Glenn Morris <rgm@gnu.org>
13148
13149 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13150
13151 2009-02-04 Kenichi Handa <handa@m17n.org>
13152
13153 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13154
13155 * charset.c (Fchar_charset): New optional arg restriction.
13156
13157 * coding.h (coding_system_charset_list): Extern it.
13158
13159 * coding.c (coding_system_charset_list): New function.
13160
13161 * composite.c: Include coding.h and termhooks.h.
13162 (composition_gstring_p): Fix for the terminal case.
13163 (composition_gstring_width): Likewise.
13164 (fill_gstring_body): Likewise.
13165 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13166 the frame.
13167 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13168 is within a composition.
13169 (Fcomposition_get_gstring): Fix the terminal case.
13170
13171 * term.c (encode_terminal_code): Fix handling of composition.
13172 (produce_composite_glyph): For static composition, get pixel_width
13173 from struct composition.
13174
13175 2009-02-02 Andreas Schwab <schwab@suse.de>
13176
13177 * unexelf.c (unexec): Handle unaligned bss offset.
13178
13179 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13180
13181 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13182 XT,w32read_socket changes to ns_read_socket.
13183
13184 * keyboard.c (handle_interrupt): Don't call
13185 quit_throw_to_read_char() under NS.
13186
13187 * blockinput.h: Remove NS-specific code.
13188
13189 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13190
13191 * dispnew.c (window_change_signal): Don't try to get the size of a
13192 suspended tty frame.
13193 * term.c (Fresume_tty): Resize if the size has changed while the
13194 tty was suspended.
13195
13196 * alloc.c (mark_stack): Properly conditionalize previous change.
13197
13198 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13199
13200 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13201 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13202 Remove; this code is not used on Windows.
13203
13204 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13205
13206 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13207 EOLs that also has stray ^M characters.
13208
13209 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13210
13211 * atimer.c (run_timers, alarm_signal_handler):
13212 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13213 * w32inevt.c (w32_console_read_socket):
13214 * w32term.c (w32_read_socket):
13215 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13216
13217 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13218
13219 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13220 Initialize it as a relative filename pattern.
13221 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13222 (Fcall_process_region): Simplify temp file creation using
13223 temporary-file-directory.
13224
13225 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13226
13227 * msdos.c: Rename pending_signals to msdos_pending_signals.
13228 (sig_suspender, sigprocmask): Adjust.
13229
13230 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13231
13232 * keyboard.c (pending_signals): New var.
13233 (poll_for_input, input_available_signal, init_keyboard): Set it.
13234 (process_pending_signals): New function.
13235
13236 * lisp.h (QUIT): Check pending_signals instead of
13237 interrupt_input_pending. Use process_pending_signals.
13238
13239 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13240
13241 * process.c (wait_reading_process_output): Use process_pending_signals.
13242
13243 * sysdep.c (emacs_write): Use process_pending_signals.
13244
13245 * xterm.c (XTread_socket): Update pending_signals.
13246
13247 * w32term.c (w32_read_socket): Update pending_signals.
13248
13249 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13250
13251 2009-01-29 Kenichi Handa <handa@m17n.org>
13252
13253 * xftfont.c (xftfont_has_char): New function.
13254 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13255
13256 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13257
13258 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13259 under GNUstep.
13260 (ns_query_color): New declaration.
13261
13262 * nsterm.m (ns_confirm_quit): New variable.
13263 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13264 (EmacsApp-applicationShouldTerminate:): Use it.
13265 (EmacsPrefsController): Let user set it.
13266 (ns_query_color): New function.
13267 (ns_defined_color): Use it.
13268 (ns_initialize): Drop.
13269 (ns_term_init): Add two lines from ns_initialize(), and set
13270 input_interrupt_mode to nil.
13271
13272 * image.c (svg_load_image): Don't right-shift background RGB when
13273 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13274
13275 2009-01-28 Kenichi Handa <handa@m17n.org>
13276
13277 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13278 (fontset_get_font_group): Remember that no font-group is specified
13279 for C.
13280
13281 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13282
13283 * fns.c (concat): Check for string overflow (bug#1787).
13284
13285 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13286 Quadruple undo limits (bug#1501).
13287
13288 2009-01-27 Kenichi Handa <handa@m17n.org>
13289
13290 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13291 directly use GT_Get_Char_index.
13292
13293 * xftfont.c (struct xftfont_info): New member `index'.
13294
13295 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13296 (Ffontset_font): Adjust for the change of fontset entry.
13297
13298 2009-01-26 Kenichi Handa <handa@m17n.org>
13299
13300 * fontset.c (fontset_find_font): Fix handling of non-cons return
13301 value of fontset_get_font_group.
13302 (fontset_font): Revert last change.
13303
13304 2009-01-26 Jason Rumney <jasonr@gnu.org>
13305
13306 * w32font.c (w32font_list_internal): Return quickly if registry is
13307 unknown. Simplify final return.
13308 (add_font_entity_to_list): Break complex logic down into more
13309 manageable chunks. Move unknown registry check to
13310 w32font_list_internal.
13311
13312 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13313
13314 Changes to remove Feval calls from GUI under NS.
13315
13316 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13317 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13318 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13319
13320 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13321 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13322 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13323 instead of NON_ASCII_KEYSTROKE_EVENT.
13324 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13325 (EmacsApp-applicationShouldTerminate:): Query user.
13326 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13327 instead of Feval.
13328
13329 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13330
13331 * keyboard.c (kbd_buffer_get_event): Check for it.
13332 (keys_of_keyboard): Define lispy keys for
13333 ns-put/unput-working-text.
13334
13335 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13336 versions.
13337 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13338
13339 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13340
13341 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13342 setting current_buffer directly. (Bug#2044)
13343
13344 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13345
13346 * fontset.c (fontset_font): If we know there is no font, don't do
13347 any work. (Bug#1952, bug#1990).
13348
13349 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13350
13351 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13352
13353 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13354 (ns_no_defaults): New declaration.
13355 (main): Use it.
13356
13357 * nsterm.h (ns_no_defaults): New declaration.
13358
13359 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13360
13361 * nsterm.m (ns_no_defaults): New variable.
13362 (ns_initialize): Don't read defaults when ns_no_defaults.
13363 (EmacsView-readSelectionFromPasteboard:)
13364 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13365 NSServicesRequests protocol. (Bug#1435)
13366 (ns_dumpglyphs_stretch): New function.
13367 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13368 of 2008-11-15 to other terms. (Bug#615)
13369
13370 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13371
13372 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13373
13374 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13375 call for Sparc64.
13376
13377 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13378
13379 * nsfns.m:
13380 * nsgui.h:
13381 * nsmenu.m:
13382 * nsselect.m:
13383 * nsterm.h:
13384 * nsterm.m: Remove '23' comments that indicated code added during
13385 update from emacs-20 -> emacs-23.
13386
13387 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13388
13389 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13390 ns_alternate_modifier. (Bug#1217)
13391
13392 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13393 Display all shortcuts, including those w/o super modifier.
13394
13395 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13396
13397 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
13398
13399 * fileio.c (Vwrite_region_post_annotation_function)
13400 (Vwrite_region_annotation_buffers): New vars.
13401 (build_annotations_unwind): Just reset
13402 Vwrite_region_annotation_buffers.
13403 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13404 Call write-region-post-annotation-function.
13405 (build_annotations): Add to Vwrite_region_annotation_buffers if
13406 buffer changes.
13407
13408 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13409
13410 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13411 Tiger.
13412 * nsfns.m (ns_do_applescript):
13413 Conditionalize typeUTF16ExternalRepresentation on Tiger.
13414
13415 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13416
13417 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13418
13419 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13420
13421 * nsmenu.m (NSMENUPROFILE): Change #if style.
13422
13423 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13424
13425 * nsterm.m (x_set_frame_alpha): Add prototype.
13426 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13427 handle Ctrl-tab. (Bug#1841)
13428 (ns_get_color): Use unsigned long long for scanned hex string value.
13429 (ns_term_shutdown): Abort on non SIGTERM signals.
13430 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
13431 (EmacsPrefsController-setPanelFromDefaultValues): New function.
13432 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
13433 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
13434 (ns_defined_color): Fix settings of the XColor variable fields:
13435 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
13436
13437 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
13438 DPI. (Bug#1316)
13439 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13440 values in onTiger section.
13441
13442 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
13443
13444 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13445 Check return value of font_spec_from_name.
13446 (Fx_list_fonts): Doc fix. (Bug#1951)
13447
13448 * font.c (font_spec_from_name): Return Qnil if font name could not
13449 be parsed.
13450 (font_parse_name): Treat a `?' character as part of an XLFD.
13451
13452 * fns.c (Fsubstring): Doc fix.
13453
13454 2009-01-19 Kenichi Handa <handa@m17n.org>
13455
13456 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
13457 (ftfont_list): Likewise.
13458
13459 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
13460
13461 * dbusbind.c (Fdbus_register_signal):
13462 * process.c (conv_sockaddr_to_lisp):
13463 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13464
13465 * callproc.c (Fgetenv_internal): Doc fix.
13466
13467 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
13468
13469 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13470 it is not even used.
13471
13472 2009-01-16 Glenn Morris <rgm@gnu.org>
13473
13474 * font.c (Ffont_variation_glyphs): Silence compiler.
13475
13476 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
13477
13478 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13479 Reported by David Robinow <drobinow@gmail.com>.
13480
13481 2009-01-15 Kenichi Handa <handa@m17n.org>
13482
13483 * coding.c (detect_coding_system): Fix handling of null_byte_found.
13484
13485 2009-01-14 Jason Rumney <jasonr@gnu.org>
13486
13487 * frame.c (x_set_font): Always store a font to the font parameter,
13488 never a fontset. (Bug#1562)
13489
13490 2009-01-14 Kenichi Handa <handa@m17n.org>
13491
13492 * coding.c (TWO_MORE_BYTES): New macro.
13493 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
13494
13495 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
13496
13497 * font.c (font_clear_prop): If clearing the family, clear the font
13498 width index too.
13499
13500 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
13501
13502 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
13503
13504 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13505 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13506 functions, use sizeof.
13507
13508 2009-01-12 Martin Rudalics <rudalics@gmx.at>
13509
13510 * keyboard.c (read_char): Fix case where last_nonmenu_event
13511 returned a bad value with submenus. (Bug#447)
13512
13513 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
13514
13515 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13516 family, clear the font width index too.
13517
13518 2009-01-11 Jason Rumney <jasonr@gnu.org>
13519
13520 * keyboard.c (cmd_error_internal): Exit when errors occur before
13521 frame creation and not in daemon mode. (Bug#1836)
13522
13523 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
13524
13525 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13526 of a display vector, backtrack.
13527 (try_window_reusing_current_matrix): Check glyph type before
13528 referencing charpos member.
13529
13530 2009-01-10 Eli Zaretskii <eliz@gnu.org>
13531
13532 Fix Bug #876:
13533
13534 * coding.c (inhibit_null_byte_detection): New variable.
13535 (detect_coding, detect_coding_system): Don't pay attention to null
13536 bytes if inhibit_null_byte_detection is non-zero.
13537 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
13538 <inhibit-iso-escape-detection>: Doc fix.
13539
13540 2009-01-09 Jason Rumney <jasonr@gnu.org>
13541
13542 * w32font.c (add_font_entity_to_list): Don't report unknown
13543 Windows charset as any unrecognized registry. (Bug#1548)
13544 Only report Unicode Plane 2 fonts as unicode-sip.
13545
13546 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
13547
13548 * xfaces.c (Fx_font_family_list): Delete function.
13549 Move compatibility version to faces.el.
13550
13551 * font.c (Ffont_family_list): Return a list of strings, not symbols.
13552
13553 2009-01-09 Martin Rudalics <rudalics@gmx.at>
13554
13555 * frame.c (x_set_frame_parameters): Remember requested value for
13556 fullscreen before it's reset by the parameter handler.
13557
13558 2009-01-09 Glenn Morris <rgm@gnu.org>
13559
13560 * keyboard.c (last_command_char): For clarity, rename to...
13561 (last_command_event): ... and update all users.
13562 (last_input_char): For clarity, rename to...
13563 (last_input_event): ... and update all users.
13564 (last-command-char, last-input-char): Move to subr.el as aliases.
13565 * cmds.c, commands.h: Update for last_command_char rename.
13566
13567 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
13568
13569 * font.c (font_open_for_lface): Handle unspecified height attribute.
13570
13571 2009-01-08 Jason Rumney <jasonr@gnu.org>
13572
13573 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13574 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13575 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13576 Don't declare.
13577 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
13578 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13579
13580 2009-01-07 Kenichi Handa <handa@m17n.org>
13581
13582 * fileio.c (Finsert_file_contents): In the case of replace,
13583 remember the coding system used for decoding in
13584 coding_system (Bug#1039).
13585
13586 * coding.c (decode_coding_utf_8): Check byte_after_cr before
13587 breaking the loop. (Bug#870)
13588 (decode_coding_utf_16, decode_coding_emacs_mule)
13589 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13590 (decode_coding_charset): Likewise.
13591
13592 2009-01-05 Martin Rudalics <rudalics@gmx.at>
13593
13594 * frame.c (x_set_frame_parameters): Make sure height (width) get
13595 applied when fullwidth (fullheight) is set. (Bug#1522)
13596
13597 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
13598
13599 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13600 (utc_base): Declare as ULONGLONG, not long double.
13601 (convert_time_raw): Delete.
13602 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13603 (initialize_utc_base): New function.
13604 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13605 (convert_from_time_t): Use initialize_utc_base; compute result with
13606 64-bit arithmetic.
13607 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13608
13609 2009-01-03 Eli Zaretskii <eliz@gnu.org>
13610
13611 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
13612 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13613 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13614 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13615 [!subprocesses]: Define.
13616 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13617 (Flist_system_processes, Fsystem_process_attributes)
13618 [!subprocesses]: Call list_system_processes and
13619 system_process_attributes instead of returning Qnil.
13620
13621 * dosfns.c (system_process_attributes, list_system_processes):
13622 New functions.
13623
13624 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13625
13626 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13627 Don't use the default (no-op) implementation.
13628
13629 2009-01-03 Jason Rumney <jasonr@gnu.org>
13630
13631 * keyboard.c (parse_modifiers_uncached): Wheel events are
13632 clicks (bug#687).
13633
13634 * w32term.c (x_query_colors, x_query_color): New functions.
13635
13636 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13637 (svg_load_image): Cast returned pointers from dynamically loaded
13638 functions. Eliminate W32 specific code.
13639
13640 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13641
13642 * nsfns.m (x_set_foreground_color, x_set_background_color)
13643 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13644 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13645 x_ prefix instead of ns_. Update references.
13646 (syms_of_nsfns): Add a FIXME comment.
13647
13648 * nsterm.m (x_set_cursor_type): New prototype.
13649 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13650
13651 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13652 for Solaris instead of incorrectly providing Qutime and Qcutime.
13653
13654 2009-01-02 Eli Zaretskii <eliz@gnu.org>
13655
13656 * w32.c (process_times): Compute sum of utime and stime.
13657 (system_process_attributes): Add Qtime to the alist.
13658
13659 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13660 and add them to the alist.
13661
13662 * process.c (top level) <Qtime, Qctime>: New variables.
13663 (syms_of_process): staticpro them.
13664 (Fsystem_process_attributes): Add their documentation to the doc
13665 string.
13666
13667 * process.h: Declare Qtime and Qctime.
13668
13669 2009-01-02 Jason Rumney <jasonr@gnu.org>
13670
13671 * image.c (Qgobject): New symbol.
13672 (syms_of_image): Initialize it.
13673 (init_svg_functions): Load some functions from gobject library.
13674
13675 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13676
13677 * frame.c (make_terminal_frame): Remove redundant code and useless
13678 block.
13679
13680 2009-01-01 Andreas Schwab <schwab@suse.de>
13681
13682 * process.c (conv_sockaddr_to_lisp): Add workaround for
13683 getsockname bug on BSD.
13684
13685 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
13686
13687 * xfns.c (x_create_tip_frame): Set border width of the X window.
13688
13689 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
13690
13691 2009-01-01 Jason Rumney <jasonr@gnu.org>
13692
13693 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
13694 Don't block input, as per earlier xterm.c changes.
13695
13696 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13697
13698 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13699 (ns_appkit_version_int): New function.
13700 (x-server-version): Use ns_appkit_version_int and follow 21+
13701 convention of returning 3 integers.
13702
13703 2008-12-30 Kenichi Handa <handa@m17n.org>
13704
13705 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13706 (CHAR_SURROGATE_PAIR_P): New macro.
13707
13708 * font.h (struct font_driver): New member get_variation_glyphs.
13709
13710 * font.c (font_range): Don't require a font for a variation selector.
13711 (Ffont_variation_glyphs): New function.
13712 (syms_of_font): Defsubr it.
13713
13714 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13715 ftfont_variation_glyphs.
13716 (setup_otf_gstring): New function.
13717 (ftfont_drive_otf): Use it.
13718 (ftfont_shape_by_flt): Handle variation selector.
13719 (ftfont_variation_glyphs): New function.
13720
13721 2008-12-30 Martin Rudalics <rudalics@gmx.at>
13722
13723 * frame.c (Vemacs_iconified): Remove.
13724
13725 2008-12-30 Jason Rumney <jasonr@gnu.org>
13726
13727 * frame.c (store_frame_param, x_get_arg): Enable newer code on
13728 WINDOWSNT too, as related changes have already been synced. (Bug#117)
13729
13730 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
13731
13732 * indent.c (Fvertical_motion): Don't advance iterator if we have
13733 reseated to the desired position.
13734
13735 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13736 checking for pos match.
13737
13738 2008-12-30 Kenichi Handa <handa@m17n.org>
13739
13740 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13741 just get the low 8-bit of the code.
13742
13743 * font.c (font_intern_prop): Validate str as multibyte.
13744
13745 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13746
13747 * dispextern.h (struct face): Move lface and hash from the middle
13748 of bitfields.
13749
13750 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13751
13752 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13753
13754 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13755 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13756 instead of intervals.h.
13757
13758 2008-12-26 Andreas Schwab <schwab@suse.de>
13759
13760 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13761 cons.
13762
13763 2008-12-26 Martin Rudalics <rudalics@gmx.at>
13764
13765 * textprop.c (Qminibuffer_prompt): New variable.
13766 (syms_of_textprop): Initialize it.
13767 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13768 in minibuffer-prompt face. (Bug#1662)
13769
13770 2008-12-25 Jason Rumney <jasonr@gnu.org>
13771
13772 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13773
13774 2008-12-24 Jason Rumney <jasonr@gnu.org>
13775
13776 * ralloc.c (r_alloc_reset_variable): New function.
13777
13778 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
13779 record of what points where. (Bug#716)
13780
13781 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13782
13783 * minibuf.c (read_minibuf): Follow the non-interactive case when
13784 running as a daemon, before detaching.
13785
13786 2008-12-22 Andreas Schwab <schwab@suse.de>
13787
13788 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13789 * gtkutil.c (free_widget_value): Use xfree instead of free.
13790
13791 2008-12-22 Martin Rudalics <rudalics@gmx.at>
13792
13793 * frame.c (delete_frame): New function derived from
13794 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13795 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13796 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13797 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13798 * frame.h: Extern delete_frame.
13799 * window.c (window_loop):
13800 * terminal.c (delete_terminal):
13801 * xterm.c (x_connection_closed):
13802 * xfns.c (Fx_hide_tip):
13803 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
13804
13805 2008-12-21 Jason Rumney <jasonr@gnu.org>
13806
13807 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13808 when character maps to .notdef character.
13809
13810 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13811
13812 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13813
13814 2008-12-20 Jason Rumney <jasonr@gnu.org>
13815
13816 * frame.c (Fmake_terminal_frame): Raise an error when called from
13817 a graphical frame on Windows. (Bug#1325)
13818
13819 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13820
13821 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13822
13823 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
13824
13825 * minibuf.c (Fread_buffer): Doc fix.
13826
13827 2008-12-20 Jason Rumney <jasonr@gnu.org>
13828
13829 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
13830 server name in UNC paths. (Bug#719)
13831
13832 * coding.c (decode_coding): Clear chars_at_source flag when using
13833 charbuf. (Bug#1035)
13834
13835 2008-12-19 Daniel Engeler <engeler@gmail.com>
13836
13837 * sysdep.c (serial_configure): Fix typo.
13838
13839 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13840
13841 * sysdep.c: Include alloca.h.
13842 (system_process_attributes): Add implementation for Solaris.
13843
13844 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13845
13846 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13847
13848 Reorganize implementation of Flist_system_processes and
13849 Fsystem_process_attributes. No functional changes.
13850 * process.c: Don't #include pwd.h, grp.h and limits.h.
13851 (Flist_system_processes): Just call list_system_processes.
13852 (Fsystem_process_attributes): Just call system_process_attributes.
13853 (procfs_list_system_processes, time_from_jiffies)
13854 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13855 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13856
13857 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13858 (list_system_processes): Rename from
13859 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13860 Provide a do nothing implementation.
13861 (system_process_attributes): Rename from
13862 procfs_list_system_processes.
13863 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13864 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13865
13866 * w32.c (list_system_processes): Rename from
13867 w32_list_system_processes.
13868 (system_process_attributes): Rename from
13869 w32_system_process_attributes.
13870
13871 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13872
13873 * process.h (w32_list_system_processes)
13874 (w32_system_process_attributes): Remove.
13875 (list_system_processes, system_process_attributes):
13876 New prototypes.
13877
13878 2008-12-19 Kenichi Handa <handa@m17n.org>
13879
13880 * xfont.c (xfont_decode_coding_xlfd): New function.
13881 (xfont_encode_coding_xlfd): New function.
13882 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13883 (xfont_list): Decode and encode XLFD by iso-8859-1.
13884 (xfont_match): Likewise.
13885 (xfont_list_family): Likewise.
13886 (xfont_open): Likewise.
13887
13888 * ftfont.c (ftfont_open): Generate a multibyte string if given
13889 names are utf-8.
13890
13891 * xftfont.c (xftfont_open): Generate a multibyte string if given
13892 names are utf-8.
13893
13894 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13895
13896 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13897 changed.
13898 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13899 clicked on a detached tool bar button.
13900
13901 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13902
13903 * emacs.c (main): Print and error and exit when no data is read
13904 from the pipe.
13905
13906 2008-12-17 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32font.c (w32font_has_char): Always return -1.
13909
13910 2008-12-16 Kenichi Handa <handa@m17n.org>
13911
13912 * font.c (font_open_entity): Fix previous change.
13913
13914 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13915
13916 * process.c: Include <limits.h>.
13917
13918 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
13919
13920 * font.c (font_update_drivers): Fix mistake in reconstructing the
13921 driver list.
13922
13923 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
13924
13925 * font.c (font_clear_cache): Fix format of font cache data.
13926
13927 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
13928
13929 * xftfont.c (xftfont_open): Free Xft font pattern if
13930 XftFontOpenPattern fails.
13931
13932 * xterm.c (x_free_frame_resources): Remove extraneous call to
13933 free_frame_faces.
13934
13935 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13936
13937 * xterm.c (x_delete_display): Move xim_close_dpy call to
13938 x_delete_terminal.
13939 (x_delete_terminal): Call xim_close_dpy.
13940
13941 2008-12-13 Jason Rumney <jasonr@gnu.org>
13942
13943 * w32font.c (intern_font_name): New function.
13944 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13945 (w32font_open_internal, Fx_select_font): Decode font name.
13946 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13947
13948 * w32font.h (intern_font_name): Declare new function.
13949
13950 * w32uniscribe.c (add_opentype_font_name_to_list):
13951 Use intern_font_name.
13952
13953 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13954
13955 * frame.c (Fdelete_frame): Call free_font_driver_list.
13956
13957 * font.c (free_font_driver_list): Implement missing function.
13958
13959 * w32term.c (w32_term_init): Don't initialize the image cache
13960 here; it will be done in init_frame_faces.
13961
13962 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
13963 (struct x_display_info): Remove unused member null_pixel.
13964 New member xim_callback_data.
13965
13966 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13967 (xim_initialize): Save pointer to callback function data.
13968 (xim_close_dpy): Free callback function data. Call XCloseIM,
13969 reverting 2008-11-04 change by David Smith.
13970 (x_term_init): Don't initialize the image cache here; it will be
13971 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13972 (x_delete_display): Free x_dnd_atoms member.
13973
13974 2008-12-13 Kenichi Handa <handa@m17n.org>
13975
13976 * font.c (font_rescale_ratio): Move from xfaces.c.
13977 Argument type changed. Handle a font-spec too.
13978 (font_score): Check Vface_font_rescale_alist.
13979 (font_open_entity): Likewise. (Bug#1547)
13980
13981 * xfaces.c (font_rescale_ratio): Move to font.c.
13982
13983 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13984
13985 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13986
13987 2008-12-12 Jason Rumney <jasonr@gnu.org>
13988
13989 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13990 Set Vwindow_system_version to the real w32 major version.
13991
13992 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13993
13994 * term.c (init_tty): Move setting the terminal name before the
13995 potential user: maybe_fatal.
13996
13997 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
13998
13999 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
14000 all callers changed. Call free_frame_faces to free the face cache.
14001
14002 2008-12-11 Jason Rumney <jasonr@gnu.org>
14003
14004 * w32font.c (fill_in_logfont): Don't assume symbol script means
14005 SYMBOL_CHARSET. (Bug#547)
14006
14007 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
14008 size for surrogates. (Bug#1096, bug#872)
14009
14010 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14011
14012 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14013
14014 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14015
14016 * process.c (Fsystem_process_attributes, syms_of_process):
14017 Fix typo in name of Ssystem_process_attributes.
14018 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14019
14020 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14021
14022 * syntax.c (Fmodify_syntax_entry): Doc fix.
14023
14024 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14025
14026 * font.c (Ffont_spec): Move usage to end of docstring.
14027
14028 2008-12-10 Jason Rumney <jasonr@gnu.org>
14029
14030 * w32font.c (Qcham): New symbol.
14031 (font_supported_scripts): Add cham, and comments for other new
14032 scripts in bitfield from OpenType spec.
14033 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14034 contain characters beyond the bmp.
14035
14036 2008-12-10 Kenichi Handa <handa@m17n.org>
14037
14038 * ftfont.c (fc_charset_table): Add "unicode-sip".
14039 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
14040 Qunicode_sip.
14041
14042 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14043
14044 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14045 (Fcoding_system_put): Use QCdefault_char.
14046 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14047
14048 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
14049
14050 * xftfont.c (syms_of_xftfont): Fix typo.
14051
14052 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
14053
14054 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14055
14056 * emacs.c (main): Close daemon_pipe on exec.
14057
14058 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * termchar.h (struct tty): New members termcap_term_buffer and
14061 termcap_strings_buffer.
14062
14063 * term.c (encode_terminal_code): Free any previous memory blocks
14064 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
14065 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14066 All callers changed.
14067 (init_tty): Store termcap data and string buffers in new struct
14068 tty members termcap_term_buffer and termcap_strings_buffer.
14069 (delete_tty): Free them.
14070 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
14071
14072 2008-12-07 Seiji Zenitani <zenitani@mac.com>
14073
14074 * nsfns.m (ns_set_background_color): Remove code duplication.
14075 It was a substitute for face-transparency on OS X 10.3.
14076
14077 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
14078
14079 * coding.c (make_conversion_work_buffer): Disable buffer
14080 modification hooks in the work buffer.
14081
14082 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14083
14084 * process.c (procfs_system_process_attributes): If `nread' has a
14085 negative value, assign zero to it.
14086
14087 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
14088
14089 * eval.c (Vdebug_on_error): Doc fix.
14090
14091 2008-12-05 Kenichi Handa <handa@m17n.org>
14092
14093 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14094 second character is a combining character.
14095
14096 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14097
14098 * process.c (procfs_system_process_attributes): Don't use cmd,
14099 cmdsize, and q without initializing them first.
14100
14101 2008-12-04 Jason Rumney <jasonr@gnu.org>
14102
14103 * w32font.c (w32font_draw): Initialize orig_clip before getting
14104 it, and delete it when finished.
14105
14106 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14107
14108 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14109 case when running as a daemon before detaching.
14110
14111 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14112
14113 * w32.c (init_environment): Don't unload library shell32.dll.
14114
14115 2008-12-03 Kenichi Handa <handa@m17n.org>
14116
14117 * font.c (font_at): Set `multibyte' at first.
14118
14119 * coding.c (decode_coding_charset): Check type of an element of
14120 vector VALIDS.
14121 (encode_coding_emacs_mule): Be sure to set `code'.
14122
14123 * fontset.c (face_for_char): Handle invalid charset property correctly.
14124 (font_for_char): Likewise.
14125
14126 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14127
14128 * font.c (Fopen_font): Compute pixel size correctly.
14129 (font_update_lface): Handle fonts with corrupted size specs,
14130 i.e. non-int and non-float.
14131
14132 * ftfont.c (ftfont_match): Initialize entity variable.
14133 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14134 (ftfont_list_family): Initialize list var earlier.
14135
14136 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14137
14138 * xterm.c (x_draw_glyph_string): Fall back on
14139 underline_minimum_offset for underline position.
14140
14141 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14142
14143 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14144
14145 * character.c (c_string_width): Specify the type for LEN.
14146
14147 2008-12-03 Kenichi Handa <handa@m17n.org>
14148
14149 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14150 (decode_coding_utf_8): Likewise.
14151 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14152 (produce_chars): Initialize consumed_chars to 0.
14153
14154 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14155
14156 * keyboard.c (make_lispy_position): Only use PT if the selected
14157 window is current.
14158
14159 2008-12-02 Andreas Schwab <schwab@suse.de>
14160
14161 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14162
14163 * doprnt.c (doprnt1): Fix size of charbuf.
14164
14165 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14166
14167 * keyboard.c (timer_check): Revert last change.
14168
14169 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14170
14171 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14172
14173 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14174
14175 * makefile.w32-in: Update dependencies.
14176 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14177
14178 2008-12-01 Andreas Schwab <schwab@suse.de>
14179
14180 * font.c (register_font_driver): Use xmalloc.
14181 (font_put_frame_data): Likewise.
14182
14183 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14184
14185 * xfaces.c (realize_x_face): Make abort condition clearer.
14186
14187 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14188
14189 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14190
14191 * keyboard.c (timer_check): After a timer runs, ensure that the
14192 selected window's buffer is current.
14193
14194 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14195
14196 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14197 It was accidentally restored by the Unicode merge.
14198
14199 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14200
14201 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14202
14203 * w32proc.c: Include "coding.h".
14204 (Fw32_short_file_name): Encode filename passed to Windows API.
14205 (Fw32_long_file_name): Encode filename passed to Windows API and
14206 decode back the result. (Bug#1433)
14207
14208 2008-11-29 Kenichi Handa <handa@m17n.org>
14209
14210 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14211 not before accessing it.
14212
14213 * charset.c (Fdefine_charset_internal): After calculating
14214 min_char, max_char, and fastmap, copy the charset structure again.
14215 (encode_char): Fix the previous change.
14216
14217 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14218
14219 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14220
14221 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14222
14223 * nsterm.m (x_set_frame_alpha): New function.
14224
14225 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14226
14227 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14228
14229 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14230
14231 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14232 pointer to check_face_name.
14233
14234 2008-11-27 Kenichi Handa <handa@m17n.org>
14235
14236 * category.h (SET_CATEGORY_SET): Call set_category_set.
14237 (set_category_set): Extern it.
14238
14239 * category.c (hash_get_category_set): New function.
14240 (Fmodify_category_entry): Adjust for the change of
14241 char_table_ref_and_range. Call hash_get_category_set to get a
14242 category set to store in the table.
14243
14244 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14245 Funify_charset.
14246
14247 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14248 (DECODE_CHAR): Check if the decoder vector is ready.
14249 (ENCODE_CHAR): Check if the encoder char-table is ready.
14250 (maybe_unify_char): Extern it.
14251
14252 * charset.c (Vchar_unified_charset_table): Delete it.
14253 (inhibit_load_charset_map): New variable.
14254 (temp_charset_work): New variable.
14255 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14256 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14257 New macros.
14258 (load_charset_map): Meaning of control_flag changed.
14259 If inhibit_load_charset_map is nonzero, setup a table in
14260 temp_charset_work.
14261 (load_charset): New argument control_flag.
14262 (map_charset_for_dump): New function.
14263 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14264 map_charset_for_dump.
14265 (Fdefine_charset_internal): If the charset method is MAP, load
14266 mapping tables by calling load_charset.
14267 (Funify_charset): Don't load a mapping table but directly set
14268 Vchar_unify_table.
14269 (maybe_unify_char): New function.
14270 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14271 Handle the case of inhibit_load_charset_map being nonzero.
14272 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14273 Handle the case of inhibit_load_charset_map being nonzero.
14274 (Fclear_charset_maps): Just free temp_charset_work.
14275 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14276 variable.
14277
14278 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14279 change of char_table_ref_and_range.
14280 (char_table_ref_and_range): Change the meaning of argument FROM
14281 and TO. Now the caller must provide initial values for *FROM
14282 and *TO.
14283
14284 * fontset.c (fontset_add): Adjust for the change of
14285 char_table_ref_and_range.
14286 (fontset_get_font_group): Likewise.
14287 (Ffontset_info): Likewise.
14288
14289 * keymap.c (describe_vector): Adjust for the change of
14290 char_table_ref_and_range. For char-table, put boundary between
14291 non-ASCII and 8-bit characters.
14292
14293 * print.c (print_object): For bool-vector, delete unnecessary
14294 check of ASCII_BYTE_P.
14295
14296 2008-11-26 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32font.c (w32font_open_internal): Don't include external
14299 leading in font height. (Bug#879)
14300
14301 2008-11-26 Glenn Morris <rgm@gnu.org>
14302
14303 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14304 redefinition with ifdef. (Bug#1383)
14305
14306 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14307
14308 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14309
14310 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14311
14312 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14313 New EmacsView methods.
14314 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14315 Fixes bug #1048,1357,1414.
14316
14317 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14318
14319 Fix bug #1362.
14320 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14321 is not an indexed color.
14322 * nsterm.m (free_indexed_color): Add argument checking.
14323 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14324
14325 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14326
14327 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14328 Document confirm-after-completion value for
14329 minibuffer-completion-confirm.
14330
14331 2008-11-24 Jason Rumney <jasonr@gnu.org>
14332
14333 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14334 warning.
14335
14336 2008-11-23 Jason Rumney <jasonr@gnu.org>
14337
14338 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14339 restored before returning.
14340
14341 * w32font.c (check_face_name): New function.
14342 (add_font_entity_to_list): Use it to filter out common substituted
14343 fonts. (Bug#642)
14344
14345 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14346
14347 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14348 confirm-nonexistent-file-or-buffer in doc-string.
14349
14350 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14351
14352 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14353 Fix copy/paste typo. Add checks.
14354
14355 2008-11-21 Kenichi Handa <handa@m17n.org>
14356
14357 * coding.c (detect_coding_iso_2022): Reject invalid composition
14358 sequence.
14359 (DECODE_COMPOSITION_START): If the current source is the last
14360 block, and the current composition doesn't end, regard this
14361 sequence as invalid.
14362 (decode_coding_iso_2022): Handle invalid composition sequence.
14363
14364 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14365
14366 * window.c (coordinates_in_window): Don't return
14367 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14368 line when the window is not the rightmost one. (Bug#1372)
14369
14370 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14371
14372 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14373
14374 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14375
14376 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14377 and bright_bg if noninteractive is non-zero.
14378
14379 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14380
14381 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14382 x_draw_glyph_string_background.
14383
14384 * w32term.c (x_draw_glyph_string): Likewise.
14385
14386 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14387
14388 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14389 the next glyph string once past the overhang width.
14390
14391 * nsterm.m (ns_draw_glyph_string): Likewise.
14392
14393 * w32term.c (x_draw_glyph_string): Likewise.
14394
14395 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14396
14397 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14398 double file close.
14399
14400 2008-11-14 Martin Rudalics <rudalics@gmx.at>
14401
14402 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14403 dedicated status of window before attempting to display another
14404 buffer in it.
14405
14406 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
14407
14408 * msdos.c (Fmsdos_long_file_names):
14409 (syms_of_msdos) <dos-unsupported-char-glyph>:
14410 * dosfns.c (Fint86): Fix typos in docstrings.
14411
14412 2008-11-14 Eli Zaretskii <eliz@gnu.org>
14413
14414 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14415
14416 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14417
14418 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14419
14420 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14421
14422 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14423
14424 * frame.h: Negative alpha means "don't touch".
14425
14426 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14427
14428 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14429
14430 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14431
14432 * hftctl.c:
14433 * chpdef.h:
14434 * acldef.h: Remove files used only for systems no longer supported.
14435
14436 * Makefile.in: Fix .o alphabetical ordering.
14437 (hftctl.o): Remove dependency, file removed.
14438 (keymap.o, print.o): Depend on charset.h.
14439
14440 2008-11-10 Kenichi Handa <handa@m17n.org>
14441
14442 * character.c (Fget_byte): Fix and make it faster for unibyte target.
14443
14444 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
14445
14446 * dired.c (file_name_completion): If completion_ignore_case is
14447 enabled, ignore case when checking completion-regexp-list.
14448
14449 2008-11-08 Eli Zaretskii <eliz@gnu.org>
14450
14451 * vm-limit.c (get_lim_data): Fix last change.
14452
14453 2008-11-08 Kenichi Handa <handa@m17n.org>
14454
14455 * character.c (Fget_byte): New function.
14456 (syms_of_character): Defsubr Fget_byte.
14457
14458 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
14459
14460 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14461 cursor position is valid after scrolling.
14462
14463 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
14464
14465 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14466
14467 2008-11-06 Glenn Morris <rgm@gnu.org>
14468
14469 * xterm.c (handle_one_xevent): Don't let popup menus cause
14470 mouse-autoselect-window related window switching. (Bug#1261)
14471
14472 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14473
14474 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14475
14476 2008-11-04 Andreas Schwab <schwab@suse.de>
14477
14478 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14479
14480 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
14481
14482 * xfns.c (Fx_wm_set_size_hint): New function.
14483
14484 2008-11-03 Martin Rudalics <rudalics@gmx.at>
14485
14486 * textprop.c (Fprevious_single_char_property_change): Return 0
14487 when there's no change in a string. (Bug#1301)
14488
14489 2008-11-02 Martin Rudalics <rudalics@gmx.at>
14490
14491 * frame.c (do_switch_frame): New argument NORECORD passed to
14492 Fselect_window.
14493 (Fselect_frame): New argument NORECORD passed to
14494 do_switch_frame.
14495 (Fset_frame_selected_window): New argument NORECORD passed to
14496 Fselect_frame.
14497 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14498 in call of do_switch_frame.
14499 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14500 Handle NORECORD argument in call of Fselect_frame.
14501 * lisp.h (do_switch_frame, Fselect_frame)
14502 (Fset_frame_selected_window): Adjust declarations.
14503 * window.c (select_frame_norecord): New function.
14504 (run_window_configuration_change_hook): Use it and call
14505 Fselect_frame with NORECORD set.
14506 (Fselect_window): Pass NORECORD to Fselect_frame.
14507 (Fset_window_configuration): Handle NORECORD argument in call of
14508 do_switch_frame.
14509 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14510 Fset_frame_selected_window.
14511 * keyboard.c (command_loop_1): Handle NORECORD in call of
14512 Fselect_frame (currently ifdefd).
14513
14514 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14515
14516 * emacs.c (USAGE2): Untabify.
14517
14518 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14519
14520 * composite.c (fill_gstring_header): Fix copy/paste typo.
14521
14522 2008-10-31 Martin Rudalics <rudalics@gmx.at>
14523
14524 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14525 (Fother_window): Rename argument and rewrite doc-string.
14526 (select_window_norecord): Fix return value. (Bug#1276)
14527
14528 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
14529
14530 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14531 new frames overriding foreground for tooltips. Based on similar patch
14532 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14533
14534 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
14535
14536 * emacs.c (Fdaemon_initialized): Initialize nfd.
14537
14538 2008-10-29 Martin Rudalics <rudalics@gmx.at>
14539
14540 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14541 (Fwindow_text_height): Clarify doc-strings.
14542 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14543 doc-string of window-scroll-functions.
14544
14545 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14546
14547 * category.c (syms_of_category): Fix typo in docstring.
14548
14549 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
14550
14551 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14552 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14553 Fix typos in docstrings.
14554
14555 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14556
14557 * emacs.c (daemon_pipe): Make non-static.
14558 (IS_DAEMON): Move definition ...
14559 * lisp.h (IS_DAEMON): ... here.
14560 (daemon_pipe): Declare.
14561 (is_daemon): Remove.
14562 * dispnew.c (init_display): Use IS_DAEMON.
14563
14564 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14565
14566 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14567 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14568
14569 * emacs.c (is_daemon): Remove.
14570 (main): Don't set is_daemon.
14571 (IS_DAEMON): New macro.
14572 (Fdaemonp, Fdaemon_initialized): Use it.
14573 (Fdaemon_initialized): Write a char into the pipe to make sure the
14574 parent exits.
14575 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14576
14577 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
14578
14579 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14580 over-sized glyph, draw it with the default glyph width.
14581
14582 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14583 glyph, draw it with the default glyph width.
14584
14585 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14586 glyph, draw it with the default glyph width.
14587
14588 * xdisp.c (try_scrolling): When computing the distance from the
14589 scroll margin to PT, try moving some distance past the window
14590 bottom before giving up.
14591
14592 2008-10-27 Martin Rudalics <rudalics@gmx.at>
14593
14594 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14595 (Fset_window_buffer): Explain in doc-string that a window can be
14596 "strongly" dedicated to its buffer.
14597
14598 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14599
14600 * emacs.c (daemon_name): New variable.
14601 (main): Deal with --daemon=SERVER_NAME.
14602 (Fdaemonp): Return a name if one was passed to --daemon.
14603
14604 2008-10-26 Romain Francoise <romain@orebokech.com>
14605
14606 * emacs.c (daemon_pipe): New variable.
14607 (main): Create a pipe before forking, make the parent exit only after
14608 the child has closed its end of the pipe. Move closing the
14609 descriptors ...
14610 (Fdaemon_initialized): ... here. New function.
14611
14612 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14613
14614 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14615 the previous unoptimized table.
14616
14617 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14618 the distinction between non-nil and non-t value of `dedicated'.
14619
14620 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
14621
14622 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
14623 read_char_minibuf_menu_text is large enough to hold the menu string.
14624
14625 2008-10-25 Martin Rudalics <rudalics@gmx.at>
14626
14627 * window.c (Fget_buffer_window, Fdelete_windows_on)
14628 (Freplace_buffer_in_windows): Make buffer argument optional and
14629 rename to buffer_or_name.
14630
14631 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
14632
14633 * xdisp.c (handle_single_display_spec, handle_display_prop):
14634 Undo 2005-05-16 change.
14635 (handle_stop): Pop iterator if it's loaded with an empty string.
14636 (get_overlay_strings_1): Don't save iterator if it's loaded with
14637 an empty string (bug#1201).
14638
14639 2008-10-24 Kenichi Handa <handa@m17n.org>
14640
14641 * ftfont.c (ftfont_otf_features): Fix previous change.
14642 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14643 calling ftfont_otf_features.
14644
14645 2008-10-24 Kenichi Handa <handa@m17n.org>
14646
14647 * font.c (font_match_p): Fix for the case that a vector of
14648 characters is in script-representative-chars.
14649
14650 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
14651
14652 * dbusbind.c (xd_in_read_queued_messages): New variable.
14653 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
14654 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14655 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
14656 macro. (Bug#1186)
14657
14658 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
14659
14660 * s/sol2-10.h: New file.
14661
14662 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14663
14664 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14665 poor beast has survived 9+ years and the jump from xterm.c!).
14666
14667 2008-10-23 Martin Rudalics <rudalics@gmx.at>
14668
14669 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14670 Reword doc-string.
14671 (Fbury_buffer): In doc-string say what happens to the buffer's window.
14672
14673 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14674
14675 * character.c (syms_of_character) <script-representative-chars>:
14676 <unicode-category-table>: Doc fixes.
14677
14678 2008-10-23 Noah Friedman <friedman@splode.com>
14679
14680 * coding.c (make_conversion_work_buffer): Check that
14681 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14682 Fget_buffer_create.
14683
14684 2008-10-23 Kenichi Handa <handa@m17n.org>
14685
14686 * font.c (font_add_log): Check the values of extra properties.
14687
14688 2008-10-22 Martin Rudalics <rudalics@gmx.at>
14689
14690 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14691 Reword doc-string.
14692 (Fset_window_parameter): Use NILP.
14693 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
14694 (Frecenter): Use "selected" instead of "current" window in doc-strings.
14695
14696 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14697
14698 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14699
14700 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14701
14702 * nsfns.m (ns_appkit_version): New function.
14703 (x-server-version): Use it.
14704 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14705 (x-server-vendor): Don't check_ns().
14706
14707 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14708
14709 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14710
14711 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14712 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14713
14714 2008-10-22 Kenichi Handa <handa@m17n.org>
14715
14716 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14717 scripts.
14718
14719 * category.c (word_boundary_p): Check scripts instead of charset.
14720 Handle nil value in word-separating-categories and
14721 word-combining-categories.
14722 (syms_of_category): Fix docstrings of word-separating-categories
14723 and word-combining-categories.
14724
14725 2008-10-21 Eli Zaretskii <eliz@gnu.org>
14726
14727 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14728 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14729
14730 2008-10-21 Martin Rudalics <rudalics@gmx.at>
14731
14732 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14733 Rename arg "buffer" to "buffer_or_name".
14734 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14735 it optional.
14736 (no_switch_window): Remove since the return value is not used.
14737 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
14738 Consider window as dedicated when Fwindow_dedicated_p returns a
14739 non-nil value.
14740 * lisp.h: Remove prototype for no_switch_window.
14741
14742 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14743
14744 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
14745 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
14746
14747 2008-10-21 Kenichi Handa <handa@m17n.org>
14748
14749 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14750 check Vlatin_extra_code_table.
14751
14752 2008-10-20 Eli Zaretskii <eliz@gnu.org>
14753
14754 * fileio.c (Fset_file_modes): Doc fix.
14755
14756 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
14757
14758 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14759 in arrays.
14760
14761 2008-10-19 Martin Rudalics <rudalics@gmx.at>
14762
14763 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14764 Mention kill-buffer in doc-string.
14765 (Fset_window_buffer): Reinsert tem check removed in last commit.
14766 (Fenlarge_window, Fshrink_window): Have argument names and
14767 doc-string follow Elisp manual more closely.
14768
14769 2008-10-18 Eli Zaretskii <eliz@gnu.org>
14770
14771 * fileio.c (Fset_file_modes): Doc fix.
14772
14773 2008-10-18 Martin Rudalics <rudalics@gmx.at>
14774
14775 * window.c (Fwindow_width, Fset_window_start)
14776 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
14777 (Fdelete_windows_on, Freplace_buffer_in_windows):
14778 Make doc-strings follow code and Elisp manual more closely.
14779 (Fwindow_dedicated_p): Make window argument optional.
14780 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14781 (Fset_window_buffer): Respect any non-nil dedicated value for
14782 window. Rename "buffer" argument to "buffer_or_name".
14783
14784 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
14785
14786 * m/sh3.h: New file, machine description for SuperH.
14787
14788 2008-10-17 Martin Rudalics <rudalics@gmx.at>
14789
14790 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14791
14792 2008-10-17 Kenichi Handa <handa@m17n.org>
14793
14794 * ftfont.c (ftfont_otf_features): Fix indexing
14795 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14796
14797 2008-10-16 Magnus Henoch <mange@freemail.hu>
14798
14799 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14800 (Fdbus_call_method_asynchronously): Ditto.
14801 This change makes C-h f display the argument list.
14802
14803 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
14804
14805 * fileio.c (Fexpand_file_name): Doc fix.
14806
14807 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14808 of :foreground and :background equivalent to unspecified (20.x
14809 compatibility).
14810
14811 2008-10-15 Eli Zaretskii <eliz@gnu.org>
14812
14813 * buffer.c (syms_of_buffer): Doc fix.
14814
14815 2008-10-14 Kenichi Handa <handa@m17n.org>
14816
14817 * font.c (font_clear_prop): When clearing font width, clear the
14818 average width field too.
14819
14820 2008-10-12 Andreas Schwab <schwab@suse.de>
14821
14822 * ftfont.c (ftfont_shape_by_flt): Make static.
14823 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14824
14825 * font.c: Don't include <m17n-flt.h>.
14826
14827 2008-10-10 Eli Zaretskii <eliz@gnu.org>
14828
14829 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14830
14831 2008-10-09 Eli Zaretskii <eliz@gnu.org>
14832
14833 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14834 away code.
14835
14836 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
14837
14838 * dispnew.c (update_text_area): Avoid looping due to large glyph
14839 overhangs (bug#1070).
14840
14841 2008-10-09 Kenichi Handa <handa@m17n.org>
14842
14843 * fontset.c (face_for_char): If face->fontset is negative, just
14844 return ascii_face.
14845
14846 * font.c (font_delete_unmatched): Fix previous change.
14847 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14848
14849 2008-10-09 Martin Rudalics <rudalics@gmx.at>
14850
14851 * frame.c (Fraise_frame): On text-only terminals select frame in
14852 order to make it visible. (Bug#1061)
14853
14854 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
14855
14856 * fontset.c (fontset_find_font): Check frame validity.
14857
14858 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
14859
14860 * gtkutil.c (xg_display_open): Reset default display if none exists.
14861 (xg_display_close): Allow Emacs to close all displays (bug#985).
14862
14863 2008-10-06 Andreas Schwab <schwab@suse.de>
14864
14865 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14866
14867 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
14868
14869 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
14870
14871 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
14872
14873 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14874 during initialization.
14875
14876 2008-10-04 Eli Zaretskii <eliz@gnu.org>
14877
14878 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14879 whole thing on MSDOS frames as well as on a TTY.
14880
14881 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14882 well as for TTY.
14883 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14884 well as on a TTY.
14885
14886 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14887 as well as for TTY.
14888
14889 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14890
14891 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14892 MSDOS frames as well.
14893
14894 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14895
14896 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14897 correct arguments.
14898 * menu.c (find_and_return_menu_selection): Add cast.
14899
14900 2008-10-03 Glenn Morris <rgm@gnu.org>
14901
14902 * emacs.c (USAGE1): Add --daemon.
14903
14904 2008-10-02 Eli Zaretskii <eliz@gnu.org>
14905
14906 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14907 100, so it's in percents as advertised.
14908
14909 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14910
14911 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14912 (ns_output.current_cursor, ns_output.desired_cursor)
14913 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14914 (FRAME_NEW_CURSOR_COLOR): Remove.
14915
14916 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
14917 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
14918 enumeration (HOLLOW_BOX_CURSOR, etc.).
14919
14920 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14921 (draw_window_cursor): Simplify code.
14922 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14923 Don't change cursor type. In latter, call rehighlight instead of doing
14924 updates manually.
14925 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14926 Use core Emacs cursor types.
14927
14928 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
14929
14930 2008-10-02 Martin Rudalics <rudalics@gmx.at>
14931
14932 * process.c (Faccept_process_output): Fix doc-string.
14933
14934 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14935
14936 * gmalloc.c (__sbrk): Also define for uClibc.
14937
14938 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14939 for uClibc.
14940
14941 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14942
14943 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14944 styles.
14945 (nsfont_open): Reenable the cache.
14946
14947 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14948
14949 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14950 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14951
14952 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14953
14954 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14955 a suspended terminal.
14956
14957 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
14958
14959 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14960
14961 2008-09-30 Eli Zaretskii <eliz@gnu.org>
14962
14963 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14964
14965 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
14966
14967 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14968 in a continued line coincides with a line beginning.
14969
14970 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14971
14972 * nsfont.m (nsfont_trait_distance): Fix bug.
14973 (nsfont_list): Return a list rather than a vector (syncs with Handa
14974 changes of 2008-05-14).
14975 (nsfont_open): Improve logging.
14976
14977 2008-09-29 Andreas Schwab <schwab@suse.de>
14978
14979 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14980
14981 2008-09-28 Martin Rudalics <rudalics@gmx.at>
14982
14983 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14984 name as char-resolve-modifiers.
14985 Reported by: Markus Triska <markus.triska@gmx.at>
14986
14987 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14988
14989 * dispnew.c (init_display): Return earlier when running as a daemon.
14990
14991 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14992
14993 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14994
14995 2008-09-27 Eli Zaretskii <eliz@gnu.org>
14996
14997 * composite.c (Fcomposition_get_gstring)
14998 (Fcompose_region_internal, Fcompose_string_internal)
14999 (Ffind_composition_internal): Doc fix.
15000 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15001 (syms_of_composite) <auto-composition-function>: Doc fix.
15002 (syms_of_composite) <composition-function-table>: Doc fix.
15003
15004 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
15005
15006 * search.c (wordify): New argument for lax word-ends.
15007 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15008
15009 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15010
15011 * lisp.h (is_daemon): Declare.
15012 * dispnew.c (init_display): Do not try to initialize the terminal
15013 when running as a daemon.
15014
15015 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
15016
15017 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15018 x_display_pixel_height.
15019
15020 2008-09-22 Martin Rudalics <rudalics@gmx.at>
15021
15022 * undo.c (record_point): Don't call Fundo_boundary for first
15023 change. (Bug#731)
15024
15025 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
15026
15027 * emacs.c (Fdaemonp): Doc fix.
15028
15029 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15030
15031 * emacs.c (main): Place #ifdef in the proper place.
15032
15033 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15034
15035 * emacs.c (standard_args): Add --daemon.
15036 (main): Disconnect from the terminal when --daemon is passed.
15037 (is_daemon): New variable.
15038 (Fdaemonp): New function.
15039 (syms_of_emacs): Defsubr it.
15040
15041 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
15042
15043 * xdisp.c (get_next_display_element): Handle string display
15044 correctly when checking for the end of a box run.
15045
15046 2008-09-20 Glenn Morris <rgm@gnu.org>
15047
15048 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15049 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15050 (Frename_file): Avoid copying to trash if a rename involves
15051 a delete. (Bug#964).
15052
15053 2008-09-20 Eli Zaretskii <eliz@gnu.org>
15054
15055 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15056 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15057 frames as well as termcap frames.
15058 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15059 get_named_tty.
15060
15061 2008-09-19 Eli Zaretskii <eliz@gnu.org>
15062
15063 * process.c (procfs_system_process_attributes): Fix cmdline in
15064 case /proc/PID/cmdline is empty.
15065
15066 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15067 x_display_pixel_height.
15068
15069 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
15070
15071 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15072
15073 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15074 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15075
15076 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15077
15078 * dispextern.h (struct it): Move line_wrap away from the middle of
15079 bitfields. Move voffset in struct iterator_stack_entry after the
15080 bitfields. Move tab_width near after another short.
15081
15082 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15083
15084 * frame.h (struct frame): Move alpha from the middle of bitfields.
15085
15086 * window.h (struct window): Move frozen_window_start_p after the
15087 rest of the bitfields to reduce padding.
15088
15089 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
15090
15091 * xterm.h (x_display_info): Remove `height' and `width' members.
15092
15093 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15094
15095 * w32term.h (w32_display_info): Remove `height', `width',
15096 `height_in', and `width_in' members.
15097
15098 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15099 New functions.
15100 (x_calc_absolute_position): Use them.
15101 (x_term_init): Omit removed `height' and `width' members.
15102
15103 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15104 New functions.
15105 (w32_read_socket, x_calc_absolute_position): Use them.
15106 (w32_initialize_display_info, w32_term_init): Omit removed members
15107 of w32_display_info.
15108
15109 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15110 New functions.
15111 (ns_initialize_display_info): Omit removed members of ns_display_info.
15112
15113 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15114 New functions.
15115 (x_calc_absolute_position): Use them.
15116 (x_term_init): Omit removed `height' and `width' members.
15117
15118 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15119 (compute_tip_xy):
15120 * frame.c (x_fullscreen_adjust):
15121 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15122 x_display_pixel_width.
15123
15124 2008-09-18 Kenichi Handa <handa@m17n.org>
15125
15126 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15127 (composition_compute_stop_pos): Fix handling of static composition.
15128 (Fcomposition_get_gstring): Check FROM and TO at first.
15129
15130 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15133 mixup (YAILOM).
15134
15135 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15136
15137 * indent.c (Fvertical_motion): Use position reported by iterator
15138 instead of PT for determining screen motion (bug#943).
15139
15140 2008-09-17 Romain Francoise <romain@orebokech.com>
15141
15142 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15143
15144 2008-09-17 Kenichi Handa <handa@m17n.org>
15145
15146 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15147
15148 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15149 if necessary.
15150
15151 2008-09-16 Kenichi Handa <handa@m17n.org>
15152
15153 * coding.c (make_conversion_work_buffer): Avoid calling
15154 Fget_buffer_create if it is not necessary.
15155
15156 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15157
15158 * window.c (Fselect_window): Don't update window_select_count and
15159 use_time when norecord is not nil.
15160
15161 2008-09-14 Kenichi Handa <handa@m17n.org>
15162
15163 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15164 specpdl_ptr.
15165
15166 2008-09-12 Kenichi Handa <handa@m17n.org>
15167
15168 * indent.c (scan_for_column): Don't handle automatic composition
15169 if the current buffer is not associated with a window.
15170
15171 * composite.c (composition_reseat_it): If the current buffer is
15172 not associated with a window, ignore the automatic composition.
15173 (find_automatic_composition): Likewise.
15174
15175 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15176
15177 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15178 (Fgpm_mouse_stop): Use it.
15179 * termhooks.h (close_gpm): Declare.
15180 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15181 connection if Gpm_GetEvent fails.
15182
15183 * window.c (set_window_buffer): Always preserve current-buffer.
15184
15185 2008-09-12 Glenn Morris <rgm@gnu.org>
15186
15187 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15188
15189 2008-09-11 Glenn Morris <rgm@gnu.org>
15190
15191 * charset.c (charset-map-path): Doc fix.
15192
15193 2008-09-10 Kenichi Handa <handa@m17n.org>
15194
15195 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15196
15197 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15198 compose a grapheme cluster with the preceding base glyph.
15199
15200 * composite.c (composition_compute_stop_pos): Fix previous change.
15201 Reset cmp_it->id to -1 at first.
15202
15203 2008-09-10 Glenn Morris <rgm@gnu.org>
15204
15205 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15206
15207 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15208
15209 * keyboard.c (read_key_sequence): Reapply translation maps when
15210 switching keyboards.
15211
15212 2008-09-09 Kenichi Handa <handa@m17n.org>
15213
15214 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15215 characters.
15216
15217 * composite.c (FORWARD_CHAR): Fix calculation
15218 of (POSITION).pos_byte.
15219 (composition_compute_stop_pos): Limit the search of composition to
15220 at most 500 characters ahead. If we reach the limit or find a
15221 newline, set cmp_it->ch to -2 and return 0.
15222 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15223
15224 2008-09-08 Kenichi Handa <handa@m17n.org>
15225
15226 * indent.c (Fvertical_motion): Be sure to set
15227 it_overshoot_expected if it.cmp_it.id is non-negative.
15228
15229 2008-09-07 Andreas Schwab <schwab@suse.de>
15230
15231 * callproc.c (Fcall_process): Don't hold references to string data
15232 across garbage collection. Move initialisation of new_argv down
15233 to avoid compiler bug.
15234
15235 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15236
15237 * process.c (Fsystem_process_attributes): Doc fix.
15238
15239 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15240
15241 * callproc.c (Fcall_process): Canonicalize current directory name.
15242
15243 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15244 iterator advances to the next line if the current line ends in a
15245 continued tab.
15246
15247 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15248
15249 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15250 member to point to cmp_from.
15251
15252 * xdisp.c: Doc fix for references to gidx data member.
15253
15254 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15255
15256 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15257
15258 2008-09-07 Kenichi Handa <handa@m17n.org>
15259
15260 * composite.c (FORWARD_CHAR): Check STOP after
15261 incrementing (POSITION).pos.
15262
15263 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15264
15265 * process.c (Fsystem_process_attributes): Doc fix.
15266
15267 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15268
15269 * keyboard.c (Ftop_level): Doc fix.
15270
15271 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15272
15273 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15274 minibuffer, don't let lower part of menu invade the echo area.
15275
15276 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15277 "char *q" to access menu text and advance through it. Revert the
15278 change that displayed ">" instead of ASCII character 0x10.
15279
15280 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15281
15282 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15283 toggle boxes and radio buttons on MS-DOS as well.
15284
15285 2008-09-05 Kenichi Handa <handa@m17n.org>
15286
15287 * composite.c (autocmp_chars): Check lookback count.
15288 (composition_compute_stop_pos): Set cmp_it->lookback.
15289 (composition_reseat_it): Check lookback count.
15290 (struct position_record): New struct.
15291 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15292 (find_automatic_composition): New function.
15293 (composition_adjust_point): Use find_automatic_composition.
15294
15295 * dispextern.h (struct composition_it): New member lookback.
15296
15297 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15298
15299 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15300 if moving by a single line.
15301
15302 2008-09-02 Andreas Schwab <schwab@suse.de>
15303
15304 * xterm.c (x_delete_display): Fix merge error.
15305
15306 * fileio.c (Fexpand_file_name): Remove unused variables.
15307
15308 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15309
15310 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15311 storage on all platforms, not just on DOS_NT.
15312
15313 2008-09-02 Jason Rumney <jasonr@gnu.org>
15314
15315 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15316 Ensure mouse is not grabbed after menu is finished.
15317
15318 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15319
15320 * xfaces.c (Finternal_set_alternative_font_family_alist)
15321 (Finternal_set_alternative_font_registry_alist): Properly copy
15322 entire alist structure.
15323
15324 2008-09-01 Kenichi Handa <handa@m17n.org>
15325
15326 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15327 representative chars of the script is a vector.
15328 (ftfont_list): Handle the case where the representative chars of
15329 the script is a vector.
15330
15331 * character.c (syms_of_character): Docstring of
15332 script-representative-chars fixed.
15333
15334 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15335
15336 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15337 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15338 the menu. Allocate larger buffer for `text', to account for
15339 possible ^C characters.
15340
15341 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15342
15343 * xdisp.c (prepare_menu_bars): Don't call
15344 Vwindow_size_change_functions with arg Qt.
15345
15346 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15347
15348 * font.h (font_range):
15349 * fileio.c (report_file_error):
15350 * composite.c (composition_update_it): Yet another int/Lisp_Object
15351 mixup (YAILOM).
15352
15353 2008-08-30 Glenn Morris <rgm@gnu.org>
15354
15355 * data.c (Fmake_variable_frame_local): Doc fix.
15356
15357 * frame.c (Fmodify_frame_parameters): Doc fix.
15358
15359 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15360
15361 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15362 needed by GetTokenInformation.
15363 (w32_system_process_attributes): Check return values of all system
15364 APIs.
15365
15366 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15367 only when the state changes.
15368 (IT_update_begin, IT_update_end): Add termscript trace.
15369
15370 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15371 clipboard is unavailable. Set dst to NULL if it doesn't point to
15372 malloc'ed data.
15373 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15374 passing random values to xfree.
15375
15376 * dispnew.c (init_display): Set `tty's association in frame's
15377 parameters alist to the name of the terminal device, if that is known.
15378
15379 2008-08-29 Jason Rumney <jasonr@gnu.org>
15380
15381 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15382
15383 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15384
15385 * composite.c (fill_gstring_body): Avoid compiler warnings.
15386
15387 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15388 LGLYPH_SET_CODE to avoid compiler warnings.
15389
15390 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15391
15392 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15393
15394 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15395 LGLYPH_SET_CODE.
15396
15397 2008-08-29 Kenichi Handa <handa@m17n.org>
15398
15399 * fileio.c (report_file_error): Don't downcase the first character
15400 of errstring if it is still unibyte.
15401
15402 2008-08-29 Kenichi Handa <handa@m17n.org>
15403
15404 These changes are to re-implement the automatic composition so
15405 that it doesn't use text properties.
15406
15407 * Makefile.in (ftfont.o): Depend on composite.h.
15408 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15409
15410 * character.h (Vunicode_category_table): Extern it.
15411
15412 * character.c (Vunicode_category_table): New variable.
15413 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15414
15415 * chartab.c (optimize_sub_char_table): Perform more greedy
15416 optimization.
15417
15418 * composite.h (enum composition_method):
15419 Delete COMPOSITION_WITH_GLYPH_STRING.
15420 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15421 (Vcomposition_function_table): Extern it.
15422 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15423 (composition_gstring_put_cache, composition_gstring_from_id)
15424 (composition_gstring_p, composition_gstring_width)
15425 (composition_compute_stop_pos, composition_reseat_it)
15426 (composition_update_it, composition_adjust_point): Extern them.
15427 (Fcomposition_get_gstring): EXFUN it.
15428
15429 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
15430 (Vcomposition_function_table)
15431 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
15432 (gstring_hash_table, gstring_work, gstring_work_headers):
15433 New variables.
15434 (gstring_lookup_cache, composition_gstring_put_cache)
15435 (composition_gstring_from_id, composition_gstring_p)
15436 (composition_gstring_width, fill_gstring_header)
15437 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15438 (composition_reseat_it, composition_update_it)
15439 (composition_adjust_point, Fcomposition_get_gstring): New functions.
15440 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15441 and gstring_work_headers. DEFVAR_LISP composition-function-table.
15442 Defsubr composition_get_gstring.
15443
15444 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15445 cmp_id.
15446 (struct glyph_string): Delete the member gidx. New members
15447 cmp_id, cmp_from, and cmp_to.
15448 (enum it_method): Delete GET_FROM_COMPOSITION.
15449 (struct composition_it): New struct.
15450 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15451 Delete c, len, cmp_id, cmp_len in u.comp.
15452
15453 * font.h (enum lgstring_indices): Delete it.
15454 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
15455 (enum lglyph_indices): Likewise.
15456 (font_range): Adjust extern.
15457 (font_fill_lglyph_metrics): Extern it.
15458
15459 * font.c (QCf): New variable.
15460 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15461 (font_prepare_composition): Delete this function.
15462 (font_range): Type and arguments changed.
15463 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15464 (font_fill_lglyph_metrics): New function.
15465 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
15466 (syms_of_font): DEFSYM QCf. Delete defsubr for
15467 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15468 Defsubr Sfont_shape_gstring.
15469
15470 * fontset.h (font_for_char): Extern it.
15471
15472 * fontset.c (font_for_char): New function.
15473
15474 * ftfont.c: Include composite.h.
15475 (ftfont_resolve_generic_family): Add langset "en" to pattern.
15476 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15477
15478 * indent.c: Include composite.h and dispextern.h.
15479 (check_composition): Delete this function.
15480 (scan_for_column): Handle composition by
15481 composition_compute_stop_pos, composition_reseat_it, and
15482 composition_update_it.
15483 (compute_motion): Likewise.
15484 (Fvertical_motion): Fix checking of composition.
15485
15486 * keyboard.c (adjust_point_for_property): Check composition by
15487 composition_adjust_point.
15488
15489 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
15490 struct glyph_string.
15491
15492 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15493 (append_composite_glyph): Adjust for the change of struct it and
15494 struct glyph.
15495 (produce_composite_glyph): Likewise.
15496
15497 * w32term.c (x_draw_composite_glyph_string_foreground):
15498 Adjust for the change of struct glyph_string.
15499 (x_draw_glyph_string): Likewise.
15500
15501 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15502 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15503
15504 * xdisp.c: Include font.h.
15505 (it_props): Delete the entry for Qauto_composed.
15506 (init_iterator): Initialize it->cmp_it.id to -1.
15507 (compute_stop_pos): Call composition_compute_stop_pos.
15508 (face_before_or_after_it_pos): Adjust for the change of struct it.
15509 (handle_auto_composed_prop): Delete it.
15510 (handle_composition_prop): Handle only static composition.
15511 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15512 from xassert. Initialize it->cmp_it.stop_pos.
15513 (push_it): Adjust for the change of struct it.
15514 (pop_it): Likewise.
15515 (get_next_element): Delete next_element_from_composition.
15516 (CHAR_COMPOSED_P): New macro.
15517 (get_next_display_element): For automatic composition, get a face
15518 from the font in the glyph-string.
15519 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
15520 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
15521 (next_element_from_string): Check if the character at the current
15522 position is composed by CHAR_COMPOSED_P.
15523 (next_element_from_buffer): Likewise.
15524 (next_element_from_composition): Adjust for the change of struct it.
15525 Update it->cmp_it.
15526 (dump_glyph): Adjust for the change of struct glyph.
15527 (fill_composite_glyph_string): Adjust for the change of struct
15528 it and struct glyph. Don't handle automatic composition here.
15529 (fill_gstring_glyph_string): New function.
15530 (x_get_glyph_overhangs): Handle automatic composition.
15531 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
15532 (BUILD_GSTRING_GLYPH_STRING): New macro.
15533 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15534 automatic composition.
15535 (append_composite_glyph): Adjust for the change of struct it and
15536 struct glyph.
15537 (x_produce_glyphs): Adjust for the change of struct it.
15538
15539 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15540 the change of struct glyph_string.
15541 (x_draw_glyph_string): Likewise.
15542
15543 2008-08-29 Glenn Morris <rgm@gnu.org>
15544
15545 * buffer.c (word-wrap): Doc fix.
15546 * xdisp.c (truncate-partial-width-windows): Doc fix.
15547 Increase default to 50.
15548
15549 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
15550
15551 * xdisp.c (update_tool_bar_unwind): New function.
15552 (update_tool_bar): Temporarily set selected frame before building
15553 tool-bar items.
15554
15555 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
15556
15557 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15558 snprintf, respectively.
15559 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15560
15561 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
15562
15563 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15564 LDFLAGS to GNUstep CC invocation.
15565
15566 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
15567
15568 * indent.c (Fvertical_motion): Revert last change. Handle the
15569 general case where we are moving forward, and PT spans multiple
15570 screen lines.
15571
15572 * eval.c (find_handler_clause): Temporarily increase
15573 max-lisp-eval-depth while printing the backtrace buffer, to
15574 guarantee that help-mode code can run.
15575
15576 2008-08-27 Eli Zaretskii <eliz@gnu.org>
15577
15578 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15579 colors under -rv.
15580 (IT_set_frame_parameters): Don't swap foreground and background
15581 colors if `(reverse . t)' is present in the frame properties.
15582 (internal_terminal_init): Call init_frame_faces only for the
15583 initial frame.
15584
15585 2008-08-27 Andreas Schwab <schwab@suse.de>
15586
15587 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15588
15589 2008-08-27 Andreas Schwab <schwab@suse.de>
15590
15591 * search.c (search_buffer): Set char_base to zero only at the end.
15592
15593 2008-08-27 Kenichi Handa <handa@m17n.org>
15594
15595 * fileio.c (report_file_error): Fix handling of multibyte error string.
15596
15597 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15598
15599 * xterm.c (x_term_init): Temporarily hide the partially
15600 initialized terminal while calling vendor-specific-keysyms.
15601
15602 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15603
15604 * msdos.c (internal_terminal_init): Most initializations done only
15605 once, especially initial_screen_colors[] and termscript open.
15606
15607 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15608
15609 * eval.c (Fcondition_case): Doc fix.
15610
15611 * widgetprv.h (EmacsFramePart): Change font member to the new font
15612 struct.
15613
15614 * widget.c: Include character.h and font.h for XSETFONT.
15615 (setup_frame_gcs): Compute X font id from font struct, just once.
15616
15617 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15618
15619 * term.c (get_named_tty): Fix last change.
15620
15621 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15622
15623 * indent.c (Fvertical_motion): If moving forward starting from a
15624 multi-line string, move the iterator to the last line of that string.
15625
15626 2008-08-25 Eli Zaretskii <eliz@gnu.org>
15627
15628 * frame.c (do_switch_frame): Mark previously displayed frame as
15629 obscured for FRAME_MSDOS_P frames as well.
15630
15631 2008-08-24 Eli Zaretskii <eliz@gnu.org>
15632
15633 * frame.c (make_terminal_frame): Initialize f->terminal,
15634 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15635 Set the top frame to newly created frame.
15636 (Fmake_terminal_frame): Reuse the_only_display_info.
15637
15638 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15639 estimating available memory.
15640
15641 2008-08-23 David Reitter <david.reitter@gmail.com>
15642
15643 * nsterm.m (ns_draw_window_cursor): Don't call
15644 NSDisableScreenUpdates and NSEnableScreenUpdates on
15645 non-NS_IMPL_COCOA systems.
15646
15647 2008-08-23 Andreas Schwab <schwab@suse.de>
15648
15649 * process.c (procfs_system_process_attributes): Fix use of
15650 uninitialized variables.
15651
15652 2008-08-23 Eli Zaretskii <eliz@gnu.org>
15653
15654 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15655
15656 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15657 calling tty-set-up-initial-frame-faces.
15658
15659 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15660 Allow MSDOS frames along with X frames.
15661
15662 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15663 addition to output_termcap.
15664
15665 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15666
15667 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15668 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15669 highlight.
15670
15671 * process.c [!subprocesses]: Define QCname.
15672 (syms_of_process): Intern and staticpro it.
15673
15674 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
15675 Adjust for changes in encoding/decoding routines.
15676 Use encode_coding_object and decode_coding_object instead of
15677 encode_coding and decode_coding.
15678
15679 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
15680
15681 * dosfns.c: Include frame.h before termhooks.h.
15682 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15683 variable termscript.
15684
15685 * s/msdos.h (USER_FULL_NAME): Define.
15686 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15687
15688 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15689 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15690 pw->pw_gecos.
15691
15692 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15693 SELECTED_FRAME as additional (1st) argument.
15694 (tty_read_avail_input): Handle output_msdos_raw in
15695 addition to output_termcap.
15696
15697 * msdos.c: Include frame.h before termhooks.h.
15698 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15699 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15700 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15701 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15702 (IT_set_terminal_modes, IT_reset_terminal_modes)
15703 (IT_set_frame_parameters): Use tty->termscript instead of a global
15704 variable termscript.
15705 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15706 global variable terminal_coding. Don't refer to
15707 Vnonascii_translation_table.
15708 (internal_terminal_init): Set Vwindow_system in current_kboard.
15709 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15710 Announce date and time of session start, if termscript is open.
15711 Don't zero out the_only_display_info (it is done in
15712 term.c:init_tty). Open termscript only of not already open.
15713 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
15714 here instead of dos_ttraw. Don't initialize display if this is an
15715 initial tty. Don't set FRAME_FONT.
15716 (Vwindow_system_version): Bump to 23.
15717 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15718 is available, set up mouse_position_hook.
15719 (dos_ttraw, IT_set_terminal_modes): If called with initial
15720 terminal, do nothing.
15721 (IT_set_frame_parameters): Handle the Qtty_type frame
15722 parameter by calling internal_terminal_init.
15723 (dos_set_window_size, show_mouse_face)
15724 (clear_mouse_face, IT_note_mode_line_highlight)
15725 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15726 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15727 (initialize_msdos_display): New function.
15728 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15729 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15730 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15731 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
15732 Accept additional argument: a pointer to a frame. Update all callers.
15733 (request_sigio, unrequest_sigio): Don't define, now defined on
15734 sysdep.c.
15735 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15736
15737 * term.c [MSDOS]: Include msdos.h.
15738 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15739 conditional to DOS_NT. Allow only one call to this function in a
15740 session. Don't allocate a new struct tty_display_info; instead,
15741 reuse the_only_display_info. Call get_tty_size to get screen
15742 dimensions. Call init_baud_rate to set bad_rate.
15743 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15744 (Fsuspend_tty) [MSDOS]: Don't close input and output.
15745 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
15746 (get_tty_terminal, get_named_tty, Ftty_type)
15747 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15748 output_termcap.
15749 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15750 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
15751 only when subprocesses are supported.
15752
15753 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15754 f->output_data.x.
15755 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15756 terminal devices.
15757
15758 * msdos.h: Remove definition of struct x_display_info and struct
15759 x_output.
15760 (FRAME_FONT): Use output_data.tty.
15761 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
15762 (struct x_display_info): Rename from display_info. Update all users in
15763 msdos.c.
15764 (struct x_output): Remove background_pixel and foreground_pixel.
15765 (the_only_display_info): Rename from the_only_x_display.
15766 (dos_ttraw): Update prototype.
15767
15768 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15769 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15770
15771 2008-08-23 Jason Rumney <jasonr@gnu.org>
15772
15773 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15774 (fn_TIFFSetDirectory): New library function used.
15775 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15776 (tiff_load): Use :index to select among multiple images. Set count
15777 property when multiple images exist.
15778 (gif_format): Use :index, not :image.
15779
15780 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
15781
15782 * xdisp.c (try_scrolling): Check INT_MAX instead of
15783 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15784 to obtain INT_MAX.
15785
15786 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15787
15788 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15789
15790 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15791
15792 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15793 GNUstep library location.
15794
15795 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
15796
15797 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15798 before using it.
15799
15800 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15801
15802 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15803
15804 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15805 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15806 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15807 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15808 (EmacsApp-cursor_blink_handler): Remove declaration.
15809 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15810 match 01 Feb 2008 changes in xterm.c.
15811 (ns_read_socket): Add cast to avoid warning.
15812 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15813 GNUstep.
15814
15815 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
15816
15817 * xselect.c (x_get_foreign_selection): Return nil if desired
15818 selection could not be obtained, instead of signalling an error.
15819
15820 2008-08-20 David Reitter <david.reitter@gmail.com>
15821
15822 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15823 * nsterm.m: Remove ns-specific code for cursor blinking.
15824 (ns_draw_window_cursor): Clear cursor properly rather than
15825 redrawing the area. Respect width of bar cursors.
15826 These changes enable the use of generic blink-cursor-mode and
15827 generic cursor types in NS and support smooth cursor movements (do
15828 not blink off after command).
15829 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15830 Nextstep, too.
15831
15832 2008-08-19 Kenichi Handa <handa@m17n.org>
15833
15834 * font.c (Vfont_log_deferred): New variable.
15835 (font_add_log): Check Vfont_log_deferred.
15836 (font_deferred_log): New function.
15837
15838 * font.h (font_deferred_log): Extern it.
15839
15840 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15841 for sorting.
15842 (face_for_char): Use deferred log.
15843
15844 2008-08-18 Kenichi Handa <handa@m17n.org>
15845
15846 * fontset.c (face_for_char): Add font log.
15847
15848 * font.c (font_add_log): Add the font properties :script, :lang,
15849 and :otf in the log.
15850
15851 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
15852
15853 * xdisp.c: Remove dead code.
15854 (handle_invisible_prop, next_overlay_string): Defer call to
15855 setup_for_ellipsis.
15856 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15857
15858 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
15859
15860 * xfaces.c (lookup_derived_face): Properly handle possible zero
15861 return value of get_lface_attributes.
15862 (merge_faces): Don't tell lookup_derived_face to signal an error
15863 if face is not found.
15864
15865 * dired.c (Fdirectory_files): Doc fix.
15866
15867 * process.c (make_process): Initialize kill_without_query struct
15868 member.
15869
15870 2008-08-15 Eli Zaretskii <eliz@gnu.org>
15871
15872 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15873 Alternative calculation of totphys for Visual Studio 6.
15874
15875 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15876
15877 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15878 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15879 All users changed.
15880 (stat): Only root directory passed to GetDriveType. Allow RAM
15881 disk as well as local fixed disk when w32-get-true-file-attributes
15882 is set to `local'.
15883 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15884 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15885 (w32_cached_id, w32_add_to_cache): New functions.
15886 (get_name_and_id): Look account names in the cache before calling
15887 lookup_account_sid.
15888 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15889 New initialization flags.
15890 (globals_of_w32): Initialize them to zero.
15891 (w32_system_process_attributes): Use w32_cached_id and
15892 w32_add_to_cache.
15893
15894 2008-08-14 Lawrence Mitchell <wence@gmx.li>
15895
15896 * lread.c (Fread_char, Fread_char_exclusive): If no character
15897 event is read before timeout is reached, return nil, rather than
15898 converting to a number.
15899
15900 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
15901
15902 * fns.c (use_dialog_box): Doc fix.
15903
15904 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15905 on OS X.
15906
15907 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
15908
15909 * frame.c (Qns_parse_geometry): New var.
15910 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15911
15912 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
15913
15914 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15915 space character in calculating tabs.
15916
15917 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15918
15919 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15920
15921 2008-08-10 Glenn Morris <rgm@gnu.org>
15922
15923 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15924 silence gcc "limited range of data type" warnings in some
15925 make_fixnum_or_float calls.
15926
15927 2008-08-09 Eli Zaretskii <eliz@gnu.org>
15928
15929 * w32.c (w32_system_process_attributes): If the process does not
15930 exist, return nil.
15931
15932 * w32.c: Include thelp32.h, psapi.h and coding.h.
15933 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15934 declarations.
15935 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15936 (Process32Next_Proc): New typedefs.
15937 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15938 (g_b_init_process32_next, g_b_init_open_thread_token)
15939 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15940 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15941 (g_b_init_get_process_working_set_size)
15942 (g_b_init_global_memory_status_ex): New static variables.
15943 (globals_of_w32): Initialize them.
15944 (create_toolhelp32_snapshot, process32_first, process32_next)
15945 (open_thread_token, impersonate_self, revert_to_self)
15946 (get_process_memory_info, get_process_working_set_size)
15947 (global_memory_status, global_memory_status_ex): New wrapper
15948 functions.
15949 (w32_list_system_processes, w32_system_process_attributes)
15950 (enable_privilege, restore_privilege, ltime, process_times):
15951 New functions.
15952 (convert_time_raw): New function.
15953 (convert_time): Remove conversion of FILETIME into time in 100
15954 nsec units, call convert_time_raw instead.
15955
15956 * process.h (w32_list_system_processes, w32_system_process_attributes):
15957 Add prototypes.
15958 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15959 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15960 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15961 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15962
15963 * process.c (Fsystem_process_attributes): Doc fix.
15964
15965 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
15966
15967 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15968 a continued multi-char glyph; if so, advance to the actual glyph.
15969
15970 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15971
15972 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15973
15974 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15975 (.m.o): Use it.
15976 * config.in: Regenerate.
15977
15978 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
15979
15980 * xdisp.c (redisplay_window): Revert last change.
15981 (try_window): Check bottom scroll margin too.
15982
15983 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15984
15985 * config.in: Regenerate.
15986
15987 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15988 -list-load-path-shadows'.
15989 (nsgui.h): Reduce number of things depending on it.
15990
15991 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
15992
15993 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15994 instead of window-end which does the wrong thing at eob.
15995 (try_cursor_movement): Minor optimization.
15996 (redisplay_window): If scroll margin is defined, don't assume
15997 window doesn't need scrolling.
15998
15999 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16000
16001 * config.in: Regenerate.
16002
16003 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16004 (mostlyclean): Don't delete *.d under NS.
16005
16006 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16007
16008 2008-08-06 Kenichi Handa <handa@m17n.org>
16009
16010 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16011
16012 2008-08-06 Andreas Schwab <schwab@suse.de>
16013
16014 * config.in: Regenerate.
16015
16016 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
16017
16018 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16019 forcing a window start.
16020
16021 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16022 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16023
16024 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16025
16026 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16027 argument.
16028
16029 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
16030
16031 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16032 <scroll-down-aggressively, before-change-functions>:
16033 <after-change-functions>: Reflow docstrings.
16034
16035 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16036 Ken Raeburn <raeburn@gnu.org>
16037
16038 Dock menu customization, based on a patch by Ken Raeburn, plus some
16039 other fixes.
16040 * nsmenu.m (dockMenu): New variable.
16041 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16042
16043 * nsterm.h (dockMenu): Declare.
16044
16045 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16046 (ns_term_init): Initialize dockMenu.
16047 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16048 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16049 left.
16050
16051 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16052
16053 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16054
16055 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16056
16057 * config.in: Regenerate.
16058
16059 2008-08-04 Seiji Zenitani <zenitani@mac.com>
16060
16061 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16062
16063 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16064
16065 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16066
16067 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16068
16069 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16070
16071 * keyboard.h: Comment an #endif.
16072
16073 * lisp.h (have_menus_p): Adjust comment.
16074
16075 * menu.c (find_and_return_menu_selection): Fix comparison with
16076 client_data.
16077
16078 * nsmenu.m (popup_activated_flag): New variable.
16079 (popup_activated): New function.
16080 (menu-or-popup-active-p): New exported lisp definition.
16081 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16082 when popup done.
16083 (ns_popup_dialog): Set popup_activated_flag.
16084
16085 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16086 version for GNUstep (handled by conditional typedef in nsterm.m).
16087 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16088 in rgb.txt).
16089
16090 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16091
16092 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16093
16094 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16095
16096 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16097 shortcircuit if popup_activated like GTK and X toolkit.
16098
16099 * m/inter386.h: Change DARWIN to DARWIN_OS.
16100
16101 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16102 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16103 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16104 Expand comment on NO_SOCK_SIGIO.
16105
16106 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16107
16108 * nsterm.m (windowDidResize): Remove stopModal call.
16109
16110 2008-08-03 Andreas Schwab <schwab@suse.de>
16111
16112 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16113 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16114
16115 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16116
16117 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16118 Don't use uninitialized pointer variable when using getrlimit.
16119
16120 2008-08-02 Jason Rumney <jasonr@gnu.org>
16121
16122 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16123
16124 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16125
16126 * alloc.c (NSTATICS): Bump to 0x640.
16127
16128 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16129
16130 * lisp.h: Add prototype for directory_files_internal.
16131
16132 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16133 New functions.
16134 (syms_of_process): Defsubr them. Add initializations for various
16135 Q* symbols used in procfs_system_process_attributes.
16136 (procfs_list_system_processes, procfs_system_process_attributes)
16137 [HAVE_PROCFS]: New functions.
16138 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16139 (procfs_get_total_memory): New functions.
16140
16141 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16142
16143 * xfaces.c (Fx_load_color_file): Fix previous change;
16144 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16145
16146 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16147
16148 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16149
16150 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16151
16152 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16153
16154 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16155
16156 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16157
16158 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16159 define NSApplicationDelegateReplySuccess.
16160 (EmacsView -converstationIdentifier): Use long instead of
16161 NSInteger for GNUstep, since it doesn't have NSInteger.
16162
16163 * xmenu.c: Revert last change.
16164
16165 * keyboard.h: Fix last change.
16166
16167 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16168
16169 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16170 on Windows.
16171
16172 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16173
16174 Warning clearing and clean-up in NS port.
16175 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16176 Add prototypes.
16177 * nsgui.h (FACE_DEFAULT): Remove, unused.
16178 (XGCValues): Change colors to unsigned long.
16179 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16180 nsterm.m.
16181 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16182 (ns_list_fonts): Remove, unused.
16183 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16184 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16185 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16186 (nsfont_draw): Compare face colors to 0, not nil.
16187 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16188 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16189 (-addSubmenuWithTitle:): Use NSMenuItem class.
16190 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16191 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16192 (ns_clip_to_row): Make gc arg a BOOL.
16193 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16194 ns_clip_to_row() call.
16195 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16196 used). Cast FRAME_FONT assignments.
16197 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16198 (ns_string_to_lispmod): Change arg to const char.
16199 (ns_term_init): Use NSMenuItem class.
16200 (EmacsApp -openFile:): Move to different section of file.
16201 (EmacsApp -application:openFiles:): Don't return a value, call
16202 -replyToOpenOrPrint:.
16203 (EmacsView -keyDown:): Fix up cast.
16204 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16205 (EmacsView -menuDown:): Cast tag in call to
16206 find_and_call_menu_selection().
16207 (ns_list_fonts): Remove, unused.
16208 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16209 (ns_fontname_to_xlfd): Make static.
16210 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16211 Remove prototypes (now in keyboard.h).
16212 (next_menubar_widget_id): Remove, unused.
16213 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16214 Remove prototypes (now in keyboard.h).
16215 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16216
16217 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16218
16219 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16220 (floatfns.o): Depend on syssignal.h.
16221 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16222
16223 * systty.h: Fix previous change that removed BSD_TERMIOS.
16224 Add comments to #ifdefs.
16225
16226 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16227
16228 * w32fns.c (w32-load-color-file): Remove.
16229 (x-open-connection): Use renamed Fx_load_color_file.
16230 * xfaces.c (x-load-color-file): Add.
16231 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16232 Emacs.clr.
16233 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16234
16235 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16236
16237 * dbusbind.c (Fdbus_call_method_asynchronously)
16238 (Fdbus_method_error_internal): New defuns.
16239 (xd_read_message): Handle also reply messages.
16240 (Vdbus_registered_functions_table): Extend docstring.
16241
16242 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16243
16244 * keyboard.c (gobble_input): Fix previous change.
16245
16246 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16247
16248 * bitmaps/README:
16249 * xfns.c:
16250 * termcap.c:
16251 * term.c:
16252 * syswait.h:
16253 * systty.h:
16254 * systime.h:
16255 * syssignal.h:
16256 * sysdep.c:
16257 * process.h:
16258 * process.c:
16259 * print.c:
16260 * ndir.h:
16261 * lread.c:
16262 * keyboard.c:
16263 * getpagesize.h:
16264 * floatfns.c:
16265 * fileio.c:
16266 * emacs.c:
16267 * doc.c:
16268 * dispnew.c:
16269 * dired.c:
16270 * data.c:
16271 * callproc.c:
16272 * buffer.c:
16273 * README:
16274 * Makefile.in:
16275 * s/template.h:
16276 * s/msdos.h:
16277 * m/vax.h: Remove VMS support.
16278 * s/vms.h:
16279 * vlimit.h:
16280 * uaf.h:
16281 * temacs.opt:
16282 * param.h:
16283 * ioctl.h: Remove file.
16284
16285 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16286
16287 * s/ms-w32.h (MULTI_KBOARD): Remove.
16288 * xterm.c:
16289 * xselect.c:
16290 * xfns.c:
16291 * window.c:
16292 * w32term.c:
16293 * w32fns.c:
16294 * terminal.c:
16295 * termhooks.h:
16296 * term.c:
16297 * sysdep.c:
16298 * keyboard.h:
16299 * keyboard.c:
16300 * frame.h:
16301 * frame.c:
16302 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16303 * config.in: Regenerate.
16304
16305 2008-07-30 Jason Rumney <jasonr@gnu.org>
16306
16307 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16308
16309 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16310 (w32font_open_internal): Get unicode version of textmetrics.
16311 Don't enable or disable glyph indices here.
16312 (w32font_open): Disable use of glyph indices.
16313
16314 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16315
16316 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16317
16318 * minibuf.c (Vread_buffer_function): Doc fix.
16319
16320 2008-07-30 John Paul Wallington <jpw@pobox.com>
16321
16322 * minibuf.c (read_buffer_completion_ignore_case): New var.
16323 (Fread_buffer): Use it.
16324
16325 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16326
16327 * systty.h (sensemode): Remove empty #if. Remove reference to
16328 BSD_TERMIOS, unused.
16329
16330 * sysdep.c: Remove reference to DGUX.
16331 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16332
16333 * config.in: Regenerate.
16334
16335 2008-07-30 Jason Rumney <jasonr@gnu.org>
16336
16337 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16338
16339 2008-07-29 Jason Rumney <jasonr@gnu.org>
16340
16341 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16342 is populated.
16343 (uniscribe_encode_char): Always use uniscribe.
16344 Avoid using context if cache is populated.
16345
16346 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16347
16348 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16349 open menu.
16350
16351 * gtkutil.c (menu_nav_ended): Remove.
16352 (create_menus): Remove signal connect for menu_nav_ended.
16353
16354 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16355
16356 * xdisp.c (redisplay_window): Check return value of
16357 compute_window_start_on_continuation_line before forcing a window
16358 start.
16359
16360 2008-07-28 Jason Rumney <jasonr@gnu.org>
16361
16362 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16363
16364 * w32term.c (w32_enable_unicode_output, cleartype_active):
16365 Remove obsolete display options.
16366 (x_draw_glyph_string_background): Don't use old cleartype_active
16367 workaround.
16368 (w32_initialize): Remove cleartype_active initialization.
16369 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16370
16371 2008-07-28 Andreas Schwab <schwab@suse.de>
16372
16373 * lisp.h (init_weak_hash_tables, syms_of_font)
16374 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16375 (remove_hash_entry): Don't declare.
16376 * eval.c (maybe_call_debugger): Make static and move before use.
16377 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16378 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16379 * xterm.h (x_set_frame_alpha): Declare.
16380
16381 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16382
16383 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16384 (create_menus): Connect selection-done to menu_nav_ended.
16385
16386 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16387
16388 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16389 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16390 parameter with read of 'alpha' one.
16391 (Qns_frame_parameter): Remove.
16392 * nsselect.m (selection-coding-system)
16393 (next-selection-coding-system, Vselection_coding_system)
16394 (Vnext_selection_coding_system): Drop.
16395
16396 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16397
16398 * nsfns.m (do-applescript, do_applescript): Rename to
16399 ns-do-applescript, ns_do_applescript, and move within file.
16400
16401 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16402
16403 Remove support for Mac Carbon.
16404 * mactoolbox.c:
16405 * macterm.h:
16406 * macterm.c:
16407 * macselect.c:
16408 * macmenu.c:
16409 * macgui.h:
16410 * macfns.c:
16411 * mac.c: Remove file.
16412 * s/darwin.h:
16413 * m/intel386.h:
16414 * xfaces.c:
16415 * xdisp.c:
16416 * window.c:
16417 * tparam.c:
16418 * termhooks.h:
16419 * termcap.c:
16420 * term.c:
16421 * syssignal.h:
16422 * sysselect.h:
16423 * sysdep.c:
16424 * process.c:
16425 * lread.c:
16426 * lisp.h:
16427 * keyboard.c:
16428 * image.c:
16429 * fringe.c:
16430 * frame.h:
16431 * frame.c:
16432 * fontset.c:
16433 * font.h:
16434 * font.c:
16435 * fns.c:
16436 * fileio.c:
16437 * emacs.c:
16438 * dispnew.c:
16439 * dispextern.h:
16440 * config.in:
16441 * atimer.c:
16442 * Makefile.in: Remove code for Carbon.
16443
16444 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16445
16446 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16447
16448 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16449
16450 * macterm.h (kCGBitmapByteOrder32Host): New define for
16451 non-universal SDKs.
16452
16453 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16454 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16455
16456 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16457 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16458
16459 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16460
16461 * w32inevt.c: Include dispextern.h.
16462
16463 2008-07-26 Andreas Schwab <schwab@suse.de>
16464
16465 * print.c (print_object): Fix off-by-one in last change.
16466
16467 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
16468
16469 * term.c (syms_of_term): Don't initialize default_orig_pair,
16470 default_set_foreground and default_set_background on Windows.
16471
16472 2008-07-25 Jason Rumney <jasonr@gnu.org>
16473
16474 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16475 ScriptItemize. Clean up return value checking. Remove unused
16476 variables.
16477 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16478 shaping engine.
16479
16480 * w32font.c (w32font_has_char): Handle the case where we can't
16481 determine the script for a character.
16482
16483 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16484
16485 * term.c (syms_of_term): Initialize default_orig_pair,
16486 default_set_foreground, and default_set_background.
16487
16488 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16489 clash (bug#86).
16490 (getloadavg): Callers changed.
16491
16492 * image.c (svg_load_image): Fix last change.
16493 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16494 image size is valid. Use g_object_unref instead of deprecated
16495 rsvg_handle_free to free rsvg handle.
16496 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16497
16498 2008-07-25 Jason Rumney <jasonr@gnu.org>
16499
16500 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16501 surrogates before looking up glyph index.
16502 (w32font_text_extents): Encode as surrogates if falling back to
16503 functions that need UTF-16 wide chars.
16504
16505 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16506 BMP as surrogates before looking up glyph index.
16507
16508 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16509
16510 * image.c (svg_load_image): Check for failure in return value of
16511 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16512
16513 2008-07-25 Jason Rumney <jasonr@gnu.org>
16514
16515 * w32font.c (Fx_select_font): Reverse sense of second arg.
16516
16517 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16518
16519 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16520 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16521
16522 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16523 (PURESIZE): Use it.
16524
16525 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16526
16527 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16528 * m/alpha.h (TEXT_END):
16529 * m/ibmrs6000.h (TEXT_END):
16530 * m/macppc.h (TEXT_END):
16531 * s/darwin.h (TEXT_END):
16532 * s/msdos.h (TEXT_END): Remove, unused.
16533 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16534 * s/cygwin.h: Remove comment.
16535
16536 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16537 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16538 * m/intel386.h (DOT_GLOBAL_START):
16539 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16540 (USG): Remove, file not used on USG platforms.
16541
16542 * Makefile.in (HAVE_X11): Remove empty #else.
16543
16544 2008-07-24 Andreas Schwab <schwab@suse.de>
16545
16546 * fileio.c (Finsert_file_contents): Properly adjust undo list
16547 after format conversion.
16548
16549 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16550
16551 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16552 (menu_nav_ended): Remove.
16553 (create_menus): Remove signal connect for menu_nav_ended.
16554 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16555 create_menus.
16556 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16557
16558 2008-07-23 Jason Rumney <jasonr@gnu.org>
16559
16560 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16561 with opened font.
16562 (w32font_open): Set font type to gdi.
16563
16564 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16565
16566 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16567
16568 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16569 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16570 defines it.
16571 * unexec.c (ADDR_CORRECT): Define unconditionally.
16572
16573 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16574
16575 * unexec.c: Remove code depending on !COFF and USG, the file is
16576 not used for such systems.
16577
16578 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16579 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16580 (LD_SWITCH_SYSTEM_1): Remove, update users.
16581
16582 * s/darwin.h (DATA_END):
16583 * m/intel386.h (DATA_END):
16584 * m/ibmrs6000.h (DATA_END):
16585 * m/alpha.h (DATA_END): Remove, unused.
16586
16587 * config.in: Regenerate.
16588 * s/ms-w32.h (subprocesses): Define unconditionally.
16589 * s/template.h (subprocesses): Update comment.
16590 * s/vms.h (subprocesses):
16591 * s/usg5-4.h (subprocesses):
16592 * s/hpux10-20.h (subprocesses):
16593 * s/gnu-linux.h (subprocesses):
16594 * s/cygwin.h (subprocesses):
16595 * s/bsd-common.h (subprocesses):
16596 * s/aix4-2.h (subprocesses):
16597 * s/darwin.h (subprocesses): Do not define, defined by default now.
16598
16599 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16600 Remove all references.
16601 (temacs): Add GNUstep specific ld flags.
16602
16603 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16604 similarly to what X does.
16605
16606 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16607
16608 * nsfns.m (x-list-fonts): Remove.
16609 (syms_of_nsfns): Drop the x-list-fonts declaration.
16610 * nsterm.m: Get rid of remaining "//" comments.
16611
16612 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
16613
16614 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16615
16616 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16617 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16618 (Fns_own_selection_internal, Fx_disown_selection_internal)
16619 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16620
16621 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16622 ... */' style of docstrings. Doc fixes.
16623
16624 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16625
16626 * terminfo.c (UP, BC, PC): Undo previous change.
16627
16628 * nsfns.m: Rename ns prefixed functions/variables to the
16629 corresponding x versions. Update references.
16630
16631 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16632
16633 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16634
16635 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16636
16637 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16638 Remove forwarding functions.
16639 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16640 non-static.
16641 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16642 non-static.
16643 (ns_frame_parm_handlers): Use the new names.
16644 (syms_of_nsfns): Move to the end of file.
16645
16646 * nsterm.m (syms_of_nsterm): Move to the end of file.
16647
16648 * dispnew.c (init_display): Remove code for X10.
16649
16650 2008-07-22 Jason Rumney <jasonr@gnu.org>
16651
16652 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16653 bare drive.
16654
16655 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16656
16657 * nsterm.m (syms_of_nsterm): Remove debugging println.
16658
16659 2008-07-22 David Reitter <david.reitter@gmail.com>
16660
16661 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16662 Carbon implementation of the same functionality: execute arbitrary
16663 AppleScript code.
16664
16665 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16666
16667 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16668 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16669 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16670 (Fx_display_mm_height, Fx_display_mm_width)
16671 (Fx_display_backing_store, Fx_display_visual_class)
16672 (Fx_display_save_under, Fx_open_connection)
16673 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16674 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16675 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16676 (Fx_display_pixel_width, Fx_display_pixel_height)
16677 (Fx_display_usable_bounds, Fx_display_planes)
16678 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16679 ... */' style of docstrings.
16680
16681 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16682
16683 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16684 on this platform.
16685 (mips):
16686 * m/iris4d.h (mips): Do not define.
16687 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16688
16689 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16690
16691 * image.c:
16692 * nsfns.m:
16693 * nsselect.m:
16694 * nsterm.h:
16695 * nsterm.m: Rename ns prefixed functions/variables to the
16696 corresponding x versions. Update references.
16697
16698 * m/ibms390x.h (NO_REMAP): Do not undefine.
16699
16700 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16701
16702 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
16703
16704 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16705 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16706 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16707 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16708 (Fns_display_mm_height, Fns_display_mm_width)
16709 (Fns_display_backing_store, Fns_display_visual_class)
16710 (Fns_display_save_under, Fns_open_connection)
16711 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16712 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16713 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16714 (Fns_display_pixel_width, Fns_display_pixel_height)
16715 (Fns_display_usable_bounds, Fx_display_planes)
16716 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16717
16718 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16719
16720 * print.c (print_object): Check print_depth before searching for
16721 circularities.
16722
16723 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
16724
16725 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16726 only sprintf.
16727
16728 2008-07-21 Kenichi Handa <handa@m17n.org>
16729
16730 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16731
16732 2008-07-20 Andreas Schwab <schwab@suse.de>
16733
16734 * syntax.c (find_start_pos, find_start_value)
16735 (find_start_value_byte, find_start_begv, find_defun_start)
16736 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16737
16738 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16739
16740 * s/sol2-3.h: Insert contents of s/sol2.h.
16741 (LD_SWITCH_SYSTEM): Remove redundant definition.
16742 * s/sol2.h: Remove, unused.
16743
16744 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16745
16746 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16747
16748 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16749
16750 * Makefile.in (ns_appdir): Fix typo in find command.
16751
16752 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16753
16754 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16755
16756 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16757 added not supported anymore.
16758
16759 * s/usg5-4-2.h (LIBS_SYSTEM):
16760 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16761
16762 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16763 * s/lynxos.h (GETPGRP_NO_ARG):
16764 * s/hpux10-20.h (NO_SIOCTL_H):
16765 * s/gnu.h (GETPGRP_NO_ARG):
16766 * s/gnu-linux.h (NO_SIOCTL_H):
16767 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16768 * s/cygwin.h (GETPGRP_NO_ARG):
16769 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16770 (C_DEBUG_SWITCH): Remove duplicate definition.
16771
16772 * m/ibms390.h: Remove boilerplate comments.
16773
16774 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16775
16776 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16777 (wait_reading_process_output): Remove code for SunOS, platform not
16778 supported anymore. Use SOLARIS2 instead of sun.
16779
16780 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16781
16782 * font.c (font_open_by_name): Under NS, default lface height to zero.
16783 (font_open_for_lface): Under NS, set size based on frame fontsize.
16784 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16785 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16786
16787 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16788
16789 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16790 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16791 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16792 YES/NO.
16793 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16794 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16795 * Makefile.in (clean): Clear out build destination dir.
16796
16797 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16798
16799 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16800 xterm, xselect.
16801 * lisp.h: Remove declaration of hash_remove.
16802 * nsgui.h: Remove redefinitions of hash_remove.
16803 * fns.c (hash_remove): Rename to hash_remove_from_table.
16804
16805 2008-07-19 Seiji Zenitani <zenitani@mac.com>
16806
16807 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16808 strdup() the family UTF8String before modifying it.
16809
16810 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16811
16812 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16813 NS_FACE_BACKGROUND with 0 instead of nil.
16814 * nsfont.m (nsfont_draw): Same.
16815
16816 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
16817
16818 * nsfns.m (ns_set_background_color): Fix crash.
16819
16820 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
16821
16822 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16823
16824 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16825
16826 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16827
16828 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16829
16830 * gtkutil.c: Include <config.h> instead of "config.h".
16831
16832 * lisp.h (Foverlay_buffer): Add EXFUN.
16833
16834 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16835 child process to complete child_setup. Undo 2005-09-21 change.
16836
16837 * s/darwin.h: Mention setsid after vfork.
16838
16839 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16840
16841 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16842 Depend on macgui.h.
16843
16844 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16845 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16846
16847 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16848 and f19.
16849 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16850
16851 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16852 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16853 Remove enumerators.
16854
16855 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16856 Check if FACE_FROM_ID returns NULL.
16857
16858 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16859
16860 * w32inevt.c (change_frame_size): Remove extern declaration.
16861 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16862 change_frame_size.
16863
16864 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16865
16866 * getloadavg.c: Revert last change (2008-07-15).
16867
16868 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16869
16870 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
16871 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
16872 from configure.
16873
16874 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16875
16876 * s/sol2.h:
16877 * s/sol2-4.h: Reorganize conditionals.
16878
16879 * ecrt0.c: Remove code depending on m68000, not used anymore.
16880
16881 * fns.c (hash_remove): Make static.
16882 * lisp.h (hash_remove): Don't prototype.
16883
16884 * m/ibmrs6000.h:
16885 * m/ibms390x.h:
16886 * m/macppc.h: Remove boilerplate comments.
16887
16888 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16889 Solaris, which does not need them.
16890
16891 * m/vax.h: Remove comments about unsupported systems.
16892
16893 * s/darwin.h: Reorganize ifdefs.
16894
16895 2008-07-17 Andreas Schwab <schwab@suse.de>
16896
16897 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16898
16899 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16900
16901 Use SDATA. Follow coding convention of placing operators at
16902 beginning of next line rather than end of previous line, and placing
16903 spaces around infix operators.
16904
16905 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16906 in case it was defined already.
16907 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16908 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16909 ns_default.
16910 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16911 Lisp_Objects.
16912 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16913 (ns_defined_color, ns_color_to_lisp): Declare.
16914 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16915 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16916 it's accepted even with USE_LISP_UNION_TYPE.
16917 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16918 (update_frame_tool_bar): Remove apparently obsolete tests for
16919 non-integerness of f->tool_bar_lines.
16920 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16921 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16922 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16923 (nsfont_open): Don't confuse NULL for Qnil.
16924 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16925 * menu.h (find_and_call_menu_selection):
16926 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16927 (find_and_return_menu_selection): Always return something.
16928 * frame.h: Include dispextern.h for Display_Info.
16929 (display_x_get_resource): Declare.
16930
16931 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16932
16933 * syntax.c: Remove stdio.h include accidentally introduced in
16934 Emacs.app commit.
16935 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16936 NS_IMPL_COCOA.
16937 * keyboard.c (handle_async_input, input_available_signal): Remove
16938 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16939
16940 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16941
16942 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16943 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16944 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16945 Use SDATA.
16946
16947 * keymap.c: Remove all NS-specific code.
16948 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16949 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16950 where_is_preferred_modifier, return a different value depending on how
16951 preferred is the binding.
16952 (where_is_internal): Adjust accordingly.
16953 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16954 Adjust to new preferred_sequence_p.
16955 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16956 * keyboard.c (parse_solitary_modifier): Not static any more.
16957 * keyboard.h (parse_solitary_modifier): Declare.
16958
16959 2008-07-16 Andreas Schwab <schwab@suse.de>
16960
16961 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16962 of easymenu.
16963
16964 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
16965
16966 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16967 that we don't move off the line.
16968
16969 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16970
16971 * keyboard.c (Qsuper): Remove.
16972 (parse_menu_item): Don't call where_is_internal specially for NS.
16973
16974 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16975
16976 * s/gnu-linux.h: Remove boilerplate comments.
16977
16978 * m/alpha.h (__ELF__): Consolidate conditions.
16979
16980 * m/m68k.h (linux): Use GNU_LINUX instead.
16981 Remove boilerplate comments.
16982
16983 * m/intel386.h: Undo refactoring from previous change.
16984 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16985 too, remove dead code.
16986 (linux): Use GNU_LINUX instead.
16987
16988 2008-07-16 Jason Rumney <jasonr@gnu.org>
16989
16990 * w32gui.h: Repeat 26 June changes lost by last change.
16991
16992 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16993
16994 * systty.h: Remove code for Aix on 386, unsupported platform.
16995
16996 * s/ms-w32.h: Remove boilerplate comments.
16997 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16998
16999 * s/gnu-linux.h (TERM): Remove support.
17000 (HAVE_SYSVIPC): Remove, unused.
17001 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17002 for this system.
17003
17004 * process.c: Remove support for IRIS, unused.
17005 Remove support for TERM, not relevant anymore.
17006
17007 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17008 used with the definition.
17009
17010 * s/aix4-2.h (static): Do not undef.
17011
17012 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17013 only used on Aix.
17014 (HAVE_SYSVIPC): Remove, unused.
17015
17016 * m/hp800.h (CANNOT_DUMP): Do not undef.
17017
17018 * m/alpha.h: Fix comment.
17019
17020 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17021 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17022 used by this configuration.
17023 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17024 * unexec.c: Remove code depending on HPUX and
17025 USG_SHARED_LIBRARIES, not used with this file. Remove code
17026 depending on IRIS, unused. Remove if 0-ed code.
17027
17028 * s/template.h: Remove comments about static.
17029
17030 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17031 Remove if 0-ed code.
17032 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17033 were the same as the default.
17034 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17035 Remove boilerplate comments.
17036 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17037 (HAVE_SYSVIPC): Remove, unused.
17038 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17039
17040 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17041 Remove boilerplate comments.
17042 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17043 Remove boilerplate comments.
17044 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17045 Remove boilerplate comments.
17046 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17047
17048 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17049 USG systems which do not use DATA_SEG_BITS.
17050 Refactor code. Remove boilerplate comments.
17051
17052 * m/ibms390.h:
17053 * m/m68k.h:
17054 * s/bsd-common.h:
17055 * s/cygwin.h:
17056 * s/darwin.h:
17057 * s/freebsd.h:
17058 * s/gnu.h:
17059 * s/msdos.h: Remove boilerplate comments.
17060
17061 * m/iris4d.h: Remove boilerplate comments and code for systems that
17062 do not use this file.
17063 (IRIS_4D): Remove, unused.
17064
17065 * m/mips.h: Remove boilerplate comments and code for systems that
17066 do not use this file.
17067 (SIGN_EXTEND_CHAR):
17068 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17069 * unexmips.c: Remove file, unused.
17070
17071 * editfns.c (Fuser_full_name): Replace the only use of
17072 USER_FULL_NAME with its value.
17073 * config.in: Regenerate.
17074
17075 2008-07-16 David Reitter <david.reitter@gmail.com>
17076
17077 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17078 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17079
17080 2008-07-16 Glenn Morris <rgm@gnu.org>
17081
17082 * emacs.c (system-type): Doc fix.
17083
17084 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17085
17086 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17087 If the cache doesn't work, let's fix it, rather than work around it.
17088
17089 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17090
17091 * Makefile.in: Correct additions for nsfont.o in last commit.
17092 * nsfont.m: New file (forgot last commit).
17093
17094 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17095
17096 * callproc.c (set_initial_environment):
17097 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17098 batch-compiling for bootstrap).
17099
17100 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17101 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17102
17103 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17104 CANNOT_DUMP case -- fix crash due to different init order.
17105
17106 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17107
17108 Changes and additions for NeXTstep windowing system (Cocoa and
17109 GNUstep) support.
17110
17111 * Makefile.in:
17112 * config.in: Support defines and build commands for NS port.
17113 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17114 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17115 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17116 windowing.
17117 (struct face): Add synth_ital field.
17118 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17119 (init_display): Initialize Vinitial_window_system to "ns" when so
17120 compiled.
17121 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17122 (display_arg): Use under NS.
17123 (main): Under NS, allocate autorelease pool and handle command line
17124 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17125 (standard_args): Add NS-specific args.
17126 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17127 * font.c (DEFAULT_ENCODING): New variable.
17128 (font_find_for_lface): Use it.
17129 (syms_of_font): Load syms_of_nsfont under NS.
17130 * font.h: Declare nsfont_driver when compiled under NS.
17131 * fontset.c: When compiling under NS, include nsterm.h.
17132 (fontset_from_font): Autoconstruct fontset under NS.
17133 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17134 symbol, document and use it.
17135 (do_switch_frame): When for_deletion under Cocoa, add
17136 Fraise_frame(Qnil).
17137 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17138 (x_get_arg): Allow "yes" and "no" as boolean values.
17139 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17140 Qright under Cocoa.
17141 (focus-follows-mouse): Default to 0 under NS.
17142 * frame.h (enum output_method): Add output_ns.
17143 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17144 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17145 (FRAME_WINDOW_P): NS-specific definition.
17146 * fringe.c (max_used_fringe_bitmap): Make public.
17147 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17148 (getloadavg): Use NeXT code under descendant OS's.
17149 * image.c (includes and header section, x_create_bitmap_from_data)
17150 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17151 (image_background_transparent, x_clear_image_1)
17152 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17153 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17154 (x_to_xcolors, x_from_xcolors, x_disable_image)
17155 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17156 other GUIs, including XPM support using code originally written for
17157 Carbon GUI.
17158 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17159 using NS API.
17160 (image_ascent): Use font metrics macros instead of direct struct field
17161 access.
17162 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17163 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17164 Also, handle NS as GTK for menu bar purposes.
17165 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17166 toolkit where they differ.
17167 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17168 use cachelist, still needed under NS.
17169 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17170 (struct widget_value): Define it here for menu.c.
17171 * keymap.c (includes): Include modifier internals.
17172 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17173 NS.
17174 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17175 support for preferring sequences using certain modifiers, specified by
17176 the FIRSTONLY argument.
17177 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17178 under NS GNUstep implementation.
17179 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17180 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17181 * menu.c: Include nsterm.h under NS.
17182 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17183 (free_menubar_widget_tree_value, update_submenu_strings)
17184 (find_and_call_menu_selection): Treat NS as X and NT.
17185 (find_and_return_menu_selection): New function, used for popup menus.
17186 * nsgui.h:
17187 * nsterm.h:
17188 * nsfns.m:
17189 * nsimage.m:
17190 * nsmenu.m:
17191 * nsselect.m:
17192 * nsterm.m: New files.
17193 * process.c (wait_reading_process_output): Under NS, call ns_select()
17194 instead of plain select().
17195 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17196 beginning of buffer.
17197 * sysselect.h (init_process): Rename when compiling under Cocoa to
17198 avoid name conflict.
17199 * termhooks.h (display_info): Add ns_display_info to union.
17200 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17201 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17202 COCOA environment.
17203 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17204 unexec() signature. (Note, this will dump, but the resulting file
17205 crashes; unexosx is used instead; keeping around for reference and
17206 possible aid in getting dump working under GNUstep.)
17207 * w32gui.h (button_type, widget_value): Remove definitions (now in
17208 keyboard.h).
17209 * window.c: Include nsterm.h when compiling under NS.
17210 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17211 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17212 other GUI windowing systems.
17213 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17214 GTK.
17215 (x_consider_frame_title): Under NS, set icon type and frame
17216 modified-state indicator; use ns_set_name_as_filename() when using
17217 formatted title.
17218 (update_window_cursor): Make public when compiling under NS.
17219 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17220 (hourglass_atimer, Vhourglass_delay
17221 * xfaces.c (header section, init_frame_faces, clear_font_table)
17222 (defined_color, unload_color, x_face_list_fonts)
17223 (prepare_face_for_display): Add NS support parallel to other GUIs.
17224 Emulate GCs like other non-X GUIs.
17225 (split_font_name): Don't lowercase font name under NS.
17226 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17227 under NS.
17228 * s/darwin.h: Add support for compilation under NS.
17229
17230 2008-07-15 Jason Rumney <jasonr@gnu.org>
17231
17232 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17233 (w32_show_hourglass): Rename from show_hourglass.
17234 (w32_hide_hourglass): Rename from hide_hourglass.
17235 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17236 (Vhourglass_delay): Declare extern.
17237 (hourglass_started): Remove.
17238
17239 * xdisp.c (Vhourglass_delay): Remove static.
17240 (hourglass_started, start_hourglass, cancel_hourglass):
17241 Don't include these versions on WINDOWSNT.
17242
17243 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17244
17245 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17246 variables (formerly in xfns.c).
17247 (show_hourglass, hide_hourglass): New prototypes (same).
17248 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17249 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17250 in xfns.c).
17251 (syms_of_xdisp): Declare/initialize display-hourglass,
17252 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17253 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17254 formerly in xfns.c.
17255 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17256 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17257 (start_hourglass, cancel_hourglass): Remove.
17258 (show_hourglass, hide_hourglass): Remove prototypes and static
17259 modifiers.
17260 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17261 hourglass_atimer, hourglass_shown_p declaration/initialization.
17262 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17263 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17264 (start_hourglass, cancel_hourglass): Remove.
17265 (show_hourglass, hide_hourglass): Remove prototypes and static
17266 modifiers.
17267 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17268 hourglass_atimer, hourglass_shown_p declaration/initialization.
17269 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17270 (DEFAULT_HOURGLASS_DELAY): Remove.
17271 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17272 hourglass_shown_p declaration/initialization.
17273
17274 2008-07-14 Jason Rumney <jasonr@gnu.org>
17275
17276 * w32fns.c (w32_get_arg): Remove wrapper function.
17277 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17278 directly.
17279 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17280
17281 2008-07-14 Kenichi Handa <handa@m17n.org>
17282
17283 * xfont.c (xfont_open): Add workaround for X's bug.
17284
17285 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17286
17287 * fontset.c: Include <stdio.h> unconditionally.
17288
17289 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17290
17291 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17292 for filtering.
17293
17294 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17295
17296 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17297
17298 * m/macppc.h:
17299 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17300
17301 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17302 (SPECIAL_EMACS_INT):
17303 * m/ia64.h (SPECIAL_EMACS_INT):
17304 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17305 * s/gnu.h (NLIST_STRUCT):
17306 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17307 * s/gnu-linux.h (LINUX):
17308 * s/msdos.h (HAVE_FACES):
17309 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17310
17311 * systty.h:
17312 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17313 anymore.
17314
17315 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17316
17317 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17318 always defined as int.
17319
17320 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17321 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17322 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17323 * s/freebsd.h (HAVE_WAIT_HEADER):
17324 * s/bsd-common.h (HAVE_UNION_WAIT):
17325 * s/aix4-2.h (HAVE_WAIT_HEADER):
17326 * m/mips.h (HAVE_UNION_WAIT):
17327 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17328 (COFF, static): Do not define, they are undefined later in the file.
17329
17330 * process.c (update_status): Don't use a union.
17331 (status_convert):
17332 (sigchld_handler): Use int instead of WAITTYPE.
17333
17334 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17335
17336 * indent.c (Fvertical_motion): Restore hscroll before moving to
17337 goal column.
17338
17339 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17340
17341 * lisp.h: Remove left over code.
17342
17343 2008-07-11 Andreas Schwab <schwab@suse.de>
17344
17345 * lisp.h: Fix logic in last change.
17346
17347 * menu.h: New file.
17348 * menu.c: Include it.
17349 * xmenu.c: Likewise.
17350 * Makefile.in: Update dependencies.
17351
17352 2008-07-11 Kenichi Handa <handa@m17n.org>
17353
17354 * fontset.c (fontset_from_font): Cancel the previous change.
17355
17356 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17357
17358 * lisp.h:
17359 * w32heap.c:
17360 * emacs.c:
17361 * alloc.c: Replace all references of NO_UNION_TYPE with
17362 USE_LISP_UNION_TYPE.
17363
17364 * m/xtensa.h (NO_UNION_TYPE):
17365 * m/vax.h (NO_UNION_TYPE):
17366 * m/template.h (NO_UNION_TYPE):
17367 * m/sparc.h (NO_UNION_TYPE):
17368 * m/mips.h (NO_UNION_TYPE):
17369 * m/macppc.h (NO_UNION_TYPE):
17370 * m/m68k.h (NO_UNION_TYPE):
17371 * m/iris4d.h (NO_UNION_TYPE):
17372 * m/intel386.h (NO_UNION_TYPE):
17373 * m/ibms390x.h (NO_UNION_TYPE):
17374 * m/ibms390.h (NO_UNION_TYPE):
17375 * m/ibmrs6000.h (NO_UNION_TYPE):
17376 * m/ia64.h (NO_UNION_TYPE):
17377 * m/hp800.h (NO_UNION_TYPE):
17378 * m/arm.h (NO_UNION_TYPE):
17379 * m/amdx86-64.h (NO_UNION_TYPE):
17380 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17381 defining it the same.
17382
17383 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17384
17385 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17386
17387 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17388
17389 * fileio.c:
17390 * sysdep.c:
17391 * systty.h:
17392 * m/ibmrs6000.h:
17393 * m/iris4d.h:
17394 * s/aix4-2.h:
17395 * s/freebsd.h:
17396 * s/gnu-linux.h:
17397 * s/hpux10-20.h:
17398 * s/hpux11.h:
17399 * s/netbsd.h:
17400 * s/sol2-3.h:
17401 * s/sol2-4.h:
17402 * s/sol2.h:
17403 * s/usg5-4.h:
17404 * s/vms.h: Remove references to unused variables.
17405
17406 2008-07-10 Andreas Schwab <schwab@suse.de>
17407
17408 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17409 pattern before matching the generic family.
17410
17411 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17412
17413 * unexec.c:
17414 * s/vms.h:
17415 * s/usg5-4-2.h:
17416 * s/sol2-5.h:
17417 * s/freebsd.h:
17418 * s/darwin.h: Remove dead code.
17419
17420 * m/template.h:
17421 * m/sparc.h:
17422 * m/mips.h:
17423 * m/m68k.h:
17424 * m/iris4d.h:
17425 * m/intel386.h:
17426 * m/ibms390x.h:
17427 * m/ibms390.h:
17428 * m/ia64.h:
17429 * m/hp800.h:
17430 * m/arm.h:
17431 * m/amdx86-64.h: Remove dead code and references to unused
17432 and compiler defined symbols.
17433
17434 * unexmips.c:
17435 * unexelf.c: Remove references to desupported systems.
17436
17437 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17438
17439 * m/powermac.h: Remove boilerplate comments.
17440 (NO_REMAP): Remove unused definition.
17441
17442 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17443 define them.
17444
17445 2008-07-10 Kenichi Handa <handa@m17n.org>
17446
17447 * xfont.c (xfont_open): Log the reason of failure.
17448
17449 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17450
17451 * fontset.c (fontset_get_font_group):
17452 * font.c (font_check_otf): Specify argument types.
17453
17454 2008-07-09 Kenichi Handa <handa@m17n.org>
17455
17456 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17457 non-ASCII char is found.
17458
17459 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17460 (reorder_font_vector): Change the arg preferred_family to font.
17461 Prefer the spec matching with font.
17462 (fontset_get_font_group): New function.
17463 (fontset_find_font): Change the format of an element of a realized
17464 fontset. Use fontset_get_font_group.
17465 (fontset_font): Try the current fontset, the default fontset, the
17466 fallbacks of the current fontset, and the fallbacks of the default
17467 fontset in this order.
17468 (face_for_char): Delete the shortcut to use the current font.
17469 (fontset_from_font): Don't set fonts for Latin in the fontset.
17470
17471 * font.h (font_make_object, font_match_p): Adjust prototypes.
17472
17473 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17474
17475 * font.c (font_make_object): New arg entity and pixelsize.
17476 (font_check_otf_features, font_check_otf): New functions.
17477 (font_match_p): Check :lang, :script, and :otf properties.
17478
17479 * xfont.c (xfont_open): Adjust it for the change of
17480 font_make_object.
17481 (xfont_text_extents): Fix initial setting of metrics.
17482
17483 * ftfont.c (struct ftfont_info): New member index, delete member
17484 fc_charset_idx. Make the member order compatible with struct
17485 xftfont_info.
17486 (fc_charset_table): Change charset names to registry names.
17487 (ftfont_pattern_entity): Delete the args registry and
17488 fc_charset_idx. Change the value of :font-entity property
17489 to (FONTNAME . INDEX). Always set :registry property to
17490 `iso10646-1'.
17491 (struct ftfont_cache_data): New struct.
17492 (ftfont_lookup_cache): New arg for_face.
17493 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17494 (ftfont_driver): Set the member otf_capability.
17495 (ftfont_get_charset): Adjust it for the change of
17496 fc_charset_table.
17497 (OTF_TAG_SYM): New macro.
17498 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17499 for the change of fc_charset_table.
17500 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17501 ftfont_pattern_entity. Add FC_INDEX to objset.
17502 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17503 and ftfont_pattern_entity.
17504 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17505 font_make_object, struct ftfont_info.
17506 (ftfont_has_char): Use ftfont_get_fc_charset.
17507 (ftfont_otf_features, ftfont_otf_capability): New functions.
17508 (ftfont_shape): Use ftfont_get_otf.
17509 (ftfont_text_extents): Fix initial setting of metrics.
17510
17511 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17512 member order compatible with struct ftfont_info.
17513 (xftfont_open): Add FC_CHARSET to the pattern.
17514 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
17515 properties if appropriate.
17516 (xftfont_close): Unlock the face.
17517 (xftfont_anchor_point, xftfont_shape): Deleted.
17518 (syms_of_xftfont): Don't set members anchor_point and shape of
17519 xftfont_driver.
17520
17521 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17522 font_make_object.
17523
17524 * w32font.c (w32font_open): Adjust it for the change of
17525 font_make_object.
17526 (w32font_open_internal): Don't set properties of font_object here.
17527
17528 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
17529
17530 * macfns.c (x_create_tip_frame):
17531 * w32fns.c (x_create_tip_frame):
17532 * xfns.c (x_create_tip_frame): Pass parameter argument to
17533 face-set-after-frame-default.
17534
17535 * xfaces.c (Finternal_merge_in_global_face): Save merged
17536 attributes for the default face back into the face vector.
17537
17538 2008-07-08 Andreas Schwab <schwab@suse.de>
17539
17540 * fontset.h: Declare fontset_from_font. Don't declare
17541 new_fontset_from_font and fontset_from_font_name.
17542 * xterm.c: Include "fontset.h".
17543 * Makefile.in (xterm.o): Update dependencies.
17544
17545 2008-07-08 Glenn Morris <rgm@gnu.org>
17546
17547 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17548 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17549
17550 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
17551
17552 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17553 (x_set_frame_parameters): Don't bind it.
17554
17555 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
17556
17557 * w32fns.c (map_w32_filename): Declare extern.
17558
17559 2008-07-07 Jason Rumney <jasonr@gnu.org>
17560
17561 * w32term.c (WS_EX_LAYERED): Define if not already.
17562
17563 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
17564
17565 * xfaces.c (set_font_frame_param): Don't try to set the font
17566 parameter if it is still unspecified in the lface.
17567
17568 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17569
17570 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17571 face if it didn't already exist.
17572
17573 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17574
17575 2008-07-05 Andreas Schwab <schwab@suse.de>
17576
17577 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17578
17579 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17580
17581 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17582 word-wrapping.
17583 (IT_DISPLAYING_WHITESPACE): New macro.
17584 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17585 when word-wrapping. Simplify word-wrapping logic. Use correct
17586 pixel positions when saving copies of the iterator.
17587 (display_line): Use proper wrap point if the last character on a
17588 line was preceded by whitespace.
17589
17590 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17591
17592 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17593
17594 2008-07-04 Kenichi Handa <handa@m17n.org>
17595
17596 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17597
17598 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17599
17600 2008-07-02 Jason Rumney <jasonr@gnu.org>
17601
17602 * xfns.c (syms_of_xfns): Only define x-select-font when both
17603 HAVE_FREETYPE and USE_GTK.
17604
17605 * xdisp.c (next_element_from_display_vector): Move assignment out
17606 of if statement.
17607
17608 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17609
17610 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17611
17612 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17613 (syms_of_fileio): Initialize and export them.
17614 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17615
17616 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17617 (Fsystem_move_file_to_trash): New function.
17618 (syms_of_w32fns): Export it to lisp.
17619
17620 2008-07-01 Jason Rumney <jasonr@gnu.org>
17621
17622 * w32font.c (w32font_text_extents): Don't count overhang as part
17623 of width.
17624
17625 2008-06-30 Miles Bader <miles@gnu.org>
17626
17627 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17628 Add `avoid_cursor_p' field.
17629
17630 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17631 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17632 (append_glyph, append_composite_glyph, produce_image_glyph)
17633 (append_stretch_glyph): Initialize avoid_cursor_p.
17634 (get_it_property): Rename from `get_line_height_property'.
17635 (x_produce_glyphs): Use get_it_property.
17636 (handle_line_prefix, push_display_prop): New functions.
17637 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17638 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17639 New variables.
17640 (syms_of_xdisp): Initialize them.
17641
17642 2008-06-30 Kenichi Handa <handa@m17n.org>
17643
17644 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17645 XftDefaultSubstitute (they are called in XftFontMatch).
17646 (xftfont_open): Fix args to ftfont_font_format.
17647
17648 * ftfont.c (fc_charset_table): New member lang.
17649 (ftfont_resolve_generic_family): New arg pattern.
17650 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
17651 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17652 (ftfont_open): Fix args to ftfont_font_format.
17653 (ftfont_font_format): New arg filename.
17654
17655 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
17656
17657 * xfaces.c (Finternal_merge_in_global_face): If default face was
17658 modified, realize it again. Update the font face attribute.
17659
17660 2008-06-29 Jason Rumney <jasonr@gnu.org>
17661
17662 * w32term.c (x_set_frame_alpha): Fix logic.
17663
17664 2008-06-29 Kenichi Handa <handa@m17n.org>
17665
17666 * fontset.c (Finternal_char_font): Return font-object instead of
17667 font-name.
17668
17669 * composite.c (get_composition_id): Fix the width calculation for TAB.
17670
17671 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * indent.c (Fvertical_motion): Properly handle float column arg.
17674
17675 2008-06-28 Jason Rumney <jasonr@gnu.org>
17676
17677 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17678 (pfnSetLayeredWindowAttributes): New function pointer.
17679 (w32_initialize): Initialize it when supported.
17680 (x_set_frame_alpha): New function.
17681
17682 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17683 (w32_frame_parm_handlers): Set alpha handler.
17684
17685 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17686
17687 2008-06-27 Jason Rumney <jasonr@gnu.org>
17688
17689 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17690 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17691 (w32_to_x_charset, x_to_w32_charset)
17692 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17693 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17694 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17695 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17696 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17697 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17698 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17699 (Qw32_charset_unicode): Remove.
17700 (syms_of_w32fns): Update for above changes.
17701
17702 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17703 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17704 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17705 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17706 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17707 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17708 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17709 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17710 (syms_of_w32font): Update for above changes.
17711
17712 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17713
17714 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17715 removed #if.
17716 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17717
17718 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17719 Eli Zaretskii <eliz@gnu.org>
17720
17721 * makefile.w32-in (LOCAL_FLAGS):
17722 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17723
17724 * sysdep.c (_spawnlp, _getpid):
17725 Declare with explicit _cdecl instead of _CRTAPI1.
17726
17727 * editfns.c (Fget_internal_run_time):
17728 Check for WINDOWSNT with #ifdef, not #if.
17729
17730 2008-06-26 Jason Rumney <jasonr@gnu.org>
17731
17732 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17733
17734 * w32term.c (x_draw_glyph_string_foreground)
17735 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17736 Use FONT_HANDLE macro.
17737 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17738
17739 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17740 (uniscribe_encode_char): Use FONT_HANDLE macro.
17741
17742 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17743 (w32font_text_extents): Use precast w32_font.
17744 (w32font_close): Free cached metrics.
17745 (w32font_open_internal): Allocate space for name on stack.
17746
17747 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
17748
17749 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17750
17751 2008-06-26 Jason Rumney <jasonr@gnu.org>
17752
17753 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17754 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17755
17756 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17757
17758 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17759
17760 2008-06-26 Jason Rumney <jasonr@gnu.org>
17761
17762 * w32bdf.c, w32bdf.h: Remove obsolete files.
17763
17764 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17765
17766 * w32gui.h: Don't include w32bdf.h.
17767 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17768 Remove obsolete font support.
17769
17770 * w32font.h (struct w32font_info): Remove compat_w32_font.
17771 Add hfont member.
17772 (FONT_COMPAT): Remove obsolete macro.
17773
17774 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17775 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17776 (w32font_open_internal): Remove compat code. Set new hfont member.
17777 (Fx_select_font): Use new hfont member.
17778
17779 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17780 (uniscribe_encode_char): Use new hfont member.
17781
17782 * w32term.c (x_draw_glyph_string_foreground)
17783 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17784 (x_draw_glyph_string): Use metrics in w32font_info.
17785
17786 2008-06-26 Kenichi Handa <handa@m17n.org>
17787
17788 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17789
17790 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17791
17792 * unexnext.c:
17793 * m/ews4800.h:
17794 * m/hp9000s300.h:
17795 * m/ibm370aix.h:
17796 * m/mips-siemens.h:
17797 * m/ncr386.h:
17798 * m/next.h:
17799 * m/pmax.h:
17800 * m/powerpcle.h:
17801 * m/tandem-s2.h:
17802 * s/386bsd.h:
17803 * s/bsd386.h:
17804 * s/bsd4-1.h:
17805 * s/bsd4-2.h:
17806 * s/bsdos2-1.h:
17807 * s/bsdos2.h:
17808 * s/bsdos3.h:
17809 * s/bsdos4.h:
17810 * s/nextstep.h:
17811 * s/ultrix4-3.h:
17812 * s/usg5-0.h:
17813 * s/usg5-2-2.h:
17814 * s/usg5-2.h:
17815 * s/usg5-4-3.h:
17816 * s/ux4800.h:
17817 * s/uxpds.h:
17818 * s/uxpv.h: Remove support for obsolete systems.
17819 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
17820 Remove, insert contents in s/hpux10-20.h.
17821 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17822 Remove, insert contents in s/aix4-2.h.
17823 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17824 * s/bsd4-3.h: Rename to ...
17825 * s/bsd-common.h: ... this.
17826 * data.c:
17827 * doc.c:
17828 * ecrt0.c:
17829 * emacs.c:
17830 * fileio.c:
17831 * floatfns.c:
17832 * keyboard.c:
17833 * mem-limits.h:
17834 * print.c:
17835 * process.c:
17836 * sysdep.c:
17837 * syssignal.h:
17838 * systty.h:
17839 * syswait.h:
17840 * term.c:
17841 * unexec.c:
17842 * unexelf.c:
17843 * unexhp9k800.c:
17844 * m/hp800.h:
17845 * m/ibmrs6000.h:
17846 * m/mips.h:
17847 * m/vax.h:
17848 * s/darwin.h:
17849 * s/freebsd.h:
17850 * s/gnu.h:
17851 * s/ms-w32.h:
17852 * s/msdos.h:
17853 * s/netbsd.h:
17854 * s/template.h: Remove references to obsolete variables.
17855
17856 * Makefile.in: Add dependencies for all unexec files.
17857 (admindir): Remove unused variable.
17858 (UNEXEC_SRC): Remove references.
17859
17860 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
17861
17862 * xfns.c (x_default_font_parameter): If Xft is available, first
17863 try Monospace-12 for the default font.
17864
17865 2008-06-25 Jason Rumney <jasonr@gnu.org>
17866
17867 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17868
17869 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17870
17871 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17872
17873 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17874
17875 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
17876
17877 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17878 <scroll-conservatively>: Fix typo in docstring.
17879
17880 * xselect.c (Fx_send_client_event): Doc fix.
17881
17882 2008-06-25 Kenichi Handa <handa@m17n.org>
17883
17884 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17885
17886 * font.c (font_parse_fcname): Remove unused variables.
17887 (font_sort_entites): Delete the arg SPEC. Caller changed.
17888 Fix for the case of ! best_only.
17889 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17890
17891 * lisp.h (Fstring_to_unibyte): EXFUN it.
17892
17893 * character.h (str_to_unibyte): Extern it.
17894
17895 * character.c (str_to_unibyte): New function.
17896
17897 * fns.c (Fstring_to_unibyte): New function.
17898 (syms_of_fns): Defsubr it.
17899
17900 2008-06-24 Kenichi Handa <handa@m17n.org>
17901
17902 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17903 DPI too.
17904 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17905
17906 2008-06-24 Andreas Schwab <schwab@suse.de>
17907
17908 * Makefile.in (${lispsource}loaddefs.el): Rename from
17909 ../lisp/loaddefs.el.
17910 (bootstrap-clean): Do what distclean does but don't remove
17911 Makefile.
17912 (distclean): Depend on bootstrap-clean and remove Makefile.
17913
17914 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
17915
17916 * buffer.h (struct buffer): New member word_wrap.
17917
17918 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17919 word-wrap.
17920 (init_buffer_once): Initialize them.
17921
17922 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17923 line_wrap enum possessing three possible values.
17924
17925 * termopts.h: Replace truncate_partial_width_windows with
17926 Vtruncate_partial_width_windows.
17927
17928 * dispnew.c (direct_output_for_insert): Avoid direct output when
17929 inserting a space with word wrap on.
17930
17931 * indent.c (compute_motion): Obey integer values of
17932 truncate-partial-width-windows.
17933
17934 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17935 replacing truncate_partial_width_windows.
17936 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17937 truncate only if the window width is below that integer.
17938 (start_display, resize_mini_window, produce_stretch_glyph)
17939 (display_string, move_it_in_display_line_to): Use line_wrap.
17940 (back_to_previous_visible_line_start, reseat_1):
17941 Reset string_from_display_prop_p.
17942 (display_line): Extend default face to end of line when wrapping.
17943
17944 2008-06-24 Kim F. Storm <storm@cua.dk>
17945
17946 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17947 to wrap continued lines at word boundaries.
17948
17949 2008-06-24 Jason Rumney <jasonr@gnu.org>
17950
17951 * font.c (Ffont_face_attributes): Multiply pixel size before point
17952 conversion to avoid multiplying rounding error.
17953
17954 2008-06-23 Jason Rumney <jasonr@gnu.org>
17955
17956 * w32term.c (x_draw_glyph_string_background)
17957 (x_draw_glyph_string): Remove old bdf font code.
17958
17959 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17960
17961 2008-06-22 Kenichi Handa <handa@m17n.org>
17962
17963 * font.c (font_find_for_lface): Try the adstyle specified in
17964 the property of LFACE_FONT of LFACE (if any).
17965
17966 2008-06-21 Seiji Zenitani <zenitani@mac.com>
17967 Ryo Yoshitake <ryo@shiftmode.net>
17968
17969 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17970
17971 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17972
17973 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17974 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17975 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17976 (witness-emacs): Remove.
17977 (lisp, shortlisp): Move loaddefs.el earlier.
17978 (mostlyclean): Forget about witness-emacs.
17979
17980 2008-06-22 Glenn Morris <rgm@gnu.org>
17981
17982 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17983 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17984
17985 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * Makefile.in (PRECOMP): Remove.
17988 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17989 (witness-emacs): Run `compile-first'.
17990 (.el.elc): Use the new compile-onefile target.
17991
17992 2008-06-21 Kenichi Handa <handa@m17n.org>
17993
17994 * xftfont.c (xftfont_open): Handle QCembolden only when
17995 FC_EMBOLDEN is defined.
17996
17997 2008-06-21 Andreas Schwab <schwab@suse.de>
17998
17999 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18000 (.el.elc): Likewise.
18001
18002 2008-06-21 Miles Bader <miles@gnu.org>
18003
18004 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18005 build dir, not the lisp source dir.
18006
18007 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18008
18009 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18010 (bootstrapclean): Remove.
18011 (.el.elc): New rule.
18012 (PRECOMP): New var.
18013 (../lisp/subdirs.el): Remove.
18014 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18015 (witness-emacs): New target.
18016 (mostlyclean): Remove witness-emacs as well.
18017 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18018 Add witness-emacs dependency.
18019
18020 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
18021
18022 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18023 defined by the font.
18024
18025 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18026
18027 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18028 (bootstrap-clean): New target that keeps TAGS around.
18029 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18030 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18031
18032 2008-06-20 Jason Rumney <jasonr@gnu.org>
18033
18034 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18035 Remove obsolete font code.
18036
18037 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18038 to determine language support.
18039
18040 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18041
18042 * sysdep.c (cfsetspeed): New fun extracted from the code.
18043 (cfmakeraw): Move before first use.
18044
18045 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18046
18047 * sysdep.c (cfmakeraw): Provide fallback implementation.
18048 (serial_configure): Provide fallback implementation of cfsetspeed.
18049
18050 2008-06-20 Kenichi Handa <handa@m17n.org>
18051
18052 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18053 the pattern.
18054
18055 * fontset.c (fontset_from_font): Copy font_spec before changing
18056 the elements.
18057
18058 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18059
18060 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18061
18062 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18063 for explicit `font' parameters.
18064
18065 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18066
18067 2008-06-19 Kenichi Handa <handa@m17n.org>
18068
18069 * frame.c: Include <ctype.h>.
18070 (x_set_font_backend): Allow spacing characters in the X resource
18071 for FontBackend.
18072
18073 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18074
18075 * w32fns.c, xfns.c (Qfont_param): New var.
18076 (syms_of_w32fns): Initialize it.
18077 (x_default_font_parameter): Record explicit `font' into
18078 `font-parameter'.
18079
18080 2008-06-18 Kenichi Handa <handa@m17n.org>
18081
18082 * font.c (font_parse_xlfd): Fix previous change.
18083 (font_parse_fcname): Don't use :fc-unknown-spec.
18084 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18085 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18086 (font_add_log): Prepend the driver name to the resulting fonts.
18087
18088 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18089 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18090 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18091
18092 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18093 (QCembolden): New variables.
18094 (syms_of_xftfont): DEFSYM them.
18095 (xftfont_open): Call XftFontMatch. Don't trust the result of
18096 XftTextExtents8 if the pixel_size is less than 5.
18097
18098 2008-06-18 Andreas Schwab <schwab@suse.de>
18099
18100 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18101 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18102
18103 2008-06-18 Jason Rumney <jasonr@gnu.org>
18104
18105 * w32font.c (w32font_list, w32font_match): Add logging.
18106
18107 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18108
18109 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18110
18111 * font.c (font_parse_fcname): Store divider characters for
18112 unknown-spec list. For known key symbols, intern using correct
18113 symbol name.
18114
18115 2008-06-17 Kenichi Handa <handa@m17n.org>
18116
18117 * xfaces.c (realize_default_face): If the frame is not on window
18118 system, set the fontset of face to nil.
18119
18120 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18121
18122 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18123
18124 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18125
18126 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18127 (build_font_name_from_vector): Delete externs.
18128
18129 * xfaces.c (struct font_name): Don't declare.
18130
18131 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18132
18133 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18134
18135 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18136
18137 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18138
18139 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18140
18141 * font.c (Ffont_spec): Fix usage in docstring.
18142 (Ffont_face_attributes): Doc fix.
18143
18144 2008-06-16 Andreas Schwab <schwab@suse.de>
18145
18146 * font.c (Ffont_face_attributes): Fix definition.
18147
18148 2008-06-16 Jason Rumney <jasonr@gnu.org>
18149
18150 * font.h (font_style_symbolic_from_value): Remove.
18151
18152 * font.c (font_style_symbolic_from_value): Remove.
18153 (font_style_symbolic): Revert to pre 2008-06-13 version.
18154
18155 * w32font.c (w32_to_fc_weight): New function.
18156 (w32font_full_name, logfont_to_fcname): Use it.
18157
18158 2008-06-16 Kenichi Handa <handa@m17n.org>
18159
18160 * font.c (font_check_object): Delete it.
18161 (font_clear_cache): Check if a font-object is alive.
18162 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18163 font-object to nil.
18164 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18165 (font_at): Don't call font_check_object.
18166 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18167
18168 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18169
18170 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18171
18172 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18173
18174 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18175
18176 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18177
18178 * font.c (font_parse_fcname): Only one decimal point.
18179 (font_unparse_fcname): Handle data in family and foundry indices
18180 as symbols, not strings.
18181 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18182
18183 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18184
18185 * font.h (font_unparse_gtkname): Add prototype.
18186
18187 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18188
18189 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18190
18191 2008-06-15 Andreas Schwab <schwab@suse.de>
18192
18193 * font.c (font_update_drivers): Fix crash when no drivers match.
18194
18195 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18196
18197 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18198 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18199
18200 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18201
18202 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18203
18204 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18205
18206 * process.c (Fserial_process_configure, Fprocess_send_eof):
18207 Use EQ to compare Lisp_Objects.
18208
18209 2008-06-13 Jason Rumney <jasonr@gnu.org>
18210
18211 * w32fns.c (Fw32_select_font): Remove old font API function.
18212
18213 * w32font.c (logfont_to_fcname): New function.
18214 (Fx_select_font): New font dialog function compatible with
18215 GTK/fontconfig version.
18216
18217 * font.c (font_style_symbolic_from_value): New function.
18218 (font_style_symbolic): Use it.
18219
18220 * font.h (font_style_symbolic_from_value): Declare new function.
18221
18222 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18223
18224 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18225 <font-width-table>: Fix typos in docstrings.
18226
18227 2008-06-13 Daniel Engeler <engeler@gmail.com>
18228
18229 These changes add serial port access.
18230 * process.c: Add HAVE_SERIAL.
18231 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18232 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18233 (list_processes_1, select_wrapper, Fstop_process)
18234 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18235 (status_notify): Modify to handle serial processes.
18236 [HAVE_SERIAL] (Fserial_process_configure)
18237 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18238 New functions.
18239 * process.h (struct Lisp_Process): Add `type'.
18240 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18241 New functions.
18242 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18243 serial ports.
18244 (serial_open, serial_configure): New functions.
18245 * w32.h: Add FILE_SERIAL.
18246 (struct _child_process): Add ovl_read, ovl_write.
18247
18248 2008-06-13 Kenichi Handa <handa@m17n.org>
18249
18250 * dispextern.h (enum lface_attribute_index): New member
18251 LFACE_FOUNDRY_INDEX.
18252
18253 * font.c (font_score): Delete arg alternate_families. Check only
18254 weight, slant, width, and size. Ignore the difference of alias
18255 style symbols.
18256 (font_sort_entites): Adjust for the above change. Reflect the
18257 order of font-driver to scores.
18258 (font_list_entities): Don't check alternate_familes here.
18259 (font_clear_prop): Handle foundry.
18260 (font_update_lface): Don't parse "foundry-family" form here.
18261 Handle FONT_FOUNDRY_INDEX.
18262 (font_find_for_lface): Likewise. Handle alternate families here.
18263 If registry is nil, try iso8859-1 and ascii-0.
18264 (font_open_for_lface): Pay attention to size in ENTITY.
18265 (font_open_by_name): Simplify by calling font_load_for_lface.
18266 (free_font_driver_list): Delete it.
18267 (font_update_drivers): Preserve the order of backends.
18268 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18269 of font_score and font_sort_entites.
18270 (font_update_sort_order): Likewise.
18271
18272 * xfaces.c (LFACE_FOUNDRY): New macro.
18273 (check_lface_attrs): Check foundry.
18274 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18275 (merge_face_vectors): Check foundry.
18276 (merge_face_ref): Likewise.
18277 (Finternal_set_lisp_face_attribute): Likewise.
18278 (x_update_menu_appearance): Likewise.
18279 (Finternal_get_lisp_face_attribute): Likewise.
18280 (lface_hash): Likewise.
18281 (lface_same_font_attributes_p): Likewise.
18282 (x_supports_face_attributes_p): Likewise.
18283 (tty_supports_face_attributes_p): Likewise.
18284 (Finternal_set_alternative_font_family_alist): Intern strings.
18285 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18286 (realize_default_face): Set LFACE_FOUNDRY (lface).
18287
18288 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18289 font-driver at first.
18290
18291 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18292
18293 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18294
18295 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18296
18297 2008-06-12 Jim Meyering <meyering@redhat.com>
18298
18299 Make unexec_free handle NULL the same way free does.
18300 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18301
18302 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18303
18304 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18305 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18306 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18307 (WEAK_ALIAS): Simplify.
18308 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18309 when searching a unibyte buffer.
18310
18311 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18312
18313 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18314
18315 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18316
18317 * w32font.c: Include ctype.h.
18318
18319 2008-06-11 Jason Rumney <jasonr@gnu.org>
18320
18321 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18322 misreported as space.
18323 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18324 as aliases for registry iso10646-1.
18325
18326 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * buffer.c (clone_per_buffer_values): Skip `name'.
18329
18330 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18331
18332 * font.c (font_parse_fcname): Fix last change; accept decimal
18333 points in font size.
18334
18335 2008-06-10 Jason Rumney <jasonr@gnu.org>
18336
18337 * w32uniscribe.c (add_opentype_font_name_to_list):
18338 Skip non unicode fonts.
18339
18340 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18341
18342 * xfns.c (Fx_font_dialog): New function.
18343
18344 * gtkutil.c (xg_dialog_response_cb): Rename from
18345 xg_file_response_callback.
18346 (pop_down_dialog): Rename from pop_down_file_dialog.
18347 (xg_get_file_name): Callers changed.
18348 (xg_get_font_name): New function.
18349
18350 * gtkutil.h (xg_get_font_name): Insert prototype.
18351
18352 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18353
18354 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18355 x_underline_minimum_display_offset.
18356 (syms_of_xdisp): Declare it here rather than in xterm.c.
18357 * dispextern.h (underline_minimum_offset): Declare it.
18358 * w32term.c (x_draw_glyph_string): Use it.
18359 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18360 (syms_of_xterm): Don't declare it any more.
18361 (x_draw_glyph_string): Adjust to the new name.
18362
18363 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18364
18365 * xterm.c (x_underline_minimum_display_offset): New var.
18366 (x_draw_glyph_string): Use it.
18367 (syms_of_xterm): Declare it.
18368
18369 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18370
18371 * font.c (font_parse_fcname): Accept GTK-style font names too.
18372
18373 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18374
18375 * dired.c (file_name_completion): Don't return t if the match is exact
18376 but with different capitalization.
18377 * minibuf.c (Ftry_completion): Simplify.
18378
18379 * window.c (Vwindow_point_insertion_type): New var.
18380 (set_window_buffer): Use it.
18381 (syms_of_window): Init and export it to Lisp.
18382
18383 2008-06-10 Kenichi Handa <handa@m17n.org>
18384
18385 * font.h (font_intern_prop): Prototype adjusted.
18386
18387 * font.c (font_intern_prop): New arg force_symbol.
18388 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18389 Adjust for the change of font_intern_prop.
18390
18391 * ftfont.c (ftfont_pattern_entity):
18392 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18393 (w32_registry):
18394 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18395 the change of font_intern_prop.
18396
18397 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
18398
18399 * w32menu.c (digest_single_submenu): Declare extern.
18400
18401 2008-06-09 Jason Rumney <jasonr@gnu.org>
18402
18403 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18404
18405 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18406 (parse_single_submenu): Remove.
18407 (digest_single_submenu): Remove.
18408 (syms_of_w32menu): Don't initialise variables that have moved
18409 to menu.c.
18410 (set_frame_menubar): Sync with version in xmenu.c.
18411 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18412
18413 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18414 Make static again.
18415
18416 2008-06-09 Jason Rumney <jasonr@gnu.org>
18417
18418 Changes to w32 files related to the move of common menu code
18419 to menu.c on 2008-06-08 by Chong Yidong.
18420
18421 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18422 defs to w32gui.h.
18423 (single_keymap_panes, push_menu_item, push_menu_pane):
18424 Make globally visible.
18425
18426 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18427 (local_free, malloc_widget_value, free_widget_value)
18428 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18429 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18430 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18431 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18432 (menu_items, menu_items_allocated, menu_items_used)
18433 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18434 (init_menu_items, finish_menu_items, discard_menu_items)
18435 (grow_menu_items, push_submenu_start, push_submenu_end)
18436 (push_left_right_boundary, push_menu_pane, push_menu_item)
18437 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18438 (free_menubar_widget_tree_value, parse_single_submenu)
18439 (update_submenu_strings): Remove functions.
18440 (xmalloc_widget_value): Remove and declare extern.
18441
18442 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18443 (OBJ1): Build it.
18444
18445 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18446 (local_heap, local_alloc, local_free, malloc_widget_value)
18447 (free_widget_value): Define here.
18448
18449 2008-06-09 Kenichi Handa <handa@m17n.org>
18450
18451 * font.h (Qascii_0): Extern it.
18452
18453 * font.c (Qascii_0): New variable.
18454 (syms_of_font): DEFSYM it.
18455 (font_open_by_name): If the registry "iso8859-1" fails, try also
18456 "ascii-0".
18457
18458 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18459
18460 2008-06-08 Kenichi Handa <handa@m17n.org>
18461
18462 * .gdbinit (xfont): New command.
18463
18464 2008-06-08 Andreas Schwab <schwab@suse.de>
18465
18466 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18467 * Makefile.in (menu.o): Update dependencies.
18468
18469 * Makefile.in (obj): Always add menu.o.
18470 * emacs.c (main): Always call syms_of_menu.
18471 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18472
18473 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
18474
18475 * Makefile.in: Compile menu.c.
18476
18477 * lisp.h: Declare syms_of_menu.
18478
18479 * emacs.c (main): Call syms_of_menu.
18480
18481 * keyboard.h: Relocate platform-independent menu definitions from
18482 xmenu.c.
18483
18484 * menu.c: New file. Relocate platform-independent menu
18485 definitions from xmenu.c. Suggested by Adrian Robert.
18486
18487 * xmenu.c: Remove platform-independent menu definitions.
18488 (menu_items, menu_items_inuse, menu_items_allocated)
18489 (menu_items_used, menu_items_n_panes)
18490 (menu_items_submenu_depth): Move to keyboard.h.
18491 (init_menu_items, finish_menu_items, unuse_menu_items)
18492 (discard_menu_items, restore_menu_items, save_menu_items)
18493 (grow_menu_items, push_submenu_start, push_submenu_end)
18494 (push_left_right_boundary, push_menu_pane, push_menu_item)
18495 (keymap_panes, single_keymap_panes, single_menu_item)
18496 (list_of_panes, list_of_items, find_and_call_menu_selection)
18497 (xmalloc_widget_value, free_menubar_widget_value_tree)
18498 (parse_single_submenu, digest_single_submenu)
18499 (update_submenu_strings): Move to menu.c.
18500
18501 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18502
18503 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18504
18505 2008-06-06 Miles Bader <miles@gnu.org>
18506
18507 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18508 face, not frame default.
18509
18510 2008-06-05 Martin Rudalics <rudalics@gmx.at>
18511
18512 * window.c (pop_up_windows, pop_up_frames)
18513 (display_buffer_reuse_frames, Vpop_up_frame_function)
18514 (Vdisplay_buffer_function, Veven_window_heights)
18515 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18516 (Vspecial_display_function, Vsame_window_buffer_names)
18517 (Vsame_window_regexps, split_height_threshold)
18518 (Vsplit_window_preferred_function): Move those vars to window.el.
18519 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18520 (Fdisplay_buffer): Move those functions to window.el.
18521 (syms_of_window): Remove corresponding declarations.
18522 (display_buffer): New function.
18523 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18524 * dispnew.c (Flast_nonminibuf_frame): New function.
18525 * buffer.c (Fpop_to_buffer): Move to window.el.
18526
18527 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18528
18529 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18530
18531 2008-06-05 Kenichi Handa <handa@m17n.org>
18532
18533 * coding.c (detect_coding): Fix previous change.
18534 (detect_coding_system): Likewise.
18535
18536 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18537
18538 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18539
18540 * keymap.c (Vminibuffer_local_filename_must_match_map):
18541 Rename from Vminibuffer_local_must_match_filename_map.
18542 (syms_of_keymap):
18543 * minibuf.c (Fcompleting_read): Adjust accordingly.
18544 * commands.h: Rename declaration as well.
18545
18546 2008-06-05 Kenichi Handa <handa@m17n.org>
18547
18548 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18549 family name.
18550 (Ffont_put): Likewise.
18551
18552 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18553 current font-spec.
18554
18555 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18556 is unspecified.
18557
18558 * xfaces.c (realize_x_face): If the font-related face attributes
18559 are the same as those of default face, realize a new fontset from
18560 default->fontset.
18561 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18562
18563 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18564
18565 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18566 (move_it_in_display_line): New wrapper.
18567
18568 * window.c (window_scroll_pixel_based_preserve_x)
18569 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18570 (window_scroll_pixel_based, window_scroll_line_based):
18571 Use them to preserve column positions.
18572 (syms_of_window): Initialize them.
18573
18574 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18575 (HPOS . VPOS) pair.
18576
18577 * dispextern.h (move_it_in_display_line): Declare.
18578
18579 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
18580
18581 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18582 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18583 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18584
18585 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
18586
18587 * window.c (Fset_window_parameter): Doc fix.
18588 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18589
18590 2008-06-04 Joakim Verona <joakim@verona.se>
18591
18592 * window.h (struct window): Add new member window_parameters.
18593
18594 * window.c (Fwindow_parameters, Fwindow_parameter)
18595 (Fset_window_parameter): New defuns.
18596 (syms_of_window): Defsubr the new defuns.
18597 (make_window): Initialize window_parameters to nil.
18598
18599 2008-06-04 John Paul Wallington <jpw@pobox.com>
18600
18601 * eval.c (Fdefmacro): Doc fix.
18602
18603 2008-06-04 Kenichi Handa <handa@m17n.org>
18604
18605 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18606 Be sure to call setup_coding_system when we find a proper coding system.
18607 (detect_coding_system): Fix handling of coding->head_ascii.
18608
18609 2008-06-03 Andreas Schwab <schwab@suse.de>
18610
18611 * font.c (font_prop_validate_spacing): Fix last change.
18612
18613 2008-06-03 Kenichi Handa <handa@m17n.org>
18614
18615 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18616 (font_parse_fcname): Fix handling of unknown key.
18617
18618 * xfont.c (xfont_list): Try an alias.
18619
18620 * charset.c (char_charset): Return NULL if the arg charset_list is
18621 specified and C doesn't belong to any of them.
18622
18623 2008-06-02 Chip Coldwell <coldwell@redhat.com>
18624
18625 * font.c (font_pixel_size): Don't take cdr of an integer.
18626
18627 2008-06-02 Jim Meyering <meyering@redhat.com>
18628
18629 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18630 * alloc.c (xfree): Return right away for a NULL arg.
18631 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18632 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18633 * mac.c (create_apple_event_from_event_ref): Likewise.
18634 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18635 Likewise.
18636 * doprnt.c (doprnt1): Likewise.
18637 * frame.c (frame): Likewise.
18638 * keyboard.c (wipe_kboard): Likewise.
18639 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18640 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18641 * term.c (tty_default_color_capabilities, maybe_fatal)
18642 (delete_tty): Likewise.
18643 * w16select.c (string): Likewise.
18644 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18645 * w32bdf.c (w32_free_bdf_font): Likewise.
18646 * w32fns.c (w32_unload_font): Likewise.
18647 * w32font.c (w32font_close): Likewise.
18648 * window.c (size_window): Likewise.
18649 * xselect.c (receive_incremental_selection): Likewise.
18650 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18651 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18652 * w32.c (stat): Likewise.
18653
18654 Remove useless if-before-free tests.
18655 * editfns.c (Fset_time_zone_rule): Likewise.
18656 * lread.c (nosuffix): Likewise.
18657 * ralloc.c (get_bloc): Likewise.
18658 * regex.c (reg_free): Likewise.
18659 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18660 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18661 * xsmfns.c (smc_save_yourself_CB): Likewise.
18662
18663 2008-06-02 Kenichi Handa <handa@m17n.org>
18664
18665 * font.c (font_find_for_lface): Handle float font size.
18666 (font_open_for_lface): Likewise.
18667
18668 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18669 comparing the properties.
18670
18671 2008-06-01 Jason Rumney <jasonr@gnu.org>
18672
18673 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18674 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18675 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18676 Don't add empty script list.
18677 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18678
18679 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18680
18681 * Makefile.in (dot, dotdot): Remove, update users.
18682 ".." has been used elsewhere in the file for a long time.
18683 (LIBXT_STATIC): Remove conditional based on unused variable.
18684
18685 2008-06-01 Miles Bader <miles@gnu.org>
18686
18687 * xfaces.c (Vface_remapping_alist): New variable.
18688 (syms_of_xfaces): Initialize it.
18689 (enum named_merge_point_kind): New type.
18690 (struct named_merge_point): Add `named_merge_point_kind' field.
18691 (push_named_merge_point): Make cycle detection respect different
18692 named-merge-point kinds.
18693 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18694 Remove face-name alias resolution.
18695 (lface_from_face_name): New definition using
18696 `lface_from_face_name_no_resolve'.
18697 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18698 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18699 (get_lface_attributes): New definition that layers face-remapping on
18700 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18701 (lookup_basic_face): New function.
18702 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18703 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18704 `get_lface_attributes'.
18705 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18706 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18707 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18708
18709 * xdisp.c (init_iterator): Pass base_face_id through
18710 `lookup_basic_face' when we actually use it as a face-id.
18711 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18712 DEFAULT_FACE_ID.
18713
18714 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18715 lookup the initial face-id.
18716
18717 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18718
18719 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
18720
18721 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18722 (Fremove_text_properties): Fix typos in docstrings.
18723
18724 2008-05-31 Kenichi Handa <handa@m17n.org>
18725
18726 * font.c (font_list_entities): Fix the car part of data to be
18727 stored in the cache.
18728
18729 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18730
18731 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18732
18733 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18734 Add a `test' argument so another predicate than `equal' can be used.
18735 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18736 (map_char_table): Remove unused vars `c' and `i'.
18737 * lisp.h (Foptimize_char_table): Adjust declaration.
18738 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18739
18740 2008-05-30 Kenichi Handa <handa@m17n.org>
18741
18742 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18743 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18744 defined.
18745
18746 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18747
18748 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18749 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18750 frame-local settings for the same variable.
18751
18752 2008-05-30 Kenichi Handa <handa@m17n.org>
18753
18754 * fontset.c (Ffont_info): Move to font.c.
18755 (syms_of_fontset): Delete defsubr of Sfont_info.
18756
18757 * font.c (font_style_to_value, font_score): Delete casting of the
18758 args to xstcasecmp.
18759 (register_font_driver): Increment num_font_drivers only when
18760 registering the driver globally.
18761 (Ffont_info): Move from fontset.c. Handle a font object too.
18762 (syms_of_font): Defsubr Sfont_info.
18763
18764 2008-05-29 Kenichi Handa <handa@m17n.org>
18765
18766 * coding.h (enum define_coding_utf8_arg_index): New enum.
18767 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18768 coding_attr_utf_bom.
18769 (enum utf_bom_type): Rename from utf_16_bom_type.
18770 (struct utf_16_spec): Adjust for the above change.
18771 (struct coding_system): Add utf_8_bom in `spec' union.
18772
18773 * coding.c (CODING_UTF_8_BOM): New macro.
18774 (enum coding_category): Delete coding_category_utf_8, add
18775 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18776 coding_category_utf_8_sig.
18777 (CATEGORY_MASK_UTF_8): Delete it.
18778 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18779 (CATEGORY_MASK_UTF_8_SIG): New macros.
18780 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18781 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18782 CATEGORY_MASK_UTF_8_SIG.
18783 (CATEGORY_MASK_UTF_8): New macro.
18784 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18785 (detect_coding_utf_8): Check BOM.
18786 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18787 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18788 (encode_coding_utf_16): Likewise.
18789 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18790 (detect_coding, detect_coding_system): Handle utf-8-auto.
18791 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18792 (syms_of_coding): Fix setting up of Vcoding_category_table.
18793
18794 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18795
18796 * process.c (Faccept_process_output): If `millisec' is non-nil,
18797 `seconds' default to 0.
18798 (wait_reading_process_output): Also return non-nil if we read output
18799 from a non-running process.
18800
18801 2008-05-29 Jason Rumney <jasonr@gnu.org>
18802
18803 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18804 `raster' specified.
18805 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18806 in the uniscribe backend, but disallow any font that has no
18807 unicode subrange support.
18808
18809 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
18810
18811 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18812 Fix typos in docstrings.
18813
18814 2008-05-29 Kenichi Handa <handa@m17n.org>
18815
18816 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18817 (Fx_family_fonts): Set frame correctly.
18818
18819 2008-05-28 Jason Rumney <jasonr@gnu.org>
18820
18821 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18822
18823 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18824
18825 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18826 calling build_annotations.
18827
18828 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
18829
18830 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18831 (Fencode_coding_string):
18832 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18833 <latin-extra-code-table>: Fix typos in docstrings.
18834 (syms_of_coding) <coding-system-alist>: Doc fix.
18835 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18836
18837 2008-05-28 Kenichi Handa <handa@m17n.org>
18838
18839 * fontset.c (Ffont_info): Don't call font_close_object.
18840
18841 * font.c (font_parse_family_registry): Use Ffont_put to validate
18842 foundry and family.
18843 (font_delete_unmatched): Don't check spacing.
18844 (font_list_entities): Add spacing to the spec to list fonts.
18845
18846 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18847 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18848
18849 * coding.c (encode_coding_raw_text): Fix previous change.
18850 (encode_coding_object): When the dst_object is a buffer and is
18851 different from src_object, move gap to PT.
18852
18853 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18854
18855 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18856
18857 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18858
18859 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18860 all branches. Compute it differently.
18861
18862 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18863
18864 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
18865
18866 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18867 into "else if () ... else ...".
18868
18869 2008-05-27 Jason Rumney <jasonr@gnu.org>
18870
18871 * w32font.c (w32font_open_internal): Determine if glyph indices
18872 are likely to work here.
18873
18874 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18875
18876 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18877 draw overlap glyphs with appropriate highlighting.
18878
18879 2008-05-27 Kenichi Handa <handa@m17n.org>
18880
18881 * xfont.c (xfont_open): Fix calculation of font->average_width.
18882
18883 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18884
18885 * casefiddle.c (casify_object): Try to guess better whether the
18886 argument is a byte or a char.
18887
18888 2008-05-26 Andreas Schwab <schwab@suse.de>
18889
18890 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18891 Always send multiples of format size.
18892
18893 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18894
18895 2008-05-26 Jason Rumney <jasonr@gnu.org>
18896
18897 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18898 (compute_metrics): Don't set failure if we just cleared the cache.
18899 (w32_weight_table): Remove unused variable.
18900 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18901 backwards compatibility.
18902
18903 2008-05-25 Kenichi Handa <handa@m17n.org>
18904
18905 * w32term.c (x_draw_glyph_string):
18906 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18907
18908 * xfaces.c: Delete unused function prototypes.
18909 (xstrlwr, font_frame): Delete them.
18910 (clear_face_cache): Delete unused variable.
18911
18912 * xftfont.c (xftfont_open): Delete unused variable.
18913 If underline_thickness is not 1, adjust underline_position.
18914
18915 * ftxfont.c (ftxfont_open): Delete unused variable.
18916
18917 * fontset.c (face_for_char): Optimize for the case of no charset
18918 property.
18919
18920 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18921 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18922 (otf_open, font_otf_capability, generate_otf_features)
18923 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18924 Comment out by surrounding "#if 0" and "#endif" for the moment.
18925 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18926 (syms_of_font): Codes for accessing above commented out.
18927
18928 2008-05-24 Eli Zaretskii <eliz@gnu.org>
18929
18930 * w32proc.c: Include dispextern.h.
18931
18932 * w32.c: Include dispextern.h.
18933
18934 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
18935
18936 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18937 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18938 Fix typos in docstrings.
18939
18940 2008-05-23 Jason Rumney <jasonr@gnu.org>
18941
18942 * xsmfns.c: Remove includes that are already included by config.h.
18943
18944 2008-05-23 Kenichi Handa <handa@m17n.org>
18945
18946 * charset.c (Qemacs, charset_emacs): New variables.
18947 (char_charset): Fix for non-Unicode characters.
18948 (syms_of_charset): Define charset_emacs.
18949
18950 * w32term.c (x_draw_glyph_string): Be sure to update
18951 s->underline_thickness and s->underline_position. Be sure to draw
18952 underline within the current line area.
18953
18954 * xterm.c (x_draw_glyph_string): Be sure to update
18955 s->underline_thickness and s->underline_position. Be sure to draw
18956 underline within the current line area.
18957
18958 * fontset.c: Delete unused variables and add casting for char *
18959 throughout the file.
18960 (fontset_font): Try the fallback fonts of the current fontset
18961 before consulting the default fontset.
18962
18963 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18964
18965 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18966
18967 2008-05-22 Jason Rumney <jasonr@gnu.org>
18968
18969 * font.c: Don't include strings.h.
18970
18971 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18972
18973 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18974 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18975 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18976 to call xstrcasecmp.
18977
18978 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18979
18980 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18981
18982 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18983
18984 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18985
18986 2008-05-22 Kenichi Handa <handa@m17n.org>
18987
18988 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18989
18990 * font.c (font_prop_validate_style): Adjust for the format
18991 change of font_style_table.
18992
18993 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18994 two args.
18995
18996 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18997 two args.
18998
18999 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19000
19001 * minibuf.c (keys_of_minibuf): Delete.
19002 * lisp.h (keys_of_minibuf): Delete.
19003 * emacs.c (main): Don't call keys_of_minibuf.
19004
19005 2008-05-22 Kenichi Handa <handa@m17n.org>
19006
19007 * ftfont.c (ftfont_resolve_generic_family): Rename from
19008 ftfont_list_generic_family. Return a single family for each
19009 generic family.
19010 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19011 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19012 Call font_add_log.
19013 (ftfont_match): Call font_add_log.
19014
19015 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19016 (FONT_DEBUG): Define it.
19017 (font_add_log): Extern it.
19018 (font_assert): Rename from xassert.
19019
19020 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19021 (xfont_list_family): Call font_add_log.
19022 (xfont_match): Likewise.
19023 (memq_no_quit): Delete.
19024
19025 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19026 call of Ffont_xlfd_name.
19027
19028 * xfaces.c (struct table_entry, slant_table, weight_table)
19029 (swidth_table): Move to font.c.
19030
19031 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19032 xassert are changed to font_assert. Delete many unused variables.
19033 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19034 New variables.
19035 (struct table_entry): Move from xfaces.c and modified.
19036 (weight_table, slant_table, width_table): Move from xfaces.c and
19037 contents adjusted for the change of struct table_entry.
19038 (font_style_to_value, font_style_symbolic): Adjust for the
19039 format change of font_style_table.
19040 (font_parse_family_registry): Don't overwrite existing foundry and
19041 family of font_spec.
19042 (font_score): Fix calculation of diff for sizes.
19043 (font_sort_entites): Call font_add_log.
19044 (font_delete_unmatched): Return a newly created list.
19045 (font_list_entities): Fix previous change. Call font_add_log.
19046 (font_matching_entity, font_open_entity, font_close_entity):
19047 Call font_add_log.
19048 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19049 (Finternal_set_font_style_table): Delete.
19050 (BUILD_STYLE_TABLE): New macro.
19051 (build_style_table): New function.
19052 (Vfont_log, font_log_env_checked): New variables.
19053 (font_add_log): New function.
19054 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19055 Declare Lisp variables "font-weight-table", "font-slant-table",
19056 "font-width-table", and "font-log". Initialize font_style_table.
19057
19058 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19059
19060 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19061
19062 2008-05-21 Seiji Zenitani <zenitani@mac.com>
19063 Ryo Yoshitake <ryo@shiftmode.net>
19064
19065 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19066 (Vframe_alpha_lower_limit): New variable.
19067 (x_set_alpha): New function.
19068
19069 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19070
19071 * xfns.c (x-create-frame, Qalpha):
19072 Initialize the frame parameter `alpha'.
19073 * xterm.c (OPAQUE, OPACITY): New.
19074 (x_set_frame_alpha): New function.
19075 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19076
19077 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19078 * w32fns.c (w32_frame_parm_handlers): Likewise.
19079
19080 2008-05-20 Jason Rumney <jasonr@gnu.org>
19081
19082 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19083 truetype fonts to opentype list.
19084
19085 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
19086
19087 * fontset.c (Ffontset_info): Doc fix.
19088 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19089 <ignore-relative-composition>: Fix typos in docstrings.
19090
19091 * font.c (syms-of-font) <font-encoding-alist>:
19092 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19093 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19094 (Ffont_otf_alternates): Doc fixes.
19095
19096 2008-05-20 Kenichi Handa <handa@m17n.org>
19097
19098 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19099 font.h through out the file.
19100 (FONT_DRIVERS): Rename from FONTOBJ.
19101 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19102 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19103
19104 * emacs.c (main): Call syms_of_font unconditionally.
19105
19106 * font.h (find_font_encoding): Extern it.
19107
19108 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19109 fontset.c.
19110 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19111 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19112 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19113 only when HAVE_WINDOW_SYSTEM is defined.
19114 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19115 when HAVE_WINDOW_SYSTEM is defined.
19116
19117 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19118 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19119
19120 * xfaces.c: Include font.h unconditionally.
19121 (merge_face_ref, merge_face_vectors)
19122 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19123
19124 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19127 indirect_variable.
19128 * eval.c (lisp_indirect_variable): New fun.
19129 (Fuser_variable_p): Use it.
19130
19131 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19132
19133 * lisp.h (indirect_variable):
19134 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19135 Use Lisp_Symbol pointers rather than Lisp_Object.
19136 Adjust callers.
19137 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19138 To this end, change calling-convention.
19139
19140 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19141 if some non-hidden buffers are selected by string&pred.
19142
19143 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19144
19145 * process.c (wait_reading_process_output): Always check status
19146 when in batch mode.
19147
19148 2008-05-19 Kenichi Handa <handa@m17n.org>
19149
19150 * font.c (font_list_entities): Fix handling of cache.
19151 (font_matching_entity): Likewise.
19152
19153 * ftfont.c (cs_iso8859_1): Delete.
19154 (ft_face_cache): New variable.
19155 (struct ftfont_info): New member fc_charset_idx.
19156 (ftfont_build_basic_charsets): Delete.
19157 (fc_charset_table): New variable.
19158 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19159 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19160 Callers changed.
19161 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19162 (ftfont_spec_pattern): New argument fc_charset_idx.
19163 Check registry more rigidly. Change callers.
19164 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19165 change of :font-entity property of the font.
19166
19167 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19168 property of the font.
19169
19170 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19171
19172 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19173 (Funencodable_char_position, Fcheck_coding_systems_region)
19174 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19175 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19176 (Ffind_operation_coding_system, Fset_coding_system_priority)
19177 (Fcoding_system_eol_type): Doc fixes.
19178
19179 2008-05-17 Glenn Morris <rgm@gnu.org>
19180
19181 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19182
19183 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19184
19185 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19186 and st_gid.
19187
19188 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19189 HAVE_WINDOW_SYSTEM is not defined.
19190
19191 * xfaces.c (merge_face_ref, merge_face_vectors)
19192 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19193 HAVE_WINDOW_SYSTEM is defined.
19194 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19195
19196 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19199
19200 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19201
19202 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19203
19204 2008-05-15 Kenichi Handa <handa@m17n.org>
19205
19206 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19207 preference.
19208
19209 2008-05-15 Glenn Morris <rgm@gnu.org>
19210
19211 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19212
19213 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19214
19215 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19216 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19217
19218 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19219
19220 2008-05-15 Kenichi Handa <handa@m17n.org>
19221
19222 * ftfont.c (ftfont_list): Downcase family name to check generic
19223 families.
19224
19225 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19226 font-spec for QCfont value.
19227
19228 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19229 buffer. Check the return value of it.
19230
19231 2008-05-14 Jason Rumney <jasonr@gnu.org>
19232
19233 * w32term.c (w32_get_glyph_overhangs): Remove.
19234 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19235
19236 2008-05-14 Kenichi Handa <handa@m17n.org>
19237
19238 * font.c (font_prop_validate): Make nil a valid value.
19239 (font_clear_cache): Check if the cached vector of entities is nil
19240 or not.
19241
19242 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19243
19244 * emacs.c (main_thread): Conditionalize on
19245 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19246 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19247
19248 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19249 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19250 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19251
19252 2008-05-14 Kenichi Handa <handa@m17n.org>
19253
19254 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19255 has no corresponding coding system.
19256
19257 2008-05-14 Jason Rumney <jasonr@gnu.org>
19258
19259 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19260
19261 * w32font.h (w32font_open_internal): Update declaration.
19262
19263 * w32font.c (w32font_open_internal): Change last argument from
19264 w32font_info struct to font object. Fill in font object from
19265 font_entity. Get Outline metrics if possible. Use them to
19266 calculate underline position and thickness. Use xlfd name as name
19267 property. Don't set codepage.
19268 (w32font_open): Pass font_object to w32font_open_internal. Don't
19269 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19270 (w32font_draw): Use s->font.
19271 (clear_cached_metrics): Don't clear non-existent blocks.
19272
19273 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19274 font was not found.
19275 (x_draw_glyph_string): Use underline position and thickness from font.
19276
19277 * w32uniscribe.c (uniscribe_open): Pass font_object to
19278 w32font_open_internal.
19279
19280 2008-05-14 Kenichi Handa <handa@m17n.org>
19281
19282 These changes are to delete all legacy font-handling codes, and
19283 make Emacs use only font-backends.
19284
19285 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19286 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19287
19288 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19289
19290 * charset.h (Vcharset_non_preferred_head)
19291 (Vcurrent_iso639_language): Extern them.
19292
19293 * charset.c (Vcharset_non_preferred_head): New variable.
19294 (Vcurrent_iso639_language): New variable.
19295 (syms_of_charset): Declare it as a Lisp variable.
19296 (char_charset): Don't check non preferred charsets. As a last
19297 resort, return charset_unicode.
19298 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19299
19300 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19301 conditionals. Don't check enable_font_backend. Delete all codes
19302 used only when USE_FONT_BACKEND is not defined.
19303
19304 * dispextern.h (struct glyph_string): Change type of `font' to
19305 `struct font *'.
19306 (struct glyph_string): New member underline_position and
19307 underline_thickness.
19308 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19309 (struct face): Change type of `font' to `struct font *'.
19310 Remove members `font_name', `font_info_id'.
19311 (per_char_metric, encode_char): Delete externs.
19312 (calc_pixel_width_or_height): Adjust the prototype.
19313
19314 * emacs.c (enable_font_backend): Delete extern.
19315 (main): Don't set enable_font_backend. Don't check the command
19316 line argument "-disable-font-backend".
19317
19318 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19319 (enum font_property_index): New members FONT_DPI_INDEX,
19320 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19321 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19322 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19323 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19324 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19325 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19326 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19327 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19328 (struct font_spec, struct font_entity): New structs.
19329 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19330 (struct font): Many members from old "struct font_info" moved to
19331 here. Members font and entity deleted.
19332 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19333 the new font-related objects.
19334 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19335 (CHECK_FONT_GET_OBJECT): Likewise.
19336 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19337 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19338 (struct font_driver): New members case_sensitive anc check.
19339 Type of the member list and open changed.
19340 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19341 (font_symbolic_width, font_find_object, font_get_spec)
19342 (font_set_lface_from_name): Delete extern.
19343 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19344
19345 * font.c: Include <strings.h>.
19346 (enable_font_backend): Delete it.
19347 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19348 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19349 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19350 (null_string): Delete it.
19351 (null_vector): Make it static.
19352 (font_family_alist): Delete it.
19353 (Qnormal): Extern it.
19354 (QCextra, QClanguage): Delete it.
19355 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19356 (font_make_spec, font_make_entity, font_make_object)
19357 (font_intern_prop): Rename from intern_downcase. Don't downcase
19358 the string. Callers changed.
19359 (font_pixel_size): Adjust for the format change of font-related
19360 objects.
19361 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19362 (font_style_to_value, font_style_symbolic): New function.
19363 (build_font_family_alist): Delete it.
19364 (font_registry_charsets): Use Fassoc_string instead of
19365 assq_no_quit.
19366 (font_prop_validate_symbol): Don't return null_string.
19367 (font_prop_validate_style): Adjust for the change of
19368 style-related values in a font vector.
19369 (font_property_table): Delete entries for QClanguage and
19370 QCantialias, add entries for QCavgwidth.
19371 (get_font_prop_index): Delete the 2nd argument FROM.
19372 (font_prop_validate): Arguments changed.
19373 (font_put_extra): Adjust for the change of font-related objects.
19374 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19375 (font_parse_fcname, font_unparse_fcname)
19376 (font_prepare_composition): Likewise.
19377 (font_parse_family_registry): Rename from font_merge_old_spec.
19378 (otf_open): Delete the 1st arg entity.
19379 (font_otf_capability): Adjust for the above change.
19380 (font_score): New arg alternate_families. Adjusted for the change
19381 of font-related objects.
19382 (font_sort_entites): New arg best_only.
19383 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19384 Delete them.
19385 (font_match_p): Check alternate families.
19386 (font_find_object): Delete it.
19387 (font_check_object): New function.
19388 (font_clear_cache): Adjust for the change of font-related objects.
19389 (font_delete_unmatched): New arg.
19390 (font_list_entities): Call font_driver->list with a spec that
19391 doesn't specify style-related properties.
19392 (font_matching_entity): Arguments changed. Caller changed.
19393 (font_open_entity): Adjust for the change of font-related objects.
19394 (font_close_object, font_has_char, font_encode_char)
19395 (font_get_name, font_get_spec): Likewise.
19396 (font_spec_from_name, font_clear_prop, font_update_lface):
19397 New functions.
19398 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19399 (font_prepare_for_face, font_done_for_face, font_open_by_name)
19400 (font_at): Adjust for the change of font-related objects.
19401 (font_range): New function.
19402 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
19403 (Ffont_xlfd_name): Adjust for the change of font-related objects.
19404 (Fcopy_font_spec, Fmerge_font_spec): New function.
19405 (Ffont_family_list): Rename from list-families.
19406 (Finternal_set_font_style_table): Arguments changed.
19407 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
19408 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
19409 change of font-related objects.
19410 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19411
19412 * fontset.h (struct font_info): Delete it. Most members go to
19413 struct font.
19414 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
19415 (enum FONT_SPEC_INDEX): Delete it.
19416 (font_info, list_fonts_func, load_font_func, query_font_func)
19417 (set_frame_fontset_func, find_ccl_program_func)
19418 (get_font_repertory_func, new_fontset_from_font_name):
19419 Delete externs.
19420 (fontset_from_font_name): Extern it.
19421 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19422 (FONT_INFO_FROM_FACE): Deleted.
19423 (face_for_font): Adjust prototype.
19424
19425 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19426 conditionals. Don't check enable_font_backend. Delete all codes
19427 used only when USE_FONT_BACKEND is not defined.
19428 (get_font_info_func, list_font_func, load_font_func)
19429 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19430 (get_font_repertory_func): Delete them.
19431 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19432 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19433 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19434 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19435 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19436 (fontset_compare_rfontdef): New function.
19437 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19438 rfont-defs by qsort. Adjusted for the change of font-group vector.
19439 (load_font_get_repertory): Deleted.
19440 (fontset_find_font): Use new macros to ref/set elements of
19441 font-def and rfont-def.
19442 (fontset_font): Fix the timing of remembering that no font for C.
19443 (free_face_fontset): Do nothing if the face has no fontset.
19444 (face_suitable_for_char_p): Use new macros to ref/set elements of
19445 rfont-def.
19446 (face_for_char): Likewise. Call face_for_char with font_object.
19447 (fs_load_font): Delete. Delete #pragma surrounding it.
19448 (fs_query_fontset): Use strcasecmp instead of strcmp.
19449 (generate_ascii_font_name): Adjust for the format change of
19450 font-spec.
19451 (Fset_fontset_font): Likewise. Use new macros to set elements of
19452 font-def.
19453 (Fnew_fontset): Use font_unparse_xlfd to generate
19454 FONTSET_ASCII (fontset).
19455 (new_fontset_from_font_name): Deleted.
19456 (fontset_from_font): Rename from new_fontset_from_font. Check if
19457 a fontset is already created for the font. FIx updating of
19458 Vfontset_alias_alist.
19459 (fontset_ascii_font): Deleted.
19460 (Ffont_info): Adjust for the format change of font-spec.
19461 (Finternal_char_font): Likewise.
19462 (Ffontset_info): Likewise.
19463 (syms_of_fontset): Don't check load_font_func.
19464
19465 * fns.c (internal_equal): Handle PREV_FONT.
19466
19467 * frame.h: Delete USE_FONT_BACKEND conditional.
19468
19469 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19470 conditionals. Don't check enable_font_backend. Delete all codes
19471 used only when USE_FONT_BACKEND is not defined.
19472 (x_set_font): Call x_new_font, not x_new_fontset2.
19473 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19474 already set for the frame.
19475
19476 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19477 Make a font-entity by font_make_entity. Use font_intern_prop instead
19478 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19479 font property. If a font is scalable, set avgwidth property to 0.
19480 Set font-entity property by font_put_extra.
19481 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
19482 (ffont_driver): Adjust for the change of struct font_driver.
19483 (ftfont_spec_pattern): New function.
19484 (ftfont_list): Return a list, not vector.
19485 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19486 (ftfont_list_family): Don't downcase names.
19487 (ftfont_free_entity): Deleted.
19488 (ftfont_open): Return a font-object. Adjusted for the change of
19489 struct font. Get underline_thickness and underline_position from
19490 font property. Don't update dpyinfo->smallest_font_height and
19491 dpyinfo->smallest_char_width.
19492 (ftfont_close): Don't free `struct font'.
19493 (ftfont_has_char): Adjust for the format change of font-entity.
19494 (ftfont_encode_char, ftfont_text_extents): Likewise.
19495
19496 * ftxfont.c (ftxfont_list): Return a list, not vector.
19497 (ftxfont_open): Return a font-object. Adjusted for the change of
19498 struct font. Get underline_thickness and underline_position from
19499 font property. Don't update dpyinfo->smallest_font_height and
19500 dpyinfo->smallest_char_width.
19501 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
19502 (ftxfont_draw): Adjust for the change of struct font.
19503
19504 * image.c (image_ascent): Don't include "charset.h".
19505 Include "character.h" and "font.h".
19506
19507 * lisp.h (enum pvec_type): New member PREV_FONT.
19508 (Fassoc_string): EXFUN it.
19509
19510 * print.c: Include font.h.
19511 (print_object): Handle font-related objects.
19512
19513 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19514 conditionals. Don't check enable_font_backend. Delete all codes
19515 used only when USE_FONT_BACKEND is not defined.
19516 (handle_auto_composed_prop): Do nothing if it->f is not on a
19517 window system. Check how many following characters can be
19518 displayed by the same font.
19519 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19520 'struct font *'.
19521 (get_char_face_and_encoding): Assign the whole encoding task to
19522 the `encode-char' method of a font driver.
19523 (fill_composite_glyph_string): Adjust for the change of `struct
19524 face' and `struct glyph_string'.
19525 (fill_glyph_string): Likewise.
19526 (get_per_char_metric): Arguments changed.
19527 (x_get_glyph_overhangs): Adjust for the change of `struct face'
19528 and `struct glyph_string'.
19529 (produce_stretch_glyph, calc_line_height_property)
19530 (x_produce_glyphs): Likewise.
19531
19532 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19533 conditionals. Don't check enable_font_backend. Delete all codes
19534 used only when USE_FONT_BACKEND is not defined.
19535 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
19536 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19537 (Qp): Extern them.
19538 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19539 Deleted.
19540 (struct font_name): Deleted.
19541 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19542 (compare_fonts_by_sort_order): New function.
19543 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19544 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19545 Deleted.
19546 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19547 compare_fonts_by_sort_order.
19548 (Fx_font_family_list): Call Ffont_family_list.
19549 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19550 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19551 (face_symbolic_slant, face_symbolic_swidth)
19552 (split_font_name_into_vector, build_font_name_from_vector)
19553 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19554 (font_rescale_ratio, split_font_name, build_font_name)
19555 (free_font_names, sort_fonts, x_face_list_fonts)
19556 (face_font_available_p, sorted_font_list, cmp_font_names)
19557 (font_list_1, concat_font_list, font_list, remove_duplicates):
19558 Deleted.
19559 (Fx_list_fonts): Use Ffont_list.
19560 (LFACE_AVGWIDTH): Deleted.
19561 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19562 by FONTP.
19563 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19564 (set_lface_from_font_name): Delete it.
19565 (set_lface_from_font): Rename from
19566 set_lface_from_font_and_fontset. Caller changed. Don't set
19567 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19568 for face.
19569 (merge_face_vectors): Copy font-spec if necessary.
19570 Clear properties of the font-spec if necessary.
19571 (merge_face_ref): Clear properties of the font-spec if necessary.
19572 (Finternal_set_lisp_face_attribute): Likewise.
19573 (set_font_frame_param): Use font_load_for_lface to load a
19574 font-object, and call Fmodify_frame_parameters with it.
19575 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19576 font name by Ffont_xlfd_name.
19577 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19578 QCslant, and QCwidth.
19579 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19580 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19581 Compare fonts by EQ.
19582 (lookup_non_ascii_face): Deleted.
19583 (face_for_font): The 2nd argument changed.
19584 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19585 Check atomic font properties by case insensitive.
19586 (realize_non_ascii_face): Set face->overstrike correctly.
19587 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19588 (dump_realized_face): Get font name from
19589 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19590
19591 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19592 conditionals. Don't check enable_font_backend. Delete all codes
19593 used only when USE_FONT_BACKEND is not defined.
19594 (xic_create_xfontset): Original code deleted and renamed from
19595 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19596 (x_make_gc): Don't set GCFont in GCs.
19597 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19598 opened by "fixed".
19599 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19600 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19601 get_font_repertory_func.
19602
19603 * xfont.c: Include <stdlib.h> and "ccl.h".
19604 (struct xfont_info): New structure.
19605 (xfont_query_font): Deleted.
19606 (xfont_find_ccl_program): Rename from x_find_ccl_program and
19607 moved from xterm.c.
19608 (xfont_driver): Adjust for the change of struct font_driver.
19609 (compare_font_names): New function.
19610 (xfont_list_pattern): Sort font names case insensitively.
19611 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
19612 (xfont_list): Return a list, not vector.
19613 (xfont_match): If the font doesn't have QCname property, generate
19614 a name from the other font properties.
19615 (xfont_open): Return a font-object. Adjusted for the change of
19616 struct font. Get underline_thickness and underline_position from
19617 font property. Don't update dpyinfo->smallest_font_height and
19618 dpyinfo->smallest_char_width.
19619 (xfont_close): Don't free struct font.
19620 (xfont_prepare_face): Adjust for the change of struct font.
19621 (xfont_done_face): Deleted.
19622 (xfont_has_char): Adjust for the change of struct font.
19623 (xfont_encode_char, xfont_draw): Likewise.
19624 (xfont_check): New function.
19625
19626 * xftfont.c (xftfont_list): Adjust for the change of `list'
19627 callback function.
19628 (xftfont_match): Adjust for the format change of font-entity.
19629 (xftfont_open): Adjust for the format change of font-entity and
19630 font-object. Adjusted for the change of struct font. Return a
19631 font-object. Don't update dpyinfo->smallest_font_height and
19632 dpyinfo->smallest_char_width.
19633 (xftfont_close): Block input while calling XftFontClose.
19634 (xftfont_prepare_face): Don't block input while calling
19635 xftfont_get_colors. Adjusted for the change of struct font.
19636 (xftfont_shape): Return value of error case fixed.
19637
19638 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19639
19640 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19641 conditionals.
19642 (FONT_WIDTH): Return (f)->max_width.
19643 (struct x_display_info): Delete member `font'.
19644 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19645 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19646 (struct x_output): Change type of `font' to `struct font *'.
19647
19648 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19649 conditionals. Don't check enable_font_backend. Delete all codes
19650 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19651 (x_per_char_metric, x_encode_char): Deleted.
19652 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
19653 (x_compute_glyph_string_overhangs): Adjust for the change of
19654 `struct face'.
19655 (x_draw_glyph_string_foreground)
19656 (x_draw_composite_glyph_string_foreground): Likewise.
19657 (x_draw_glyph_string): Likewise. Use font->underline_position and
19658 font->underline_thickness.
19659 (x_new_font): Rename from x_new_fontset2.
19660 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19661 (x_check_font): Call `check' method of a font driver.
19662 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19663 (x_query_font, x_get_font_repertory): Deleted.
19664 (x_find_ccl_program): Rename and moved to xfont.c.
19665 (x_redisplay_interface): Adjust for the change of `struct
19666 redisplay_interface'.
19667
19668 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19669 conditionals. Don't check enable_font_backend. Delete all codes
19670 used only when USE_FONT_BACKEND is not defined. Surround non-used
19671 code by "#ifdef OLD_FONT" and "endif".
19672 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19673
19674 * w32font.h (struct w32font_info): New member.
19675 (FONT_COMPAT): New macro.
19676 (w32font_open_internal): Prototype adjusted.
19677
19678 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19679 OLD_FONT" and "endif".
19680
19681 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19682 conditionals. Don't check enable_font_backend. Delete all codes
19683 used only when USE_FONT_BACKEND is not defined.
19684 (w32font_open): Return a font-object. Make a font-object by
19685 font_make_object. Adjusted for the change of struct w32font_info.
19686 (w32font_close): Don't free struct font. Adjusted for the change
19687 of struct w32font_info.
19688 (w32font_encode_char, w32font_text_extents, w32font_draw):
19689 Adjust for the change of struct w32font_info.
19690 (w32font_draw): Likewise.
19691 (w32font_list_internal): Return a list, not vector.
19692 (w32font_open_internal): Change the 4th arg to font-object.
19693 Adjusted for the change of struct w32font_info and font-object format.
19694 (add_font_name_to_list): Don't downcase names.
19695 (w32_enumfont_pattern_entity): Make a font-entity by
19696 font_make_entity. Adjusted for the format change of font-entity.
19697 Use FONT_SET_STYLE to set a style-related font property. If a
19698 font is scalable, set avgwidth property to 0. Set font-entity
19699 property by font_put_extra.
19700 (font_matches_spec): Adjust for the format change of font-entity.
19701 (w32_weight_table, w32_decode_weight): New variables.
19702 (w32_encode_weight): New function.
19703 (fill_in_logfont): Adjust for the format change of font-spec.
19704 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19705 weight value.
19706 (w32font_driver): Adjust for the change of struct font_driver.
19707
19708 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19709 conditionals. Don't check enable_font_backend. Surround non-used
19710 code by "#ifdef OLD_FONT" and "endif".
19711 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
19712 (FONT_AVG_WIDTH): Adjust for the change of struct font.
19713
19714 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19715 conditionals. Don't check enable_font_backend. Delete all codes
19716 used only when USE_FONT_BACKEND is not defined. Surround non-used
19717 code by "#ifdef OLD_FONT" and "endif".
19718
19719 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19720 (uniscribe_open): Return value changed to font-object.
19721 Adjusted for the format change of font-object.
19722 (uniscribe_otf_capability): Adjust for the change of struct font.
19723 (add_opentype_font_name_to_list): Don't downcase names.
19724 (uniscribe_font_driver): Adjust for the change of struct
19725 font_driver.
19726
19727 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
19728
19729 * dispnew.c (update_frame_1): Check if tty output is still valid
19730 before flushing it.
19731
19732 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19733
19734 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19735 to Gtk+ menus.
19736
19737 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19738
19739 * dired.c (file_name_completion): Tweak the code so as to always do it
19740 in a single pass. Tighten the scope of some variables.
19741
19742 * dired.c (Qdefault_directory): New var.
19743 (file_name_completion): Use it instead of Fexpand_file_name.
19744 (syms_of_dired): Initialize it.
19745
19746 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * fileio.c (double_dollars): Remove dead code.
19749
19750 2008-05-10 Eli Zaretskii <eliz@gnu.org>
19751
19752 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19753 Mention w32-get-true-file-attributes in doc string.
19754
19755 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19756
19757 2008-05-09 Glenn Morris <rgm@gnu.org>
19758
19759 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19760 2008-04-23.
19761
19762 2008-05-09 Eli Zaretskii <eliz@gnu.org>
19763
19764 Support for reporting owner and group of each file on MS-Windows:
19765 * dired.c (stat_uname, stat_gname): New functions, with special
19766 implementation for w32.
19767 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19768
19769 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19770 (dflt_group_name): New static variable.
19771 (dflt_group): Rename from the_group.
19772 (init_user_info): Init dflt_group fields. Get user's group name
19773 from LookupAccountSid.
19774 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19775 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19776 New initialization states.
19777 (globals_of_w32): Initialize them to zero. Initialize the default
19778 group name to "None".
19779 (GetFileSecurity_Name): New global var, the name of the function
19780 to call for GetFileSecurity.
19781 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19782 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19783 (get_file_security, get_security_descriptor_owner)
19784 (get_security_descriptor_group, is_valid_sid)
19785 (get_file_security_desc, get_rid, get_name_and_id)
19786 (get_file_owner_and_group): New functions.
19787 (stat): Use get_file_security_desc and get_file_owner_and_group to
19788 report the owner and primary group of each file. Don't ignore the
19789 high 32 bits of file's size, now that st_size is 64-bit wide.
19790 Fix test when to get true file attributes.
19791 (init_user_info): Use get_rid instead of equivalent inline code.
19792 (fstat): Don't ignore the high 32 bits of file's size.
19793
19794 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
19795
19796 * image.c (png_load): Use correct bit-depth for setting background
19797 color.
19798
19799 2008-05-08 Eli Zaretskii <eliz@gnu.org>
19800
19801 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19802 epa-hook.elc.
19803
19804 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
19805
19806 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19807
19808 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19809
19810 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19811 because the original parameters are in pure storage now.
19812 (mac_window): Remove unused params. Update callers.
19813
19814 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19815
19816 * lread.c (substitute_object_recurse): Use lower-level primitives.
19817 Don't signal errors when traversing sub-char-tables.
19818 Don't loop over all the possible characters when traversing char-tables.
19819
19820 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19821 just like we do in print.c.
19822
19823 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19824
19825 * minibuf.c (Ftry_completion): Remove code left over from when we used
19826 scmp instead of Fcompare_strings.
19827
19828 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
19829
19830 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19831
19832 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19833
19834 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19835 Create bitmap context in native byte order.
19836
19837 * macterm.c (XDrawLine)
19838 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19839 context in native byte order.
19840
19841 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19842
19843 * config.in: Regenerate.
19844
19845 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19846 New definitions for Image I/O support.
19847 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19848 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19849 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19850 (mac_data_provider_release_data, image_load_image_io)
19851 [USE_MAC_IMAGE_IO]: New functions.
19852 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19853 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19854 (init_image_func_pointer) [MAC_OSX]: Remove function.
19855 (image_load_quartz2d) [MAC_OSX]: Check availability of
19856 CGImageCreateWithPNGDataProvider at compile time.
19857 Use lowercase `false' for boolean constant.
19858 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19859 Use image_load_image_io.
19860 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19861 Don't check MyCGImageCreateWithPNGDataProvider.
19862 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19863 Don't call init_image_func_pointer.
19864
19865 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19866
19867 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19868 Make variable non-static.
19869 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19870 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19871
19872 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19873 (RED_FROM_ULONG): Mask off higher bits.
19874 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19875
19876 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19877 Include AvailabilityMacros.h.
19878 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19879 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19880
19881 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19882
19883 * chartab.c (Fset_char_table_range): If range is t, really set all
19884 chars to that value.
19885
19886 2008-05-03 Eli Zaretskii <eliz@gnu.org>
19887
19888 * dired.c (Ffile_attributes): Don't allow the device number become
19889 negative.
19890
19891 2008-05-02 Daiki Ueno <ueno@unixuser.org>
19892
19893 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19894
19895 2008-05-02 Juri Linkov <juri@jurta.org>
19896
19897 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19898 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19899 DEFAULT argument as a list of default values in docstrings.
19900
19901 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
19902
19903 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19904
19905 2008-05-01 Martin Rudalics <rudalics@gmx.at>
19906
19907 * dispnew.c (change_frame_size_1): Preserve small windows when
19908 shrinking frames by calling set_window_height|width with third
19909 arg 2.
19910
19911 * window.h (struct window): Replace field too_small_ok by field
19912 resize_proportionally.
19913
19914 * window.c (make_window): Initialize resize_proportionally.
19915 (enlarge_window): Temporarily set resize_proportionally to make
19916 sure that shrink_windows does scale the window proportionally.
19917 (shrink_windows): When window has resize_proportionally set try
19918 to shrink it proportionally by stealing from other windows.
19919 (struct saved_window, Fset_window_configuration)
19920 (compare_window_configurations): Handle resize_proportionally.
19921 (WINDOW_TOTAL_SIZE): New macro.
19922 (window_min_size, shrink_windows, size_window): Use it.
19923 (check_min_window_sizes): Remove. Invalid values of
19924 window-min-height|width are handled by window_min_size_2 now.
19925 (size_window, Fsplit_window, enlarge_window)
19926 (adjust_window_trailing_edge, grow_mini_window): Don't call
19927 check_min_window_sizes.
19928 (window_min_size_2, window_min_size_1, window_min_size):
19929 New argument safe_p for retrieving "safe" minimum sizes.
19930 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19931 (adjust_window_trailing_edge, grow_mini_window):
19932 Adjust arguments of window_min_size... functions.
19933 (shrink_windows): Argument min_size removed. New argument
19934 safe_p allows shrinking windows to their safe minimum sizes.
19935 Calculate minimum size and decide whether a window shall be
19936 deleted for each window individually.
19937 (size_window): When nodelete_p equals 2, tell shrink_windows to
19938 delete windows only if their new minimum size is no more safe.
19939 (shrink_window_lowest_first): Call window_min_size_1 to make
19940 sure to preserve modeline of bottom-most window when resizing
19941 the minibuffer.
19942 (Fset_window_configuration, Fcurrent_window_configuration)
19943 (compare_window_configurations): Do not handle
19944 window-min-height|width any more.
19945 (syms_of_window): Clarify window-min-height|width doc-strings.
19946
19947 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19948
19949 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19950 some more. Copy some of the code from Ftry_completions.
19951 Remove special case code that dates back to initial revision when the
19952 slash was only added when necessary and that can't trigger nowadays.
19953
19954 2008-04-27 Kenichi Handa <handa@m17n.org>
19955
19956 * font.c (font_prop_validate): Signal `error' instead of `font'.
19957
19958 2008-04-29 Jason Rumney <jasonr@gnu.org>
19959
19960 * w32fns.c (Fw32_battery_status): New defun.
19961 (syms_of_w32fns): Defsubr it.
19962
19963 2008-04-28 Andreas Schwab <schwab@suse.de>
19964
19965 * dired.c (file_name_completion): Fix another mixing of encoded
19966 and decoded names.
19967
19968 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
19969
19970 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19971
19972 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
19973
19974 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19975
19976 2008-04-27 Andreas Schwab <schwab@suse.de>
19977
19978 * dired.c (file_name_completion): Fix inappropriate mixing of
19979 encoded and decoded names.
19980
19981 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19982
19983 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19984
19985 2008-04-26 Eli Zaretskii <eliz@gnu.org>
19986
19987 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19988 2008-03-31, it's not needed anymore with `struct stat' definition
19989 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19990 for the same reasons.
19991
19992 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19993
19994 * m/sparc.h: Additional redefinitions for GNU/Linux.
19995
19996 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19997
19998 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19999 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20000 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20001 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20002 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20003 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20004 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20005 Likewise.
20006
20007 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20008 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20009 (mac_ax_number_of_characters): Add externs.
20010 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20011 [USE_MAC_TSM]: Likewise.
20012 (mac_handle_text_input_event) [MAC_OSX]:
20013 Handle kEventTextInputOffsetToPos for no active input area case.
20014 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20015 (mac_handle_document_access_event)
20016 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20017 (install_application_handler) [MAC_OSX]: Register handlers for
20018 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20019 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20020 Register mac_handle_document_access_event.
20021
20022 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20023 Make functions non-static.
20024
20025 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20026
20027 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20028 (read_file_name_completion_ignore_case, insert_default_directory)
20029 (Qdefault_directory): Move to minibuffer.el.
20030 (Fread_file_name): Call the new `read-file-name' instead.
20031
20032 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20033
20034 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20035 Make function non-static.
20036 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20037 Remove function.
20038 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20039 Move to mactoolbox.c.
20040 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20041
20042 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20043 (mac_rect_make): New macro.
20044
20045 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20046 instead of float.
20047 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20048 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20049 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20050 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20051 CGRectMake.
20052 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20053 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20054 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20055 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20056 instead of WindowRef in argument type.
20057 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20058 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20059 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20060 instead of DISPLAY. All uses changed.
20061 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20062 (x_calc_absolute_position): Simplify so as not to use
20063 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20064
20065 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20066 instead of WindowRef in argument type.
20067 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20068 [TARGET_API_MAC_CARBON]: Remove externs.
20069 (create_apple_event, mac_event_parameters_to_lisp)
20070 [TARGET_API_MAC_CARBON]: Add externs.
20071
20072 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20073 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20074 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20075 is clicked.
20076 (x_activate_menubar): Remove extern for saved_menu_event_location.
20077 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20078 Move from mac.c.
20079
20080 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20081
20082 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20083 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20084
20085 2008-04-23 Jason Rumney <jasonr@gnu.org>
20086
20087 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20088 attributes only for local files.
20089
20090 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20091 default to Qlocal.
20092
20093 2008-04-22 Juri Linkov <juri@jurta.org>
20094
20095 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20096 read-buffer-to-switch instead of using the letter "B".
20097
20098 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20099
20100 * fileio.c (Qdefault_directory): New variable.
20101 (Fread_file_name): Use it to pass `dir' to the completion functions.
20102
20103 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20104
20105 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20106
20107 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20108
20109 * keyboard.c (Vpre_help_message): Remove.
20110 (show_help_echo): Remove default C code.
20111
20112 * dired.c (directory_files_internal, file_name_completion):
20113 Only call ENCODE_FILE if the string is indeed decoded.
20114
20115 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20116
20117 * Makefile.in (TOOLKIT_DEFINES): Remove.
20118 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20119
20120 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20121
20122 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20123 (mactoolbox.o): New target.
20124
20125 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20126 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20127
20128 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20129 Use mac_set_frame_window_background instead of XSetWindowBackground.
20130 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20131 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20132 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20133 instead of SetWindowTitleWithCFString.
20134 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20135 Move function to mactoolbox.c.
20136 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20137 Use mac_set_window_modified instead of SetWindowModified.
20138 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20139 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20140 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20141 FrontNonFloatingWindow. Use mac_activate_window instead of
20142 ActivateWindow. Use mac_active_non_floating_window instead of
20143 ActiveNonFloatingWindow.
20144 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20145 Use mac_show_hourglass and mac_hide_hourglass.
20146 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20147 instead of GetGlobalMouse.
20148 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20149 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20150 Use mac_bring_window_to_front instead of BringToFront.
20151 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20152 mactoolbox.c.
20153 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20154 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20155 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20156 mactoolbox.c.
20157
20158 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20159 (XtPointer): Move typedef from macmenu.c.
20160 (enum button_type): Move enum from macmenu.c.
20161 (widget_value): Move typedef from macmenu.c.
20162 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20163 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20164 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20165 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20166 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20167 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20168 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20169 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20170 (Selection): Move typedef from macselect.c.
20171 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20172 macterm.c.
20173 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20174 (mac_is_window_collapsed, mac_bring_window_to_front)
20175 (mac_send_window_behind, mac_hide_window, mac_show_window)
20176 (mac_collapse_window, mac_front_non_floating_window)
20177 (mac_active_non_floating_window, mac_activate_window)
20178 (mac_move_window_structure, mac_move_window, mac_size_window)
20179 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20180
20181 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20182 (enum mac_menu_kind): Move enum to mactoolbox.c.
20183 (min_menu_id): Move variable to mactoolbox.c.
20184 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20185 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20186 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20187 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20188 [TARGET_API_MAC_CARBON]: Likewise.
20189 (XtPointer): Move typedef to macgui.h.
20190 (enum button_type): Move enum to macgui.h.
20191 (widget_value): Move typedef to macgui.h.
20192 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20193 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20194 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20195 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20196 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20197 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20198 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20199 (popup_activated_flag): Make variable non-static.
20200 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20201 (add_menu_item, fill_menu, dispose_menus):
20202 Move functions to mactoolbox.c.
20203 (restore_show_help_function, menu_target_item_handler)
20204 (install_menu_target_item_handler, mac_handle_dialog_event)
20205 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20206 [TARGET_API_MAC_CARBON]: Likewise.
20207 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20208 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20209 (find_and_call_menu_selection, name_is_separator): Make function
20210 non-static.
20211 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20212 to mactoolbox.c.
20213 (set_frame_menubar): Don't call install_menu_quit_handler.
20214 (menu_item_selection): New variable.
20215 (mac_menu_show): Use create_and_show_popup_menu.
20216 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20217 selection but set variable menu_item_selection. All uses changed.
20218 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20219 Call install_menu_quit_handler. Move to mactoolbox.c.
20220
20221 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20222 (Selection): Move typedef to macgui.h.
20223 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20224 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20225 Make variables non-static.
20226 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20227 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20228 Make functions non-static.
20229 (Vmac_service_selection) [MAC_OSX]: Likewise.
20230 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20231 (mac_valid_selection_target_p, mac_clear_selection)
20232 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20233 (mac_put_selection_value, mac_selection_has_target_p)
20234 (mac_get_selection_value, mac_get_selection_target_list)
20235 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20236 Move functions to mactoolbox.c.
20237 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20238 Likewise.
20239 (copy_scrap_flavor_data, mac_handle_service_event)
20240 (install_service_handler) [MAC_OSX]: Likewise.
20241 (syms_of_macselect) <Vmac_dnd_known_types>:
20242 Use mac_dnd_default_known_types.
20243
20244 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20245 Move to mactoolbox.c.
20246 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20247 (Fx_selection_owner_p): Add EXFUN.
20248 (install_window_handler, remove_window_handler, XSetWindowBackground):
20249 Remove externs.
20250 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20251 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20252 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20253 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20254 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20255 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20256 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20257 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20258 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20259 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20260 (mac_valid_selection_target_p, mac_clear_selection)
20261 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20262 (mac_put_selection_value, mac_selection_has_target_p)
20263 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20264 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20265 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20266 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20267 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20268 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20269 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20270 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20271 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20272
20273 * mactoolbox.c: New file.
20274
20275 2008-04-18 Jason Rumney <jasonr@gnu.org>
20276
20277 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20278
20279 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20280
20281 * character.c (Fmultibyte_char_to_unibyte):
20282 Return latin1 chars unchanged.
20283
20284 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20285 relocated if it points to `name'.
20286
20287 2008-04-17 Kenichi Handa <handa@m17n.org>
20288
20289 * data.c (Faset): Allow setting a multibyte character in an
20290 ASCII-only unibyte string.
20291
20292 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20293
20294 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20295
20296 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20297 done in config.h.
20298
20299 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20300
20301 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20302 (Fchar_direction): Add usage in the docstring.
20303
20304 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20305
20306 * keyboard.c (read_key_sequence): Remove always-true checks.
20307
20308 2008-04-14 Jason Rumney <jasonr@gnu.org>
20309
20310 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20311 compatibility struct, for better underline positioning.
20312
20313 2008-04-13 David Hansen <david.hansen@gmx.net>
20314
20315 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20316 string.
20317
20318 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20319
20320 * m/hp800.h (XUINT, XSET): Remove.
20321
20322 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20323
20324 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20325 previous change.
20326
20327 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20328
20329 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20330 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20331
20332 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20333
20334 * keymap.h (map_keymap_canonical): Declare.
20335 * xmenu.c (single_keymap_panes): Use it.
20336
20337 2008-04-11 Glenn Morris <rgm@gnu.org>
20338
20339 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20340 set the target's value to that of the alias.
20341
20342 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20343
20344 * term.c (set_tty_color_mode): Left over typo.
20345
20346 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20347
20348 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20349 only after check for file name handler functions. Signal, when
20350 native functionality is not supported.
20351 (syms_of_fileio): Declare it unconditionally.
20352
20353 2008-04-10 Jason Rumney <jasonr@gnu.org>
20354
20355 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20356 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20357
20358 * w32.c (logon_network_drive): Also logon to remote drives that
20359 are mapped to drive letters.
20360
20361 2008-04-10 Glenn Morris <rgm@gnu.org>
20362
20363 * xdisp.c (truncate-partial-width-windows): Doc fix.
20364
20365 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20366
20367 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20368 Move functions to minibuffer.el.
20369 (syms_of_fileio): Don't declare them.
20370
20371 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20372
20373 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20374 (syms_of_minibuf): Remove its initialization.
20375
20376 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20377
20378 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20379
20380 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20381
20382 2008-04-09 Jason Rumney <jasonr@gnu.org>
20383
20384 * makefile.w32-in (distclean): Delete makefile too.
20385 (maintainer-clean): New target.
20386
20387 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20388
20389 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20390 for new font backend and composite cases.
20391
20392 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20393
20394 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20395 Most of the code moved to run_timers.
20396 (do_pending_atimers): Call run_timers.
20397 (run_timers): New function.
20398
20399 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20400 run atimers.
20401
20402 * process.c (wait_reading_process_output): The same as above.
20403
20404 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20405
20406 * minibuf.c (last_exact_completion): Remove variable.
20407 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20408 (complete_and_exit_1, complete_and_exit_2)
20409 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20410 (Fdisplay_completion_list, display_completion_list_1)
20411 (Fminibuffer_completion_help, Fself_insert_and_exit)
20412 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20413 minibuffer.el.
20414 (syms_of_minibuf): Remove corresponding initializations.
20415
20416 * keyboard.c (Qdeactivate_mark): New var.
20417 (command_loop_1): Use it to call `deactivate-mark'.
20418 (syms_of_keyboard): Initialize it.
20419
20420 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20421 to another frame.
20422 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20423 Don't call set_tty_color_mode.
20424 (store_frame_param): Reset previous_frame rather than call
20425 set_tty_color_mode.
20426 * term.c (set_tty_color_mode): Rewrite.
20427 * dispextern.h (set_tty_color_mode): New type.
20428 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20429
20430 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20431
20432 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20433 for generic chars, which do not exist any more in emacs-unicode.
20434
20435 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
20436
20437 * coding.c (detect_coding_emacs_mule)
20438 (Ffind_operation_coding_system): Fix typo.
20439
20440 2008-04-08 Jason Rumney <jasonr@gnu.org>
20441
20442 * w32uniscribe.c (SNAME): Extract only symbol name.
20443
20444 * w32font.h (struct w32_metric_cache): New struct.
20445 (w32font_info): Use it.
20446 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20447 (CACHE_BLOCKSIZE): New constants.
20448
20449 * w32font.c (Qja, Qko, Qzh): New symbols.
20450 (syms_of_w32font): Initialise them.
20451 (font_matches_spec): Use them to filter by language.
20452 (recompute_cached_metrics): Remove function.
20453 (compute_metrics, clear_cached_metrics): New functions.
20454 (w32font_encode_char): Use them to manage metric cache.
20455 (w32font_text_extents): Cache metrics for all glyphs on demand.
20456 Delay converting glyph indices to WORD until needed.
20457 (w32font_open_internal): Initialize metric cache to empty.
20458 (registry_to_w32_charset): Charset should always be a symbol.
20459 (fill_in_logfont, list_all_matching_fonts): Family should
20460 always be a symbol.
20461
20462 2008-04-06 Jason Rumney <jasonr@gnu.org>
20463
20464 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20465 Give up if glyph indices not supported. Use uniscribe obtained
20466 ABC widths for individual metrics. Map glyph clusters back to
20467 characters using fClusterStart flag. Return number of glyphs
20468 produced, not chars processed.
20469 (uniscribe_shape): Map char at FROM to current glyph.
20470
20471 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20472
20473 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20474 Use SetMenuItemHierarchicalMenu.
20475
20476 2008-04-05 Jason Rumney <jasonr@gnu.org>
20477
20478 * image.c (pbm_load): Allow color values up to 65535.
20479 Throw an error if max_color_idx is outside the supported range.
20480 Report an error when image size is invalid.
20481 Read two bytes at a time when raw images have max_color_idx above 255.
20482
20483 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20484
20485 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20486 append "CCL: Quitted" when the CCL program is quitted.
20487 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20488
20489 * ccl.h (struct ccl_program): New member quit_silently.
20490
20491 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
20492
20493 * search.c (compile_pattern_1): Treat non-nil and non-string of
20494 search-spaces-regexp as nil.
20495
20496 * minibuf.c (Fassoc_string): Tweak docstring.
20497
20498 2008-04-05 Eli Zaretskii <eliz@gnu.org>
20499
20500 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20501 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20502 2008-03-14 to force inode be positive.
20503
20504 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20505 _S_* ones, since we now use our own sys/stat.h.
20506 (stat, fstat): Don't mangle the inode number.
20507 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20508
20509 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20510
20511 * frame.h (struct frame): Give one more bit to `visible' since we use
20512 values larger than 1 to indicate obscured frames on ttys.
20513
20514 * keymap.c (Qkeymap_canonicalize): New var.
20515 (Fmap_keymap_internal): New fun.
20516 (describe_map): Use keymap-canonicalize.
20517
20518 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20519 (Fundo_boundary): Set them.
20520 (syms_of_undo): Initialize them.
20521 (record_point): Use them instead of last_point_position*.
20522 (last_undo_buffer): Change type.
20523
20524 2008-04-04 Jason Rumney <jasonr@gnu.org>
20525
20526 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20527 (recompute_cached_metrics): Don't set ascent and descent per char.
20528
20529 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20530 (uniscribe_check_otf): Add GC protection before consing.
20531 Rearrange loop for counting features.
20532
20533 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20534
20535 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20536 buffer with byte-size of source buffer.
20537
20538 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
20539
20540 * callint.c (Fcall_interactively): Handle temporary region even
20541 when shift-select-mode is off.
20542
20543 2008-04-03 Jason Rumney <jasonr@gnu.org>
20544
20545 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20546
20547 2008-04-03 Kenichi Handa <handa@m17n.org>
20548
20549 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20550 (CATEGORY_MASK_UTF_16): Likewise.
20551 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20552 binary file.
20553 (detect_coding): Add null-byte detection for a binary file.
20554 (detect_coding_system): Likewise.
20555
20556 2008-04-03 Jason Rumney <jasonr@gnu.org>
20557
20558 * w32uniscribe.c: New file.
20559
20560 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20561
20562 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20563
20564 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20565 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20566 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20567 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20568 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20569 (Qphonetic): New symbols.
20570 (syms_of_w32font): Initialize them.
20571 (font_supported_scripts): Use them.
20572 (w32font_list_family): List all charsets.
20573 (w32font_text_extents, recompute_cached_metrics): Fix metric
20574 calculations.
20575 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20576 Give opentype fonts their own format.
20577 (font_matches_spec): New arguments backend and logfont.
20578 Handle :otf spec for uniscribe backend.
20579 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20580 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20581
20582 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20583 font backend.
20584 (globals_of_w32fns): Initialize uniscribe font backend.
20585
20586 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20587 dependencies.
20588 (w32uniscribe.$(O)): New file to build.
20589 (FONT_OBJ): Include w32uniscribe.$(O).
20590 (LIBS): Add uniscribe libraries.
20591
20592 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20593
20594 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
20595
20596 * callint.c (Vshift_select_mode): New var.
20597 (Finteractive): Document new ^ spec.
20598 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20599 is present.
20600
20601 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20602 (command_loop_1): Avoid running the direct display versions of
20603 forward-char and backward-char if shift-selection may occur.
20604 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20605 shift-translation takes place.
20606
20607 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20608 avoid clobbering by define-minor-mode.
20609
20610 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20611 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20612
20613 * syntax.c (Fforward_word): Add ^ interactive spec.
20614
20615 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20616 (Fscroll_right): Add ^ interactive spec.
20617
20618 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20619
20620 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20621
20622 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20623
20624 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20625
20626 2008-03-31 Juri Linkov <juri@jurta.org>
20627
20628 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20629
20630 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20631
20632 * gtkutil.c (xg_set_geometry): Fix indentation.
20633 (xg_resize_outer_widget): Remove.
20634 (x_wm_size_hint_off): Fix indentation.
20635 (xg_frame_set_char_size): Call flush_and_sync after
20636 gtk_window_resize.
20637 (x_wm_set_size_hint): Pass NULL as geometry window to
20638 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20639 Add menu bar and tool bar height to base height.
20640 (xg_update_frame_menubar, free_frame_menubar)
20641 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20642 (update_frame_tool_bar, free_frame_tool_bar):
20643 Change xg_resize_outer_widget to xg_frame_set_char_size.
20644
20645 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
20646
20647 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20648 (Fdbus_call_method): New parameter TIMEOUT.
20649 (dbus-send-signal): Optimize UNGCPRO call.
20650
20651 2008-03-29 Juri Linkov <juri@jurta.org>
20652
20653 * window.c (Fdisplay_buffer): Move call to
20654 Vsplit_window_preferred_function out of conditions that check
20655 if window is eligible for vertical splitting.
20656 When Vsplit_window_preferred_function is non-nil, call it and use
20657 its non-nil return value as window. Otherwise, continue doing
20658 vertical splitting using Fsplit_window with arg horflag=nil.
20659 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20660 default value from `split-window' to nil.
20661
20662 2008-03-29 Juri Linkov <juri@jurta.org>
20663
20664 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20665 for interactive code letters 'b' and 'B'.
20666
20667 2008-03-29 Eli Zaretskii <eliz@gnu.org>
20668
20669 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20670 multibyte string.
20671
20672 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20673
20674 * keyboard.c (pending_funcalls): New var.
20675 (timer_check): Run it.
20676 (syms_of_keyboard): Initialize it.
20677 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20678 (Vdelete_terminal_functions): New vars.
20679 (syms_of_terminal): Initialize them.
20680 (Fdelete_terminal): Run delete-terminal-functions.
20681 * xdisp.c (safe_eval): Rewrite.
20682 (safe_call2): New fun.
20683 * frame.c (Qdelete_frame_functions): New var.
20684 (syms_of_frame): Initialize it.
20685 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20686 * lisp.h (safe_call2, pending_funcalls): Declare.
20687
20688 2008-03-28 Andreas Schwab <schwab@suse.de>
20689
20690 * indent.c (Fmove_to_column): Move declaration before statements.
20691
20692 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20693
20694 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20695 (struct frame): Use bit fields for boolean vars.
20696
20697 * process.c (server_accept_connection): Simplify naming.
20698 (emacs_get_tty_pgrp): Use SDATA.
20699
20700 * coding.c (decode_coding_object): Fix last change.
20701
20702 2008-03-27 Jason Rumney <jasonr@gnu.org>
20703
20704 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20705
20706 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20707
20708 * charset.c (Fdefine_charset_internal): Change the way of
20709 registering charsets in Vcharset_order_list.
20710 (syms_of_charset): Make the charset `eight-bit' supplementary.
20711
20712 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20713
20714 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20715 operations, to avoid having the difference between pointers
20716 overflow.
20717
20718 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20719
20720 * indent.c (check_display_width): New fun.
20721 (scan_for_column): Use it.
20722
20723 * data.c (syms_of_data): Mark most-positive-fixnum and
20724 most-negative-fixnum as constants.
20725
20726 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20727
20728 * indent.c (scan_for_column): Extract from current_column_1.
20729 Merge with the same code from Fmove_to_column.
20730 (current_column_1, Fmove_to_column): Use it.
20731
20732 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20733
20734 * keymap.c (map_keymap_internal): New fun.
20735 (map_keymap): Use it.
20736 (Fmap_keymap_internal): New fun.
20737 (Fmap_keymap): Remove left-out test from before make_save_value.
20738
20739 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20740
20741 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20742 Use XCAR/XCDR.
20743
20744 * process.h (struct Lisp_Process): Remove filter_multibyte.
20745 * process.c (QCfilter_multibyte): Remove.
20746 (setup_process_coding_systems): Don't use filter_multibyte.
20747 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20748 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20749 (Fset_process_filter_multibyte): Change the coding-system to
20750 approximate the previous behavior.
20751 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20752 coding-system.
20753
20754 * coding.c (decode_coding_object): When not decoding into a buffer,
20755 obey the coding system's preference of (uni|multi)byte.
20756
20757 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20758
20759 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20760 every char is changed and has a different byte-length.
20761 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20762 Fix int -> EMACS_INT.
20763
20764 2008-03-23 David Hansen <david.hansen@gmx.net>
20765
20766 * dbusbind.c (xd_read_message): Remove extra copying of message
20767 strings. Check for NULL `interface' or `member'.
20768
20769 2008-03-22 Eli Zaretskii <eliz@gnu.org>
20770
20771 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20772 cFileName a file name that includes `?' characters, use the 8+3
20773 alias in cAlternateFileName instead.
20774
20775 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20776
20777 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20778
20779 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20780
20781 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20782 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20783 work on current_buffer only instead (that was already the case
20784 for some of the code anyway).
20785 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20786 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20787 (SET_PT, SET_PT_BOTH): Adjust.
20788 * intervals.h (set_point, temp_set_point, set_point_both)
20789 (temp_set_point_both): Remove redundant declarations.
20790
20791 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20792
20793 * fileio.c (Finsert_file_contents):
20794 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20795 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20796 when buffer != current_buffer anyway.
20797
20798 2008-03-20 Andreas Schwab <schwab@suse.de>
20799
20800 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20801 as default.
20802
20803 2008-03-19 Jason Rumney <jasonr@gnu.org>
20804
20805 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20806 (syms_of_w32fns): Initialize them.
20807 (HOURGLASS_ID): New constant.
20808 (x_window_to_frame): Don't check hourglass_window.
20809 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20810 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20811 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20812 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20813 Only change the cursor if hourglass is not active.
20814 (Fx_create_frame): Initialize frame's current_cursor.
20815 (hourglass_atimer): Remove.
20816 (hourglass_started): New function.
20817 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20818 (show_hourglass): Adapt to w32, changing argument to frame.
20819
20820 * w32term.h (struct w32_output): Remove hourglass_window.
20821 Add current_cursor.
20822
20823 * eval.c (call_debugger, Fsignal):
20824 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20825 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20826 (Fexecute_extended_command, cancel_hourglass_unwind):
20827 * minibuf.c (read_minibuf):
20828 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20829
20830 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20831
20832 * window.c (run_funs): New fun.
20833 (run_window_configuration_change_hook): Use it to run the buffer-local
20834 and the global part of the hook.
20835
20836 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20837 (unwind_format_mode_line): Restore selected window.
20838 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20839
20840 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20841
20842 * editfns.c (Fchar_equal): Check they are valid characters.
20843
20844 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20845
20846 2008-03-17 Andreas Schwab <schwab@suse.de>
20847
20848 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20849 against a charset.
20850
20851 * lisp.h (Fbuffer_list): Declare.
20852
20853 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
20854
20855 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20856 handlebox_widget is != 0.
20857
20858 2008-03-16 Juri Linkov <juri@jurta.org>
20859
20860 * callint.c (Fcall_interactively): For interactive code letters
20861 'b' and 'B' put the buffer list into the list of default "future"
20862 values of the minibuffer.
20863
20864 2008-03-16 Andreas Schwab <schwab@suse.de>
20865
20866 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20867 modifiers.
20868
20869 * regex.c (re_match_2_internal): Correct matching of a charset
20870 against latin-1 characters.
20871
20872 2008-03-16 Kenichi Handa <handa@m17n.org>
20873
20874 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20875 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20876 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20877 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20878 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20879 CHAR_STRING_ADVANCE.
20880 (produce_chars): Fix for the case that the source and the
20881 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20882 instead of CHAR_STRING_ADVANCE.
20883 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20884 STRING_CHAR_ADVANCE.
20885
20886 2008-03-15 Andreas Schwab <schwab@suse.de>
20887
20888 * regex.c (re_match_2_internal): Correct matching of eight bit
20889 characters in unibyte strings.
20890
20891 2008-03-15 Martin Rudalics <rudalics@gmx.at>
20892
20893 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20894 at end of range when it coincides with the end of the buffer.
20895
20896 2008-03-14 Eli Zaretskii <eliz@gnu.org>
20897
20898 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20899
20900 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20901
20902 2008-03-14 Jason Rumney <jasonr@gnu.org>
20903
20904 * editfns.c (initial_tz): New variable.
20905 (syms_of_editfns): Initialize it.
20906 (Fset_time_zone_rule): Set it when first called.
20907 Use it when TZSTRING is nil.
20908
20909 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20910 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20911 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20912 (globals_of_w32fns): Initialize them.
20913 (compute_tip_xy): Use them to position tooltips.
20914
20915 2008-03-14 Glenn Morris <rgm@gnu.org>
20916
20917 * emacs.c (main): Revert previous change.
20918 (standard_args): Revert -internal-script back to -scriptload,
20919 and remove the long-option form.
20920
20921 2008-03-13 Glenn Morris <rgm@gnu.org>
20922
20923 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20924 Remove option -enable-font-backend.
20925
20926 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20927
20928 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20929
20930 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20931
20932 * xterm.c (x_connection_closed): For GTK: If this is the last
20933 terminal just exit without closing the display.
20934
20935 2008-03-11 Jason Rumney <jasonr@gnu.org>
20936
20937 * w32font.c (w32font_full_name): Use floor to round.
20938
20939 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20940
20941 * sound.c (alsa_configure): Declare vol at beginning of block.
20942
20943 * fontset.c (Ffontset_info): Remove extra semicolon.
20944
20945 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20946
20947 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20948 size of resulting string.
20949
20950 2008-03-10 Jason Rumney <jasonr@gnu.org>
20951
20952 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20953
20954 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20955
20956 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20957 Don't pretend as if characters with display property haven't been
20958 consumed for string-replacing-string case.
20959
20960 2008-03-08 Kim F. Storm <storm@cua.dk>
20961
20962 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20963 (get_next_display_element, next_element_from_string)
20964 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20965
20966 2008-03-08 Andreas Schwab <schwab@suse.de>
20967
20968 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20969
20970 2008-03-06 Jason Rumney <jasonr@gnu.org>
20971
20972 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20973 when charset not specified. Only translate ANSI to unicode when
20974 font_type is truetype.
20975 (w32font_coverage_ok): New function.
20976 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20977
20978 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20979
20980 * lread.c (Fread_char): Resolve modifiers.
20981 (Fread_char_exclusive): Likewise.
20982
20983 * character.c (char_resolve_modifier_mask): New function.
20984 (char_string): Use char_resolve_modifier_mask.
20985 (Fchar_resolve_modifiers): New function.
20986 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20987 function.
20988
20989 2008-03-04 Jason Rumney <jasonr@gnu.org>
20990
20991 * makefile.w32-in: Always include w32font.c in the build.
20992 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20993
20994 2008-03-04 Andreas Schwab <schwab@suse.de>
20995
20996 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20997 (versionclean): Likewise.
20998
20999 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
21000
21001 * .cvsignore: Add oo.
21002
21003 2008-03-03 Andreas Schwab <schwab@suse.de>
21004
21005 * coding.c (decode_coding_object): Inhibit gap shrinking while
21006 decoding in place.
21007
21008 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21009
21010 * w32term.c: Remove unused include "gnu.h".
21011 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21012
21013 * gnu.h: Rename to ...
21014 * emacs-icon.h: ... this.
21015 * xterm.c: Use emacs-icon.h instead of gnu.h.
21016 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21017
21018 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
21019
21020 * w32font.c: Include math.h.
21021
21022 2008-03-03 Jason Rumney <jasonr@gnu.org>
21023
21024 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21025 Compute options separately.
21026 (w32font_open_internal): Set glyph_idx before caching metrics.
21027
21028 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21029 Define if system headers don't.
21030 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21031 (w32font_encode_char): Don't declare here.
21032
21033 * w32font.c (Quniscribe, QCformat): New symbols.
21034 (syms_of_w32font): Define them.
21035 (w32font_has_char): Indicate uncertainty.
21036 (w32font_encode_char): Encode as glyph point. Make static.
21037 (recompute_cached_metrics): New function.
21038 (w32font_open_internal): Use it. Set font to use glyph points
21039 initially. Set format based on type of font.
21040 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21041 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21042 on it. Set format based on information available here.
21043 (add_font_entity_to_list): Identify backend based on opentype_only.
21044
21045 2008-03-02 Andreas Schwab <schwab@suse.de>
21046
21047 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21048
21049 * coding.c (decode_coding_big5, produce_chars):
21050 Fix typos in last change.
21051
21052 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21053
21054 * gnu.h: New icon.
21055
21056 2008-03-02 Kenichi Handa <handa@m17n.org>
21057
21058 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21059 `dos', don't decode '\r' if that is the last in the source.
21060 (decode_coding_utf_16, decode_coding_emacs_mule)
21061 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21062 (decode_coding_raw_text, decode_coding_charset): Likewise.
21063 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21064
21065 2008-03-01 Jason Rumney <jasonr@gnu.org>
21066
21067 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21068
21069 2008-03-01 Kim F. Storm <storm@cua.dk>
21070
21071 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21072
21073 2008-03-01 Jason Rumney <jasonr@gnu.org>
21074
21075 * w32font.c (w32font_full_name): New function.
21076 (w32font_open_internal): Use it.
21077
21078 2008-03-01 Kim F. Storm <storm@cua.dk>
21079
21080 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21081
21082 2008-03-01 Jason Rumney <jasonr@gnu.org>
21083
21084 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21085
21086 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21087
21088 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21089 xg_frame_resized when the event is for the edit widget.
21090
21091 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
21092
21093 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21094 set_char_size.
21095 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21096 operations on widgets here. Just set frame size if needed.
21097 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21098 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21099 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21100 the whole frame.
21101 (xg_create_tool_bar): Move attachment of the tool bar to
21102 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21103 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21104
21105 2008-03-01 Jason Rumney <jasonr@gnu.org>
21106
21107 * w32fns.c (w32_msg_pump): Disable debug code.
21108
21109 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21110
21111 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21112
21113 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21114
21115 * xdisp.c (next_overlay_string): Don't set
21116 overlay_strings_at_end_processed_p if we're currently reading from
21117 a display string.
21118
21119 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21120
21121 * xdisp.c (get_overlay_strings_1): Fix typo.
21122
21123 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21124
21125 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21126
21127 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21128
21129 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21130
21131 * xdisp.c (display_mode_element): Cancel the previous change.
21132 (decode_mode_spec): Likewise.
21133 (handle_auto_composed_prop): Don't make composition if it->string
21134 is a string.
21135
21136 2008-02-27 Kim F. Storm <storm@cua.dk>
21137
21138 * lisp.h (GLYPH): Change type from int to struct with separate char
21139 and face_id members.
21140 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21141 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21142 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21143 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21144 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21145 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21146 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21147 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21148 handle new Lisp glyph code encoding, either an integer or a cons.
21149
21150 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21151 (GLYPH_ALIAS): Delete.
21152 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21153 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21154 (GLYPH_FROM_CHAR): Replace macro by ...
21155 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21156
21157 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21158 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21159 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21160 (GLYPH_INVALID_P): New macro.
21161 (spec_glyph_lookup_face): Update prototype.
21162
21163 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21164 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21165 new glyph code encoding.
21166 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21167 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21168
21169 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21170 Adapt to new glyph type and new glyph code encoding.
21171
21172 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21173
21174 * indent.c (current_column, current_column_1, Fmove_to_column)
21175 (compute_motion): Adapt to new glyph code encoding.
21176
21177 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21178
21179 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21180
21181 * process.c (wait_reading_process_output): Check for window
21182 changes caused by timers.
21183 Suggested by Johan Bockgård.
21184
21185 2008-02-27 Glenn Morris <rgm@gnu.org>
21186
21187 * emacs.c (USAGE1): Add `--disable-font-backend'.
21188
21189 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21190
21191 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21192 is made to the buffer.
21193
21194 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21195
21196 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21197 (face_at_string_position):
21198 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21199 (face_at_string_position):
21200 * xdisp.c (display_string, next_overlay_change):
21201 * buffer.h (overlays_at):
21202 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21203 Update callers.
21204
21205 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21206
21207 * editfns.c (Fformat): Doc fix.
21208
21209 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21210
21211 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21212 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21213 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21214
21215 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21216
21217 * buffer.c (Fbuffer_swap_text): New function.
21218 (syms_of_buffer): Defsubr it.
21219
21220 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21221
21222 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21223
21224 2008-02-25 Jason Rumney <jasonr@gnu.org>
21225
21226 * w32font.c (w32font_draw): Draw one character at a time when padding.
21227
21228 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21229
21230 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21231 Handle a nil arg. Use run_window_configuration_change_hook.
21232 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21233 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21234 Use run_window_configuration_change_hook.
21235
21236 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21237
21238 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21239 1-pixel width.
21240
21241 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21242
21243 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21244 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21245 if the glyph in the font is zero pixel with.
21246
21247 * dispextern.h (struct glyph_string): New member padding_p.
21248
21249 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21250
21251 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21252
21253 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21254
21255 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21256
21257 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21258
21259 2008-02-25 Jason Rumney <jasonr@gnu.org>
21260
21261 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21262
21263 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21264
21265 Allow fine-grained image-cache flushing.
21266 * dispextern.h (struct image): Add `dependencies' field.
21267 (clear_image_caches): Change arg to Lisp_Object.
21268 * image.c (make_image): Initialize `dependencies' field.
21269 (clear_image_cache): Change arg to allow fine-grained flushing.
21270 Perform the flush even if image-cache-eviction-delay is nil.
21271 (clear_image_caches): Change arg to Lisp_Object.
21272 (Fclear_image_cache): Expand meaning of the argument.
21273 (mark_image): Mark `dependencies' field.
21274 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21275 (lface_hash): Use XHASH rather than XFASTINT.
21276 (face_at_buffer_position): Fix int -> EMACS_INT position.
21277 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21278 (select_frame_for_redisplay): Remove code duplication.
21279 (redisplay_internal): Adapt arg to call to clear_image_caches.
21280
21281 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21282
21283 * s/vms4-0.h:
21284 * s/vms4-2.h:
21285 * s/vms4-4.h:
21286 * s/vms5-5.h: Remove, unused.
21287
21288 * s/irix5-2.h:
21289 * s/irix6-0.h:
21290 * s/riscos5.h:
21291 * s/mach-bsd4-3.h:
21292 * m/mips4.h: Remove files for obsolete systems.
21293
21294 * Makefile.in:
21295 * filelock.c:
21296 * unexmips.c:
21297 * m/hp9000s300.h:
21298 * m/iris4d.h:
21299 * s/aix3-1.h:
21300 * s/hpux.h:
21301 * s/msdos.h:
21302 * s/usg5-0.h:
21303 * s/usg5-2-2.h:
21304 * s/usg5-2.h:
21305 * s/usg5-3.h: Remove references to obsolete variables.
21306
21307 * s/irix5-0.h: Remove, move all the contents ...
21308 * s/irix6-5.h: ... here. Simplify.
21309 * config.in: Regenerate.
21310
21311 2008-02-24 Jason Rumney <jasonr@gnu.org>
21312
21313 * w32term.c (x_draw_glyph_string_background): Clear the background
21314 manually when cleartype is in use.
21315 (x_draw_glyph_string_foreground): Draw text transparently when
21316 cleartype is in use.
21317
21318 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21319 a font into it unless we have to.
21320
21321 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21322
21323 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21324 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21325
21326 2008-02-18 Jason Rumney <jasonr@gnu.org>
21327
21328 * w32fns.c (Fw32_shell_execute): Encode parameters.
21329
21330 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21331
21332 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21333
21334 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21335
21336 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21337
21338 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21339
21340 * xterm.c (x_set_offset): Don't change the gravity if
21341 CHANGE_GRAVITY is -1.
21342
21343 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21344
21345 * fileio.c (auto_save_error_occurred): New var.
21346 (auto_save_error): Set it.
21347 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21348 error occurred.
21349
21350 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21351
21352 * w32.c (globals_of_w32): Add initializations for
21353 g_b_init_get_sid_sub_authority and
21354 g_b_init_get_sid_sub_authority_count.
21355
21356 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21357
21358 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21359 (font_parse_xlfd): Use them for sanity check.
21360 (Finternal_set_font_style_table): Make sure the table is bijective.
21361
21362 Consolidate the image_cache to the terminal struct.
21363 * termhooks.h (P_): Remove redundant def.
21364 (struct terminal): New field `image_cache'.
21365 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21366 of FRAME_X_IMAGE_CACHE.
21367 * xterm.h (struct x_display_info): Remove image_cache field.
21368 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21369 * w32term.h (struct w32_display_info): Remove image_cache field.
21370 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21371 * macterm.h (struct mac_display_info): Remove image_cache field.
21372 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21373 * xterm.c (x_term_init):
21374 * w32term.c (w32_term_init):
21375 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21376 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21377 Remove declarations.
21378 (clear_image_caches, mark_image_cache): New declarations.
21379 * xfaces.c (clear_face_cache):
21380 * xdisp.c (redisplay_internal): Use clear_image_caches.
21381 * image.c (clear_image_cache): Don't check that a frame is on
21382 a window-system before checking if it shares the same cache.
21383 (clear_image_caches): New function.
21384 (Fclear_image_cache): Use it.
21385 (mark_image): Move from allo.c.
21386 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21387 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21388 (mark_object): Don't call mark_image_cache for frames.
21389 (mark_terminals): Call mark_image_cache.
21390
21391 * lisp.h (Fdelete_terminal): Declare.
21392
21393 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21394 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21395 wrong_type_argument.
21396
21397 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21398
21399 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21400 malayalam.el, and tamil.el. Add sinhala.el.
21401
21402 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21403
21404 * xterm.c (x_connection_closed): Consolidate identical tests.
21405 (x_delete_terminal): Don't crash if called via x_connection_closed.
21406
21407 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21408
21409 * xdisp.c (decode_mode_spec): New arg string.
21410 (display_mode_element): Adjust for the above change.
21411
21412 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21413
21414 * callint.c (Fcall_interactively): Use AREF.
21415
21416 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21417
21418 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21419
21420 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21421
21422 * xfns.c (Fx_show_tip): Set string to " " if empty.
21423
21424 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21425
21426 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21427 with Qt.
21428
21429 2008-02-17 Kenichi Handa <handa@m17n.org>
21430
21431 * ftfont.c (ftfont_shape): Return Lispy number.
21432
21433 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21434 for GCs.
21435 (Finternal_set_font_selection_order): Call font_update_sort_order
21436 only when enable_font_backend is set.
21437 (realize_x_face): Set face->font_info to that of default face only
21438 when enable_font_backend is set.
21439
21440 * xdisp.c (handle_composition_prop): Set it->c to the fist
21441 character of the composed region.
21442 (fill_composite_glyph_string): Set base_face->font_info to
21443 s->font_info. Get a face for ascii from base_face->ascii_face.
21444 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21445 with a face already decided.
21446 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21447 non-negative.
21448 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21449 call font_prepare_composition unconditionally.
21450
21451 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21452
21453 * xterm.h (struct x_display_info): New member font.
21454
21455 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21456 (x_set_mouse_face_gc, x_new_font): Likewise.
21457 (x_term_init): Setup display_info->font.
21458 (x_delete_terminal): Free display_info->font.
21459
21460 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21461
21462 * ftxfont.c (ftxfont_default_fid): Delete it.
21463 (ftxfont_open): Set xfont->fid to 0.
21464 (ftxfont_end_for_frame): Clear data specific to the frame and the
21465 font-driver.
21466
21467 * xftfont.c (xftfont_default_fid): Delete it.
21468 (xftfont_open): Set xfont->fid to 0.
21469
21470 * fontset.c (FONTSET_OBJLIST): New macro.
21471 (fontset_find_font): Update font-object list of the fontset.
21472 (free_realized_fontset): New function.
21473 (free_face_fontset): Call free_realized_fontset.
21474 (Ffont_info): Call font_close_object only when enable_font_backend
21475 is set.
21476
21477 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21478 [HAVE_NTGUI]: Include w32term.h.
21479 [MAC_OS]: Include macterm.ch.
21480 (font_otf_ValueRecord): Use make_number.
21481 (font_finish_cache): Fix handling of reference count.
21482 (font_clear_cache): Update num_fonts.
21483 (font_open_entity): Update smallest_char_width and
21484 smallest_font_height of the frame.
21485 (font_close_object): Update num_fonts.
21486 (Fclear_font_cache): Fix finding the target cache data.
21487
21488 2008-02-16 Glenn Morris <rgm@gnu.org>
21489
21490 * fontset.c (Finternal_char_font): Fix compilation warning.
21491
21492 2008-02-16 Eli Zaretskii <eliz@gnu.org>
21493
21494 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21495 instead of char arrays. Enlarge the size of array passed to
21496 get_token_information.
21497
21498 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21499 warnings.
21500
21501 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21502
21503 * .gdbinit: Don't set `args', it breaks gdb --args.
21504
21505 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21506
21507 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21508 within a narrowed buffer.
21509
21510 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21511
21512 * coding.c (decode_coding_object, encode_coding_object):
21513 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21514
21515 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21516
21517 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21518 hardcoding 1.
21519 (detect_coding_system):
21520 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21521 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21522 * insdel.c (insert_from_gap):
21523 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21524 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21525 (string_to_multibyte):
21526 * character.c (chars_in_text, multibyte_chars_in_text):
21527 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21528
21529 * character.h (FETCH_STRING_CHAR_ADVANCE)
21530 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21531 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21532 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21533
21534 * casefiddle.c (casify_region): Only call after-change and composition
21535 functions on the part of the region that was changed.
21536
21537 * keyboard.c (read_avail_input):
21538 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21539
21540 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21541
21542 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21543 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21544
21545 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
21546
21547 * w32menu.c (push_submenu_start, push_submenu_end)
21548 (push_left_right_boundary, push_menu_pane, push_menu_item):
21549 * keyboard.c (read_key_sequence): Don't pass args with side effects
21550 to AREF, it fails when compiling with -DENABLE_CHECKING.
21551
21552 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21553
21554 * Makefile.in (${lispsource}international/charprop.el):
21555 Delete this target.
21556
21557 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21558 emacs-unicode-2.
21559
21560 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21561
21562 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21563
21564 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21565
21566 * frame.c (Qnoelisp): New symbol.
21567 (syms_of_frame): Initialize it.
21568 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21569 harmless Elisp code, from a strong `force' from x_connection_closed.
21570 * frame.h (Qnoelisp): Declare.
21571 * xterm.c (x_connection_closed): Pass `noelisp'.
21572
21573 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21574 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21575 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21576 rather than `int' for the type of `type'.
21577
21578 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21579
21580 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21581
21582 * Makefile.in (GNUC): Remove support for gcc-1.x.
21583
21584 2008-02-10 Richard Stallman <rms@gnu.org>
21585
21586 * lisp.h (ASET): Use AREF, not ASLOT.
21587
21588 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21589
21590 * lisp.h (ASET): Check bounds.
21591
21592 2008-02-10 Glenn Morris <rgm@gnu.org>
21593
21594 * buffer.c (mode-name): Doc fix.
21595
21596 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21597
21598 * Makefile.in:
21599 * emacs.c:
21600 * gmalloc.c:
21601 * keyboard.c:
21602 * lisp.h:
21603 * m/ibm370aix.h:
21604 * process.c:
21605 * regex.c:
21606 * s/hpux.h:
21607 * sysdep.c:
21608 * sysselect.h:
21609 * systty.h:
21610 * unexec.c:
21611 * w32term.c:
21612 * xsmfns.c:
21613 * xterm.c: Remove code that deals with obsolete variables.
21614
21615 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21616
21617 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21618 nothing else needs it anymore.
21619
21620 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21621
21622 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21623 instead of unibyte_char_to_multibyte.
21624
21625 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21626
21627 * s/gnu-linux.h: Remove commented out code.
21628
21629 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21630
21631 * Makefile.in: Update what RMS says about using autoconf.
21632 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21633 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21634 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21635 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21636
21637 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21638
21639 * keymap.c (Fkey_description): Move side effect outside of macro call.
21640
21641 * xfaces.c (Finternal_make_lisp_face):
21642 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21643
21644 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21645 (syms_of_fontset): Use ASET.
21646
21647 * fns.c (concat): Move side effect outside of macro call.
21648 (hash_clear): Use ASET.
21649
21650 2008-02-08 Richard Stallman <rms@gnu.org>
21651
21652 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21653 If FORCE, and frame has a surrogate minibuffer for another frame,
21654 delete the other frame first.
21655
21656 2008-02-07 Timo Savola <timo.savola@iki.fi>
21657
21658 * xterm.c (x_detect_focus_change): Handle embed client message.
21659 (handle_one_xevent): Ditto.
21660 (handle_one_xevent): If embedded and we get a button press/release,
21661 request focus.
21662 (xembed_set_info, xembed_send_message): New functions.
21663 (x_make_frame_visible): Call xembed_set_info if embedded.
21664 (x_make_frame_invisible): Call xembed_set_info if embedded.
21665 (x_term_init): Initialize Xatom_XEMBED.
21666 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21667 (x_iconify_frame): Ditto.
21668
21669 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21670 (enum xembed_info, enum xembed_message, enum xembed_focus)
21671 (enum xembed_modifier, enum xembed_accelerator): New.
21672 (xembed_set_info, xembed_send_message): Declare.
21673 (FRAME_X_EMBEDDED_P): New.
21674
21675 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21676 gtk_plug_new.
21677
21678 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21679 window ID of a frame.
21680 (x_window): Reparent frame if embedded.
21681 (Fx_create_frame): Don't set border width if embedded.
21682
21683 * emacs.c (USAGE3): Add --parent-id.
21684 (standard_args): Ditto.
21685
21686 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21687
21688 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21689
21690 2008-02-07 Jim Meyering <meyering@redhat.com>
21691
21692 Use "do...while (0)", not "if (1)...else" in macro definitions.
21693 The latter provokes a warning from gcc about the empty else, when
21694 followed by ";". Also, without that trailing semicolon, it would
21695 silently swallow up any following statement.
21696 * syntax.h (SETUP_SYNTAX_TABLE)
21697 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21698 * buffer.h (DECODE_POSITION): Likewise.
21699 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21700 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21701 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21702 (FETCH_CHAR_ADVANCE): Likewise.
21703 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21704
21705 2008-02-07 Jim Meyering <meyering@redhat.com>
21706
21707 * lread.c [lint]: Don't include <sys/inode.h>.
21708
21709 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21710
21711 * xselect.c (x_handle_dnd_message):
21712 * xmenu.c (digest_single_submenu, xmenu_show):
21713 * xdisp.c (with_echo_area_buffer_unwind_data)
21714 (format_mode_line_unwind_data, unwind_format_mode_line)
21715 (display_menu_bar):
21716 * eval.c (Ffetch_bytecode):
21717 * doc.c (store_function_docstring):
21718 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21719 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21720 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21721
21722 2008-02-07 Kenichi Handa <handa@m17n.org>
21723
21724 * ftxfont.c (ftxfont_open): Don't set
21725 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21726
21727 * ftfont.c (ftfont_open): Fix previous change.
21728
21729 2008-02-06 Jason Rumney <jasonr@gnu.org>
21730
21731 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21732 Use cached metrics for ASCII characters.
21733 (w32font_open_internal): Don't set font's owning_frame.
21734 Cache metrics for ASCII characters.
21735
21736 * w32font.h (struct w32font_info): Add ascii_metrics.
21737 Remove owning_frame.
21738
21739 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21740
21741 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21742 to negative value.
21743
21744 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21745
21746 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21747
21748 * charset.c (syms_of_charset): Set QCtest and Qeq.
21749
21750 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21751
21752 * process.c (Fstart_process):
21753 * callproc.c (Fcall_process): Handle the case where
21754 Funhandled_file_name_directory returns nil.
21755
21756 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21757 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21758 * font.c (check_gstring): Use them and AREF to access the vector before
21759 we know it's really a gstring.
21760 (Ffont_shape_text): Fix typo.
21761 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
21762
21763 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21764 Declare.
21765
21766 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21767
21768 2008-02-05 Jason Rumney <jasonr@gnu.org>
21769
21770 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21771 Set smallest_font_height and smallest_char_width in display info.
21772
21773 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21774
21775 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21776
21777 2008-02-05 Miles Bader <miles@gnu.org>
21778
21779 * xfaces.c (get_lface_attributes, merge_named_face)
21780 (lookup_named_face, lookup_derived_face, realize_named_face):
21781 Revert 2008-02-01 change by cyd@stupidchicken.com.
21782
21783 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21784
21785 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21786 fallback fonts.
21787 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21788
21789 2008-02-04 Jason Rumney <jasonr@gnu.org>
21790
21791 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21792 set full_name.
21793 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21794
21795 2008-02-03 Jason Rumney <jasonr@gnu.org>
21796
21797 * makefile.w32-in (OBJ1): Include font.o here.
21798 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21799
21800 2008-02-02 Jason Rumney <jasonr@gnu.org>
21801
21802 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21803
21804 2008-02-01 Jason Rumney <jasonr@gnu.org>
21805
21806 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21807
21808 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21809
21810 2008-02-01 Andreas Schwab <schwab@suse.de>
21811
21812 * Makefile.in (shortlisp, lisp): Update for rename of
21813 ../lisp/language/myanmar.el.
21814
21815 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
21816
21817 * xfaces.c (get_lface_attributes): Delete function.
21818 (merge_named_face, lookup_named_face, lookup_derived_face)
21819 (realize_named_face): Call lface_from_face_name directly, and use
21820 the fact that merge_face_vectors does not alter its FROM argument.
21821
21822 2008-02-01 Jason Rumney <jasonr@gnu.org>
21823
21824 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21825 input in the default locale. Handle non-Unicode multibyte input.
21826
21827 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21828
21829 * fontset.c (reorder_font_vector): Exclude nil elements from the
21830 font group. Don't try multiple fonts.
21831 (fontset_font): Adjust for the above change.
21832 (Finternal_char_font): Return nil if the found font doesn't
21833 contain the character ch.
21834
21835 * Makefile.in (lisp, shortlisp): Add cham.el.
21836
21837 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21838
21839 * font.h (FONTP): Make it return 1 also for a font-object.
21840
21841 * .gdbinit (xfontset): New function.
21842
21843 * font.c (font_find_for_lface): Check if the character C is
21844 supported or not only for the first font.
21845
21846 * fontset.c (reorder_font_vector): Fix typo.
21847 (fontset_find_font): Don't add a font-spec specifying a script.
21848 Use 0 (not Qt) for the indication of empty font-group. Change the
21849 format of RFONT-DEF. Return Qt if no font in the font-group
21850 support the character.
21851 (fontset_font): Adjust for the above change. If no font was
21852 found the character, remember that.
21853 (face_for_char): Adjust for the change of RFONT-DEF.
21854 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21855 no font for the target.
21856 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21857
21858 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21859
21860 * font.c (font_load_for_face): Handle the case that the font in
21861 face->lface is a string.
21862
21863 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21864
21865 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21866
21867 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21868
21869 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21870 Fix previous change. If the frame is not on a window system,
21871 signal an error.
21872
21873 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21874
21875 * coding.c (decode_coding_object, encode_coding_object):
21876 Adjust marker positions after conversion.
21877
21878 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21879
21880 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21881
21882 * font.c (font_find_for_lface): Fix the handling of the return
21883 value of font_has_char.
21884 (Ffont_shape_text): Fix previous change.
21885
21886 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21887 (fontset_ref_and_range): Delete it.
21888 (fontset_find_font): Call char_table_ref_and_range instead of
21889 FONTSET_REF_AND_RANGE.
21890 (make_fontset): Don't setup font groups of Latin here.
21891 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21892 (new_fontset_from_font): Make the specified font the default for
21893 all Latin characters.
21894
21895 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21896
21897 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21898 is on a window system before accessing the fontset of the frame.
21899
21900 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21901
21902 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21903
21904 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21905 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21906
21907 * font.c (Ffont_shape_text): If the font driver doesn't have a
21908 shaper function, make zero-width glyphs to have at least one-pixel
21909 width. Fix setting of `to' field of glyphs.
21910
21911 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21912
21913 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21914 glyphs.
21915
21916 * font.h (struct font_driver): Improve docstring of member `shape'.
21917
21918 2008-02-01 Kenichi Handa <handa@m17n.org>
21919
21920 * composite.c (syms_of_composite): Fix docstring of
21921 auto-composition-function.
21922
21923 * font.h (LGLYPH_SIZE): New macro.
21924
21925 * font.c (Ffont_fill_gstring): Stop filling when a character not
21926 supported by the font is found.
21927 (Ffont_shape_text): When a shape callback function returns nil,
21928 try at most two more times with larger gstring.
21929 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21930
21931 * xdisp.c (handle_auto_composed_prop): Change the argument to
21932 auto-composition-function.
21933
21934 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21935 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21936 Lispy glyph and store it in the lgstring.
21937
21938 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21939
21940 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21941
21942 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21943
21944 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21945
21946 * fontset.c (Vfont_encoding_charset_alist): New variable.
21947 (syms_of_fontset): DEFVAR it.
21948 (reorder_font_vector, fontset_find_font): Optimize for the case of
21949 no need of reordering.
21950 (face_for_char): Map the charset property by
21951 Vfont_encoding_charset_alist.
21952
21953 2008-02-01 Jason Rumney <jasonr@gnu.org>
21954
21955 * w32font.c (logfonts_match): Don't check adstyle here.
21956 (font_matches_spec): Check here against physical font instead.
21957 (add_font_entity_to_list): Avoid some substitutions.
21958
21959 * font.c (font_parse_fcname): Default weight and slant to normal.
21960 (font_score): Prefer normal fonts if weight or slant unspecified.
21961 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21962 match freetype scores.
21963
21964 2008-02-01 Jason Rumney <jasonr@gnu.org>
21965
21966 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21967 font, as it may have been deleted.
21968 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21969 most common hyphenless variation.
21970 (logfonts_match): Check generic family.
21971 (font_matches_spec): Don't check generic family here.
21972 (fill_in_logfont): Set generic family based on adstyle.
21973
21974 * w32font.h (w32font_get_cache): Update declaration.
21975
21976 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21977
21978 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21979
21980 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21981 If none of the new drivers are available, call font_update_drivers
21982 with the old drivers.
21983
21984 * w32font.c (w32font_get_cache): Adjust the argument type.
21985
21986 * xfont.c (xfont_get_cache): Adjust the argument type.
21987
21988 * font.h (struct font_driver): Change argument type of get_cache.
21989
21990 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21991
21992 * font.c (Ffont_get): Fix arguments to Fassoc.
21993 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21994 (font_clear_cache): New function.
21995 (font_list_entities, font_matching_entity): Use font_get_cache.
21996 (font_update_drivers): Call font_clear_cache when finishing a driver.
21997
21998 * fontset.c (fontset_find_font): Fix previous change.
21999
22000 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22001
22002 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22003 dpyinfo->font_table.
22004 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22005 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22006
22007 * font.c (font_at): Handle the case that the arg C is negative.
22008 Handle the unibyte case.
22009 (Ffont_at): Call font_at with the arg C -1.
22010
22011 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22012 the position here, and call font_at with the arg C -1.
22013 Don't check the range of the existing composition at the point.
22014
22015 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22016
22017 * fontset.c (fontset_add): New args charset_id and family.
22018 Change caller.
22019 (load_font_get_repertory, fontset_find_font): Assume that
22020 font_spec is always a font-spec object.
22021 (Fset_fontset_font): Always store a font-spec object in a fontset.
22022
22023 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22024 instead of get_property_and_range.
22025
22026 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22027
22028 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22029 (xftfont_open): Don't keep locking face.
22030 (xftfont_close): Don't unlock face.
22031 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22032
22033 * fontset.c (fontset_find_font): Don't prefer a font of
22034 supplementary charset.
22035
22036 2008-02-01 Kenichi Handa <handa@m17n.org>
22037
22038 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22039 script, langsys_tag to langsys, new member script.
22040 (OTF_TAG_STR): Terminate by '\0'.
22041 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
22042 listing to the script specified in that property. Fix arg to
22043 OTF_check_features.
22044
22045 2008-02-01 Jason Rumney <jasonr@gnu.org>
22046
22047 * w32font.h: New file.
22048
22049 * w32font.c: Include it.
22050 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22051 (w32font_open): Set owning_frame.
22052 (w32font_text_extents): Use owning_frame.
22053 (struct font_callback_data): Add opentype_only field.
22054 (add_font_entity_to_list): Use it to filter fonts.
22055 Don't check against full name.
22056 (w32font_list_internal): New function.
22057 (w32font_list): Use it.
22058 (w32font_match_internal): New function.
22059 (w32font_match): Use it.
22060 (w32font_open_internal): New function.
22061 (w32font_open): Use it.
22062 (w32font_get_cache, w32font_close, w32font_has_char)
22063 (w32font_encode_char, w32font_text_extents, w32font_draw):
22064 Make non-static.
22065
22066 * makefile.w32-in (w32font.o): Depend on w32font.h.
22067
22068 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22069
22070 * charset.c (Fdefine_charset_internal): Record a supplementary
22071 charset at the tail of Vcharset_order_list.
22072
22073 * font.c (Ffont_shape_text): Fix the return value.
22074
22075 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22076
22077 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22078
22079 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22080
22081 * ftfont.c (struct OpenTypeSpec): New struct.
22082 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22083 (ftfont_get_open_type_spec): New function.
22084 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22085
22086 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22087
22088 2008-02-01 Jason Rumney <jasonr@gnu.org>
22089
22090 * w32font.c (add_font_entity_to_list): Compare only the beginning
22091 of full name.
22092
22093 2008-02-01 Kenichi Handa <handa@m17n.org>
22094
22095 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22096 Never return HANDLED_RECOMPUTE_PROPS.
22097
22098 2008-02-01 Kenichi Handa <handa@m17n.org>
22099
22100 * font.c (font_gstring_produce): Delete it.
22101
22102 * composite.h (COMPOSITION_METHOD):
22103 Handle COMPOSITION_WITH_GLYPH_STRING.
22104
22105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22106
22107 * xfont.c (Qx): Delete.
22108 (syms_of_xfont): Don't initialize Qx.
22109
22110 * composite.h (enum composition_method):
22111 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22112
22113 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22114
22115 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22116 (choose_face_font): Accept new form of font-spec.
22117
22118 * frame.h (font_driver_list): Declare it unconditionally.
22119 (struct frame): Define members font_driver_list and font_data_list
22120 unconditionally.
22121
22122 * fontset.c: Include "font.h" unconditionally.
22123 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22124 (Fset_fontset_font): Accept a font-spec object.
22125
22126 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22127 PIXEL_SIZE part a wild card.
22128
22129 * dispextern.h (struct glyph_string): Define members clip and
22130 num_clips unconditionally.
22131 (struct face): Define members font_info and extra unconditionally.
22132
22133 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22134 ftfont_info only when HAVE_LIBOTF is defined.
22135
22136 2008-02-01 Andreas Schwab <schwab@suse.de>
22137
22138 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22139 and end.
22140
22141 2008-02-01 Jason Rumney <jasonr@gnu.org>
22142
22143 * w32font.c (w32font_driver): Add new fields.
22144
22145 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22146
22147 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22148 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22149 (LIBES): Add @M17N_FLT_CFLAGS@.
22150
22151 * composite.c (compose_text): Don't treat the new style
22152 composition specially.
22153
22154 * emacs.c (main): Call syms_of_font unconditionally.
22155
22156 * font.h (FONT_ENTITY_NOT_LOADABLE)
22157 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22158 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22159 (struct font_driver): New member shape.
22160 (font_registry_charsets): Extern it.
22161 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22162 (font_otf_capability, font_drive_otf): Delete their externs.
22163
22164 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22165 (font_charset_alist, font_registry_charsets): Move from xfont.c
22166 and rename.
22167 (font_prop_validate_otf): New function.
22168 (font_property_table): Register it for QCotf.
22169 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22170 (font_drive_otf): Delete.
22171 (font_prepare_composition): New arg F. Adjust for the change of
22172 lispy gstring.
22173 (font_find_for_lface): New arg C.
22174 (font_load_for_face): Adjust for the change of font_find_for_lface.
22175 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22176 lispy gstring.
22177 (Ffont_shape_text): New function.
22178 (Fopen_font): If the font size is not given, use 12-pixel.
22179 (Ffont_at): New arg STRING.
22180 (syms_of_font): Initialize font_charset_alist.
22181 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22182 conditionally.
22183
22184 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22185 fonts of the same font-spec. Change the format of RFONT-DEF.
22186 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22187 Adjust for the change of RFONT-DEF.
22188 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22189
22190 * ftfont.h: New file.
22191
22192 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22193 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22194 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22195 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22196 font_otf_capability and font_drive_otf, set ftfont_shape.
22197 (ftfont_list): Adjust for the change of :otf property value.
22198 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22199 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22200 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22201 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22202 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22203 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22204
22205 * w32term.c (x_draw_composite_glyph_string_foreground):
22206 Adjust for the change of lispy gstring.
22207
22208 * xdisp.c (handle_composition_prop): Adjust for the change of
22209 lispy gstring. Call a function for auto-composition with the
22210 third arg it->window.
22211 (fill_composite_glyph_string): Adjust for the change of lispy string.
22212 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22213
22214 * xfaces.c (set_font_frame_param): Adjust for the change of
22215 font_find_for_lface.
22216
22217 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22218 (xfont_registry_charsets): Likewise. Change caller.
22219 (syms_of_xfont): Don't handle x_font_charset_alist.
22220
22221 * xftfont.c: Include "ftfont.h".
22222 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22223 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22224 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22225 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22226 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22227 Set xftfont_driver.shape to xftfont_shape.
22228
22229 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22230 the change of lispy gstring.
22231
22232 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22233
22234 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22235
22236 2008-02-01 Jason Rumney <jasonr@gnu.org>
22237
22238 * w32font.c (w32font_draw): Fill background manually.
22239
22240 2008-02-01 Jason Rumney <jasonr@gnu.org>
22241
22242 * font.c (Qfontp): Remove unused symbol.
22243 (QCantialias): New symbol.
22244 (syms_of_font): Define it.
22245 (font_property_table): Set a validator for QCantialias.
22246
22247 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22248 Define if not already.
22249 (QCfamily): Share with xfaces.c.
22250 (Qstandard, Qsubpixel, Qnatural): New symbols.
22251 (syms_of_w32font): Define them. Don't define QCfamily here.
22252 (w32_antialias_type, lispy_antialias_type): New functions.
22253 (w32_enumfont_pattern_entity): New arg requested_font.
22254 Set antialias parameter if non-default was requested.
22255 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22256
22257 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22258
22259 * lread.c (read1): Undo the previous change.
22260
22261 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22262
22263 * frame.c (Fdelete_frame): Call font_update_drivers only when
22264 USE_FONT_BACKEND is defined.
22265
22266 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22267
22268 * font.h (struct font_bitmap): New member bits_per_pixel.
22269 (struct font_driver): New members start_for_frame and end_for_frame.
22270 (struct font_data_list): New struct.
22271 (font_put_frame_data, font_get_frame_data): Extern them.
22272
22273 * frame.h (struct frame): New member font_data_list.
22274
22275 * font.c (font_update_drivers): Call driver->start_for_frame and
22276 driver->end_for_frame at proper timings.
22277 (font_put_frame_data, font_get_frame_data): New functions.
22278 (Ffont_spec): Add usage in the docstring.
22279
22280 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22281 (Fdelete_frame): Call font_update_drivers.
22282
22283 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22284 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22285 (xftfont_get_xft_draw): New function.
22286 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22287 (xftfont_end_for_frame): New function.
22288 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22289
22290 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22291 Change argument. Cache GCs in the per-frame data.
22292 (struct ftxfont_frame_data): New struct.
22293 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22294 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22295 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22296 (ftxfont_end_for_frame): New function.
22297 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22298
22299 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22300
22301 2008-02-01 Kenichi Handa <handa@m17n.org>
22302
22303 * xselect.c (Vselection_coding_system)
22304 (Vnext_selection_coding_system): Delete them.
22305 (syms_of_xselect): Don't declare selection-coding-system and
22306 next-selection-coding-system. They are declared in select.el.
22307
22308 2008-02-01 Jason Rumney <jasonr@gnu.org>
22309
22310 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22311
22312 * w32fns.c: Include imm.h.
22313 (get_composition_string_fn, get_ime_context_fn): New optional
22314 system functions.
22315 (globals_of_w32fns): Load them from imm32.dll.
22316 (ignore_ime_char): New flag.
22317 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22318 WM_IME_ENDCOMPOSITION messages.
22319
22320 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22321 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22322
22323 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22324
22325 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22326 (READCHAR_REPORT_MULTIBYTE): New macro.
22327 (readchar): New 2nd arg MULTIBYTE.
22328 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22329 Make symbol's name multibyte according to the multibyteness of the
22330 source.
22331
22332 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22333
22334 * xfaces.c (face_for_overlay_string): Call lookup_face with
22335 correct arguments (fix of synching with the trunk).
22336
22337 2008-02-01 Kenichi Handa <handa@m17n.org>
22338
22339 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22340 (font_prop_validate_non_neg, font_prop_validate_spacing):
22341 Delete argument prop_index.
22342 (font_property_table): Change arguments to validater. Change Callers.
22343 (font_lispy_object): Delete.
22344 (font_at): Use font_find_object instead fo font_lispy_object.
22345
22346 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22347
22348 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22349 and file names.
22350
22351 2008-02-01 Jason Rumney <jasonr@gnu.org>
22352
22353 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22354 (font_matches_spec): Remove debug output.
22355 (add_font_entity_to_list): Avoid using substituted fonts.
22356
22357 2008-02-01 Jason Rumney <jasonr@gnu.org>
22358
22359 * doc.c (Fsnarf_documentation):
22360 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22361
22362 2008-02-01 Miles Bader <miles@gnu.org>
22363
22364 * dispextern.h (struct glyph_row): Only define "clip" field if
22365 HAVE_WINDOW_SYSTEM is defined.
22366
22367 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22368
22369 Fix up multi-tty merge.
22370
22371 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22372 and indentation.
22373
22374 * xfaces.c (free_realized_face, clear_face_gcs):
22375 Include font_done_for_face in the input_blocked section, just in case.
22376
22377 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22378 (get_char_face_and_encoding): Undo last change and remove the *other*
22379 duplicate definition (i.e. keep the one that's better scoped and that
22380 includes code for the font-backend).
22381
22382 * terminal.c (create_terminal): Default keyboard_coding to
22383 `no-conversion' and terminal_coding to `undecided'.
22384
22385 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22386
22387 * fontset.c (free_realized_fontsets): Check that the table entry does
22388 contain a fontset before trying to compare it to `base'.
22389
22390 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22391 syms_of_charset, and syms_of_coding earlier because init_window_once
22392 now needs Vcoding_system_hash_table to be setup.
22393
22394 * coding.h (default_buffer_file_coding): Remove.
22395
22396 * coding.c (default_buffer_file_coding): Remove.
22397 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22398 than ->symbol, and use the terminal-local coding system.
22399 (syms_of_coding): Don't setup the coding-systems that are not
22400 terminal-local.
22401 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22402
22403 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22404 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22405
22406 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22407 in chartab.c and were re-added here by mistake.
22408 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22409
22410 * doc.c (Fsnarf_documentation):
22411 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22412 src to etc.
22413
22414 * ChangeLog.10: Add mistakenly removed entry.
22415
22416 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22417
22418 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22419
22420 2008-02-01 Miles Bader <miles@gnu.org>
22421
22422 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22423 Add extra args to FACE_FOR_CHAR.
22424
22425 2008-02-01 Kenichi Handa <handa@m17n.org>
22426
22427 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22428 in sequence.
22429
22430 * chartab.c (map_sub_char_table, map_char_table): If the range
22431 contains just one character, call the function with that character
22432 even if the depth is not 3.
22433
22434 2008-02-01 Jason Rumney <jasonr@gnu.org>
22435
22436 * w32font.c (w32font_text_extents): Calculate metrics for the
22437 whole string.
22438
22439 2008-02-01 Jason Rumney <jasonr@gnu.org>
22440
22441 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22442
22443 2008-02-01 Jason Rumney <jasonr@gnu.org>
22444
22445 * w32term.c (x_set_glyph_string_clipping):
22446 Use get_glyph_string_clip_rects.
22447 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22448 Adjust for the change of struct glyph_string.
22449
22450 * w32font.c (w32font_draw): Do clipping here.
22451
22452 2008-02-01 Kenichi Handa <handa@m17n.org>
22453
22454 * xftfont.c (xftfont_draw): Adjust for the change of struct
22455 glyph_string.
22456
22457 * xterm.c (x_set_glyph_string_clipping):
22458 Use get_glyph_string_clip_rects.
22459 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22460 Adjust for the change of struct glyph_string.
22461
22462 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22463 the resulting clip(s}.
22464 (expose_overlaps): Add arg r. Change callers. Set it to
22465 row->clip temporarily.
22466 (expose_window): Redraw rows overlapping the exposed area.
22467
22468 * dispextern.h (struct glyph_row): New member clip.
22469 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22470 clip_height, new member clip, and num_clips.
22471
22472 2008-02-01 Kenichi Handa <handa@m17n.org>
22473
22474 * data.c (Fchar_or_string_p): Fix docstring.
22475
22476 2008-02-01 Kenichi Handa <handa@m17n.org>
22477
22478 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22479 create a temporary XftDraw object.
22480
22481 2008-02-01 Kenichi Handa <handa@m17n.org>
22482
22483 * font.c (Ffontp): Fix docstring.
22484
22485 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22486 strong evidence of ISO-2022.
22487
22488 2008-02-01 Kenichi Handa <handa@m17n.org>
22489
22490 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22491 SYNTAX_ENTRY_FOLLOW_PARENT.
22492
22493 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22494
22495 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22496 its type.
22497 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22498 Update to the new type of weak_hash_tables and next_weak.
22499
22500 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22501 a plain C pointer to Lisp_Hash_Table.
22502
22503 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22504 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22505 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22506 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22507 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22508 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22509 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22510 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22511 (GC_EQ): Remove since they've been identical to their non-GC_
22512 alter-egos ever since the markbit was eradicated.
22513
22514 * alloc.c:
22515 * buffer.c:
22516 * buffer.h:
22517 * data.c:
22518 * fileio.c:
22519 * filelock.c:
22520 * fns.c:
22521 * frame.h:
22522 * lisp.h:
22523 * macterm.c:
22524 * print.c:
22525 * process.c:
22526 * w32fns.c:
22527 * w32menu.c:
22528 * w32term.c:
22529 * xfns.c:
22530 * xmenu.c:
22531 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22532
22533 2008-02-01 Kenichi Handa <handa@m17n.org>
22534
22535 * chartab.c (map_sub_char_table): Make it work for the top-level
22536 char-table. Fix handling of parent char-table.
22537 (map_char_table): Adjust for the above change.
22538
22539 2008-02-01 Jason Rumney <jasonr@gnu.org>
22540
22541 * w32font.c (Qgdi): Rename from Qw32.
22542
22543 2008-02-01 Jason Rumney <jasonr@gnu.org>
22544
22545 * w32bdf.c (get_quoted_string): Make function static.
22546
22547 2008-02-01 Kenichi Handa <handa@m17n.org>
22548
22549 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22550 bigger ascent and descent than those of the font, use them as
22551 font's ascent and descent.
22552
22553 2008-02-01 Kenichi Handa <handa@m17n.org>
22554
22555 * Makefile.in (${lispsource}international/charprop.el): Move this
22556 target within "#ifdef HAVE_UNIDATA" and "#endif".
22557
22558 2008-02-01 Kenichi Handa <handa@m17n.org>
22559
22560 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22561 (shortlisp): Add ../lisp/language/tai-viet.el.
22562
22563 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
22564
22565 * Makefile.in (${lispsource}international/charprop.el): Depend on
22566 temacs${EXEEXT}.
22567
22568 2008-02-01 Jason Rumney <jasonr@gnu.org>
22569
22570 * w32font.c (w32font_close): Delete the GDI font object.
22571
22572 * w32menu.c: Include character.h.
22573
22574 * w32proc.c: Likewise.
22575
22576 * w32select.c: Likewise.
22577
22578 * makefile.w32-in (w32proc.o): Depend on character.h.
22579
22580 2008-02-01 Jason Rumney <jasonr@gnu.org>
22581
22582 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22583
22584 * w32menu.c (syms_of_w32menu): Likewise.
22585
22586 * w32proc.c (syms_of_ntproc): Likewise.
22587
22588 * w32select.c (syms_of_w32select): Likewise.
22589
22590 * w32term.c (syms_of_w32term): Likewise.
22591
22592 2008-02-01 Jason Rumney <jasonr@gnu.org>
22593
22594 * w32font.c (w32font_draw): Delete brush after using it.
22595
22596 2008-02-01 Jason Rumney <jasonr@gnu.org>
22597
22598 * w32font.c (w32font_open): Don't set font_idx.
22599 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22600 to font settings.
22601 (w32font_draw): Fill background explicitly.
22602
22603 2008-02-01 Jason Rumney <jasonr@gnu.org>
22604
22605 * w32term.c (w32_initialize): Don't call w32font_initialize.
22606
22607 * w32font.c (w32font_info): Remove subranges.
22608 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22609 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22610 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22611 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22612 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22613 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22614 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22615 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22616 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22617 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22618 New symbols.
22619 (font_callback_data): New struct.
22620 (w32font_list, w32font_match): Use it.
22621 (w32font_open): Don't populate subranges.
22622 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22623 (w32font_encode_char): Always return unicode code-point as-is.
22624 (w32font_text_extents): Supply a transformation matrix to
22625 GetGlyphOutline. Never look up by glyph index. Avoid looping
22626 twice. Use unicode version of GetTexExtentPoint32 instead of
22627 glyph index version.
22628 (set_fonts_frame): Remove.
22629 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22630 set frame parameter. Use backward compatible fake foundries.
22631 Save generic family in extra slot under QCfamily. Make width slot
22632 constant. Save QCspacing value. Save list of scripts instead of
22633 binary subranges.
22634 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
22635 (add_font_entity_to_list): Use font_callback_data struct.
22636 Filter unwanted fonts.
22637 (add_one_font_entity_to_list): Use font_callback_data struct.
22638 (w32_registry): Default to iso10646_1.
22639 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22640 string font registries. Don't fill in font name if it is a generic
22641 family name, fill family instead. Use spacing, family and script
22642 extra info to fill pitch, family and charset fields.
22643 (list_all_matching_fonts): Use font_callback_data struct.
22644 (unicode_range_for_char): Remove.
22645 (font_supported_scripts): New function.
22646 (w32font_initialize): Remove.
22647 (syms_of_w32font): Update which symbols are defined.
22648
22649 2008-02-01 Jason Rumney <jasonr@gnu.org>
22650
22651 * font.c (font_pixel_size): Reverse assq_no_quit args.
22652
22653 * w32term.h (FONT_WIDTH): Report max width, not average.
22654 (FONT_MAX_WIDTH): Remove.
22655 (FONT_AVG_WIDTH): New macro.
22656
22657 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22658 redefinition of FONT_WIDTH.
22659
22660 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22661 (w32_cache_char_metrics): Use FONT_WIDTH.
22662
22663 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22664
22665 2008-02-01 Jason Rumney <jasonr@gnu.org>
22666
22667 * w32font.c (w32font_open): Make lfHeight negative.
22668
22669 * w32fns.c (x_default_font_parameter): Use new style font name.
22670 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22671
22672 2008-02-01 Jason Rumney <jasonr@gnu.org>
22673
22674 * w32font.c (QCsubranges): New symbol.
22675 (w32font_open, w32font_has_char): Get subranges from subproperty
22676 of extra.
22677 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22678 (syms_of_w32font): Define :subranges symbol.
22679
22680 * font.c (font_put_extra): Expose externally.
22681
22682 * font.h (font_put_extra): Move declaration from font.c.
22683
22684 * font.c (Ffont_get): Use font driver to determine otf capability.
22685 (adjust_anchor): Check if driver defines anchor_point before using.
22686
22687 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22688 (w32font_draw): Use options.
22689 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22690 Fix detection of truetype fonts.
22691 (registry_to_w32_charset): Handle charsets other than iso8859-1
22692 expressed as lisp symbols.
22693 (w32_registry): Express charset as lisp symbol.
22694 (fill_in_logfont): Reverse pixel and point height logic.
22695 Don't set width here. Set quality to default.
22696
22697 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22698 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22699
22700 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22701 Remove redundant loop and allocation.
22702
22703 * makefile.w32-in (font.o, w32font.o): New objects.
22704 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22705 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22706
22707 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22708 STORE_XCHARB a valid l-value.
22709
22710 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22711 calculations for non-Truetype fonts.
22712 (x_draw_glyph_string): Sync with xterm.c.
22713 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22714 Remove redundant code.
22715 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22716
22717 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22718 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22719
22720 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22721 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22722
22723 * w32font.c: New file for w32 font backend.
22724
22725 2008-02-01 Kenichi Handa <handa@m17n.org>
22726
22727 * term.c: Don't include "buffer.h" twice.
22728
22729 2008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * character.c (Funibyte_string): New function.
22732 (syms_of_character): Defsubr it.
22733
22734 2008-02-01 Jason Rumney <jasonr@gnu.org>
22735
22736 * w32term.c [USE_FONT_BACKEND]:
22737 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22738 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22739 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22740 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22741 (x_free_frame_resources): Sync with xterm.c.
22742
22743 2008-02-01 Andreas Schwab <schwab@suse.de>
22744
22745 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22746 char-table size.
22747
22748 2008-02-01 Kenichi Handa <handa@m17n.org>
22749
22750 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22751
22752 2008-02-01 Kenichi Handa <handa@m17n.org>
22753
22754 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22755 font_otf_gpos, add font_drive_otf.
22756
22757 * fontset.c (fontset_find_font): Pay attention to font size
22758 specified for a font.
22759 (reorder_font_vector): Check contents of font_def.
22760
22761 * font.c (struct otf_list): Delete it.
22762 (otf_list): Make it a lisp variable.
22763 (otf_open): Use lispy otf_list.
22764 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22765 (check_otf_features): New function.
22766 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22767 New functions.
22768 (font_drive_otf): New function merging font_otf_gsub and
22769 font_otf_gpos.
22770 (font_open_for_lface): New arg spec. Change argument order.
22771 (font_load_for_face): Adjust for the change of font_open_for_lface.
22772 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22773 Ffont_otf_gpos.
22774 (syms_of_font): Staticpro otf_list. Delete defsubr of
22775 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22776
22777 * xfaces.c (set_font_frame_param): Adjust for the change of
22778 font_open_for_lface.
22779
22780 * font.h (font_open_for_lface): Adjust prototype.
22781 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22782 member otf_drive.
22783 (font_otf_gsub, font_otf_gpos): Delete externs.
22784 (font_drive_otf): Extern it.
22785
22786 2008-02-01 Kenichi Handa <handa@m17n.org>
22787
22788 * font.c (font_at): If the window W is not on a window system,
22789 return Qnil.
22790
22791 * coding.c (produce_chars, encode_coding): Don't call
22792 insert_from_gap if no characters to produce.
22793
22794 2008-02-01 Kenichi Handa <handa@m17n.org>
22795
22796 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22797 Fclear_face_cache.
22798
22799 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22800
22801 2008-02-01 Miles Bader <miles@gnu.org>
22802
22803 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22804 Parse "--disable-font-backend" option.
22805 (standard_args): Add "--disable-font-backend" option.
22806
22807 2008-02-01 Kenichi Handa <handa@m17n.org>
22808
22809 * fontset.c (fontset_find_font): New function.
22810 (fontset_font): Use fontset_find_font.
22811 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22812 Register the specified font for all Latin characters.
22813 (new_fontset_from_font): Register the specified font for all Latin
22814 characters.
22815 (dump_fontset): For a realized fontset, include the base fontset
22816 name in the returned vector.
22817
22818 2008-02-01 Kenichi Handa <handa@m17n.org>
22819
22820 * character.h (CHAR_STRING): Cast C to unsigned on calling
22821 char_string.
22822
22823 * character.c (char_string): Type of arg C changed to unsigned.
22824 Signal an error if C is an invalid character code.
22825
22826 * editfns.c (general_insert_function, Fchar_to_string):
22827 Use CHARACTERP, not INTEGERP.
22828
22829 2008-02-01 Kenichi Handa <handa@m17n.org>
22830
22831 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22832 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22833
22834 * regex.c (analyse_first): Fix for multibyte characters in "case
22835 charset:" and "case categoryspec:".
22836
22837 2008-02-01 Andreas Schwab <schwab@suse.de>
22838
22839 * Makefile.in (LIBES): Move standard libraries to the end.
22840
22841 2008-02-01 Kenichi Handa <handa@m17n.org>
22842
22843 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22844 nonzero, don't shrink the buffer nextb.
22845
22846 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22847
22848 * coding.c (coding_alloc_by_making_gap): New arg offset.
22849 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22850 offset.
22851 (decode_coding_iso_2022): Update coding->safe_charsets.
22852 (decode_coding_gap): Temporarily set
22853 current_buffer->text->inhibit_shrinking to 1.
22854
22855 2008-02-01 Kenichi Handa <handa@m17n.org>
22856
22857 * xterm.c (x_draw_composite_glyph_string_foreground):
22858 Fix indexing into elements of s->cmp and s->char2b.
22859
22860 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
22861
22862 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22863
22864 2008-02-01 Kenichi Handa <handa@m17n.org>
22865
22866 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22867 target_multibyte instead of multibyte.
22868 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22869 (bcmp_translate): Change the argument name from multibyte to
22870 target_multibyte.
22871
22872 2008-02-01 Kenichi Handa <handa@m17n.org>
22873
22874 These changes are to compile a regexp into a pattern that can be
22875 used both for multibyte and unibyte targets.
22876
22877 * Makefile.in (search.o): Depend on charset.h.
22878
22879 * character.c (multibyte_char_to_unibyte_safe): New function.
22880
22881 * search.c: Include "charset.h".
22882 (compile_pattern_1): Delete argument multibyte. Don't set
22883 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22884 (compile_pattern): Don't compare cp->buf.target_multibyte.
22885 Compare cp->buf.charset_unibyte.
22886 (compile_pattern): Set cp->buf.target_multibyte.
22887
22888 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22889
22890 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22891
22892 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22893 multibyte. Change callers.
22894 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22895 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22896 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22897 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22898 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22899 (regex_compile): Make the compiled pattern usable both for
22900 multibyte and unibyte targets.
22901 (analyse_first): Make the fastmap usable both for multibyte and
22902 unibyte targets.
22903 (TRANSLATE_VIA_MULTIBYTE): Delete.
22904 (re_match_2_internal): Pay attention to the case that the
22905 multibyteness of bufp and target may be different.
22906
22907 2008-02-01 Kenichi Handa <handa@m17n.org>
22908
22909 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22910 empty box occupy at least one column width.
22911
22912 2008-02-01 Miles Bader <miles@gnu.org>
22913
22914 * Makefile.in: Remove redundant HAVE_XFT clause.
22915
22916 2008-02-01 Kenichi Handa <handa@m17n.org>
22917
22918 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22919
22920 2008-02-01 Kenichi Handa <handa@m17n.org>
22921
22922 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22923 being nil.
22924
22925 2008-02-01 Kenichi Handa <handa@m17n.org>
22926
22927 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22928
22929 2008-02-01 Kenichi Handa <handa@m17n.org>
22930
22931 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22932
22933 2008-02-01 Kenichi Handa <handa@m17n.org>
22934
22935 * search.c (simple_search): Fix previous change.
22936
22937 2008-02-01 Kenichi Handa <handa@m17n.org>
22938
22939 * xftfont.c (ftfont_font_format): Extern declaration.
22940
22941 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22942
22943 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22944 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22945
22946 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22947 (ftfont_font_format): Fix previous change.
22948
22949 * font.h (Ffont_xlfd_name): EXFUN it.
22950
22951 * font.c (font_parse_xlfd): Fix the array size of `f'.
22952 (register_font_driver): Use EQ to compare driver->type.
22953
22954 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22955 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22956 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22957
22958 2008-02-01 Kenichi Handa <handa@m17n.org>
22959
22960 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22961 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22962
22963 2008-02-01 Kenichi Handa <handa@m17n.org>
22964
22965 * xfont.c (xfont_open): Set font->format.
22966
22967 * xftfont.c (xftfont_open): Set font->format.
22968
22969 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22970 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22971 (ftfont_open): Set font->format.
22972 (ftfont_font_format): New function.
22973
22974 * font.h (struct font): New member format.
22975
22976 * font.c (Qopentype): New variable.
22977 (syms_of_font): Defsym it.
22978 (Fquery_font): Change the format of the last element of the return
22979 value.
22980
22981 2008-02-01 Kenichi Handa <handa@m17n.org>
22982
22983 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22984 last resort.
22985
22986 2008-02-01 Kenichi Handa <handa@m17n.org>
22987
22988 * coding.c (detect_coding_charset): Fix detection of multi-byte
22989 charset.
22990
22991 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22992
22993 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22994
22995 2008-02-01 Kenichi Handa <handa@m17n.org>
22996
22997 * xdisp.c (get_next_display_element): Set it->face_id for the
22998 first component of a composition.
22999 (x_produce_glyphs): Check if the font is changed or not for composition.
23000
23001 2008-02-01 Kenichi Handa <handa@m17n.org>
23002
23003 * fontset.c (Qlatin): New variable.
23004 (syms_of_fontset): Define it as a lisp symbol.
23005 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23006
23007 2008-02-01 Kenichi Handa <handa@m17n.org>
23008
23009 * font.c (font_unparse_fcname): Pay attention to the case that
23010 some of font property is a null string.
23011
23012 2008-02-01 Kenichi Handa <handa@m17n.org>
23013
23014 * term.c: Include "composite.h".
23015 (encode_terminal_code): Output all components of composition.
23016 Check the size of encode_terminal_src.
23017 (produce_glyphs): For composition, call produce_composite_glyph.
23018 (append_composite_glyph, produce_composite_glyph): New functions.
23019
23020 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23021 is not found, get font_info from the current ascii face.
23022
23023 2008-02-01 Kenichi Handa <handa@m17n.org>
23024
23025 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23026 buffer-file-name to Qnil before calling insert_from_buffer.
23027
23028 * font.c (font_unparse_fcname): Pay attention to the case that
23029 foundry is a null string.
23030
23031 2008-02-01 Kenichi Handa <handa@m17n.org>
23032
23033 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23034
23035 * font.c (Qunicode_sip): New variable.
23036 (syms_of_font): Declare it as a Lisp symbol.
23037
23038 * font.h (Qunicode_sip): Extern it.
23039
23040 2008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * composite.c (get_composition_id): Pay attention to TAB component.
23043
23044 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23045 TAB. Adjust for the change of s->char2b which always points to
23046 the first element of allocated memory.
23047
23048 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23049
23050 * xdisp.c (handle_composition_prop): Set it->c to the first
23051 non-TAB component.
23052 (fill_composite_glyph_string): Change argument.
23053 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23054 (x_produce_glyphs): Fix handling of left/right padding.
23055
23056 2008-02-01 Kenichi Handa <handa@m17n.org>
23057
23058 * coding.c (detect_coding_system): Fix for handling off
23059 inhibit_iso_escape_detection. Fix for the case that no coding
23060 system is defined for a specific coding category.
23061
23062 2008-02-01 Kenichi Handa <handa@m17n.org>
23063
23064 * font.c (font_matching_entity): Delete unused local var.
23065
23066 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23067 opening a font.
23068
23069 * fileio.c (Finsert_file_contents): On recovering a file, assume
23070 Unix-like eol.
23071 (choose_write_coding_system): On auto-saving a file, force
23072 Unix-like eol.
23073
23074 * coding.c (setup_coding_system): Fix setting of
23075 coding->common_flags based on eol_type.
23076 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23077 inherit from it.
23078
23079 2008-02-01 Kenichi Handa <handa@m17n.org>
23080
23081 * alloc.c (NSTATICS): Increas to 0x600.
23082
23083 2008-02-01 Kenichi Handa <handa@m17n.org>
23084
23085 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23086 (ftfont_list): Don't check :name property.
23087 (ftfont_match): New function.
23088 (ftfont_pattern_entity): If the pattern doesn't contain
23089 FC_SPACING, don't assume FC_MONO.
23090
23091 * font.h (struct font_driver): New member `match'.
23092 (font_update_drivers): Adjust prototype.
23093
23094 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23095 property of FONT.
23096 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23097 Define them unconditionally.
23098 (font_matching_entity): New function.
23099 (font_open_by_name): Try font_matching_entity if exact match is
23100 not found.
23101 (font_update_drivers): Delete the arg FONT. Return a list of
23102 actually used backends. Don't free faces, font caches here.
23103 Don't store data in frame parameters. Don't call x_set_font.
23104 (Ffont_spec): Store :name property as is.
23105 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23106 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23107 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23108 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23109 Call font->driver->otf_gsub instead of font_otf_gsub.
23110
23111 * frame.c (x_set_font_backend): Do more works that were done in
23112 font_update_drivers before.
23113
23114 * xfont.c (xfont_match): New function.
23115 (xfont_driver): Set xfont_driver.match to xfont_match.
23116 (xfont_draw): Set font in GC if necessary.
23117
23118 * ftxfont.c (ftxfont_match): New function.
23119 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23120
23121 * xftfont.c (xftfont_match): New function.
23122 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23123
23124 2008-02-01 Kenichi Handa <handa@m17n.org>
23125
23126 * font.h (struct font): New member scalable.
23127 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23128 (font_otf_gsub): Adjust prototype.
23129
23130 * font.c (font_otf_capability): Fix handling of the default langsys.
23131 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23132 Check the contents of SPEC.
23133 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23134 (check_gstring): New function.
23135 (REPLACEMENT_CHARACTER): New macro.
23136 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23137 glyph codes of GSTRING.
23138 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23139 (font_prepare_composition): Set cmp->glyph_len.
23140 (font_open_entity): Set font->scalable.
23141 (Ffont_get): Handle :otf property.
23142 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23143 New functions.
23144 (Fquery_font): Use font->font.full_name.
23145 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23146 Sfont_otf_alternates.
23147
23148 * ftfont.c (ftfont_open): Set font->font.full_name and
23149 font->font.name properly. Fix calculation of font->font.height
23150 and font->min_width.
23151
23152 * ftxfont.c (ftxfont_create_gcs): New function.
23153 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23154 (ftxfont_draw_backgrond): Fix filling region.
23155 (ftxfont_default_fid): New function.
23156 (ftxfont_open): Set xfont->fid to the return value of
23157 ftxfont_default_fid.
23158 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23159 (ftxfont_done_face): Free only GCs that are created by
23160 ftxfont_create_gcs.
23161 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23162
23163 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23164 Clip to src->width, etc (not src->clip_XXX).
23165
23166 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23167 FontBackend frame parameter.
23168
23169 2008-02-01 Kenichi Handa <handa@m17n.org>
23170
23171 * font.h (struct font_driver_list): New member `on'.
23172 (Fclear_font_cache): EXFUN it.
23173 (font_update_drivers): Extern it.
23174
23175 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23176 (font_list_entities): Check driver_list->on.
23177 (register_font_driver): Initialize `on' member to 0.
23178 (font_update_drivers): New function.
23179 (Fclear_font_cache): Check driver_list->on.
23180
23181 * frame.h (Qfont_backend): Extern it.
23182 (x_set_font_backend): Extern it.
23183
23184 * frame.c (Qfont_backend): New variable.
23185 (frame_parms): New element for font-backend.
23186 (x_set_font_backend): New function.
23187
23188 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23189 FontBackend frame parameter.
23190 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23191 x_set_font_backend.
23192
23193 * xfont.c (xfont_list): Don't try listing by :name property if the
23194 name is not for XLFD.
23195
23196 2008-02-01 Kenichi Handa <handa@m17n.org>
23197
23198 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23199 (LGLYPH_SET_TO): New macros.
23200 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23201 element of G is vector or not.
23202 (font_at): Extern it.
23203
23204 * font.c: Include window.h.
23205 (font_lispy_object): New function.
23206 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23207 end of valid glyph.
23208 (font_close_object): Fix getting (struct font *).
23209 (font_at): New function.
23210 (Ffont_get): If FONT is a font-object, get entity from it.
23211 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23212 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23213 Fix range check.
23214 (Ffont_at): New function.
23215 (syms_of_font): Defsubr Sfont_at.
23216
23217 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23218 before the entry for Qcomposition.
23219 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23220 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23221 the font in gstring.
23222 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23223 LGLYPH_FORM (g) to detect the end of valid glyph.
23224 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23225 we are composing with gstring.
23226
23227 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23228 Check if adjustment is vector or not.
23229
23230 * Makefile.in (font.o): Make it depends on window.h.
23231
23232 2008-02-01 Kenichi Handa <handa@m17n.org>
23233
23234 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23235 adjustment is vector or not.
23236
23237 2008-02-01 Miles Bader <miles@gnu.org>
23238
23239 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23240
23241 2008-02-01 Kenichi Handa <handa@m17n.org>
23242
23243 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23244 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23245 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23246
23247 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23248 (DEVICE_DELTA): Fix typo.
23249 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23250 LGLYPH format.
23251
23252 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23253 the change of LGLYPH format.
23254
23255 2008-02-01 Kenichi Handa <handa@m17n.org>
23256
23257 * ftfont.c (ftfont_list): Fix typo.
23258 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23259
23260 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23261
23262 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23263
23264 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23265 xftface_info is non-NULL.
23266
23267 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23268
23269 * ftfont.c (ftfont_list): Move misplaced #endif.
23270
23271 2008-02-01 Kenichi Handa <handa@m17n.org>
23272
23273 * ftfont.c (ftfont_list): Pay attention to the case that
23274 FC_CAPABILITY is not defined.
23275
23276 2008-02-01 Kenichi Handa <handa@m17n.org>
23277
23278 * xftfont.c (xftfont_open): Set charset related members to -1.
23279
23280 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23281 QCname.
23282 (ftfont_open): Set charset related members to -1.
23283
23284 * fontset.c (Votf_script_alist): New variable.
23285 (syms_of_fontset): Initialize it.
23286 (fontset_font): Delete unused variable.
23287
23288 * fontset.h (Votf_script_alist): Extern it.
23289
23290 * font.c (font_find_for_lface): Optimize code.
23291
23292 * font.h (font_close_object, font_merge_old_spec): Extern them.
23293
23294 2008-02-01 Kenichi Handa <handa@m17n.org>
23295
23296 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23297 (syms_of_font): Initialize them.
23298 (font_pixel_size): Allow float value in dpi.
23299 (font_prop_validate_type): Delete.
23300 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23301 Change caller.
23302 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23303 (font_prop_validate_extra): Delete.
23304 (font_prop_validate_spacing): New function.
23305 (font_property_table): Add elements for all known properties.
23306 (get_font_prop_index): Rename from check_font_prop_name.
23307 New argument FROM. Change caller.
23308 (font_prop_validate): Validate all known properties.
23309 (font_put_extra): Delete argument force. Change caller.
23310 (font_expand_wildcards): Make it static. Fix the way of shrinking
23311 the possible range.
23312 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23313 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23314 Change caller.
23315 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23316 (font_parse_fcname): Delete argument merge. Fix parsing of point
23317 size. Don't validate properties values here. Change caller.
23318 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23319 (font_open_by_name): Delete unused variable.
23320 (Ffont_spec): Likewise. Validate property values.
23321 (Ffont_match_p): New function.
23322
23323 * font.h (QCscalable): Extern it.
23324 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23325
23326 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23327
23328 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23329 (xfont_list_pattern): New function.
23330 (xfont_list): Use xfont_list_pattern.
23331
23332 2008-02-01 Kenichi Handa <handa@m17n.org>
23333
23334 * font.h (Flist_fonts): EXFUN it.
23335
23336 2008-02-01 Jason Rumney <jasonr@gnu.org>
23337
23338 * w32term.c (w32_initialize): Add back smoothing_type and
23339 smoothing_enabled definitions.
23340
23341 2008-02-01 Kenichi Handa <handa@m17n.org>
23342
23343 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23344 s->face->font on determining underline position.
23345
23346 2008-02-01 Kenichi Handa <handa@m17n.org>
23347
23348 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23349 (font_has_char): Accept font-object too.
23350 (font_find_for_lface): Try at first with a size specified in face.
23351
23352 2008-02-01 Kenichi Handa <handa@m17n.org>
23353
23354 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23355 font_open_by_name.
23356
23357 2008-02-01 Kenichi Handa <handa@m17n.org>
23358
23359 * font.h (QCspacing, QCdpi): Extern them.
23360 (enum font_spacing): New enum.
23361 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23362
23363 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23364 (QCspacing, QCdpi): New variables.
23365 (syms_of_font): Initialize them.
23366 (font_pixel_size): New function.
23367 (font_put_extra): New function.
23368 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23369 in FONT_EXTRA.
23370 (font_parse_fcname): Handle enumerated values (e.g. bold).
23371 Fix handling font size. Add QCname property that contains only
23372 unknown properties.
23373 (font_score): Change argument. Change caller. Pay attention to
23374 FONT_PIXEL_SIZE_QUANTUM.
23375 (font_sort_entites, font_list_entities, font_find_for_lface)
23376 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23377 (Ffont_spec): Add QCname property that contains only unknown properties.
23378
23379 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23380 Don't include weight in listing pattern, instead check weight of each
23381 listed font. Don't include scalable in pattern. Pay attention to
23382 FONT_PIXEL_SIZE_QUANTUM.
23383
23384 2008-02-01 Kenichi Handa <handa@m17n.org>
23385
23386 * font.c (font_parse_fcname): Fix parsing of point-size.
23387 (font_unparse_fcname): Produce symbolic names for style properties.
23388 (font_list_entities): Handle float size correctly.
23389 (font_open_by_name): Prefer `normal' property values if the name
23390 doesn't specify them.
23391
23392 * fontset.c (Finternal_char_font): Use font_get_name, not
23393 Ffont_xlfd_name.
23394
23395 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23396 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23397 pattern. Don't force scalable.
23398
23399 * xftfont.c (xftfont_open): For generating a name, start from
23400 96-byte buffer.
23401
23402 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23403
23404 * frame.h (x_new_fontset2): Fix prototype.
23405
23406 2008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * font.h (struct font_driver): Delete member parse_name.
23409 (font_match_p, font_get_spec, font_parse_fcname)
23410 (font_unparse_fcname): Extern them.
23411 (font_get_name): Adjust prototype.
23412
23413 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23414 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
23415 (font_expand_wildcards): Fix handling ENCODING field.
23416 Avoid unnecessary checks for weight, slant, and swidth.
23417 (font_parse_fcname): New function.
23418 (font_unparse_fcname): New function.
23419 (font_parse_name): New function.
23420 (font_match_p): New function.
23421 (font_get_name): Change return value to Lisp string.
23422 (font_get_spec): New function.
23423 (Qunspecified, Qignore_defface): Don't extern them.
23424 (font_find_for_lface): Assume that LFACE is fully specified.
23425 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23426 object, use it for FACE.
23427 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23428 driver->parse_name.
23429 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23430
23431 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23432 prototype.
23433
23434 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23435 argument F. Don't call Fnew_fontset. Instead, directly call
23436 make_fontset.
23437
23438 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23439
23440 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23441 of x_new_fontset2.
23442
23443 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23444 (Qsans__serif): New variables.
23445 (ftfont_generic_family_list): New variable.
23446 (syms_of_ftfont): Initialize the above variables.
23447 (ftfont_pattern_entity): Delete argument NAME.
23448 (ftfont_list_generic_family): New function.
23449 (ftfont_parse_name): Delete this function.
23450 (ftfont_list): Try generic family only when FcFontList found no font.
23451 (ftfont_list_family): Fix args to FcObjectSetBuild.
23452
23453 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23454 object in attrs[LFACE_FONT_INDEX].
23455 (set_lface_from_font_name): Cancel all changes for font-backend.
23456 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23457 function.
23458 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23459 font object in QCfont attribute.
23460 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23461 (realize_default_face) [USE_FONT_BACKEND]: Call
23462 set_lface_from_font_and_fontset.
23463
23464 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23465 "fixed", and signal error here if no suitable font was found.
23466
23467 * xfont.c (xfont_parse_name): Delete this function.
23468
23469 * xftfont.c (xftfont_open): Change coding style of error
23470 handling. Generate fontconfig's fontname pattern.
23471
23472 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23473 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23474
23475 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23476 Both args FONTSET and FONT_OBJECT must be existing ones.
23477
23478 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23479
23480 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23481
23482 2008-02-01 Kenichi Handa <handa@m17n.org>
23483
23484 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23485
23486 * font.h (struct font): Fix typo.
23487
23488 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23489 XLFD_XXX_INDEX.
23490 (enum xlfd_field_mask): New enum.
23491 (intern_font_field): Change argument. Change caller. If digits
23492 are followed by non-digits, return a symbol.
23493 (font_expand_wildcards): New function.
23494 (font_parse_xlfd): Fix wildcard handling.
23495 (Ffont_spec): If :name is specified, reflect the info in the other
23496 properties.
23497
23498 * ftfont.c (ftfont_pattern_entity): Fix typo.
23499 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23500 locale.
23501
23502 2008-02-01 Kenichi Handa <handa@m17n.org>
23503
23504 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23505
23506 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23507 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23508 registry doesn't specify encoding part.
23509 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23510 (font_open_by_name): At first try parsing the name.
23511 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23512 as Lisp symbols.
23513
23514 * fontset.c (reorder_font_vector): Pay attention to the case that
23515 the 3rd element of font_def is nil.
23516 (fontset_font): For the default fontset, append one more fontset
23517 elements for a script-based font specification. Don't add script
23518 attribute on finding a font.
23519 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23520 font name.
23521 (fontset_ascii_font): If a font can't be opened, return nil.
23522
23523 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23524 (ftfont_pattern_entity): New function.
23525 (ftfont_get_cache): Assume that freetype_font_cache is already
23526 initialized.
23527 (ftfont_list): Handle the case that a file is specified in font
23528 name. Use ftfont_pattern_entity to generate entities.
23529 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23530 (syms_of_ftfont): Initialize freetype_font_cache.
23531
23532 * xftfont.c (xftfont_open): Make the font name fontconfig's
23533 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23534 (xftfont_close): Free font->font.name if not NULL.
23535
23536 * xfont.c (xfont_list): If script is specified for a font, return
23537 null_vector.
23538 (xfont_list_family): Declare argument type.
23539
23540 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23541 name, set LFACE_FONT (lface) to nil.
23542
23543 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23544 return Qnil.
23545
23546 2008-02-01 Kenichi Handa <handa@m17n.org>
23547
23548 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23549 (standard_args): Add "-enable-font-backend".
23550
23551 2008-02-01 Kenichi Handa <handa@m17n.org>
23552
23553 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23554 (struct xftdraw_list, xftdraw_list): Delete them.
23555 (register_xftdraw, check_xftdraw): Delete them.
23556 (xftfont_prepare_face): Don't call register_xftdraw.
23557 (xftfont_done_face): Don't call check_xftdraw.
23558 (xftfont_draw): Get background color only when with_background is
23559 nonzero.
23560
23561 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23562
23563 2008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 These changes are for the new font handling codes.
23566
23567 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23568 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23569 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23570 (FONTSRC, FONTOBJ): New variables.
23571 (obj): Add $(FONTOBJ).
23572 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23573 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23574 @LIBOTF_LIBS@.
23575 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23576 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23577
23578 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23579
23580 * character.h (Vscript_representative_chars): Extern it.
23581
23582 * character.c (Vscript_representative_chars): New variable.
23583 (syms_of_character): Declare it as a Lisp variable.
23584
23585 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23586 enable_font_backend is nonzero, accept the composition method
23587 COMPOSITION_WITH_GLYPH_STRING.
23588
23589 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23590 enumeration COMPOSITION_WITH_GLYPH_STRING.
23591
23592 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23593 members clip_x, clip_y, clip_width, and clip_height.
23594 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23595
23596 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23597 --enable-font-backend. Call syms_of_font.
23598
23599 * fns.c (assoc_no_quit): New function.
23600
23601 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23602 (face_for_font, new_fontset_from_font)
23603 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23604
23605 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23606 (fontset_font, fontset_ascii, face_for_char)
23607 (make_fontset_for_ascii_face, Ffont_info)
23608 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23609 is nonzero, use font-backend mechanism.
23610 (find_font_encoding): Make it non-static.
23611 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23612 New functions.
23613
23614 * frame.h (struct frame): New members resx and resy.
23615 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23616 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23617
23618 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23619 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23620
23621 * lisp.h (assoc_no_quit): Extern it.
23622
23623 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23624 Through out the file, use FONT_INFO_FROM_FACE instead of
23625 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23626 rif->per_char_metric.
23627 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23628 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23629 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23630 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23631 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23632 nonzero, use font-backend mechanism.
23633 (get_per_char_metric): New function.
23634
23635 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23636 (set_lface_from_font_name)
23637 (set_font_frame_param, free_realized_face)
23638 (prepare_face_for_display, clear_face_gcs)
23639 (Finternal_set_font_selection_order, realize_x_face)
23640 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23641 font-backend mechanism.
23642 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23643 (load_face_font) [USE_FONT_BACKEND]: Abort.
23644 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23645 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23646
23647 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23648 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23649 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
23650 nonzero, register all available font drivers.
23651 Call x_default_font_parameter for deciding a font.
23652 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23653
23654 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23655 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23656 (x_set_glyph_string_clipping_exactly)
23657 (x_compute_glyph_string_overhangs)
23658 (x_draw_glyph_string_foreground)
23659 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23660 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23661 enable_font_backend is nonzero, use font-backend mechanism.
23662 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23663
23664 2008-02-01 Kenichi Handa <handa@m17n.org>
23665
23666 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23667 system_eol_type.
23668 (syms_of_coding): Initialize system_eol_type.
23669
23670 * process.c (Fset_process_coding_system): Inherit system's eol
23671 format if necessary.
23672
23673 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23674
23675 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23676
23677 2008-02-01 Kenichi Handa <handa@m17n.org>
23678
23679 * coding.c (decode_eol): Pay attention to buffer relocation in
23680 del_range_2.
23681 (decode_coding): Call decode_eol before restoring undo_list.
23682
23683 2008-02-01 Kenichi Handa <handa@m17n.org>
23684
23685 * charset.c (Fdefine_charset_internal): Fix setting of
23686 emacs_mule_bytes.
23687
23688 2008-02-01 Kenichi Handa <handa@m17n.org>
23689
23690 * keyboard.c (read_char): Check if C is a character or not before
23691 looking up Vkeyboard_translate_table.
23692
23693 2008-02-01 Kenichi Handa <handa@m17n.org>
23694
23695 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23696 Fix condition to terminate the loop.
23697
23698 2008-02-01 Kenichi Handa <handa@m17n.org>
23699
23700 * coding.c (produce_composition): Compare charbuf[i] instead of
23701 args[i] against 0.
23702 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23703
23704 2008-02-01 Kenichi Handa <handa@m17n.org>
23705
23706 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23707 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23708 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23709 detect_coding.
23710 (emacs_mule_char): Handle old style (Emacs 20) component character
23711 of a composition.
23712 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23713 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23714 composition rule.
23715 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23716
23717 2008-02-01 Kenichi Handa <handa@m17n.org>
23718
23719 * coding.c (encode_coding_ccl): Allocate destination dynamically
23720 when necessary.
23721
23722 2008-02-01 Kenichi Handa <handa@m17n.org>
23723
23724 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23725 the loop. When quitted, show a proper error message.
23726
23727 2008-02-01 Kenichi Handa <handa@m17n.org>
23728
23729 * xterm.c (x_set_glyph_string_clipping_exactly):
23730 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
23731
23732 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23733 character sequence.
23734 (Fccl_execute_on_string): Use ASET, not XSET.
23735
23736 2008-02-01 Kenichi Handa <handa@m17n.org>
23737
23738 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23739
23740 2008-02-01 Kenichi Handa <handa@m17n.org>
23741
23742 * coding.c (decode_coding): Fix the condition of terminating the
23743 decoding loop.
23744
23745 2008-02-01 Kenichi Handa <handa@m17n.org>
23746
23747 * data.c (Faset): On setting a character bigger than 255 in a
23748 unibyte string, signal an error instead of make the string multibyte.
23749
23750 2008-02-01 Kenichi Handa <handa@m17n.org>
23751
23752 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23753 made by a mapping table.
23754
23755 2008-02-01 Kenichi Handa <handa@m17n.org>
23756
23757 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23758 not.
23759 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23760 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23761
23762 * xterm.c (x_draw_composite_glyph_string_foreground):
23763 Check s->face is NULL or not.
23764
23765 2008-02-01 Kenichi Handa <handa@m17n.org>
23766
23767 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23768 (x_draw_glyph_string): Fix drawing of right_overhang and
23769 left_overhang around/on cursor.
23770
23771 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23772
23773 2008-02-01 Kenichi Handa <handa@m17n.org>
23774
23775 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23776
23777 2008-02-01 Kenichi Handa <handa@m17n.org>
23778
23779 * coding.c (Fdefine_coding_system_internal)
23780 (Fdefine_coding_system_alias): Avoid a duplicated element in
23781 Vcoding_system_alist.
23782
23783 2008-02-01 Kenichi Handa <handa@m17n.org>
23784
23785 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23786
23787 * coding.c (Qcoding_system_define_form): New variable.
23788 (syms_of_coding): Intern and staticpro it.
23789 (Fcoding_system_p): Check Qcoding_system_define_form.
23790 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23791
23792 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23793 Fcoding_system_p.
23794 (CHECK_CODING_SYSTEM): If ID is not available, call
23795 Fcheck_coding_system.
23796 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23797 Try also Fcheck_coding_system.
23798
23799 2008-02-01 Kenichi Handa <handa@m17n.org>
23800
23801 * coding.c (code_conversion_restore): GCPRO arg.
23802
23803 2008-02-01 Kenichi Handa <handa@m17n.org>
23804
23805 * character.c (lisp_string_width): Check multibyteness of STRING.
23806
23807 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23808
23809 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23810 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23811 (decode_mac_font_name): Use decode_coding_c_string instead of
23812 decode_coding.
23813 (x_load_font): Initialize fontp->fontset to -1.
23814 Set fontp->encoding_type.
23815
23816 2008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * search.c (search_buffer): Give up BM search on case-fold-search
23819 if one of a target character has a case-equivalence of different
23820 byte length even if that target character is an ASCII.
23821 (simple_search): Fix calculation of byte length of matched text.
23822 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23823
23824 2008-02-01 Kenichi Handa <handa@m17n.org>
23825
23826 * coding.c (decode_coding): Fix handling of invalid bytes.
23827
23828 2008-02-01 Kenichi Handa <handa@m17n.org>
23829
23830 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23831 Unicode characters.
23832
23833 2008-02-01 Kenichi Handa <handa@m17n.org>
23834
23835 * coding.c (encode_coding_object): If a pre-write-conversion
23836 function makes a new buffer, kill it.
23837
23838 2008-02-01 Kenichi Handa <handa@m17n.org>
23839
23840 * coding.c (QCascii_compatible_p): New variable.
23841 (syms_of_coding): Initialize it.
23842 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23843 calling string_char.
23844 (record_conversion_result): Add `default:' case.
23845 (coding_charset_list): Delete unused variable `coding_type'.
23846 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23847 property in the plist of the coding system.
23848 (Fcoding_system_put): Check QCascii_compatible_p.
23849
23850 2008-02-01 Miles Bader <miles@gnu.org>
23851
23852 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23853 removed calculation of frame `f', as it's now used.
23854
23855 2008-02-01 Kenichi Handa <handa@m17n.org>
23856
23857 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23858 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23859 (UNIDATA): New variable.
23860 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23861 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23862 Run $(RUN_TEMACS) unconditionally.
23863
23864 2008-02-01 Kenichi Handa <handa@m17n.org>
23865
23866 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23867 (admindir): New variable.
23868 ($(lispsource)international/charprop.el): New target.
23869
23870 2008-02-01 Miles Bader <miles@gnu.org>
23871
23872 * character.c (chars-in-region): Remove obsolete function.
23873 (syms_of_character): Remove its initialization.
23874
23875 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23876
23877 * w32select.c (validate_coding_system)
23878 (setup_windows_coding_system): New functions.
23879 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23880 Use setup_windows_coding_system.
23881 (setup_config, Fw32_get_clipboard_data):
23882 Use validate_coding_system.
23883 (Fx_selection_exists): Move call to setup_config to a place
23884 where signals are allowed.
23885
23886 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23887 (Fcheck_coding_system): Add declarations.
23888
23889 2008-02-01 Kenichi Handa <handa@m17n.org>
23890
23891 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23892
23893 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23894
23895 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23896 string as the second argument for x_new_fontset.
23897
23898 2008-02-01 Kenichi Handa <handa@m17n.org>
23899
23900 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23901 (encode_coding_object): Use safe_call instead of call2.
23902
23903 2008-02-01 Kenichi Handa <handa@m17n.org>
23904
23905 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23906
23907 * Makefile.in (lisp): Include charprop.el.
23908
23909 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23910
23911 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23912 Not sure if it's unnecessary.
23913
23914 2008-02-01 Steven Tamm <steventamm@mac.com>
23915
23916 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23917 some possibly unnecessary fontset checking code that crashed
23918 when creating a new frame.
23919
23920 2008-02-01 Kenichi Handa <handa@m17n.org>
23921
23922 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23923 lookup_face.
23924
23925 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23926
23927 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23928
23929 2008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23932 (coding_charset_list): New function.
23933
23934 * coding.h (coding_charset_list): Extern it.
23935
23936 2008-02-01 Kenichi Handa <handa@m17n.org>
23937
23938 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23939 concatenation of family and registry.
23940
23941 2008-02-01 Kenichi Handa <handa@m17n.org>
23942
23943 * character.h (BYTE8_STRING): Fix typo.
23944
23945 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23946 string to multibyte (sync to HEAD).
23947
23948 * casefiddle.c (casify_region): Handle changes in byte-length
23949 using replace_range_2 (sync to HEAD).
23950
23951 2008-02-01 Andreas Schwab <schwab@suse.de>
23952
23953 * chartab.c (map_char_table): GCPRO table and arg.
23954
23955 2008-02-01 Kenichi Handa <handa@m17n.org>
23956
23957 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23958 already at limit.
23959
23960 2008-02-01 Kenichi Handa <handa@m17n.org>
23961
23962 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23963 instead of fast_c_string_match_ignore_case.
23964 (find_font_encoding): Change argument to Lisp_Object.
23965 Use fast_string_match_ignore_case instead of
23966 fast_c_string_match_ignore_case. Change caller.
23967
23968 2008-02-01 Kenichi Handa <handa@m17n.org>
23969
23970 * xdisp.c (get_next_display_element): In unibyte case, decide to
23971 display in octal form by checking a character by
23972 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23973
23974 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23975
23976 * character.c (unibyte_has_multibyte_table): New variable.
23977
23978 * character.h (unibyte_has_multibyte_table): Extern it.
23979 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23980
23981 2008-02-01 Kenichi Handa <handa@m17n.org>
23982
23983 * coding.c (encode_coding_iso_2022): Fix handling of charset
23984 annotation.
23985
23986 2008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 * coding.c (setup_coding_system): If coding_system is nil, use
23989 Qundecided.
23990 (Fterminal_coding_system): Return nil if terminal coding system is
23991 `undecided'.
23992 (syms_of_coding): Define coding-system `undecided' here.
23993 Setup terminal_coding as `undecided'.
23994
23995 2008-02-01 Kenichi Handa <handa@m17n.org>
23996
23997 * xdisp.c (message_dolog, set_message_1):
23998 Call unibyte_char_to_multibyte with arg type int.
23999
24000 * lread.c (read1): Fix reading of a char-table.
24001
24002 * print.c (print_object): Include sub char-table in circularities
24003 detection.
24004
24005 2008-02-01 Kenichi Handa <handa@m17n.org>
24006
24007 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24008 Append the found sequences in car of ARGS instead of prepending.
24009
24010 2008-02-01 Kenichi Handa <handa@m17n.org>
24011
24012 * fileio.c (report_file_error): Make a unibyte string from
24013 strerror (errorno).
24014 (Fsubstitute_in_file_name): Fix the arg to
24015 unibyte_char_to_multibyte. It is evaluated twice.
24016
24017 2008-02-01 Kenichi Handa <handa@m17n.org>
24018
24019 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24020
24021 2008-02-01 Kenichi Handa <handa@m17n.org>
24022
24023 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24024 BOM is not found.
24025 (detect_coding, detect_coding_system): Optimization for ISO-2022
24026 when no 8-bit data is found.
24027
24028 2008-02-01 Jason Rumney <jasonr@gnu.org>
24029
24030 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24031
24032 2008-02-01 Kenichi Handa <handa@m17n.org>
24033
24034 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24035 CHARS.
24036
24037 2008-02-01 Steven Tamm <steventamm@mac.com>
24038
24039 * macterm.c (mac_encode_char): Add charset argument and update
24040 to use encoding_type.
24041 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24042 switch to pure fontset.
24043 (decode_mac_font_name): Temporarily remove decoding.
24044 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24045 (x_load_font): Temporarily remove encoding.
24046
24047 2008-02-01 Kenichi Handa <handa@m17n.org>
24048
24049 * xfaces.c (Fface_font): If frame is not on a window system,
24050 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24051 refer to face->font.
24052 (split_font_name_into_vector, build_font_name_from_vector)
24053 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24054 when HAVE_WINDOW_SYSTEM is defined.
24055
24056 2008-02-01 Kenichi Handa <handa@m17n.org>
24057
24058 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24059 (x_produce_glyphs): Fix setting of members of cmp in case
24060 cmp->glyph_len is zero.
24061
24062 * fontset.c (Fset_fontset_font): Fix docstring.
24063 (Ffontset_info): Make it backward compatible. New arg ALL.
24064
24065 2008-02-01 Kim F. Storm <storm@cua.dk>
24066
24067 * process.c (read_process_output): Grow decoding_buf when needed;
24068 this could cause a crash in allocate_string and compact_small_strings.
24069
24070 2008-02-01 Kenichi Handa <handa@m17n.org>
24071
24072 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24073
24074 2008-02-01 Kenichi Handa <handa@m17n.org>
24075
24076 * coding.c (setup_coding_system): Set coding->common_flags
24077 correctly for raw-text.
24078 (consume_chars): On encoding unibyte text by raw-text, don't check
24079 multibyte form.
24080 (encode_coding): On encoding by raw-text, never use translation tables.
24081
24082 * fileio.c (e_write): Short cut for the case of no encoding.
24083
24084 2008-02-01 Kenichi Handa <handa@m17n.org>
24085
24086 * coding.c (detect_coding, detect_coding_system): Delete unused
24087 variables.
24088
24089 2008-02-01 Kenichi Handa <handa@m17n.org>
24090
24091 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24092 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24093
24094 2008-02-01 Kenichi Handa <handa@m17n.org>
24095
24096 * coding.c (Ffind_coding_systems_region_internal):
24097 Include raw-text and no-conversion in the result.
24098
24099 2008-02-01 Kenichi Handa <handa@m17n.org>
24100
24101 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24102 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24103 FONT_DEF.
24104 (font_def_arg, add_arg, from_arg, to_arg): New args.
24105 (set_fontset_font): Change argument.
24106 (Fset_fontset_font): Fix for the case that TARGET is a script
24107 name and charset name.
24108 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24109
24110 2008-02-01 Kenichi Handa <handa@m17n.org>
24111
24112 * fontset.c (fontset_font): Rename from fontset_face. Change return
24113 value.
24114 (face_suitable_for_char_p, face_for_char): Adjust for the change
24115 of fontset_font.
24116 (make_fontset_for_ascii_face): Fix setting of the fontset element
24117 for ASCII.
24118 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24119 to get a font name.
24120 (Ffontset_info): Adjust for the change of fontset_font.
24121
24122 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24123
24124 * character.h (LEADING_CODE_LATIN_1_MIN)
24125 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24126
24127 2008-02-01 Kenichi Handa <handa@m17n.org>
24128
24129 * editfns.c (check_translation): New function.
24130 (Ftranslate_region_internal): Handle M:N mapping.
24131
24132 2008-02-01 Kenichi Handa <handa@m17n.org>
24133
24134 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24135
24136 2008-02-01 Kenichi Handa <handa@m17n.org>
24137
24138 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24139 goto invalid_code.
24140 (decode_coding_iso_2022): Fix handling of invalid designation.
24141
24142 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24143 after calling code_conversion_save.
24144
24145 2008-02-01 Kenichi Handa <handa@m17n.org>
24146
24147 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24148
24149 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24150
24151 * fontset.c: Include "intervals.h".
24152 (fontset_face): Fix comparing of Lisp_Objects.
24153 (free_face_fontset, new_fontset_from_font_name):
24154 Fix Lisp_Object/int mixup.
24155
24156 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24157
24158 * coding.c: Add many prototypes for static functions.
24159 (get_translation_table): Allow max_lookup to be NULL.
24160 (decode_coding, Ffind_coding_systems_region_internal)
24161 (Funencodable_char_position, Fcheck_coding_systems_region):
24162 Call get_translation_table with max_lookup NULL.
24163
24164 2008-02-01 Kenichi Handa <handa@m17n.org>
24165
24166 * coding.c (get_translation_table): Declare it as Lisp_Object.
24167 (LOOKUP_TRANSLATION_TABLE): New macro.
24168 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24169 instead of CHAR_TABLE_REF.
24170
24171 2008-02-01 Kenichi Handa <handa@m17n.org>
24172
24173 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24174 annotation data format.
24175 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24176 Change arguments FROM and TO to single argument NCHARS. Change caller.
24177 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24178 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24179 (decode_coding_ccl, decode_coding_charset): Pay attention to
24180 coding->charbuf_used.
24181 (get_translation): New function.
24182 (produce_chars): New arguments translation_table and last_block.
24183 Translate characters here. Return number of carryover chars.
24184 Change caller.
24185 (produce_composition): New argument pos. Change caller.
24186 Adjust for the change of annotation data format.
24187 (produce_charset, produce_annotation): Likewise.
24188 (decode_coding, encode_coding): Don't call translate_chars.
24189 (consume_chars): New arg translation_table. Change caller.
24190 (translate_chars): Delete.
24191 (syms_of_coding): Make translation-table's number of extra slots 2.
24192
24193 2008-02-01 Kenichi Handa <handa@m17n.org>
24194
24195 * search.c (simple_search): Fix setting this_pos_byte in backward
24196 search.
24197
24198 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24199 byte sequence.
24200 (detect_coding_ccl): Fix setting of the variable valids.
24201
24202 2008-02-01 Kenichi Handa <handa@m17n.org>
24203
24204 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24205
24206 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24207
24208 * editfns.c (Ftranslate_region_internal): Rename from
24209 Ftranslate_region. Accept a char-table in TABLE.
24210 (syms_of_editfns): Defsubr Stranslate_region_internal.
24211
24212 * xfaces.c (set_lface_from_font_name): If a font is specified for
24213 a frame, generate a fontset from the font.
24214 (build_scalable_font_name): If the scalable font is requested for
24215 a specific size, don't change that size.
24216 (try_font_list): Try a scalable font also in the case that a
24217 pattern string is specified.
24218
24219 2008-02-01 Kenichi Handa <handa@m17n.org>
24220
24221 * xfaces.c (Fface_font): New optional arg CHARACTER.
24222
24223 2008-02-01 Kenichi Handa <handa@m17n.org>
24224
24225 * charset.h (CHARSET_OFFSET): New macro.
24226
24227 2008-02-01 Kenichi Handa <handa@m17n.org>
24228
24229 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24230
24231 * fontset.c (fontset_face): Handle the case that repertory is a
24232 char-table.
24233 (find_font_encoding): Return nil for unknown encoding.
24234 (Fset_fontset_font): Ignore a font of unknown encoding.
24235
24236 2008-02-01 Kenichi Handa <handa@m17n.org>
24237
24238 * keymap.c (describe_vector): Handle default value of a char table.
24239
24240 * fontset.c (fontset_face): Handle fallback fonts correctly.
24241 (Ffontset_info): Return infomation about fallback fonts.
24242
24243 2008-02-01 Kenichi Handa <handa@m17n.org>
24244
24245 * fontset.c (FONTSET_DEFAULT): New macro.
24246 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24247 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24248 the case that it is nil.
24249 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24250 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24251
24252 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24253 subset or superset.
24254
24255 2008-02-01 Kenichi Handa <handa@m17n.org>
24256
24257 * emacs.c (main): Call init_charset after syms_of_XXX.
24258
24259 * charset.c (Vcharset_map_directory): Delete.
24260 (Vcharset_map_path): New variable.
24261 (load_charset_map_from_file): Use Vcharset_map_path instead.
24262 (init_charset): Initialize Vcharset_map_path.
24263 (syms_of_charset): Delete declaration of "charset-map-directory",
24264 add declaration of "charset-map-path".
24265
24266 2008-02-01 Kenichi Handa <handa@m17n.org>
24267
24268 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24269 ASCII only string.
24270
24271 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24272
24273 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24274 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24275
24276 2008-02-01 Kenichi Handa <handa@m17n.org>
24277
24278 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24279
24280 * coding.c (QCmnemonic, QCdefalut_char)
24281 (QCdecode_translation_table, QCencode_translation_table)
24282 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24283 (get_translation_table): Return a list of translation tables if
24284 necessary.
24285 (decode_coding): Call get_translation_table with ENCODEP 0.
24286 (char_encodable_p): If translation_table is non-nil, always call
24287 translate_char.
24288 (Fdefine_coding_system_internal): Accept list of translation
24289 tables as :encode-translation-table and :decode-translation-table.
24290 (Fcoding_system_put): New function.
24291 (syms_of_coding): Declare new symbols.
24292 Defsubr Scoding_system_put.
24293 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24294 typically JISX0212.
24295
24296 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24297 when the charset is superset type.
24298
24299 * character.c (translate_char): Accept list of translation tables.
24300
24301 2008-02-01 Kenichi Handa <handa@m17n.org>
24302
24303 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24304 (CODING_ATTR_TRANS_TBL): New macro.
24305
24306 * coding.c (get_translation_table): New function.
24307 (translate_chars): Fix the bug of skipping annotation data.
24308 (decode_coding, encode_coding): Utilize get_translation_table.
24309 (char_encodable_p, Funencodable_char_position): Translate char if
24310 necessary.
24311 (Ffind_coding_systems_region_internal)
24312 (Fcheck_coding_systems_region): Setup translation table for encode
24313 in a coding system attribute vector in advance.
24314 (Fdefine_coding_system_internal): Allow a symbol as translation
24315 table. For shift-jis type coding system, allow 4th charset.
24316
24317 2008-02-01 Kenichi Handa <handa@m17n.org>
24318
24319 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24320
24321 * xdisp.c (get_next_display_element): Pass -1 as POS to
24322 FACE_FOR_CHAR if displaying a C-string.
24323
24324 2008-02-01 Kenichi Handa <handa@m17n.org>
24325
24326 * composite.c (get_composition_id): Handle xoff and yoff in a
24327 composition rule.
24328
24329 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24330 (struct composition): New member lbearing and rbearing.
24331
24332 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24333 (x_get_glyph_overhangs): Handle a composition glyph.
24334 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24335
24336 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24337 composition glyph.
24338
24339 2008-02-01 Kenichi Handa <handa@m17n.org>
24340
24341 * print.c: Include charset.h.
24342 (Vprint_charset_text_property): New variable.
24343 (Qdefault): Extern it.
24344 (PRINT_STRING_NON_CHARSET_FOUND)
24345 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24346 (print_check_string_result): New variable.
24347 (print_check_string_charset_prop): New function.
24348 (print_prune_charset_plist): New variable.
24349 (print_prune_string_charset): New function.
24350 (print_object): Call print_prune_string_charset if
24351 Vprint_charset_text_property is not t.
24352 (print_interval): Print nothing if interval->plist is nil.
24353 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24354 variable. Init and staticpro print_prune_charset_plist.
24355
24356 2008-02-01 Kenichi Handa <handa@m17n.org>
24357
24358 * fontset.c (new_fontset_from_font_name): Use the specified font
24359 for all characters in the new fontset.
24360
24361 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24362 OBJECT args.
24363
24364 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24365 OBJECT args for composition too.
24366
24367 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24368 OBJECT args.
24369
24370 2008-02-01 Kenichi Handa <handa@m17n.org>
24371
24372 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24373
24374 * fontset.c (reorder_font_vector): Adjust for the change of
24375 FONT_DEF format.
24376 (fontset_face): New arg id. Change caller.
24377 (face_for_char): New args pos and object.
24378 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24379 (fs_query_fontset): Check NAME by Fassoc too.
24380 (Fset_fontset_font): Allow non-XLFD font name.
24381 (Ffontset_info): Adjust for the change of FONT_DEF format.
24382
24383 * fontset.h (face_for_char): Adjust prototype.
24384
24385 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24386 (append_space, extend_face_to_end_of_line)
24387 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24388 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24389
24390 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24391 POS and OBJECT args.
24392
24393 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24394 POS and OBJECT args.
24395
24396 2008-02-01 Jason Rumney <jasonr@gnu.org>
24397
24398 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24399 of GlobalAlloc'ed memory.
24400
24401 2008-02-01 Kenichi Handa <handa@m17n.org>
24402
24403 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24404
24405 * charset.h (charset_table_used): Delete extern.
24406
24407 * charset.c (charset_table_used): Make it static.
24408 (map_charset_chars): Fix args to c_function with.
24409
24410 * chartab.c (map_sub_char_table_for_charset): Fix args to
24411 c_function with.
24412
24413 * coding.h (enum coding_result_code):
24414 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
24415
24416 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24417 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24418 (Vlast_code_conversion_error): New variables.
24419 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24420 (ONE_MORE_BYTE): Record error if any instead of signaling an
24421 error. If non-ASCII multibyte char is found, return the negative
24422 value of the code. All callers changed to check it.
24423 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24424 (record_conversion_result): New function. Change all codes setting
24425 coding->result to call this function.
24426 (detect_coding_utf_8, decode_coding_utf_8)
24427 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24428 Don't use the local variable incomplete.
24429 (emacs_mule_char): Change the second arg to `const'.
24430 (decode_coding): Fix of flushing out unprocessed data.
24431 (make_conversion_work_buffer): Fix making of a work buffer.
24432 (decode_coding_object): Return coding->dst_object.
24433
24434 * fontset.c (set_fontset_font): Fix args.
24435
24436 * lisp.h (CHARACTERBITS): Define as 22.
24437
24438 * process.c (send_process): Be sure to set coding->src_multibyte.
24439
24440 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24441
24442 2008-02-01 Kenichi Handa <handa@m17n.org>
24443
24444 * xdisp.c (handle_auto_composed_prop): Give limit to
24445 Fnext_single_char_property_change.
24446
24447 2008-02-01 Kenichi Handa <handa@m17n.org>
24448
24449 * composite.c (syms_of_composite): Don't make the composition hash
24450 table weak.
24451
24452 * fontset.c (Fset_fontset_font): Fix docstring.
24453
24454 * lisp.h (detect_coding_system): Adjust prototype.
24455
24456 * fileio.c (kill_workbuf_unwind): Delete this function.
24457 (Finsert_file_contents): Adjust the call of detect_coding_system.
24458 Get conversion_buffer by code_conversion_save. Use the macro
24459 CODING_MAY_REQUIRE_DECODING. After decoding, update
24460 coding_system.
24461
24462 * coding.h (make_conversion_work_buffer): Delete extern.
24463 (code_conversion_save): Extern it.
24464
24465 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24466 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24467 (decode_coding_utf_8): Don't do eol converion.
24468 (detect_coding_utf_16): Check coding->src_chars, not
24469 coding->src_bytes. Add heuristics for those that have no signature.
24470 (decode_coding_emacs_mule, decode_coding_iso_2022)
24471 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24472 Don't do eol converion.
24473 (adjust_coding_eol_type): Return a new coding system.
24474 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24475 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24476 each change.
24477 (decode_coding): Pay attention to undo_list. Do eol conversion for
24478 all types of coding-systems (if necessary).
24479 (Vcode_conversion_work_buf_list): Delete it.
24480 (Vcode_conversion_reused_workbuf): Rename from
24481 Vcode_conversion_reused_work_buf.
24482 (Vcode_conversion_workbuf_name): New variable.
24483 (reused_workbuf_in_use): New variable.
24484 (make_conversion_work_buffer): Delete the arg DEPTH.
24485 (code_conversion_restore): Change argument to cons.
24486 (code_conversion_save): Delete the argument BUFFER. Change callers.
24487 (detect_coding_system): New argument src_chars. Change callers.
24488 Fix for utf-16 detection.
24489 (init_coding_once): Don't use ISO_carriage_return.
24490 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24491 reused_workbuf_in_use.
24492
24493 2008-02-01 Kenichi Handa <handa@m17n.org>
24494
24495 * keymap.c (store_in_keymap): Pay attention to the case that idx
24496 is a cons specifying a character range.
24497
24498 2008-02-01 Kenichi Handa <handa@m17n.org>
24499
24500 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24501 HANDLED_RECOMPUTE_PROPS.
24502
24503 * coding.c (Fdefine_coding_system_internal): Fix checking of
24504 ascii compatibility.
24505
24506 2008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 * charset.c (find_charsets_in_text): Delete unused locale variable.
24509 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24510
24511 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24512 Resync charset_list to Vemacs_mule_charset_list.
24513
24514 * keymap.c (store_in_keymap): Pay attention to the case that idx
24515 is a cons specifying a character range.
24516
24517 2008-02-01 Kenichi Handa <handa@m17n.org>
24518
24519 * composite.c (update_compositions): Bind inhibit-read-only, etc
24520 to t before calling remove-list-of-text-properties.
24521
24522 * print.c (print_object): Always print ASCII chars as is.
24523
24524 2008-02-01 Kenichi Handa <handa@m17n.org>
24525
24526 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24527
24528 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24529 is a char table.
24530
24531 2008-02-01 Kenichi Handa <handa@m17n.org>
24532
24533 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24534
24535 2008-02-01 Kenichi Handa <handa@m17n.org>
24536
24537 * xfaces.c (set_lface_from_font_name): Fix for the case that
24538 FONTNAME is not fontset name.
24539
24540 2008-02-01 Kenichi Handa <handa@m17n.org>
24541
24542 * fns.c (base64_encode_1): Fix previous change.
24543
24544 2008-02-01 Kenichi Handa <handa@m17n.org>
24545
24546 * fontset.c (set_fontset_font): New function.
24547 (Fset_fontset_font): If a font is specified for a charset, use
24548 map_charset_chars to store the font spec in a fontset.
24549
24550 2008-02-01 Kenichi Handa <handa@m17n.org>
24551
24552 * fontset.c (fontset_face): Create a fallback fontset on demand.
24553 (make_fontset): Don't create a fallback fontset here.
24554 (free_face_fontset): Free a fallback fontset (if any) too.
24555 (n_auto_fontsets): Delete this variable.
24556 (auto_fontset_alist): New variable.
24557 (new_fontset_from_font_name): Check auto_fontset_alist.
24558 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24559 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24560 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24561 Defsubr Sfontset_list_all.
24562
24563 2008-02-01 Kenichi Handa <handa@m17n.org>
24564
24565 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24566
24567 2008-02-01 Kenichi Handa <handa@m17n.org>
24568
24569 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24570
24571 2008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * editfns.c (Fgoto_char): Fix docstring.
24574
24575 2008-02-01 Kenichi Handa <handa@m17n.org>
24576
24577 * insdel.c (insert_from_gap): Adjust intervals correctly.
24578
24579 2008-02-01 Jason Rumney <jasonr@gnu.org>
24580
24581 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24582 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24583 (w32_initialize): Try to load it.
24584 (x_get_font_repertory): Use it if available.
24585 (w32_encode_char): Add shortcut for unicode output.
24586
24587 * w32fns.c (w32_load_system_font): Default charset to -1.
24588 (x_to_w32_charset): Match all fonts for unicode.
24589 (w32_to_x_charset): New parameter matching. Don't return partial
24590 or wildcard charsets.
24591 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24592 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24593 (w32_to_x_font): Match charset to real charset.
24594 (enum_font_cb2): Always list unicode versions.
24595
24596 * makefile.w32-in (temacs): Increase EMHEAP.
24597
24598 2008-02-01 Jason Rumney <jasonr@gnu.org>
24599
24600 * w32term.c (w32_encode_char): New charset parameter.
24601 font_info.encoding becomes encoding_type.
24602 (x_get_font_repertory): New function. Warning: stub only!
24603 (x_new_font): Return quickly if font already set.
24604 (x_new_fontset): fontsetname parameter is Lisp_Object.
24605 Use new fs_query_fontset. Try new_fontset_from_font_name.
24606 Use fontset_name for return value.
24607
24608 * w32term.h: Declare x_get_font_repertory.
24609
24610 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24611 place of find_charset_in_text. Use encode_coding_object in place
24612 of encode_coding.
24613 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24614 decode_coding.
24615
24616 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24617 of x_new_fontset.
24618 (w32_load_system_font): Initialize charset as unicode.
24619 font_info.encoding becomes encoding_type.
24620 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24621 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24622 (syms_of_w32fns): Set get_font_repertory_func.
24623
24624 * w32console.c: Include character.h. Use terminal_encode_buffer
24625 from term.c.
24626 (write_glyphs): Use new version of encode_terminal_code.
24627 Use encode_coding_object in place of encode_coding.
24628
24629 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24630 encoding becomes encoding_type.
24631
24632 * term.c (terminal_encode_buffer): Make externally visible.
24633
24634 * makefile.w32-in: Add character.h dependancies.
24635 (character.o, chartab.o): New targets.
24636
24637 2008-02-01 Kenichi Handa <handa@m17n.org>
24638
24639 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24640 CODING_ID_EOL_TYPE.
24641
24642 2008-02-01 Andreas Schwab <schwab@suse.de>
24643
24644 * coding.c (produce_chars): Revert last change.
24645
24646 2008-02-01 Kenichi Handa <handa@m17n.org>
24647
24648 * charset.h (charset_unicode): Extern it.
24649
24650 * charset.c (string_xstring_p): Check by (C >= 0x100).
24651 (find_charsets_in_text): Change format of the arc CHARSETS.
24652 New arg MULTIBYTE.
24653 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24654 change of find_charsets_in_text.
24655 (Fsplit_char): Fix doc. Never return unknown.
24656
24657 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24658
24659 * coding.c (Fdefine_coding_system_alias):
24660 Update Vcoding_system_list.
24661
24662 * fontset.c (load_font_get_repertory): Pay attention to the case
24663 that ENCODING of a font is specified by a char-table.
24664
24665 * xterm.c (x_get_font_repertory): Handle the case that the
24666 encoding of font is other than Unicode.
24667
24668 2008-02-01 Kenichi Handa <handa@m17n.org>
24669
24670 * term.c (encode_terminal_code): Don't handle glyph-table.
24671 Check if a character is encodable by the terminal coding system.
24672 If not, produces proper number of `?'s. Update
24673 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24674 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24675
24676 2008-02-01 Kenichi Handa <handa@m17n.org>
24677
24678 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24679 New variables.
24680 (encode_terminal_code): Change argument. Encode multiple
24681 characters at once. Store the result of encoding in
24682 terminal_encode_buffer.
24683 (write_glyphs, insert_glyphs): Adjust for the change of
24684 encode_terminal_code.
24685 (term_init): Initialize terminal_encode_buffer and
24686 terminal_encode_buf_size.
24687
24688 * coding.c (consume_chars): If coding->src_object is nil, don't
24689 check annotation.
24690
24691 2008-02-01 Kenichi Handa <handa@m17n.org>
24692
24693 * character.c (char_string): Use ASCII_CHAR_P instead of
24694 SINGLE_BYTE_CHAR_P.
24695
24696 2008-02-01 Kenichi Handa <handa@m17n.org>
24697
24698 * xdisp.c (handle_auto_composed_prop): Check if the last
24699 characters of auto-composed region is newly composed with the
24700 following characters.
24701 (handle_composition_prop): Fix checking of point being inside
24702 composition.
24703
24704 2008-02-01 Kenichi Handa <handa@m17n.org>
24705
24706 * fns.c (concat): Don't change multibyteness of the result by
24707 concatenating an 8-bit character.
24708
24709 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24710 multibyteness of the result when newelt is an 8-bit character.
24711
24712 2008-02-01 Dave Love <fx@gnu.org>
24713
24714 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24715 EMACS_INT.
24716
24717 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24718
24719 * xfaces.c (face_numeric_value): Declare dim size_t.
24720 (Finternal_lisp_face_equal_p): Remove unused f.
24721
24722 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24723 (MATRIX_ROW): Remove unused vars.
24724 (draw_glyphs, x_insert_glyphs, fast_find_position)
24725 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24726 byte/char counts.
24727
24728 * regex.c (regex_compile): Remove unused var.
24729
24730 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24731
24732 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24733 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24734
24735 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24736
24737 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24738
24739 * fileio.c (Fwrite_region): Remove unused var.
24740
24741 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24742 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24743
24744 * composite.c (Fremove_list_of_text_properties): Declare.
24745
24746 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24747 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24748 (coding_inherit_eol_type): Remove unused attrs.
24749 (detect_coding): Cast arg of detect_eol.
24750
24751 * charset.c (syms_of_charset): Remove unused var p.
24752 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24753 byte/char counts.
24754
24755 * casetab.c (set_case_table): Remove unused var.
24756
24757 * window.c (Fdisplay_buffer, Fframe_selected_window):
24758 Remove unused vars.
24759
24760 2008-02-01 Dave Love <fx@gnu.org>
24761
24762 * xterm.c (x_bitmap_mask): Declare.
24763
24764 2008-02-01 Dave Love <fx@gnu.org>
24765
24766 * xterm.c (x_term_init): Fix type error.
24767
24768 * lisp.h: Add Funibyte_char_to_multibyte.
24769
24770 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24771 (Fset_coding_system_priority): Doc fix.
24772
24773 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24774
24775 * indent.c (check_composition): Make start and end EMACS_INT.
24776
24777 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24778
24779 * xdisp.c (handle_composition_prop, check_point_in_composition):
24780 Make buffer positions EMACS_INT.
24781
24782 * composite.c (find_composition, run_composition_function)
24783 (update_compositions, Ffind_composition_internal): Make buffer
24784 positions EMACS_INT.
24785
24786 * composite.h (find_composition, update_compositions):
24787 Make position args EMACS_INT.
24788
24789 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24790
24791 * intervals.c (get_property_and_range):
24792 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24793
24794 * unexalpha.c: Don't include varargs.h.
24795
24796 2008-02-01 Dave Love <fx@gnu.org>
24797
24798 * coding.h (ENCODE_UTF_8): New.
24799
24800 * Makefile.in (gtkutil.o): Depend on coding.h.
24801
24802 * coding.c (Fset_coding_system_priority): Doc fix.
24803
24804 2008-02-01 Kenichi Handa <handa@m17n.org>
24805
24806 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24807 the case of auto saving.
24808
24809 2008-02-01 Andreas Schwab <schwab@suse.de>
24810
24811 * chartab.c (map_char_table, map_char_table_for_charset):
24812 Protect `range' from GC.
24813
24814 2008-02-01 Kenichi Handa <handa@m17n.org>
24815
24816 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24817
24818 2008-02-01 Kenichi Handa <handa@m17n.org>
24819
24820 * fileio.c (choose_write_coding_system): Return a decided coding system.
24821 (Fwrite_region): Set Vlast_coding_system_used to the return value
24822 of choose_write_coding_system.
24823
24824 2008-02-01 Kenichi Handa <handa@m17n.org>
24825
24826 * charset.c (Fset_charset_priority): Pay attention to duplicated
24827 arguments.
24828
24829 * coding.c (QCcategory): New variable.
24830 (syms_of_coding): Defsym it. Set all elements of
24831 Vcoding_category_table and their symbol values.
24832 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24833 coding-category-XXX, and coding-category-list.
24834 (Fdefine_coding_system_internal): Add category in the plist.
24835
24836 2008-02-01 Kenichi Handa <handa@m17n.org>
24837
24838 * callproc.c (Fcall_process): Handle carryover correctly.
24839
24840 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24841 (raw_text_coding_system): Check NILP (coding_system).
24842 (coding_inherit_eol_type): Check NILP (coding_system) and
24843 NILP (parent).
24844 (consume_chars): Fix for the case of raw-text.
24845
24846 * process.c (read_process_output): Handle carryover correctly.
24847
24848 2008-02-01 Dave Love <fx@gnu.org>
24849
24850 * regex.c (re_search_2): Fix last change.
24851
24852 2008-02-01 Kenichi Handa <handa@m17n.org>
24853
24854 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24855 target_multibyte. Even in a unibyte case, return a converted
24856 multibyte char.
24857 (GET_CHAR_AFTER): New macro.
24858 (PATFETCH): Translate via multibyte char.
24859 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24860 (SETUP_MULTIBYTE_RANGE): New macro.
24861 (regex_compile): Setup compiled code so that its multibyteness
24862 matches that of a target. Fix the handling of "[X-YZ]" using
24863 SETUP_MULTIBYTE_RANGE.
24864 (analyse_first) <charset>: For filling fastmap for all multibyte
24865 characters, don't check by BASE_LEADING_CODE_P.
24866 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24867 the same as RE_MULTIBYTE_P (bufp) now.
24868 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24869 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24870 (TRANSLATE_VIA_MULTIBYTE): New macro.
24871 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24872 It is the same as RE_MULTIBYTE_P (bufp) now.
24873 <exactn>: Translate via multibyte.
24874 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24875 Don't translate it.
24876 <charset, charset_not>: Fetch a character by
24877 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24878 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24879 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24880 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24881 by GET_CHAR_AFTER.
24882 (bcmp_translate): Likewise.
24883
24884 * search.c (compile_pattern): Check the member target_multibyte,
24885 not the member multibyte of buf.
24886
24887 * lread.c (read1): While reading a string, set force_singlebyte
24888 and force_multibyte correctly.
24889
24890 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24891 up of unibyte_to_multibyte_table.
24892
24893 2008-02-01 Kenichi Handa <handa@m17n.org>
24894
24895 * coding.c (setup_coding_system): If coding has
24896 post-read-conversion or pre-write-conversion, set
24897 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24898 respectively.
24899 (decode_coding_gap): Run post-read-conversion if any.
24900
24901 * fileio.c (Finsert_file_contents): Even if we read into a
24902 unibyte buffer, check if we must decode the result or not.
24903
24904 2008-02-01 Kenichi Handa <handa@m17n.org>
24905
24906 * coding.c (make_conversion_work_buffer): Change the work buffer
24907 name to the same one as that of Emacs 21.
24908
24909 2008-02-01 Kenichi Handa <handa@m17n.org>
24910
24911 * coding.h (make_conversion_work_buffer): Adjust prototype.
24912 (code_conversion_restore): Don't extern it.
24913
24914 * coding.c (detected_mask): Delete unused variable.
24915 (decode_coding_iso_2022): Pay attention to the byte sequence of
24916 CTEXT extended segment, and retain those bytes as is.
24917 (decode_coding_ccl): Delete unused variable `valids'.
24918 (setup_coding_system): Delete unused variable `category'.
24919 (consume_chars): Delete unused variable `category'. Make it work
24920 for non-multibyte case.
24921 (make_conversion_work_buffer): Change argument.
24922 (saved_coding): Delete unused variable.
24923 (code_conversion_restore): Don't check saved_coding->destination.
24924 (code_conversion_save): New function.
24925 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24926 instead of record_unwind_protect.
24927 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24928 (detect_coding_system): Delete unused variable `mask'.
24929 (Fdefine_coding_system_internal): Delete unused variable id.
24930
24931 * fileio.c (kill_workbuf_unwind): New function.
24932 (Finsert_file_contents): On replacing, call
24933 make_conversion_work_buffer with correct args, and call
24934 record_unwind_protect with the first arg kill_workbuf_unwind.
24935
24936 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24937
24938 2008-02-01 Kenichi Handa <handa@m17n.org>
24939
24940 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24941 (fontset_add): Fix for the case that TO is less than TO1.
24942 (Ffontset_info): Don't use fallback fontset on checking the
24943 default fontset.
24944 (dump_fontset): New function for debugging.
24945
24946 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24947 coding_type is Qcharset.
24948
24949 2008-02-01 Kenichi Handa <handa@m17n.org>
24950
24951 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24952 (map_char_table): Don't inherit the value from the parent on
24953 initializing VAL. Adjust for the above change.
24954
24955 2008-02-01 Kenichi Handa <handa@m17n.org>
24956
24957 * coding.c (Qsignature, Qendian): Delete these variables.
24958 (syms_of_coding): Don't initialize them.
24959 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24960 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24961 detect_info->found.
24962 (decode_coding_utf_16): Don't detect BOM here.
24963 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24964 is NOT utf_16_without_bom.
24965 (setup_coding_system): For a coding system of type utf-16, check
24966 if the attribute :endian is Qbig or not (not nil or not), and set
24967 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24968 (detect_coding): If coding type is utf-16 and BOM detection is
24969 required, detect it.
24970 (Fdefine_coding_system_internal): For a coding system of type
24971 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24972
24973 2008-02-01 Kenichi Handa <handa@m17n.org>
24974
24975 * coding.c (coding_set_source): Fix for the case that the current
24976 buffer is different from coding->src_object.
24977 (decode_coding_object): Don't use the conversion work buffer if
24978 DST_OBJECT is a buffer.
24979
24980 2008-02-01 Dave Love <fx@gnu.org>
24981
24982 * lread.c (read_emacs_mule_char) [len==2]: Index
24983 emacs_mule_charset correctly.
24984
24985 2008-02-01 Dave Love <fx@gnu.org>
24986
24987 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24988 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24989 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24990 treated specially.)
24991 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24992 (detected_mask): Remove Big5 bits.
24993
24994 2008-02-01 Kenichi Handa <handa@m17n.org>
24995
24996 The following changes are to make the font rescaling facility
24997 compatible with Emacs 21.
24998
24999 * xfaces.c (Vface_font_rescale_alist): Rename from
25000 Vface_resizing_fonts.
25001 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25002 (font_rescale_ratio): Rename from font_resizing_ratio.
25003 (split_font_name): Set font->rescale_ratio.
25004 (better_font_p): Pay attention to font->rescale_ratio.
25005 (build_scalable_font_name): Likewise. Change RESX, and RESY
25006 fields.
25007 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25008
25009 2008-02-01 Kenichi Handa <handa@m17n.org>
25010
25011 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25012 (Qutf_16_le): Remove these variables.
25013 (syms_of_coding): Don't DEFSYM them.
25014 (decode_coding_utf_16): Fix handling of BOM.
25015 (encode_coding_utf_16): Fix handling of BOM.
25016
25017 2008-02-01 Kenichi Handa <handa@m17n.org>
25018
25019 * fileio.c (Finsert_file_contents): On replacing, before decoding
25020 the file into the work buffer, set point of the work buffer to the end.
25021
25022 2008-02-01 Dave Love <fx@gnu.org>
25023
25024 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25025
25026 2008-02-01 Dave Love <fx@gnu.org>
25027
25028 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25029 and fix C types.
25030
25031 2008-02-01 Kenichi Handa <handa@m17n.org>
25032
25033 * xdisp.c (SKIP_GLYPHS): New macro.
25034 (set_cursor_from_row): Pay attention to string display properties.
25035
25036 * category.c (copy_category_entry): Fix for the case that RANGE
25037 is an integer.
25038
25039 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25040
25041 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25042
25043 2008-02-01 Kenichi Handa <handa@m17n.org>
25044
25045 * charset.c (Fcharset_id_internal): New function.
25046 (syms_of_charset): Defsubr it.
25047
25048 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25049 with the last arg charset_list acquired from coding.
25050 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25051 the attribute coding_attr_ccl_valids.
25052
25053 * coding.h (enum define_coding_ccl_arg_index): Set the first
25054 member coding_arg_ccl_decoder to coding_arg_max.
25055
25056 * ccl.h (ccl_driver): Adjust prototype.
25057
25058 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25059 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
25060 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
25061 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25062 last arg Qnil.
25063
25064 2008-02-01 Kenichi Handa <handa@m17n.org>
25065
25066 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25067 call encode_char.
25068
25069 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25070
25071 2008-02-01 Dave Love <fx@gnu.org>
25072
25073 * composite.c (syms_of_composite): Make composition_hash_table weak.
25074
25075 2008-02-01 Kenichi Handa <handa@m17n.org>
25076
25077 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25078 (font_name_registry): Don't extern them.
25079 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25080
25081 * fontset.h (Qfontset): Don't extern it.
25082 (new_fontset_from_font_name): Extern it.
25083
25084 * fontset.c: Give 8 extra slots to fontset objects.
25085 (Qfontset_info): New variable.
25086 (syms_of_fontset): Defsym it.
25087 (FONTSET_FALLBACK): New macro.
25088 (fontset_face): Try also the default fontset.
25089 (make_fontset): Realize a fallback fontset from the default fontset.
25090 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25091 using split_font_name_into_vector and build_font_name_from_vector.
25092 (Fset_fontset_font): Access the elements of font_spec by enum
25093 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25094 name by using split_font_name_into_vector.
25095 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25096 generate a proper font name from the fontset name.
25097 Update Vfontset_alias_alist.
25098 (n_auto_fontsets): New variable.
25099 (new_fontset_from_font_name): New function.
25100 (Ffont_info): Store the information about fonts generated from the
25101 default fontset in the first extra slot of the returned char-table.
25102
25103 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25104 (font_name_registry): Delete function.
25105 (split_font_name_into_vector): New function.
25106 (build_font_name_from_vector): New function.
25107 (font_list): The argument REGISTRY is now a list of registry names.
25108 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25109 specifies an explicit font name, return the name as is. Make a
25110 list of registy names.
25111
25112 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25113 of x_new_fontset.
25114 (Fx_create_frame): Don't call x_new_fontset here. Just use
25115 x_list_fonts to check the existence of fonts.
25116
25117 * xterm.h (x_new_fontset): Adjust prototype.
25118
25119 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25120 string. Use new_fontset_from_font_name to create a fontset from a
25121 font name.
25122
25123 2008-02-01 Kenichi Handa <handa@m17n.org>
25124
25125 * syntax.c (Vfind_word_boundary_function_table): New name for
25126 Vnext_word_boundary_function_table.
25127 (find-word-boundary-function-table): New name for
25128 next-word-boundary-function-table.
25129
25130 2008-02-01 Dave Love <fx@gnu.org>
25131
25132 * Makefile.in: Fix some dependencies.
25133
25134 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25135 set it to nil before returning.
25136
25137 * composite.c (update_compositions): Fix type error.
25138
25139 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25140
25141 2008-02-01 Kenichi Handa <handa@m17n.org>
25142
25143 * xterm.c (x_new_font): Optimize for the case that the font is
25144 already set for the frame.
25145
25146 2008-02-01 Kenichi Handa <handa@m17n.org>
25147
25148 * chartab.c (char_table_ascii): Check if the char table contents
25149 is sub-char-table or not.
25150 (char_table_set, char_table_set_range): Fix argument to
25151 char_table_ascii.
25152
25153 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25154 (detect_coding_utf_8, detect_coding_utf_16)
25155 (detect_coding_emacs_mule, detect_coding_iso_2022)
25156 (detect_coding_sjis, detect_coding_big5)
25157 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25158 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25159 sequence is valid in this coding system. Change callers.
25160 (MAX_ANNOTATION_LENGTH): New macro.
25161 (ADD_ANNOTATION_DATA): New macro.
25162 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25163 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25164 (ADD_CHARSET_DATA): New macro.
25165 (emacs_mule_char): New argument ID. Change callers.
25166 (decode_coding_emacs_mule, decode_coding_iso_2022)
25167 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25168 Produce charset annotation data in coding->charbuf.
25169 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25170 to charset annotation data in coding->charbuf.
25171 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25172 coding->common_flags if the coding system is iso-2022 based and
25173 uses designation.
25174 (produce_composition): Adjust for the new annotation data format.
25175 (produce_charset): New function.
25176 (produce_annotation): Handle charset annotation.
25177 (handle_composition_annotation, handle_charset_annotation):
25178 New functions.
25179 (consume_chars): Handle charset annotation. Utilize the above two
25180 functions.
25181 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25182 buffer, get the deleted text as a string and set
25183 coding->src_object to that string.
25184 (detect_coding, detect_coding_system): Use the new struct
25185 coding_detection_info.
25186
25187 * coding.h (struct coding_detection_info): New structure.
25188 (struct coding_system): Adjust prototype of the member `detector'.
25189 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25190
25191 2008-02-01 Kenichi Handa <handa@m17n.org>
25192
25193 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25194
25195 2008-02-01 Dave Love <fx@gnu.org>
25196
25197 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25198 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25199 to new local and nullify apropos_accumulate before returning.
25200 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25201
25202 2008-02-01 Kenichi Handa <handa@m17n.org>
25203
25204 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25205 correctly.
25206
25207 2008-02-01 Dave Love <fx@gnu.org>
25208
25209 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25210
25211 2008-02-01 Kenichi Handa <handa@m17n.org>
25212
25213 The following changes are to make character composition happen
25214 automatically on displaying.
25215
25216 * Makefile.in (lisp, shortlisp): Add composite.elc.
25217
25218 * composite.h (Qauto_composed, Vauto_composition_function)
25219 (Qauto_composition_function): Extern them.
25220
25221 * composite.c (Vcomposition_function_table)
25222 (Qcomposition_function_table): Delete variables.
25223 (Qauto_composed, Vauto_composition_function)
25224 (Qauto_composition_function): New variables.
25225 (run_composition_function): Don't call
25226 compose-chars-after-function.
25227 (update_compositions): Clear `auto-composed' text property.
25228 (compose_chars_in_text): Delete this function.
25229 (syms_of_composite): Staticpro Qauto_composed and
25230 Qauto_composition_function. Declare Vauto_composition_function as
25231 a Lisp variable.
25232
25233 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25234
25235 * xdisp.c (it_props): Add an entry for Qauto_composed.
25236 (handle_auto_composed_prop): New function.
25237
25238 * xselect.c (selection_data_to_lisp_data): Don't call
25239 compose_chars_in_text.
25240
25241 2008-02-01 Dave Love <fx@gnu.org>
25242
25243 * keyboard.c (read_char): Modify checking around use of
25244 Vkeyboard_translate_table.
25245
25246 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25247 and fix C types.
25248
25249 2008-02-01 Kenichi Handa <handa@m17n.org>
25250
25251 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25252 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25253 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25254 the case that the last byte is '\r' correctly.
25255 (decode_coding): Flush out the unprocessed data correctly.
25256 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25257
25258 2008-02-01 Dave Love <fx@gnu.org>
25259
25260 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25261 Add XK_ISO... case.
25262 (xaw_scroll_callback): Revert last change.
25263
25264 2008-02-01 Kenichi Handa <handa@m17n.org>
25265
25266 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25267
25268 2008-02-01 Kenichi Handa <handa@m17n.org>
25269
25270 * xfaces.c (Vface_resizing_fonts): New variable.
25271 (struct font_name): New member `resizing_ratio'.
25272 (font_resizing_ratio): New function.
25273 (split_font_name): Set font->resizing_ratio.
25274 (better_font_p): Pay attention to font->resizing_ratio.
25275 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25276 RESX, and RESY fields.
25277 (try_alternative_families): Try scalable fonts if
25278 Vscalable_fonts_allowed is not Qt.
25279 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25280
25281 2008-02-01 Dave Love <fx@gnu.org>
25282
25283 * xterm.c (xaw_scroll_callback): Cast correctly.
25284
25285 2008-02-01 Dave Love <fx@gnu.org>
25286
25287 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25288 (lispy_kana_keys): Comment out.
25289 (make_lispy_event) [XK_kana_A]: Comment out.
25290
25291 * xterm.c (xaw_scroll_callback): Cast call_data.
25292 (XTread_socket): Deal with ASCII keysyms.
25293 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25294
25295 2008-02-01 Dave Love <fx@gnu.org>
25296
25297 * xterm.c (Vx_keysym_table): New.
25298 (syms_of_xterm): Initialize it.
25299 (XTread_socket): Use it.
25300 From head: Eliminate incorrect optimization that tried to avoid
25301 decoding the output of X*LookupString.
25302 (x_get_font_repertory): Delete charset declaration.
25303
25304 2008-02-01 Kenichi Handa <handa@m17n.org>
25305
25306 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25307 return 0.
25308 (Fdefine_coding_system_internal):
25309 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25310
25311 2008-02-01 Dave Love <fx@gnu.org>
25312
25313 * coding.c (Fcheck_coding_system): Doc fix.
25314
25315 * editfns.c (Finsert_byte): Return a proper value.
25316
25317 2008-02-01 Kenichi Handa <handa@m17n.org>
25318
25319 * coding.c (decode_coding): Fix args to translate_chars.
25320 Pay attention to Vstandard_translation_table_for_decode.
25321 (encode_coding): Fix args to translate_chars. Pay attention to
25322 Vstandard_translation_table_for_encode.
25323
25324 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25325 SINGLE_BYTE_CHAR_P.
25326
25327 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25328 not by SINGLE_BYTE_CHAR_P.
25329
25330 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25331 SINGLE_BYTE_CHAR_P.
25332
25333 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25334 SINGLE_BYTE_CHAR_P.
25335
25336 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25337 by SINGLE_BYTE_CHAR_P.
25338
25339 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25340 SINGLE_BYTE_CHAR_P.
25341
25342 2008-02-01 Dave Love <fx@gnu.org>
25343
25344 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25345
25346 2008-02-01 Dave Love <fx@gnu.org>
25347
25348 * fns.c (Flanginfo): Fix typo.
25349
25350 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25351
25352 2008-02-01 Kenichi Handa <handa@m17n.org>
25353
25354 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25355 (detect_coding_emacs_mule, detect_coding_iso_2022)
25356 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25357 incomplete byte sequence. Don't update *mask when correctly detected.
25358 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25359 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25360 (detect_coding, detect_coding_system): Adjust for the changes above.
25361
25362 2008-02-01 Kenichi Handa <handa@m17n.org>
25363
25364 * character.c (char_string): Rename from
25365 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25366 (string_char): Rename from string_char.
25367
25368 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25369 if C is greater than MAX_3_BYTE_CHAR.
25370 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25371 Call string_char instead of string_char_with_unification.
25372
25373 2008-02-01 Dave Love <fx@gnu.org>
25374
25375 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25376
25377 2008-02-01 Kenichi Handa <handa@m17n.org>
25378
25379 * keymap.c (push_key_description): Pay attention to force_multibyte.
25380
25381 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25382
25383 2008-02-01 Dave Love <fx@gnu.org>
25384
25385 * charset.c (define_charset_internal): Rename `supprementary'.
25386
25387 * Makefile.in (lisp, shortlisp): Remove latin-N.
25388
25389 2008-02-01 Dave Love <fx@gnu.org>
25390
25391 * xfns.c (x_window, x_window): Use use_xim.
25392
25393 * xterm.c (use_xim): Initialize.
25394 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25395 (x_term_init): Maybe set use_xim.
25396
25397 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25398
25399 2008-02-01 Kenichi Handa <handa@m17n.org>
25400
25401 * search.c (search_buffer): Fix case-fold-search of multibyte
25402 characters.
25403 (boyer_moore): Rename the last argument to char_high_bits.
25404
25405 2008-02-01 Kenichi Handa <handa@m17n.org>
25406
25407 * xdisp.c (display_string): Fix for the case of zero width glyph.
25408
25409 * xfns.c (x_set_font): Change the error message of the case that
25410 x_new_fontset returns Qt.
25411
25412 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25413 (Finternal_set_lisp_face_attribute): Use signal_error for the
25414 error of invalid fontset.
25415
25416 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25417 fontset, return Qt.
25418
25419 2008-02-01 Dave Love <fx@gnu.org>
25420
25421 * unexelf.c (unexec): Make .got handling not SGI-specific.
25422
25423 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25424
25425 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25426
25427 * keyboard.c (read_key_sequence): Fix type error.
25428
25429 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25430 Fix type error.
25431
25432 * fontset.c (fontset_add): Return Lisp_Object.
25433
25434 2008-02-01 Dave Love <fx@gnu.org>
25435
25436 * charset.h (charset_ordered_list_tick): Declare extern.
25437
25438 2008-02-01 Kenichi Handa <handa@m17n.org>
25439
25440 The following changes (and some of 2008-02-01 changes of mine) are
25441 for handling syntax, category, and case conversion for unibyte
25442 characters by converting them to multibyte on the fly. With these
25443 changes, we don't have to setup syntax and case tables for unibyte
25444 characters in each language environment.
25445
25446 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25447 multibyte if necessary.
25448
25449 * bytecode.c (Fbyte_code): Likewise.
25450
25451 * character.h (LEADING_CODE_LATIN_1_MIN)
25452 (LEADING_CODE_LATIN_1_MAX): New macros.
25453 (unibyte_to_multibyte_table): Extern it.
25454 (unibyte_char_to_multibyte): New macro.
25455 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25456 (CHAR_LEADING_CODE): New macro.
25457 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25458
25459 * character.c (unibyte_to_multibyte_table): New variable.
25460 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25461 (multibyte_char_to_unibyte): If C is an eight-bit character,
25462 convert it to the corresponding byte value.
25463
25464 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25465 not 1, signals an error. Update the elements of
25466 unibyte_to_multibyte_table.
25467 (init_charset_once): Initialize unibyte_to_multibyte_table.
25468 (syms_of_charset): Define the charset `iso-8859-1'.
25469
25470 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25471 as is without converting it to unibyte. In a unibyte buffer,
25472 convert C to multibyte before checking the syntax.
25473
25474 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25475
25476 * minibuf.c (Fminibuffer_complete_word): Use the macro
25477 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25478
25479 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25480
25481 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
25482 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25483 If that is zero, convert an eight-bit char to multibyte.
25484 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25485 non-emacs case.
25486 (PATFETCH): Convert an eight-bit char to multibyte.
25487 (HANDLE_UNIBYTE_RANGE): New macro.
25488 (regex_compile): Setup the compiled pattern for multibyte chars
25489 even if the given regex string is unibyte. Use PATFETCH_RAW
25490 instead of PATFETCH in many places. To handle `charset'
25491 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25492 only for ASCII chars.
25493 (analyse_first) <exactn>: Simplify because the compiled pattern
25494 is multibyte.
25495 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25496 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25497 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25498 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25499 multibyte always 1.
25500 (re_search_2): In emacs, set the locale variable multibyte to 1,
25501 otherwise to 0. New local variable target_multibyte. Check it
25502 to decide the multibyteness of STR1 and STR2.
25503 If target_multibyte is zero, convert unibyte chars to multibyte
25504 before translating and checking fastmap.
25505 (TARGET_CHAR_AND_LENGTH): New macro.
25506 (re_match_2_internal): In emacs, set the locale variable multibyte
25507 to 1, otherwise to 0. New local variable target_multibyte.
25508 Check it to decide the multibyteness of STR1 and STR2.
25509 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
25510 <charset, charset_not>: If multibyte is nonzero, check fastmap
25511 only for ASCII chars. Call bcmp_translate with
25512 target_multibyte, not with multibyte.
25513 <begline>: Declare the local variable C as `unsigned'.
25514 (bcmp_translate): Change the last arg name to target_multibyte.
25515
25516 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25517 the regexp pattern and the matching target. Set cp->buf.multibyte
25518 to the multibyteness of the regexp pattern. Set
25519 cp->but.target_multibyte to the multibyteness of the matching target.
25520 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25521 FETCH_STRING_CHAR_ADVANCE.
25522 (Freplace_match): Convert unibyte chars to multibyte.
25523
25524 * syntax.c (char_quoted, back_comment, scan_words)
25525 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25526 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25527 unibyte chars to multibyte.
25528 (skip_chars): Delete the arg syntaxp, and move the code for
25529 handling syntaxes to skip_syntaxes. Change callers.
25530 Fix the case that the multibyteness of STRING and the current
25531 buffer doesn't match.
25532 (skip_syntaxes): New function.
25533 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25534 SINGLE_BYTE_CHAR_P.
25535
25536 2008-02-01 Kenichi Handa <handa@m17n.org>
25537
25538 * xfaces.c (QCfontset): New variable.
25539 (LFACE_FONTSET): New macro.
25540 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25541 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25542 (Finternal_set_lisp_face_attribute)
25543 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25544 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25545 check also LFACE_FONTSET_INDEX.
25546 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25547 attrs[LFACE_FONT_INDEX].
25548 (syms_of_xfaces): Intern and staticpro QCfontset.
25549
25550 * dispextern.h (enum lface_attribute_index): New member
25551 LFACE_FONTSET_INDEX.
25552
25553 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25554
25555 2008-02-01 Kenichi Handa <handa@m17n.org>
25556
25557 * coding.c (coding_set_destination): Fix coding->destination for
25558 the case converting a region.
25559 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25560 (encode_coding_object): Fix coding->dst_pos and
25561 coding->dst_pos_byte for the case converting a region.
25562
25563 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25564
25565 * character.h (BYTE8_STRING): New macro.
25566
25567 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25568
25569 2008-02-01 Kenichi Handa <handa@m17n.org>
25570
25571 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25572 characters by octal form.
25573
25574 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25575
25576 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25577 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25578 _fetch_multibyte_char_len.
25579 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25580
25581 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25582
25583 * casefiddle.c (casify_object): Simplify. Handle the case that
25584 the case conversion change the byte length.
25585 (casify_region): Likewise.
25586
25587 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25588
25589 * character.c (_fetch_multibyte_char_len): Delete this variable.
25590 (syms_of_character): Setup Vprintable_chars.
25591
25592 * editfns.c (Fchar_equal): Fix for the unibyte case.
25593 (Finsert_byte): New function.
25594 (syms_of_editfns): Defsubr it.
25595
25596 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25597 of direct code 0x3ffff.
25598
25599 * search.c (Freplace_match): Fix for the unibyte case.
25600
25601 2008-02-01 Kenichi Handa <handa@m17n.org>
25602
25603 * lread.c (safe_to_load_p): Fix the logic.
25604
25605 * syntax.c (scan_words): Don't treat characters belonging to
25606 different scripts as constituting a word.
25607
25608 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25609
25610 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25611
25612 * emacs.c (main): In the case of --unibyte, instead of aborting on
25613 finding non-empty buffer, make it unibyte.
25614
25615 2008-02-01 Kenichi Handa <handa@m17n.org>
25616
25617 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25618 to create a fontset.
25619
25620 2008-02-01 Dave Love <fx@gnu.org>
25621
25622 * character.c (Funibyte_char_to_multibyte): Doc fix.
25623
25624 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25625
25626 2008-02-01 Kenichi Handa <handa@m17n.org>
25627
25628 * fontset.c (fontset_add): Make the type `int'.
25629 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25630
25631 * character.c (unibyte_char_to_multibyte)
25632 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25633 charset_unibyte, not charset_primary.
25634
25635 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25636
25637 * charset.c (charset_unibyte): Rename from charset_primary.
25638 (Funibyte_charset): Rename from Fprimary_charset.
25639 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25640 (syms_of_charset): Adjust for the above changes.
25641
25642 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25643 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25644 it->multibyte_p is zero.
25645
25646 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25647 Delete extern.
25648
25649 2008-02-01 Kenichi Handa <handa@m17n.org>
25650
25651 * coding.c (Fdefine_coding_system_internal): Fix category setting
25652 for a coding system of type iso-2022.
25653
25654 2008-02-01 Kenichi Handa <handa@m17n.org>
25655
25656 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25657
25658 2008-02-01 Kenichi Handa <handa@m17n.org>
25659
25660 * syntax.c (Vnext_word_boundary_function_table): New variable.
25661 (next-word-boundary-function-table): Declare it as a Lisp variable
25662 in syms_of_syntax.
25663 (scan_words): Call functions in Vnext_word_boundary_function_table
25664 if any.
25665
25666 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25667
25668 * fontset.c (fs_load_font): If fontp->charset is not negative,
25669 return fontp without setting its members.
25670
25671 2008-02-01 Dave Love <fx@gnu.org>
25672
25673 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25674
25675 * m/sparc.h (HAVE_ALLOCA): Delete.
25676
25677 * s/irix6-5.h: Don't include strings.h.
25678 (bcopy, bzero, bcmp): Don't undef.
25679
25680 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25681
25682 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25683 (TIOCSIGSEND): Don't test IRIX6.
25684 (bcopy, bzero, bcmp): Define conditionally.
25685
25686 2008-02-01 Kenichi Handa <handa@m17n.org>
25687
25688 * buffer.c (Qas, Qmake, Qto): New variables.
25689 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25690 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25691
25692 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25693 we are inserting a process output into a multibyte buffer.
25694
25695 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25696 multibyte_char_to_unibyte.
25697
25698 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25699 by the primary charset, make it eight-bit char.
25700 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25701
25702 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25703 (charset_8_bit__control, charset_8_bit_graphic)
25704 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25705 (define_charset_internal): New function.
25706 (syms_of_charset): Call define_charset_internal for pre-defined
25707 charsets.
25708
25709 * charset.h (charset_8_bit): Extern it.
25710
25711 * coding.c (make_conversion_work_buffer): Adjust for the change
25712 of Fset_buffer_multibyte.
25713 (encode_coding_raw_text): Increment p0 in the loop.
25714
25715 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25716
25717 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25718 Adjust for the change of Fset_buffer_multibyte.
25719
25720 * fns.c (Fstring_to_multibyte): New function.
25721 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25722
25723 2008-02-01 Dave Love <fx@gnu.org>
25724
25725 * xfns.c (x_put_x_image): Declare args.
25726
25727 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25728 (try_font_list): Declare an arg.
25729
25730 * xdisp.c (message2_nolog, set_message): Declare an arg.
25731
25732 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25733
25734 * syntax.c (scan_sexps_forward): Declare an arg.
25735
25736 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25737 Declare an arg.
25738
25739 * lisp.h (Fnew_fontset): Declare.
25740
25741 * keymap.c (push_key_description): Call CHARACTERP correctly.
25742
25743 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25744 (face_for_char): Delete unused vars.
25745 (Fset_fontset_font): Doc fix. Delete unused vars.
25746
25747 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25748
25749 * composite.c (update_compositions): Declare arg.
25750
25751 * cm.c (calccost, cmgoto): Declare args.
25752
25753 * charset.c: Remove `emacs' conditional. Doc fixes.
25754 (map_char_table_for_charset): Declare.
25755
25756 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25757
25758 * ccl.c: Remove `emacs' conditional.
25759
25760 2008-02-01 Kenichi Handa <handa@m17n.org>
25761
25762 The following changes are to allow specifying multiple font
25763 patterns for a character range (specified by script or charset).
25764
25765 * Makefile.in (abbrev.o): Depend on syntax.h.
25766 (xfaces.o): Depend on charset.h.
25767
25768 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25769 SINGLE_BYTE_CHAR_P.
25770
25771 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25772
25773 * character.h (Vchar_script_table): Extern it.
25774
25775 * character.c (Vscript_alist): Delete.
25776 (Vchar_script_table, Qchar_script_table): New variable.
25777 (syms_of_character): Declare Vchar_script_table as a lisp variable
25778 and initialize it.
25779
25780 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25781 have property char-table-extra-slots, make no extra slot.
25782
25783 * dispextern.h (struct face): Delete member `charset'.
25784 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25785 SINGLE_BYTE_CHAR_P.
25786 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25787 Add prototypes.
25788 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25789 (generate_ascii_font_name): Rename from generate_ascii_font.
25790
25791 * fontset.h (get_font_repertory_func): New prototype.
25792 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25793 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25794
25795 * fontset.c (Qprepend, Qappend): New variables.
25796 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25797 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25798 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25799 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25800 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25801 (load_font_get_repertory): New functions.
25802 (fontset_set): Delete.
25803 (fontset_face): New arg FACE. Return face ID, not face.
25804 Complete re-write to handle new fontset structure. Change caller.
25805 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25806 (face_for_char): Don't call lookup_face.
25807 (make_fontset_for_ascii_face): New arg FACE.
25808 (fs_load_font): New arg CHARSET_ID. Don't check
25809 Vfont_encoding_alist here.
25810 (find_font_encoding): New function.
25811 (list_fontsets): Use STRINGP, not ! NILP.
25812 (accumulate_script_ranges): New function.
25813 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25814 Completely re-written to handle new fontset structure.
25815 (Ffontset_font): Return a copy of element.
25816 (syms_of_fontset): Define symbols Qprepend and Qappend.
25817 Fix docstring of font-encoding-alist.
25818
25819 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25820 (Fset_fotset_font): Fix arguments to 5.
25821
25822 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25823
25824 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25825 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25826 (highlight_trailing_whitespace): Adjust for the change of
25827 lookup_named_face.
25828
25829 * xfaces.c: Include charset.h.
25830 (load_face_font): Delete argument C. Change caller.
25831 (generate_ascii_font_name): Rename from generate_ascii_font.
25832 (font_name_registry): New function.
25833 (cache_face): Store ascii faces before non-ascii faces in buckets.
25834 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25835 Lookup only ascii faces.
25836 (lookup_non_ascii_face): New function.
25837 (lookup_named_face): Delete argument C. Change caller.
25838 (lookup_derived_face): Delete argument C. Change caller.
25839 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25840 a string, just call font_list with it.
25841 (choose_face_font): Delete arguments FACE and C. New arg
25842 FONT_SPEC. Change caller.
25843 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25844 Change caller.
25845 (realize_non_ascii_face): New function.
25846 (realize_x_face): Call load_face_font here.
25847 (realize_tty_face): Delete argument C. Change caller.
25848 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25849 get a face ID.
25850 (dump_realized_face): Don't print charset of FACE.
25851
25852 * xfns.c (x_set_font): Always call x_new_fontset and
25853 store_frame_parameter.
25854 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25855 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25856
25857 * xterm.h (x_get_font_repertory): Extern it.
25858
25859 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25860 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25861 it->multibyte_p is zero.
25862 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25863 (x_new_fontset): If FONTSETNAME doesn't match any existing
25864 fontsets, create a new one.
25865 (x_get_font_repertory): New function.
25866
25867 2008-02-01 Kenichi Handa <handa@m17n.org>
25868
25869 * coding.c (Ffind_coding_systems_region_internal): Detect an
25870 ASCII only string correctly.
25871
25872 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25873 version is 0.
25874
25875 2008-02-01 Kenichi Handa <handa@m17n.org>
25876
25877 * lread.c: Include "coding.h".
25878 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25879 (load_each_byte, unread_char): New variables.
25880 (readchar_backlog): Delete.
25881 (readchar): Return a character unless load_each_byte is nonzero.
25882 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25883 cons. If unread_char is not -1, simply return it.
25884 (unreadchar): Handle the case that readcharfun is
25885 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25886 (read_multibyte): Delete.
25887 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25888 (read_emacs_mule_char): New functions.
25889 (Fload): Even if the file doesn't have the extension ".elc", if
25890 safe_to_load_p returns a positive version number, assume that the
25891 file contains bytecompiled code. If the version is less than 22,
25892 load the file while decoding multibyte sequences by emacs-mule.
25893 (readevalloop): Don't use readchar_backlog.
25894 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25895 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25896 (read_escape): Delete the arg BYTEREP.
25897 (read1): Set load_each_byte to 1 temporarily while handling
25898 #@NUMBER. Don't call read_multibyte.
25899 (read_vector): Call Fread with a cons. If readcharfun is
25900 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25901 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25902 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25903 and Qload_force_doc_strings.
25904
25905 2008-02-01 Kenichi Handa <handa@m17n.org>
25906
25907 * xdisp.c (face_before_or_after_it_pos):
25908 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
25909
25910 2008-02-01 Kenichi Handa <handa@m17n.org>
25911
25912 * character.h (TRAILING_CODE_P): New macro.
25913 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25914 (string_char_with_unification): Fix prototype.
25915 (Vscript_alist): Extern it.
25916
25917 * character.c (Vscript_alist): New variable.
25918 (string_char_with_unification, str_as_unibyte)
25919 (string_escape_byte8): Add `const' to local variables.
25920 (syms_of_character): Declare script-alist as a Lisp variable.
25921
25922 * charset.h (Vcharset_ordered_list): Extern it.
25923 (charset_ordered_list_tick): Extern it.
25924 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25925 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25926 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25927 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25928 (Funify_charset): Adjust for the change of Funify_charset.
25929
25930 * charset.c (charset_ordered_list_tick): New variable.
25931 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25932 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
25933 deunify instead of unify a charset.
25934 (string_xstring_p): Add `const' to local variables.
25935 (find_charsets_in_text): Add `const' to arguments and local variables.
25936 (encode_char): Adjust for the change of Funify_charset.
25937 Fix detecting of invalid code.
25938 (Fset_charset_priority): Increment charset_ordered_list_tick.
25939 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25940 and TO_CODE.
25941
25942 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25943 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25944 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25945 (decode_coding_ccl, consume_chars)
25946 (Ffind_coding_systems_region_internal)
25947 (Fcheck_coding_systems_region): Add `const' to local variables.
25948
25949 * print.c (print_object): Use octal form for printing the
25950 contents of a bool vector.
25951
25952 2008-02-01 Dave Love <fx@gnu.org>
25953
25954 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25955 <version == 20>: Refuse to load.
25956
25957 2008-02-01 Dave Love <fx@gnu.org>
25958
25959 * fns.c: Move coding.h.
25960 (Qcodeset, Qdays, Qmonths): New.
25961 (concat): Use CHARACTERP instead of INTEGERP.
25962 (Flocale_codeset): Delete.
25963 (Flanginfo): New function.
25964 (syms_of_fns): Change accordingly.
25965
25966 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25967
25968 2008-02-01 Dave Love <fx@gnu.org>
25969
25970 * casetab.c (init_casetab_once, init_casetab_once):
25971 Fix CHAR_TABLE_SET call.
25972
25973 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25974
25975 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25976
25977 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25978 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25979 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25980
25981 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25982
25983 * coding.c (ENCODE_DESIGNATION, decode_eol)
25984 (make_conversion_work_buffer, code_conversion_restore)
25985 (Fdefine_coding_system_internal): Convert Lisp types.
25986 (code_conversion_restore): Use EQ, not ==.
25987 (Fencode_coding_string): Fix code_convert_string call.
25988
25989 * coding.h (code_convert_region): Fix prototype.
25990
25991 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25992
25993 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25994 (Ffontset_info): Convert Lisp types.
25995
25996 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25997
25998 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25999
26000 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26001
26002 * chartab.c: Include "...h", not <...h> in some cases.
26003
26004 * callproc.c (Fcall_process): Remove unused variables.
26005
26006 2008-02-01 Dave Love <fx@gnu.org>
26007
26008 * coding.c (Fset_coding_system_priority): Allow null arg list.
26009
26010 2008-02-01 Dave Love <fx@gnu.org>
26011
26012 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26013 (Fself_insert_and_exit): Use CHARACTERP.
26014
26015 * callproc.c (Fcall_process): Remove unused vars.
26016
26017 * xterm.c (XTread_socket): Add extra dead keysyms.
26018
26019 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26020
26021 * dispextern.h: Remove prototypes for redraw_frame,
26022 redraw_garbaged_frames.
26023
26024 * cmds.c (Fself_insert_command): Use CHARACTERP.
26025
26026 * chartab.c (make_sub_char_table): Remove unused var.
26027 (Fset_char_table_default, Fmap_char_table): Doc fix.
26028
26029 * keymap.c (access_keymap): Remove generic char code.
26030 (push_key_description): Use CHARACTERP.
26031
26032 2008-02-01 Dave Love <fx@gnu.org>
26033
26034 * charset.c: Doc fixes.
26035 (Funify_charset): Extra checking.
26036
26037 2008-02-01 Dave Love <fx@gnu.org>
26038
26039 * lread.c: Remove some unused variables.
26040 (safe_to_load_p): If safe, return the magic number version byte.
26041 (Fload): Maybe use load-with-code-conversion.
26042
26043 2008-02-01 Kenichi Handa <handa@m17n.org>
26044
26045 * category.c (Fmodify_category_entry): Don't modify the contents
26046 of category_set for characters out of the range.
26047 Avoid unnecessary modification.
26048
26049 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26050 Vchar_unify_table. The default value of the table is now nil.
26051
26052 * character.c (syms_of_character): Setup Vchar_width_table for
26053 eight-bit-control and raw-byte chars.
26054
26055 * charset.h (enum define_charset_arg_index):
26056 Delete charset_arg_parents and add charset_arg_subset and
26057 charset_arg_superset.
26058 (enum charset_attr_index): Delete charset_parents and add
26059 charset_subset and charset_superset.
26060 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26061 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26062 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26063 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26064 (CHARSET_SUPERSET): New macros.
26065 (charset_work): Extern it.
26066 (ENCODE_CHAR): Use charset_work.
26067 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26068 (map_charset_chars): Extern it.
26069
26070 * charset.c (load_charset_map): Set the default value of encoder
26071 and deunifier char-tables to nil.
26072 (map_charset_chars): Change argument. Change callers.
26073 Use map_char_table_for_charset instead of map_char_table.
26074 (Fmap_charset_chars): New optional args from_code and to_code.
26075 (Fdefine_charset_internal): Adjust for the change of
26076 `define-charset' (:parents -> :subset or :superset).
26077 (charset_work): New variable.
26078 (encode_char, syms_of_charset): Adjust for the change of
26079 Fdefine_charset_internal.
26080 (Ffind_charset_string): Setup the vector `charsets' correctly.
26081
26082 * chartab.c (sub_char_table_ref_and_range): New arg default.
26083 Fix the previous change.
26084 (char_table_ref_and_range): Adjust for the above change.
26085 (map_sub_char_table_for_charset): New function.
26086 (map_char_table_for_charset): New function.
26087
26088 * keymap.c (describe_vector): Handle a char-table directly here.
26089 (describe_char_table): Delete.
26090
26091 * lisp.h (map_charset_chars): Delete.
26092
26093 2008-02-01 Dave Love <fx@gnu.org>
26094
26095 * fns.c (count_combining): Comment out (unused).
26096 (Flocale_codeset): New.
26097 (syms_of_fns): Defsubr it.
26098
26099 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26100 (size_t): Remove.
26101
26102 2008-02-01 Dave Love <fx@gnu.org>
26103
26104 * Makefile.in (chartab.o): Depend on charset.h.
26105
26106 2008-02-01 Kenichi Handa <handa@m17n.org>
26107
26108 * character.c (syms_of_character): Set the default value of
26109 Vprintable_chars to Qnil.
26110
26111 2008-02-01 Dave Love <fx@gnu.org>
26112
26113 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26114
26115 2008-02-01 Kenichi Handa <handa@m17n.org>
26116
26117 * charset.c (load_charset_map): Handle the case that from < to
26118 correctly.
26119
26120 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26121 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26122 Pay attention to raw-8-bit chars.
26123
26124 2008-02-01 Kenichi Handa <handa@m17n.org>
26125
26126 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26127 It is not bytecompiled now.
26128
26129 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26130 (charset_jisx0208): New variables.
26131 (Fdefine_charset_internal): Setup them if appropriate.
26132 (init_charset_once): Initialize them to -1.
26133
26134 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26135 (charset_jisx0208): Extern them.
26136
26137 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26138 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26139 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26140 (setup_iso_safe_charsets): Fix arguments to Fassq.
26141 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26142 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26143 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26144 (encode_coding_iso_2022): Change the 1st arg to
26145 ENCODE_ISO_CHARACTER to a variable.
26146
26147 2008-02-01 Kenichi Handa <handa@m17n.org>
26148
26149 * charset.h (enum define_charset_arg_index): New enums
26150 charset_arg_min_code and charset_arg_max_code.
26151 (struct charset): New member char_index_offset.
26152
26153 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26154 Take charset->char_index_offset into account.
26155 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26156 args[charset_arg_max_code]. Setup charset.char_index_offset.
26157 (syms_of_charset): Fix args to Fdefine_charset_internal.
26158
26159 2008-02-01 Dave Love <fx@gnu.org>
26160
26161 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26162
26163 2008-02-01 Dave Love <fx@gnu.org>
26164
26165 * coding.c: Doc fixes.
26166 (Fcoding_system_aliases): Fix return value.
26167 (Qmac): Remove (duplicated) definition.
26168
26169 2008-02-01 Dave Love <fx@gnu.org>
26170
26171 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26172 New functions.
26173
26174 * character.c (Fstring): Doc fix.
26175
26176 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26177
26178 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26179 (font-encoding-alist): Doc fix.
26180
26181 2008-02-01 Dave Love <fx@gnu.org>
26182
26183 * term.c (costs_set): Declare static, non-initialized for pcc.
26184 (encode_terminal_code): Remove unused var.
26185
26186 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26187 for K&R.
26188
26189 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26190
26191 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26192 (suffixes): Move out of make_subsidiaries for K&R.
26193
26194 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26195
26196 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26197
26198 2008-02-01 Dave Love <fx@gnu.org>
26199
26200 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26201
26202 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26203
26204 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26205
26206 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26207
26208 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26209
26210 2008-02-01 Kenichi Handa <handa@m17n.org>
26211
26212 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26213 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26214
26215 2008-02-01 Kenichi Handa <handa@m17n.org>
26216
26217 * coding.c (decode_coding_charset): Adjust for the change of
26218 Fdefine_coding_system_internal.
26219 (Fdefine_coding_system_internal): For a coding system of
26220 `charset' type, store a list of charset IDs in
26221 `charset_attr_charset_valids' element of coding attributes.
26222
26223 2008-02-01 Kenichi Handa <handa@m17n.org>
26224
26225 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26226 (emacs_mule_char): New arg src. Delete arg `composition'.
26227 Change caller. Handle 2-byte and 3-byte charsets correctly.
26228 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26229 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26230 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26231 (DECODE_EMACS_MULE_21_COMPOSITION):
26232 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26233 sequence.
26234 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26235 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26236 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26237 and alt&rule composition.
26238 (decode_coding_iso_2022): Handle composition correctly.
26239 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26240
26241 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26242 re-defining a charset. If the charset has :emacs-mule-id, setup
26243 emacs_mule_bytes.
26244 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26245
26246 2008-02-01 Kenichi Handa <handa@m17n.org>
26247
26248 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26249 (encode_coding_big5, encode_coding_charset): If coding requires safe
26250 encoding, produce a character specified by
26251 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26252
26253 2008-02-01 Dave Love <fx@gnu.org>
26254
26255 * xterm.c (XSetIMValues): Declare.
26256
26257 * process.c: Conditionally include sys/wait.h, pty.h.
26258
26259 * print.c (print_object): Fix print format for 64-bit systems.
26260
26261 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26262
26263 * buffer.c (emacs_strerror): Declare.
26264
26265 * fontset.c (Fclear_face_cache): Declare.
26266 (accumulate_font_info): Comment-out (unused).
26267 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26268 variables.
26269
26270 * character.h (string_escape_byte8): Declare.
26271
26272 * charset.c (load_charset_map, load_charset_map_from_file):
26273 Remove unused vars.
26274 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26275 (Fmap_charset_chars): Doc fix.
26276
26277 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26278 (Fset_coding_system_priority, Fset_coding_system_priority)
26279 (Fdefine_coding_system_internal): Doc fix.
26280
26281 2008-02-01 Dave Love <fx@gnu.org>
26282
26283 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26284
26285 2008-02-01 Kenichi Handa <handa@m17n.org>
26286
26287 * character.c (string_escape_byte8): Make multibyte string with
26288 correct size.
26289
26290 * charset.c (Fmake_char): Delete unnecessary code.
26291
26292 2008-02-01 Kenichi Handa <handa@m17n.org>
26293
26294 * xfns.c (x_encode_text): Allocate coding.destination here, and
26295 call encode_coding_object with dst_object Qnil.
26296
26297 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26298 multibyte form correctly.
26299
26300 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26301 against Vfont_encoding_alist.
26302
26303 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26304 handling of charset list.
26305 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26306 (decode_coding_object): Move point to coding->dst_pos before
26307 calling post-read-conversion function.
26308 (encode_coding_object): Give correct arguments to
26309 pre-write-conversion. Ignore the return value of
26310 pre-write-conversion function. Pay attention to the case that
26311 pre-write-conversion changes the current buffer. If dst_object is
26312 Qt, even if coding->src_bytes is zero, allocate at least one byte
26313 to coding->destination.
26314
26315 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26316
26317 * charset.c (Fmake_char): Make it more backward compatible.
26318 (Fmap_charset_chars): Fix docstring.
26319
26320 2008-02-01 Dave Love <fx@gnu.org>
26321
26322 * coding.c: Doc fixes.
26323 (Fdefine_coding_system_alias): Use names, not symbols, in
26324 coding-system-alist.
26325
26326 2008-02-01 Kenichi Handa <handa@m17n.org>
26327
26328 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26329 of calling free_realized_face.
26330
26331 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26332
26333 * charset.c (read_hex): Don't treat SPC as a comment starter.
26334 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26335 (Fdecode_char): Fix typo.
26336
26337 2008-02-01 Kenichi Handa <handa@m17n.org>
26338
26339 * charset.h (struct charset): New member `code_space_mask'.
26340
26341 * coding.c (coding_set_source): Delete the local variable beg_byte.
26342 (encode_coding_charset, Fdefine_coding_system_internal):
26343 Delete the local variable charset.
26344 (Fdefine_coding_system_internal):
26345 Setup attrs[coding_attr_charset_valids] correctly.
26346
26347 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26348 member to check if CODE is valid or not.
26349 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26350 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26351 is within the range of charset->min_code and carset->max_code.
26352
26353 2008-02-01 Dave Love <fx@gnu.org>
26354
26355 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26356
26357 * dispextern.h (generate_ascii_font): Fix return type.
26358
26359 * xfaces.c (generate_ascii_font): Fix arg declaration.
26360
26361 * coding.c (coding_inherit_eol_type)
26362 (Fset_terminal_coding_system_internal)
26363 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26364
26365 2008-02-01 Kenichi Handa <handa@m17n.org>
26366
26367 * coding.c (decode_coding_charset, encode_coding_charset):
26368 Handle multiple charsets correctly.
26369
26370 2008-02-01 Kenichi Handa <handa@m17n.org>
26371
26372 * search.c (boyer_moore): Fix handling of multibyte character
26373 translation.
26374
26375 * xdisp.c (display_mode_element): When the variable `elt' is
26376 changed, update `this' and `lisp_string'.
26377
26378 2008-02-01 Kenichi Handa <handa@m17n.org>
26379
26380 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26381
26382 * callproc.c (Fcall_process): Be sure to give the current buffer
26383 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26384
26385 * charset.c (struct charset_map_entries): New struct.
26386 (load_charset_map): Rename from parse_charset_map. New args
26387 entries and n_entries. Change caller.
26388 (load_charset_map_from_file): Rename from load_charset_map.
26389 Change caller. New arg control_flag. Call load_charset_map at
26390 the tail.
26391 (load_charset_map_from_vector): New function.
26392 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26393 (encode_char): If the charset is compact, change a character index
26394 to a code point.
26395
26396 * coding.c (coding_alloc_by_making_gap): Check the case that the
26397 source and destination are the same correctly.
26398 (decode_coding_raw_text): Set coding->consumed_char and
26399 coding->consumed to 0.
26400 (produce_chars): If coding->chars_at_source is nonzero, update
26401 coding->consumed_char and coding->consumed before calling
26402 alloc_destination.
26403 (Fdefine_coding_system_alias): Register ALIAS in
26404 Vcoding_system_alist.
26405 (syms_of_coding): Define `no-conversion' coding system at the tail.
26406
26407 * fileio.c (Finsert_file_contents): Set coding_system instead of
26408 val. If the current buffer is multibyte, always call
26409 decode_coding_gap.
26410
26411 * xfaces.c (try_font_list): Give higher priority to fontset's
26412 family than face's family.
26413
26414 2008-02-01 Kenichi Handa <handa@m17n.org>
26415
26416 * callproc.c (Fcall_process): Be sure to give the current buffer
26417 to decode_coding_c_string.
26418
26419 * xfaces.c (try_font_list): Give a family specified in a fontset
26420 higher priority than a family specified in a face.
26421
26422 2008-02-01 Kenichi Handa <handa@m17n.org>
26423
26424 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26425 Fix arguments to insert_from_buffer.
26426
26427 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26428
26429 2008-02-01 Kenichi Handa <handa@m17n.org>
26430
26431 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26432 (decode_coding_gap): Set coding->dst_multibyte correctly.
26433
26434 2008-02-01 Kenichi Handa <handa@m17n.org>
26435
26436 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26437 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26438 (encode_coding_utf_16): Substitute coding->default_char for
26439 non-Unicode characters.
26440 (decode_coding): Don't call record_insert here.
26441 (setup_coding_system): Initialize `surrogate' of
26442 coding->spec.utf_16 to 0.
26443 (EMIT_ONE_BYTE): Fix for multibyte case.
26444
26445 * insdel.c (insert_from_gap): Call record_insert.
26446
26447 2008-02-01 Kenichi Handa <handa@m17n.org>
26448
26449 * casefiddle.c (casify_region): Fix multibyte case.
26450
26451 * character.c (c_string_width): Add return type `int'.
26452 (char_string_with_unification): Delete arg ADVANCED.
26453
26454 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26455 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26456 (CHAR_STRING_ADVANCE): Make it do-while statement.
26457
26458 * chartab.c (sub_char_table_set_range): Optimize for the case
26459 DEPTH == 3. Add workaround code for a GCC optimization bug.
26460
26461 * charset.c (parse_charset_map): Remove an unused variable.
26462
26463 * coding.c: Delete unused variables.
26464
26465 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26466 earlier. If inserted is zero and the coding system doesn't
26467 require flushing, don't call decode_coding_gap.
26468
26469 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26470
26471 2008-02-01 Kenichi Handa <handa@m17n.org>
26472
26473 The following changes are for using Unicode as an internal
26474 character model, and use UTF-8 format for buffer/string
26475 representation.
26476
26477 * .gdbinit (xchartable): Adjust for the change of char table structure.
26478 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26479
26480 * Makefile.in (obj): Add character.o and chartab.o.
26481 (lisp, shortlisp): Remove utf-8.elc.
26482 (*.o): For many files, change dependency on charset.h to
26483 character.h, and add dependency on character.h.
26484 (character.o, chartab.o): New targets.
26485
26486 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26487 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26488 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26489 of "charset.h".
26490
26491 * dired.c, filelock.c: Include "character.h".
26492
26493 * alloc.c: Include "character.h" instead of "charset.h".
26494 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26495 (syms_of_alloc): Remove defsubr for Smake_char_table.
26496
26497 * buffer.c: Include "character.h" instead of "charset.h", don't
26498 include "coding.h".
26499 (Fset_buffer_multibyte): Adjust for UTF-8.
26500
26501 * buffer.h: EXFUN Fbuffer_live_p.
26502
26503 * callproc.c: Include "character.h" instead of "charset.h".
26504 (Fcall_process): Big change for the new code-conversion APIs.
26505
26506 * casetab.c: Include "character.h" instead of "charset.h".
26507 (set_canon, set_identity, shuffle): Adjust for the new
26508 map_char_table spec.
26509 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26510 accessing the char table structure.
26511
26512 * chartab.c: New file that implements char table.
26513
26514 * category.c: Include "character.h".
26515 (copy_category_entry): New function.
26516 (copy_category_table): Call map_char_table and copy_category_entry.
26517 (Fmake_category_table): Initialize all top-level slots.
26518 (char_category_set): New function.
26519 (modify_lower_category_set): Delete.
26520 (Fmodify_category_entry): Call char_table_ref_and_range.
26521
26522 * category.h (CATEGORY_SET): Just call char_category_set.
26523
26524 * ccl.c: Include "character.h".
26525 (Qccl, Qcclp): New variables.
26526 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26527 it's less than 256.
26528 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26529 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26530 and DST type.
26531 (ccl_driver): Change types of argument, adjust code accordingly.
26532 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26533 ccl_driver.
26534 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26535
26536 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26537 New members src_multibyte, dst_multibyte, consumed, and produced.
26538 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26539 (CODING_SPEC_CCL_PROGRAM): New macro.
26540 (ccl_driver): Update prototype.
26541 (Qccl, Qcclp, Fccl_program_p): Extern them.
26542 (CHECK_CCL_PROGRAM): New macro.
26543
26544 * character.c, character.h, chartab.c: New files.
26545
26546 * charset.c: Mostly re-written. Move character and multibyte sequence
26547 handling codes to character.c.
26548
26549 * charset.h: Mostly re-written. Move character and multibyte sequence
26550 handling codes to character.h.
26551
26552 * coding.c, coding.h: Mostly re-written.
26553
26554 * composite.c: Include "character.h" instead of "charset.h".
26555 (CHAR_WIDTH): Move to character.h.
26556 (HASH_KEY, HASH_VALUE): Delete.
26557
26558 * composite.h (enum composition_method): Change order of enumeration
26559 symbols.
26560
26561 * data.c: Include "character.h" instead of "charset.h".
26562 (Faref): Call CHAR_TABLE_REF for a char table.
26563 (Faset): Call CHAR_TABLE_SET for a char table.
26564
26565 * dispextern.h (free_realized_face, check_face_attribytes)
26566 (generate_ascii_font): Extern them.
26567 (free_realized_multibyte_face): Delete extern.
26568
26569 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26570 table structure.
26571
26572 * editfns.c: Include "character.h" instead of "charset.h".
26573 (Fchar_to_string): Always call CHAR_STRING.
26574
26575 * emacs.c (main): Call init_charset_once, init_charset,
26576 syms_of_chartab, and syms_of_character.
26577
26578 * fileio.c: Include "character.h" instead of "charset.h".
26579 (Finsert_file_contents): Big change for the new code-conversion API.
26580 (choose_write_coding_system, Fwrite_region): Likewise.
26581 (build_annotations_2): Delete.
26582 (e_write): Big change for the new code-conversion API.
26583
26584 * fns.c: Include "character.h" instead of "charset.h".
26585 (copy_sub_char_table): Move to chartab.c.
26586 (Fcopy_sequence): Call copy_char_table for a char table.
26587 (concat): Delete codes calling count_multibyte.
26588 (string_char_to_byte, string_byte_to_char): Adjust for the new
26589 multibyte form.
26590 (internal_equal): Adjust for the change of char table structure.
26591 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26592 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26593 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26594 (char_table_translate, optimize_sub_char_table)
26595 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26596 chartab.c.
26597 (char_table_ref_and_index): Delete.
26598 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26599 (Fmd5): Call preferred_coding_system instead of accessing
26600 Vcoding_category_list. Adjust for the new code-conversion API.
26601 (syms_of_fns): Move defsubr for char table related functions to
26602 chartab.c.
26603
26604 * fontset.c: Mostly re-written.
26605
26606 * fontset.h (struct font_info): Change type of the member encoding_type.
26607 (enum FONT_SPEC_INDEX): New enum.
26608 (fontset_font_pattern, fs_load_font): Update prototype.
26609 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26610
26611 * indent.c: Include "character.h" instead of "charset.h".
26612 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26613
26614 * insdel.c: Include "character.h" instead of "charset.h".
26615 (copy_text): Don't refer to Vnonascii_translation_table.
26616 (insert_from_gap): New function.
26617
26618 * keyboard.c: Include "character.h" instead of "charset.h".
26619 (command_loop_1): Never call direct_output_forward_char before
26620 a non-ASCII character.
26621 (read_char): If Vkeyboard_translate_table is a char table, always
26622 translate a character.
26623
26624 * keymap.c: Include "character.h".
26625 (store_in_keymap): Handle the case that IDX is a cons.
26626 (Fdefine_key): Handle the case that KEY is a cons and the car part
26627 is also a cons (range).
26628 (push_key_description): Adjust for the new character code.
26629 (describe_vector): Call describe_char_table for a char table.
26630 (describe_char_table): New function.
26631
26632 * keymap.h (describe_char_table): Extern it.
26633
26634 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26635 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26636 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26637 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26638 Delete.
26639 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26640 structure.
26641 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26642 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26643 (CHARTAB_SIZE_BITS_3): New macros.
26644 (chartab_size): Extern it.
26645 (struct Lisp_Char_Table): Re-design.
26646 (struct Lisp_Sub_Char_Table): New structure.
26647 (HASH_KEY, HASH_VALUE): Move from fns.c.
26648 (CHARACTERBITS): Define as 22.
26649 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26650 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26651 (GC_SUB_CHAR_TABLE_P): New macro.
26652 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
26653 (code_convert_string_norecord): Delete extern.
26654 (init_character_once, syms_of_character, init_charset)
26655 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26656
26657 * lread.c: Include "character.h".
26658 (read_multibyte): New arg NBYTES.
26659 (read_escape): Change the meaning of returned *BYTEREP.
26660 (to_multibyte): Delete.
26661 (read1): Adjust the handling of char table and string.
26662
26663 * print.c: Include "character.h" instead of "charset.h".
26664 (print_string): Convert 8-bit raw bytes to octal form by
26665 string_escape_byte8.
26666 (print_object): Adjust for the new multibyte form. Print 8-bit
26667 raw bytes always in octal form. Handle sub char table correctly.
26668
26669 * process.c: Include "character.h" instead of "charset.h".
26670 (read_process_output, send_process): Adjust for the new
26671 code-conversion API.
26672
26673 * puresize.h (BASE_PURESIZE): Increase.
26674
26675 * regex.c: Include "character.h" instead of "charset.h".
26676 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26677 (regex_compile): Accept a range whose starting and ending
26678 character have different leading bytes.
26679 (analyse_first): Adjust for the above change.
26680
26681 * search.c: Include "character.h" instead of "charset.h".
26682 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26683 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26684
26685 * syntax.c: Include "character.h" instead of "charset.h".
26686 (syntax_parent_lookup): Delete.
26687 (Fmodify_syntax_entry): Accept a cons as CHAR.
26688 (skip_chars): Adjust for the new multibyte form.
26689 (init_syntax_once): Call char_table_set_range instead of directly
26690 accessing the structure of a char table.
26691
26692 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26693 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26694 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26695 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26696
26697 * term.c: Include "buffer.h" and "character.h".
26698 (encode_terminal_code, write_glyphs): Adjust for the new
26699 code-conversion API.
26700 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26701
26702 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26703
26704 * xdisp.c: Include "character.h".
26705 (get_next_display_element): Adjust for the new multibyte form.
26706 (disp_char_vector): Adjust for the new char table structure.
26707 (decode_mode_spec_coding): Adjust for the new structure of
26708 coding system.
26709 (decode_mode_spec): Adjust for the new code-conversion API.
26710
26711 * xfaces.c: Include "character.h" instead of "charset.h".
26712 (load_face_font): Adjust for the change of choose_face_font and
26713 FS_LOAD_FONT.
26714 (generate_ascii_font): New function.
26715 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26716 (set_font_frame_param): Adjust for the change of choose_face_font.
26717 (free_realized_face): Make it public.
26718 (free_realized_faces_for_fontset): Rename from
26719 free_realized_multibyte_face. Free also faces realized for ASCII.
26720 (choose_face_font): Change arguments. Adjust for the change of
26721 fontset_font_pattern and FS_LOAD_FONT.
26722
26723 * xfns.c: Include "character.h".
26724 (x_encode_text): Adjust for the new code-conversion API.
26725
26726 * xselect.c: Don't include "charset.h".
26727 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26728
26729 * xterm.c: Include "character.h".
26730 (x_encode_char): New argument CHARSET. Change caller.
26731 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26732 Call ENCODE_CHAR instead of SPLIT_CHAR.
26733 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26734 CHAR_WIDTH instead of CHARSET_WIDTH.
26735 (XTread_socket): Adjust for the new code-conversion API.
26736 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26737 (x_load_font): Adjust for the change of struct font.
26738
26739 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26740
26741 * xfaces.c (face_at_buffer_position): Remove unused vars.
26742
26743 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26744
26745 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26746 Fix overflow checking.
26747
26748 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26749
26750 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26751 Cancel previous change.
26752
26753 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26754
26755 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26756 ccl->eight_bit_control. Fix check for buffer overflow.
26757 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26758 (ccl_driver): Initialize extra_bytes to 0.
26759
26760 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26761
26762 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26763 return it ORed with ctrl_modifier.
26764
26765 2008-01-29 Miles Bader <miles@gnu.org>
26766
26767 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26768
26769 2008-01-28 Jason Rumney <jasonr@gnu.org>
26770
26771 * w32.c (stat): Don't double check for networked drive.
26772
26773 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26774
26775 * window.c (run_window_configuration_change_hook): New function.
26776 Code extracted from set_window_buffer. Set the selected frame.
26777 (set_window_buffer): Use it.
26778 * window.h (run_window_configuration_change_hook): Declare.
26779 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26780
26781 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26782
26783 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26784
26785 * Makefile.in: Remove references to unused macros.
26786
26787 2008-01-26 Eli Zaretskii <eliz@gnu.org>
26788
26789 * w32.c (g_b_init_get_sid_sub_authority)
26790 (g_b_init_get_sid_sub_authority_count): New static variables.
26791 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26792 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26793 (init_user_info): Use them to retrieve uid and gid.
26794 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26795 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26796 st_uid and st_gid of the file.
26797
26798 2008-01-26 Jason Rumney <jasonr@gnu.org>
26799
26800 * w32.c (logon_network_drive): New function.
26801 (stat): Use it.
26802
26803 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
26804
26805 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26806 invisible text covered with an ellipsis.
26807
26808 2008-01-25 Richard Stallman <rms@gnu.org>
26809
26810 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26811 jump back to beginning. Move some other initializations after that.
26812 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26813 New variables.
26814 (syms_of_xdisp): Init them.
26815
26816 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26817
26818 * buffer.c (reset_buffer_local_variables):
26819 Implement `permanent-local-hook'.
26820 (Qpermanent_local_hook): New variable.
26821 (syms_of_buffer): Init and staticpro it.
26822
26823 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
26824
26825 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26826
26827 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26828
26829 * fns.c (Fclrhash): Return TABLE.
26830
26831 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26832
26833 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26834 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26835 is set even without positional changes.
26836 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26837
26838 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26839
26840 2008-01-23 Jason Rumney <jasonr@gnu.org>
26841
26842 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26843
26844 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26845 the unicode range available in MULE by locale-coding-system.
26846 Improve dbcs lead byte detection. Set event timestamp and modifiers
26847 earlier.
26848
26849 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26850
26851 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26852 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26853 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26854 when used on child processes.
26855
26856 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
26857
26858 * dbusbind.c (Fdbus_method_return_internal): Rename from
26859 Fdbus_method_return.
26860 (Fdbus_unregister_object): Move to dbus.el.
26861 (Fdbus_call_method, Fdbus_method_return_internal)
26862 (Fdbus_send_signal): Improve debug messages.
26863
26864 2008-01-20 Martin Rudalics <rudalics@gmx.at>
26865
26866 * undo.c (undo_inhibit_record_point): New variable.
26867 (syms_of_undo): Initialize it.
26868 (record_point): Don't record point when undo_inhibit_record_point
26869 is set.
26870
26871 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26872
26873 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26874
26875 * xdisp.c (Qauto_hscroll_mode): New var.
26876 (syms_of_xdisp): Initialize it.
26877 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26878 window's buffer.
26879 (hscroll_windows): Don't check automatic_hscrolling_p here.
26880
26881 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26882 vscroll if we're setting window-buffer to the value it already has.
26883
26884 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26885
26886 * m/intel386.h: Remove references to XENIX.
26887
26888 2008-01-17 Andreas Schwab <schwab@suse.de>
26889
26890 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26891 instead of HAVE_X86_64_LIB64_DIR.
26892 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26893
26894 2008-01-17 Glenn Morris <rgm@gnu.org>
26895
26896 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26897 to HAVE_X86_64_LIB64_DIR.
26898
26899 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26900
26901 * s/irix3-3.h:
26902 * s/irix4-0.h:
26903 * s/386-ix.h:
26904 * s/domain.h:
26905 * s/hpux9-x11r4.h:
26906 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26907
26908 * sysdep.c: Remove code containing references to symbols defined
26909 by unsupported systems.
26910
26911 2008-01-16 Glenn Morris <rgm@gnu.org>
26912
26913 * coding.c (select-safe-coding-system-function): Doc fix.
26914
26915 2008-01-15 Glenn Morris <rgm@gnu.org>
26916
26917 * config.in: Revert 2008-01-13 change: this is a generated file.
26918
26919 2008-01-13 Tom Tromey <tromey@redhat.com>
26920
26921 * lisp.h: Fix typo.
26922
26923 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26924
26925 * m/sequent-ptx.h:
26926 * m/sequent.h:
26927 * s/ptx.h:
26928 * s/ptx4-2.h:
26929 * s/ptx4.h: Remove files for systems no longer supported.
26930
26931 * callproc.c (Fcall_process): Fix previous change.
26932
26933 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26934
26935 * unexsunos4.c: Remove file, system not supported anymore.
26936
26937 * m/mips.h:
26938 * m/intel386.h:
26939 * callproc.c:
26940 * config.in:
26941 * ecrt0.c:
26942 * emacs.c:
26943 * fileio.c:
26944 * frame.c:
26945 * getpagesize.h:
26946 * keyboard.c:
26947 * lread.c:
26948 * process.c:
26949 * puresize.h:
26950 * sysdep.c:
26951 * systty.h:
26952 * syswait.h:
26953 * unexec.c:
26954 * xdisp.c:
26955 * alloc.c: Remove code containing references to symbols defined by
26956 unsupported systems.
26957
26958 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26959
26960 * coding.c (detect_coding_mask): Fix previous change.
26961
26962 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26963
26964 * coding.c (detect_coding_iso2022): New arg
26965 latin_extra_code_state. Allow Latin extra codes only
26966 when *latin_extra_code_state is nonzero.
26967 (detect_coding_mask): If there is a NULL byte, detect the encoding
26968 as UTF-16 or binary. If Latin extra codes exist, detect the
26969 encoding as ISO-2022 only when there's no other proper encoding is
26970 found.
26971
26972 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26973
26974 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26975 #ifdef MAC_OS.
26976
26977 2008-01-08 Richard Stallman <rms@gnu.org>
26978
26979 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26980
26981 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
26982
26983 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26984 menu bar in parentheses.
26985
26986 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26987
26988 * m/7300.h:
26989 * m/acorn.h:
26990 * m/alliant-2800.h:
26991 * m/alliant.h:
26992 * m/alliant1.h:
26993 * m/alliant4.h:
26994 * m/altos.h:
26995 * m/amdahl.h:
26996 * m/apollo.h:
26997 * m/att3b.h:
26998 * m/aviion-intel.h:
26999 * m/aviion.h:
27000 * m/celerity.h:
27001 * m/clipper.h:
27002 * m/cnvrgnt.h:
27003 * m/convex.h:
27004 * m/cydra5.h:
27005 * m/delta88k.h:
27006 * m/dpx2.h:
27007 * m/dual.h:
27008 * m/elxsi.h:
27009 * m/f301.h:
27010 * m/gould-np1.h:
27011 * m/gould.h:
27012 * m/i860.h:
27013 * m/ibmps2-aix.h:
27014 * m/ibmrt-aix.h:
27015 * m/ibmrt.h:
27016 * m/irist.h:
27017 * m/is386.h:
27018 * m/isi-ov.h:
27019 * m/mega68.h:
27020 * m/mg1.h:
27021 * m/news-r6.h:
27022 * m/news-risc.h:
27023 * m/news.h:
27024 * m/nh3000.h:
27025 * m/nh4000.h:
27026 * m/ns16000.h:
27027 * m/ns32000.h:
27028 * m/nu.h:
27029 * m/orion.h:
27030 * m/orion105.h:
27031 * m/paragon.h:
27032 * m/pfa50.h:
27033 * m/plexus.h:
27034 * m/pyramid.h:
27035 * m/pyrmips.h:
27036 * m/sh3el.h:
27037 * m/sps7.h:
27038 * m/sr2k.h:
27039 * m/stride.h:
27040 * m/sun1.h:
27041 * m/sun2.h:
27042 * m/sun3-68881.h:
27043 * m/sun3-fpa.h:
27044 * m/sun3-soft.h:
27045 * m/sun3.h:
27046 * m/sun386.h:
27047 * m/symmetry.h:
27048 * m/tad68k.h:
27049 * m/tahoe.h:
27050 * m/targon31.h:
27051 * m/tek4300.h:
27052 * m/tekxd88.h:
27053 * m/tower32.h:
27054 * m/tower32v3.h:
27055 * m/ustation.h:
27056 * m/wicat.h:
27057 * m/xps100.h:
27058 * s/cxux.h:
27059 * s/cxux7.h:
27060 * s/dgux.h:
27061 * s/dgux4.h:
27062 * s/dgux5-4-3.h:
27063 * s/dgux5-4r2.h:
27064 * s/esix.h:
27065 * s/esix5r4.h:
27066 * s/hiuxmpp.h:
27067 * s/hiuxwe2.h:
27068 * s/iris3-5.h:
27069 * s/iris3-6.h:
27070 * s/isc2-2.h:
27071 * s/isc3-0.h:
27072 * s/isc4-0.h:
27073 * s/isc4-1.h:
27074 * s/newsos5.h:
27075 * s/newsos6.h:
27076 * s/osf1.h:
27077 * s/osf5-0.h:
27078 * s/riscix1-1.h:
27079 * s/riscix12.h:
27080 * s/sco4.h:
27081 * s/sco5.h:
27082 * s/sunos4-0.h:
27083 * s/sunos4-1.h:
27084 * s/sunos413.h:
27085 * s/sunos4shr.h:
27086 * s/umax.h:
27087 * s/unipl5-2.h:
27088 * s/xenix.h:
27089 * cxux-crt0.s:
27090 * unexapollo.c:
27091 * unexconvex.c:
27092 * unexenix.c:
27093 * unexsni.c: Remove files for systems no longer supported.
27094
27095 * m/intel386.h: Remove references to unsupported systems.
27096
27097 * w32.c (get_emacs_configuration): Remove reference to i860.
27098
27099 * sysdep.c: Remove dead code.
27100
27101 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27102
27103 * s/rtu.h:
27104 * m/masscomp.h: Remove files. Platform is obsolete.
27105
27106 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27107
27108 * dbusbind.c (Fdbus_method_return): New function.
27109 (xd_read_message): Add the serial number to the event.
27110 (Fdbus_register_method): Activate the function.
27111
27112 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27113
27114 * keyboard.c (read_key_sequence): Fix typo.
27115
27116 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27117
27118 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27119 (xd_signature, xd_append_arg): Handle element type detection for
27120 empty arrays.
27121 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27122 SDATA () calls; this must be solved more general.
27123 (Fdbus_register_signal): Use SBYTES instead of strlen.
27124
27125 2008-01-03 Magnus Henoch <magnus@zemdatav>
27126
27127 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27128 unsigned int for byte values (necessary for big-endian platform).
27129 (Fdbus_call_method): Handle the case of no returned arguments.
27130
27131 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27132
27133 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27134
27135 2007-12-31 Magnus Henoch <mange@freemail.hu>
27136
27137 * dbusbind.c (xd_signature): Signature of variant is just "v".
27138
27139 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27140
27141 * dbusbind.c: Fix several errors and compiler warnings.
27142 Reported by Tom Tromey <tromey@redhat.com>.
27143 (XD_ERROR, XD_DEBUG_MESSAGE)
27144 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27145 (xd_append_arg): Part for basic D-Bus types rewritten.
27146 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27147 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27148 appropriate.
27149 (xd_read_message): Return Qnil. Don't signal an error; it is not
27150 useful during event reading.
27151 (Fdbus_register_signal): Signal an error if the check for
27152 FUNCTIONP fails.
27153 (Fdbus_register_method): New function. The implementation is not
27154 complete, the call of the function signals an error therefore.
27155 (Fdbus_unregister_object): New function, renamed from
27156 Fdbus_unregister_signal. The initial check signals an error, if
27157 the object is not well formed.
27158
27159 2007-12-30 Richard Stallman <rms@gnu.org>
27160
27161 * textprop.c (get_char_property_and_overlay):
27162 Signal error if POSITION is out of range in a buffer.
27163
27164 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27165
27166 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27167 because the original parameters are in pure storage now.
27168
27169 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27170
27171 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27172
27173 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27174
27175 * callint.c (syms_of_callint) <command-history>: Add reference to
27176 history-length in the doc string.
27177
27178 2007-12-17 Jason Rumney <jasonr@gnu.org>
27179
27180 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27181 before passing as wParam.
27182
27183 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27184
27185 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27186 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27187 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27188 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27189 as number.
27190 (Fdbus_call_method): Fix docstring.
27191
27192 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27193
27194 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27195 New macros.
27196 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27197 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27198 Simplify.
27199 (xd_signature): New function.
27200 (xd_append_arg): Compute also signatures. Major rewrite.
27201 (xd_retrieve_arg): Make debug messages friendly.
27202 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27203 Check for signatures of arguments.
27204
27205 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27206
27207 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27208 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27209 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27210 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27211 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27212 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27213 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27214 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27215 (xd_retrieve_value): Remove. Functionality included in ...
27216 (xd_append_arg): New function.
27217 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27218
27219 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27220
27221 * dbusbind.c (top): Include <stdio.h>.
27222 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27223 dbus_message_new_method_call and dbus_message_new_signal.
27224 (Fdbus_register_signal): Rename unique_name to uname.
27225 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27226 non-existing unique name. Fix typos in matching rule. Return an
27227 object which is useful in Fdbus_unregister_signal.
27228 (Fdbus_unregister_signal): Reimplementation, in order to remove
27229 only the corresponding entry.
27230 (Vdbus_registered_functions_table): Change the order of entries.
27231 Apply these changes in xd_read_message and Fdbus_register_signal.
27232
27233 2007-12-16 Andreas Schwab <schwab@suse.de>
27234
27235 * fileio.c (Finsert_file_contents): Fix overflow check to not
27236 depend on undefined integer overflow.
27237
27238 2007-12-14 Jason Rumney <jasonr@gnu.org>
27239
27240 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27241 for characters above 127.
27242
27243 2007-12-13 Jason Rumney <jasonr@gnu.org>
27244
27245 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27246 before dereferencing array.
27247 (lookup_vk_code): Remove zero comparison.
27248
27249 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27250
27251 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27252 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27253 Use `unsigned int' instead of `uint'.
27254 (xd_read_message, Fdbus_register_signal): Split expressions into
27255 multiple lines before operators "&&" and "||", according to the
27256 GNU Coding Standards.
27257
27258 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27259
27260 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27261
27262 2007-12-12 Juri Linkov <juri@jurta.org>
27263
27264 * buffer.c (Frename_buffer): In interactive spec replace
27265 `read-buffer' with `read-string' that uses `buffer-name-history'
27266 as history, and the current buffer's name as default.
27267
27268 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27269
27270 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27271 manipulating the backtrace manually.
27272 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27273 (struct backtrace, backtrace_list): Remove.
27274 (command_loop_1): Remove dead var `no_direct'.
27275
27276 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27277 preserve non-built-in buffer-local variables.
27278 (Fkill_all_local_variables): Don't re-create&re-set permanent
27279 buffer-local variables.
27280
27281 2007-12-09 Juri Linkov <juri@jurta.org>
27282
27283 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27284 Lisp code that uses `read-buffer' with current buffer as default.
27285
27286 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27287
27288 * dbusbind.c (xd_read_message): Generate an event for every
27289 registered handler. There might be several handlers registered
27290 for the same signal.
27291 (Fdbus_register_signal): Don't overwrite a registration for the
27292 same signal. Add a new registration if handlers are different.
27293 (Vdbus_registered_functions_table): Rework doc string.
27294
27295 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27296
27297 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27298 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27299 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27300 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27301 Unify argument lists.
27302 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27303 arguments and hash table keys. Use unique name for service.
27304 (Fdbus_unregister_signal): Remove checks.
27305 (Vdbus_registered_functions_table): Fix doc string.
27306
27307 2007-12-05 Magnus Henoch <mange@freemail.hu>
27308
27309 * process.c (make_process): Initialize pty_flag to 0.
27310
27311 2007-12-05 Jason Rumney <jasonr@gnu.org>
27312
27313 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27314 specified XBMs.
27315
27316 2007-12-05 Richard Stallman <rms@gnu.org>
27317
27318 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27319
27320 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27321
27322 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27323 New variable.
27324 (mac_try_close_socket) [MAC_OSX]: New function.
27325 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27326 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27327
27328 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27329 Use mac_try_close_socket.
27330
27331 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27332
27333 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27334 reloc_base.
27335 (copy_dysymtab): Compute relocation base here.
27336 (rebase_reloc_address) [__ppc64__]: New function.
27337 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27338 changed.
27339
27340 2007-12-05 Jason Rumney <jasonr@gnu.org>
27341
27342 * w32proc.c (sys_spawnve): Quote args with wildcards.
27343
27344 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27345
27346 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27347 __objc_* sections.
27348 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27349
27350 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27351
27352 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27353 Move check for Vdbus_registered_functions_table to
27354 xd_read_queued_messages.
27355 (xd_read_queued_messages): Protect xd_read_message calls by
27356 internal_condition_case_1.
27357
27358 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27359
27360 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27361 Qdbus_system_bus and Qdbus_session_bus, respectively.
27362 (Vdbus_intern_symbols): Remove.
27363 (Vdbus_registered_functions_table): New hash table.
27364 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27365 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27366 Rewrite in order to manage registered functions by hash table
27367 Vdbus_registered_functions_table.
27368
27369 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27370
27371 * xterm.c: Update URL to Window Manager Specification in comment.
27372
27373 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27374
27375 * config.in (HAVE_DBUS): Add.
27376
27377 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27378 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27379 (obj): Add $(DBUS_OBJ).
27380 (LIBES): Add $(DBUS_LIBS).
27381 (dbusbind.o): New target.
27382
27383 * dbusbind.c: New file.
27384
27385 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27386
27387 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27388 (Qdbus_event): New Lisp symbol.
27389 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27390 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27391 (keys_of_keyboard): Define dbus-event.
27392
27393 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27394
27395 2007-12-01 Richard Stallman <rms@gnu.org>
27396
27397 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27398
27399 2007-11-30 Jason Rumney <jasonr@gnu.org>
27400
27401 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27402 (w32con_reset_terminal_modes): Clear screen buffer.
27403 (w32_face_attributes): Don't use color indexes that are out of range.
27404 Only reverse the default colors.
27405
27406 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27407 WINDOWSNT.
27408
27409 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27410
27411 2007-11-29 Jason Rumney <jasonr@gnu.org>
27412
27413 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27414 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27415 if the terminal colors are initialized.
27416 (unspecified_fg, unspecified_bg): Remove unused declarations.
27417
27418 2007-11-29 Andreas Schwab <schwab@suse.de>
27419
27420 * keyboard.c (apply_modifiers): Fix typo.
27421
27422 2007-11-29 Richard Stallman <rms@gnu.org>
27423
27424 * keymap.c (Fcurrent_local_map): Doc fix.
27425
27426 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27427
27428 * s/gnu-kfreebsd.h: New file.
27429
27430 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27431
27432 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27433 Don't cast redundantly.
27434
27435 * keyboard.c (KEY_TO_CHAR): New macro.
27436 (parse_modifiers, apply_modifiers): Accept integer arguments.
27437 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27438 for chars and symbol keys.
27439 After doing such remapping, apply function-key-map again.
27440
27441 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27442
27443 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27444 compiled anymore.
27445
27446 2007-11-26 Andreas Schwab <schwab@suse.de>
27447
27448 * process.c (list_processes_1): Fix indentation level of the
27449 command column.
27450
27451 2007-11-23 Andreas Schwab <schwab@suse.de>
27452
27453 * editfns.c (Fformat): Handle %c specially since it requires the
27454 argument to be of type int.
27455
27456 2007-11-23 Markus Triska <markus.triska@gmx.at>
27457
27458 * emacs.c (main): Call init_editfns before init_process, since
27459 init_process sets Vprocess_connection_type depending on OS release.
27460
27461 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27462
27463 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27464 (find_symbol_value): Use do_symval_forwarding.
27465
27466 * data.c (set_internal): Set the value in the `cons-cell' (for
27467 Buffer_Local_values) not only for frame-local variables.
27468
27469 2007-11-22 Andreas Schwab <schwab@suse.de>
27470
27471 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27472 values to sprintf.
27473 * keymap.c (Fsingle_key_description): Likewise.
27474 * print.c (print_object): Likewise.
27475
27476 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27477
27478 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27479 file for image is nil.
27480
27481 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27482
27483 * term.c: Include stdarg.h.
27484 (fatal): Implement using varargs.
27485 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27486
27487 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27488
27489 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27490 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27491 Update call to buffer_slot_type_mismatch.
27492 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27493 (buffer_slot_type_mismatch): Update.
27494 * buffer.c (buffer_local_types): Remove.
27495 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27496 (defvar_per_buffer): Set the type in the buffer_objfwd.
27497
27498 2007-11-21 Jason Rumney <jasonr@gnu.org>
27499
27500 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27501 CreateFileMapping returns NULL on failure.
27502
27503 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27504
27505 * search.c (Fset_match_data): Remove the `evaporate' feature.
27506 (unwind_set_match_data): Don't use the `evaporate' feature.
27507
27508 2007-11-21 Jason Rumney <jasonr@gnu.org>
27509
27510 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27511
27512 * w32console.c (w32con_write_glyphs): Remove unused variables.
27513
27514 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27515
27516 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27517
27518 * s/darwin.h (MULTI_KBOARD): Remove.
27519
27520 * macfns.c (x_create_tip_frame, Fx_create_frame)
27521 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27522
27523 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27524
27525 * buffer.c (Fbuffer_local_value): Remove redundant test.
27526 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27527 than in `current-buffer' to match the comment.
27528 Do the swap using swap_in_global_binding.
27529
27530 * data.c (store_symval_forwarding, set_internal):
27531 * eval.c (specbind): Remove dead code.
27532
27533 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27534 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27535 Since we do not want to see internal Lisp_*fwd objects here.
27536
27537 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27538
27539 * sysdep.c (init_system_name): Use getaddrinfo if available.
27540
27541 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27542 (x_scroll_bar_note_movement): start, end, with, height in struct
27543 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27544
27545 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27546
27547 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27548
27549 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27550
27551 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27552 This undoes Richard's change of 14-Oct-2002.
27553
27554 * alloc.c (allocate_other_vector):
27555 * lisp.h (allocate_other_vector): Remove.
27556
27557 * window.c (struct save_window_data): Move non-lisp data to the end
27558 and make it `int' rather than Lisp_Object.
27559 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27560 Done wrap/unwrap integer values.
27561 (Fset_window_configuration, compare_window_configurations):
27562 Update use of fields to their new types.
27563
27564 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27565 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27566 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27567 (SET_SCROLL_BAR_X_WINDOW): Remove.
27568 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27569 Access the new x_window field directly.
27570 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27571 Don't wrap/unwrap integers into Lisp_Objects.
27572 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27573 (x_scroll_bar_report_motion):
27574 Don't wrap/unwrap integers into Lisp_Objects.
27575 (x_term_init): Use SDATA.
27576 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27577 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27578 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27579 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27580 * xfns.c (x_set_background_color):
27581 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27582 Access the new x_window field directly.
27583
27584 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27585 (allocate_pseudovector): Make non-static.
27586
27587 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27588 (allocate_pseudovector): Declare.
27589 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27590
27591 2007-11-15 Andreas Schwab <schwab@suse.de>
27592
27593 * editfns.c (Fformat): Correctly format EMACS_INT values.
27594 Also take precision into account when formatting an integer.
27595
27596 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27597
27598 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27599
27600 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27601 (syms_of_keyboard): Defsubr it.
27602
27603 * data.c (swap_in_global_binding): Fix longstanding bug where
27604 store_symval_forwarding was not called with the right second argument,
27605 thus causing objfwd-ing from being dropped.
27606
27607 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27608
27609 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27610 (Fx_display_pixel_height, Fx_display_planes)
27611 (Fx_display_color_cells, Fx_server_max_request_size)
27612 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27613 (Fx_display_visual_class, Fx_display_save_under):
27614 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27615 (Fx_display_pixel_height, Fx_display_planes)
27616 (Fx_display_color_cells, Fx_server_max_request_size)
27617 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27618 (Fx_display_mm_height, Fx_display_mm_width)
27619 (Fx_display_backing_store, Fx_display_visual_class)
27620 (Fw32_select_font, Fx_display_save_under):
27621 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27622 (Fx_display_pixel_height, Fx_display_planes)
27623 (Fx_display_color_cells, Fx_server_max_request_size)
27624 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27625 (Fx_display_save_under): Fix typos in docstrings.
27626
27627 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27628
27629 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27630 corresponding to deleted entries; they are an implementation detail.
27631 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27632 Remove variables.
27633 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27634 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27635 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27636 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27637 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27638 (Fw32_define_rgb_color, Fw32_load_color_file)
27639 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27640 Fix typos in docstrings.
27641 (Fx_server_version): Reflow docstring.
27642 (Fw32_shell_execute): Doc fixes.
27643
27644 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
27645
27646 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27647 if w32_parse_hot_key returned nil.
27648
27649 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27650
27651 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27652
27653 2007-11-09 Jason Rumney <jasonr@gnu.org>
27654
27655 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27656
27657 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27658
27659 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27660 Remove W32_SCROLL_BAR_CLICK_EVENT.
27661
27662 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27663 Add MULTIMEDIA_KEY_EVENT.
27664
27665 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27666 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27667 (make_lispy_event) [WINDOWSNT]: Use it to translate
27668 MULTIMEDIA_KEY_EVENT.
27669
27670 * w32term.h (WM_APPCOMMAND): Define if not already.
27671 (GET_APPCOMMAND_LPARAM): Likewise.
27672
27673 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27674 WM_APPCOMMAND.
27675
27676 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27677 (syms_of_w32fns): Export and initialize it.
27678 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27679
27680 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
27681
27682 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27683 twice.
27684
27685 * xdisp.c (handle_face_prop): Fix last change.
27686
27687 2007-11-09 Richard Stallman <rms@gnu.org>
27688
27689 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27690 not just for after-strings and before-strings.
27691 Call face_for_overlay_string and pass the overlay to it.
27692 (handle_display_prop): Determine whether property came from an overlay.
27693 Pass OVERLAY arg to handle_single_display_spec.
27694 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27695 (load_overlay_strings): Fill in it->string_overlays.
27696 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27697
27698 * xfaces.c (face_for_overlay_string): Function renamed from
27699 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27700
27701 * dispextern.h (struct it): New elt string_overlays.
27702 New elt from_overlay, also in stack.
27703 Rearrange a few elements.
27704 (face_for_overlay_string): Decl renamed from
27705 face_at_buffer_position_no_overlays, and add argument.
27706
27707 2007-11-09 Richard Stallman <rms@gnu.org>
27708
27709 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27710 to get the base face for an overlay string.
27711
27712 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27713
27714 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27715
27716 * xdisp.c (handle_stop): Move some code out of loop.
27717
27718 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27719
27720 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27721 Fix conversion from Lisp object to ATSUFontID.
27722
27723 2007-11-09 Jason Rumney <jasonr@gnu.org>
27724
27725 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27726
27727 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27728
27729 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27730 Don't assume regions are aligned to page boundary.
27731 (print_load_command_name): Add LC_UUID if defined.
27732
27733 2007-11-09 Richard Stallman <rms@gnu.org>
27734
27735 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27736
27737 2007-11-07 Jason Rumney <jasonr@gnu.org>
27738
27739 * s/windows95.h: Remove.
27740
27741 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27742
27743 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27744 abort with a message on unhandled store_type values.
27745
27746 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27747
27748 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27749 Remove HAVE_X11R5 and HAVE_X11R4.
27750
27751 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27752
27753 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27754
27755 2007-11-01 Johan Bockgård <bojohan@gnu.org>
27756
27757 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27758 Don't set s->stippled_p here, since it has already been set by
27759 x_set_glyph_string_gc from x_draw_glyph_string.
27760
27761 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27762
27763 * sunfns.c: Remove file.
27764
27765 * m/sun386.h:
27766 * m/sun2.h:
27767 * m/sparc.h: Remove Sun windows code.
27768
27769 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27770
27771 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27772 (init_keyboard): Set current_kboard's window-system to nil.
27773 (tty_read_avail_input): Typo.
27774 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27775
27776 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27777
27778 * s/usg5-4.h:
27779 * s/usg5-3.h:
27780 * s/ptx.h:
27781 * m/is386.h:
27782 * m/ibmps2-aix.h:
27783 * Makefile.in: Remove all mentions of X10.
27784
27785 * dispnew.c (syms_of_display): Don't mention version 10.
27786
27787 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
27788
27789 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27790 ($(BLD)/abbrev.$(O)): Remove.
27791
27792 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27793
27794 Rewrite abbrev.c in Elisp.
27795 * image.c (Qcount): Don't declare as extern.
27796 (syms_of_image): Initialize and staticpro `Qcount'.
27797 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27798 * emacs.c (main): Don't call syms_of_abbrev.
27799 * Makefile.in (obj): Remove abbrev.o.
27800 (abbrev.o): Remove.
27801 * abbrev.c: Remove.
27802
27803 2007-10-26 Martin Rudalics <rudalics@gmx.at>
27804
27805 * window.c (window_min_size_2): Don't count header-line.
27806
27807 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27808
27809 * frame.h (struct frame): Move all bit fields after the first bit
27810 field to take advantage of the available space. Group all the
27811 chars together to reduce wasted space due to padding.
27812
27813 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
27814
27815 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27816
27817 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27818 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27819 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27820 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27821 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27822 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27823 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27824 (last_marked, mark_object_loop_halt): Make static.
27825
27826 * frame.c (syms_of_frame) <delete-frame-functions>:
27827 Fix typo in docstring.
27828
27829 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
27830
27831 * w32.c (init_environment): Fix tiny memory leak.
27832 (w32_get_resource): Remove unused variable `ok'.
27833
27834 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27835
27836 Make `window-system' into a keyboard-local variable (rather than
27837 frame-local as done originally by multi-tty).
27838
27839 * keyboard.h (struct kboard): Add Vwindow_system.
27840 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27841 (mark_kboards): Mark Vwindow_system.
27842
27843 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27844 (init_display): Don't set the obsolete `window-system' frame-param.
27845
27846 * xterm.c (x_term_init):
27847 * w32term.c (w32_create_terminal):
27848 * term.c (init_tty): Set Vwindow_system.
27849 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27850 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27851
27852 * xfns.c (Fx_create_frame, x_create_tip_frame):
27853 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27854 * macfns.c (Fx_create_frame):
27855 Don't set the obsolete `window-system' frame-param.
27856
27857 * frame.h (Qwindow_system): Remove.
27858 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27859 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27860
27861 2007-10-24 Richard Stallman <rms@gnu.org>
27862
27863 * frame.c (x_figure_window_size): For fullscreen case,
27864 set USPosition | PPosition without clobbering rest of window_prompting.
27865
27866 * keyboard.c (Fcurrent_idle_time): Doc fix.
27867
27868 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27869
27870 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27871
27872 * process.c (unwind_request_sigio): Only define if __ultrix__.
27873
27874 * callproc.c (child_setup): Remove spurious *.
27875
27876 * lisp.h (Fget_text_property): Declare.
27877 (have_menus_p): Declare it here rather than in sys-dep header files.
27878 * macterm.h (have_menus_p):
27879 * msdos.h (have_menus_p):
27880 * xterm.h (have_menus_p): Remove.
27881
27882 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27883 (Fmake_variable_frame_local): Just check the variable's const-ness
27884 rather than checking nil or t.
27885
27886 2007-10-22 Jason Rumney <jasonr@gnu.org>
27887
27888 * w32fns.c: Include math.h.
27889 (w32_abort): Declaration moved to nt/config.nt.
27890
27891 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27892 (abort): Redefinition moved to nt/config.nt.
27893
27894 * m/windowsnt.h: Remove.
27895
27896 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
27897
27898 * emacs.c (Fdump_emacs): Fix typo in message.
27899 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27900 <installation-directory>: Reflow docstring.
27901
27902 2007-10-22 Juri Linkov <juri@jurta.org>
27903
27904 * minibuf.c: Allow minibuffer default to be a list of default values.
27905 With empty input use the first element of this list as returned default.
27906 (string_to_object)
27907 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27908 (read_minibuf): If defalt is cons, set histstring to its car.
27909 (Fread_string): If default_value is cons, set val to its car.
27910 (Fread_buffer): If def is cons, use its car.
27911 (Fcompleting_read): If defalt is cons, set val to its car.
27912
27913 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
27914
27915 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27916
27917 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
27918
27919 * doc.c (Fdocumentation): Check for advice in all cases.
27920
27921 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
27922
27923 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27924
27925 2007-10-19 Richard Stallman <rms@gnu.org>
27926
27927 * doc.c (Fdocumentation): Check for and handle an advised function.
27928
27929 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
27930
27931 * process.c (Fset_process_filter): Doc fix.
27932
27933 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27934
27935 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27936 which caused key-translation-map to applied repeatedly (thus breaking
27937 double-mode).
27938
27939 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27940
27941 * xselect.c (x_own_selection, x_handle_selection_clear)
27942 (x_clear_frame_selections):
27943 * w32menu.c (list_of_panes, list_of_items):
27944 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27945 * textprop.c (validate_plist, interval_has_all_properties)
27946 (interval_has_some_properties, interval_has_some_properties_list)
27947 (add_properties, text_property_list):
27948 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27949 * minibuf.c (Fassoc_string):
27950 * macselect.c (x_own_selection, x_clear_frame_selections)
27951 (Fx_disown_selection_internal):
27952 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27953 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27954
27955 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
27956
27957 * process.c: Link to libs for calling res_init() if available.
27958 (Fmake_network_process): Call res_init() before getaddrinfo or
27959 gethostbyname, if possible.
27960
27961 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27962
27963 * lread.c (read1): Set pvectype for char_tables.
27964
27965 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27966 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27967 Add type checks.
27968 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27969
27970 * alloc.c (free_misc): Use XMISCTYPE.
27971 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27972
27973 2007-10-17 Glenn Morris <rgm@gnu.org>
27974
27975 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27976 (syms_of_minibuf): Add Qcompletion_ignore_case.
27977 * dired.c (Qcompletion_ignore_case): Change to external.
27978 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27979 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27980 (Fread_file_name): Use it rather than intern'ing.
27981
27982 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27983 (Fread_coding_system): Ignore case of user input.
27984
27985 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27986
27987 * xdisp.c (handle_display_prop): Ignore display specs after
27988 replacing one when string text is being replaced.
27989 (handle_single_display_spec): Pretend as if characters with display
27990 property haven't been consumed only when buffer text is being replaced.
27991
27992 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27993
27994 * xfns.c (Fx_create_frame, Fx_display_list):
27995 * window.c (window_fixed_size_p, enlarge_window)
27996 (shrink_window_lowest_first):
27997 * macterm.c (init_font_name_table):
27998 * macfns.c (Fx_create_frame, Fx_display_list):
27999 * lread.c (close_load_descs):
28000 * keyboard.c (read_char_x_menu_prompt):
28001 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28002 * coding.c (code_convert_region_unwind): Test the type of an object
28003 rather than just !NILP before extracting data from it.
28004
28005 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28006
28007 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28008 (XMISCANY): New macro.
28009 (XMISCTYPE): Use it.
28010 (struct Lisp_Misc_Any): New type.
28011 (union Lisp_Misc): Use it.
28012 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28013 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28014 (find_symbol_value, set_internal, default_value, Fset_default)
28015 (Fmake_variable_buffer_local, Fmake_local_variable)
28016 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28017 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28018 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28019 * alloc.c (allocate_buffer): Set the size and tag.
28020 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28021 Use XMISCANY.
28022 (die): Follow the GNU convention for error messages.
28023 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28024 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28025 tag any more.
28026 (set_buffer_internal_1):
28027 * frame.c (store_frame_param):
28028 * eval.c (specbind):
28029 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28030
28031 * doc.c (Fsnarf_documentation): Simplify.
28032
28033 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28034
28035 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28036 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28037
28038 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28039
28040 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28041
28042 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28043
28044 * eval.c (do_autoload): Don't save autoloads.
28045
28046 * data.c (Ffset): Save autoload of the function being set.
28047
28048 2007-10-07 John Paul Wallington <jpw@pobox.com>
28049
28050 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28051 parameter before setting up faces.
28052
28053 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28054
28055 * ccl.c (Fregister_code_conversion_map):
28056 * keyboard.c (append_tool_bar_item): Reformat last change.
28057
28058 * lisp.h (eabs): Rename from `abs'. All callers changed.
28059
28060 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28061
28062 * buffer.c (add_overlay_mod_hooklist):
28063 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28064 * fontset.c (make_fontset):
28065 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28066 (append_tool_bar_item):
28067 * macmenu.c (grow_menu_items):
28068 * w32menu.c (grow_menu_items):
28069 * xmenu.c (grow_menu_items): Use larger_vector.
28070
28071 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28072
28073 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28074 selected frame'' on MSDOS).
28075
28076 2007-10-12 Martin Rudalics <rudalics@gmx.at>
28077
28078 * frame.c (Qexplicit_name): New variable.
28079 (x_report_frame_params): Report it in parameter alist.
28080 (syms_of_frame): Intern and staticpro it.
28081
28082 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28083
28084 * macfns.c (x_create_tip_frame): Set terminal for frame.
28085
28086 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28087
28088 * frame.c (Qenvironment): Remove.
28089 (syms_of_frame) <Qenvironment>: Don't initialize.
28090 (Fdelete_frame): Don't treat the `environment' param specially.
28091 * frame.h (Qenvironment): Don't declare.
28092 * callproc.c (set_initial_environment): Don't set unused frame param.
28093
28094 * frame.c (Fframe_with_environment): Remove.
28095 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28096
28097 * lisp.h (Fframe_with_environment): Don't declare.
28098
28099 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28100
28101 * indent.c (indent_tabs_mode, last_known_column)
28102 (last_known_column_modified): Make static.
28103 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28104
28105 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28106
28107 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28108
28109 2007-10-09 Jason Rumney <jasonr@gnu.org>
28110
28111 * w32term.c (x_set_window_size): Disable code that attempts to tell
28112 Lisp code about a size change before it actually happens.
28113
28114 2007-10-09 Richard Stallman <rms@gnu.org>
28115
28116 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28117 return HANDLED_RETURN.
28118
28119 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28120
28121 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28122 when there's an unread command event.
28123
28124 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28125 window autoselection act appropriately when leaving selected frame.
28126 (syms_of_frame): Initialize focus_follows_mouse.
28127 * frame.h (focus_follows_mouse): Extern it.
28128 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28129 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28130 * msdos.c (dos_rawgetc): Likewise.
28131 * w32term.c (w32_read_socket): Likewise.
28132 * xterm.c (handle_one_xevent): Likewise.
28133 * xdisp.c (syms_of_xdisp): In doc-string of
28134 mouse-autoselect-window mention focus-follows-mouse.
28135
28136 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28137
28138 * macterm.c (mac_load_query_font): Fix missing return value.
28139 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28140 Add BLOCK_INPUT.
28141
28142 2007-10-08 Richard Stallman <rms@gnu.org>
28143
28144 * xdisp.c (get_window_cursor_type): Implement documented behavior
28145 for cursor-in-non-selected-windows = t.
28146
28147 2007-10-08 Jason Rumney <jasonr@gnu.org>
28148
28149 * w32.c (w32_get_resource): Always close registry keys.
28150
28151 2007-10-08 Jason Rumney <jasonr@gnu.org>
28152
28153 * makefile.w32-in (LIBS): Add COMCTL32.
28154
28155 * w32fns.c (globals_of_w32fns): Init common controls.
28156
28157 2007-10-08 Richard Stallman <rms@gnu.org>
28158
28159 * image.c (our_memory_buffer): Rename from omfib_buffer.
28160
28161 2007-10-08 Richard Stallman <rms@gnu.org>
28162
28163 * buffer.c (Foverlays_at): Doc fix.
28164
28165 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28166
28167 * fns.c (Fplist_put): Preserve uneven tail data.
28168
28169 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28170
28171 * termhooks.h (enum event_kind): Remove trailing comma.
28172
28173 * frame.h (enum): Remove trailing comma.
28174
28175 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28176
28177 * w32proc.c (delete_child): Don't terminate threads of zombies.
28178
28179 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28180
28181 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28182
28183 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28184 last-repeatable-command.
28185 (init_kboard): Initialize Vlast_repeatable_command.
28186 (command_loop_1): Set it to real_this_command unless that was
28187 bound to an input event.
28188 (mark_kboards): Mark it.
28189
28190 2007-10-08 Richard Stallman <rms@gnu.org>
28191
28192 * eval.c (condition-case): Doc fix.
28193
28194 2007-10-08 Masatake YAMATO <jet@gyve.org>
28195
28196 * xfaces.c (tty_supports_face_attributes_p): Fix code
28197 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28198 was copied and not edited.
28199
28200 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28201
28202 Add new `input-decode-map' keymap and use it for terminal
28203 escape sequences.
28204 * keyboard.h (struct kboard): Add Vinput_decode_map.
28205 Remove Vlocal_key_translation_map.
28206 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28207 (init_kboard): Init input-decode-map.
28208 Replace local-key-translation-map back with key-translation-map.
28209 (syms_of_keyboard): Declare input-decode-map.
28210 Remove local-key-translation-map. Update docstrings.
28211 (mark_kboards): Mark Vinput_decode_map.
28212 Don't mark Vlocal_key_translation_map.
28213 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28214 Replace local-key-translation-map back with key-translation-map.
28215 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28216 Bind in input-decode-map rather than function-key-map.
28217
28218 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28219 This was made redundant by the previous introduction of XSETPVECTYPE.
28220
28221 2007-10-09 Richard Stallman <rms@gnu.org>
28222
28223 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28224
28225 2007-09-29 Richard Stallman <rms@gnu.org>
28226
28227 * eval.c (internal_condition_case_2, internal_condition_case_1)
28228 (internal_condition_case): Reenable abort if x_catching_errors ()
28229 to see if that really happens and why.
28230
28231 2007-10-06 Andreas Schwab <schwab@suse.de>
28232
28233 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28234
28235 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28236
28237 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28238
28239 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28240
28241 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28242
28243 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28244
28245 * window.h (struct window):
28246 * window.c (struct save_window_data, struct saved_window):
28247 * termhooks.h (struct terminal):
28248 * process.h (struct Lisp_Process):
28249 * frame.h (struct frame):
28250 * buffer.h (struct buffer):
28251 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28252 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28253 The size field of (pseudo)vectors is now unsigned.
28254 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28255
28256 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28257 Turn `count' into an integer.
28258
28259 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28260 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28261 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28262 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28263 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28264
28265 * alloc.c (allocate_pseudovector): New fun.
28266 (ALLOCATE_PSEUDOVECTOR): New macro.
28267 (allocate_window, allocate_terminal, allocate_frame)
28268 (allocate_process): Use it.
28269 (mark_vectorlike): New function.
28270 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28271 (mark_terminals): Use it.
28272 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28273 (Fmake_byte_code): Use XSETPVECTYPE.
28274
28275 * frame.c (Fframe_parameters): Minor simplification.
28276
28277 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28278
28279 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28280
28281 * buffer.c (Fget_buffer_create, init_buffer_once):
28282 * lread.c (defsubr):
28283 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28284
28285 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28286 defined differently in the m/*.h files.
28287 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28288 (XSETPVECTYPE): New macro.
28289 (XSETPSEUDOVECTOR): Use it.
28290
28291 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28292 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28293
28294 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28295 * lread.c (defvar_per_buffer):
28296 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28297
28298 * window.c (candidate_window_p): Only consider as visible frames that
28299 are on the same terminal.
28300
28301 * m/ibms390x.h (MARKBIT): Remove unused macro.
28302
28303 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28304
28305 * lread.c (Fload): Fix typo in docstring.
28306
28307 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28308
28309 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28310 of a non-zero value can't yield zero.
28311
28312 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28313
28314 * term.c (term_clear_mouse_face, term_mouse_highlight)
28315 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28316
28317 * print.c (safe_debug_print): Use XHASH.
28318
28319 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28320 Lisp elements such as tags.
28321 (XHASH): New macro.
28322 (EQ): Use it.
28323 (SREF, SSET, STRING_COPYIN): Use SDATA.
28324 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28325
28326 * alloc.c (mark_terminal): Remove left-over declaration.
28327 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28328 (allocate_vectorlike): Remove type argument. Adjust callers.
28329 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28330 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28331
28332 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28333 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28334 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28335 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28336 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28337 Use them.
28338
28339 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28340 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28341 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28342
28343 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28344
28345 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28346 loaded by default.
28347
28348 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28349
28350 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28351 on this tty.
28352 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28353
28354 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28355 Update all users.
28356 (handle_one_term_event): Use Gpm_DrawPointer.
28357 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28358 Signal errors instead of returning nil. Always return nil.
28359 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28360 Make it a noop if gpm-mouse was not activated.
28361 (syms_of_term): Update names.
28362
28363 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28364
28365 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28366 (init_sys_modes): Check that gpm_tty is the current tty.
28367
28368 * alloc.c (allocate_terminal): Set the vector size to only count the
28369 lisp fields. Initialize those to nil.
28370 (mark_object): Don't treat terminals specially.
28371 (mark_terminal): Remove.
28372 (mark_terminals): Use mark_object instead.
28373
28374 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28375 the GC to the beginning.
28376
28377 * indent.h:
28378 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28379
28380 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28381
28382 2007-09-25 Jason Rumney <jasonr@gnu.org>
28383
28384 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28385
28386 * w32console.c (create_w32cons_output): Remove.
28387
28388 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28389
28390 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28391 (reset_sys_modes): Use reset_terminal_modes_hook.
28392
28393 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28394
28395 * eval.c (do_autoload): Don't output any message.
28396
28397 2007-09-24 Juri Linkov <juri@jurta.org>
28398
28399 * emacs.c (standard_args): Change priority of "--no-splash"
28400 from 40 to 3. Add "--no-desktop" with the same priority.
28401
28402 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28403
28404 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28405 and optimize the case where they are all 1.
28406
28407 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
28408
28409 * lisp.h (abs): Define if not defined.
28410 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28411 Don't define `abs', since it's defined in lisp.h.
28412
28413 2007-09-22 Eli Zaretskii <eliz@gnu.org>
28414
28415 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28416 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28417 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28418 (init_tty): Use DEV_TTY instead of "/dev/tty".
28419 [WINDOWSNT]: No need to protect from NAME arg being null.
28420
28421 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28422
28423 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28424 up the tty state.
28425
28426 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28427
28428 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28429 (gpm_tty): Change its type.
28430 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28431 (gpm_tty): Change its type and initialize it.
28432 (Fterm_open_connection): Check the frame is indeed a tty.
28433 Use the new gpm_tty.
28434 (Fterm_close_connection): Use the new gpm_tty.
28435 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28436 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28437
28438 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
28439
28440 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28441 underline_color, to draw strike-through.
28442
28443 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28444
28445 * lisp.h (allocate_terminal): Declare.
28446
28447 * window.c (candidate_window_p): Consider frames that are being placed
28448 by the user as somewhere between visible and iconified.
28449 (window_loop): Prefer windows on the current frame.
28450 (Fselect_window): Move the use of select-frame to the beginning so we
28451 can just delegate all the work (it'll call us back anyway).
28452
28453 * frame.c (Qdisplay_environment_variable):
28454 * frame.h (Qdisplay_environment_variable): Delete.
28455
28456 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28457 of the first arg, since that value may be a union.
28458
28459 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28460 parameter rather than Qdisplay_environment_variable. If all else
28461 fails, look for DISPLAY in initial-environment.
28462
28463 2007-09-21 Glenn Morris <rgm@gnu.org>
28464
28465 * Makefile.in (emacstool): Remove target.
28466 (lisp, shortlisp): Remove termdev.elc.
28467
28468 2007-09-21 Markus Triska <markus.triska@gmx.at>
28469
28470 * xterm.c (x_delete_display): Compile session management conditionally.
28471
28472 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28473
28474 * callproc.c (getenv_internal_1): New function.
28475 (getenv_internal): Use it.
28476 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28477
28478 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28479 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28480 (Fset_terminal_parameter): Work with dead terminals as well.
28481 (Fmodify_terminal_parameters): Remove.
28482
28483 * terminal.c (get_terminal): Handle terminals.
28484 Make sure the terminal returned is live.
28485 (create_terminal): Use allocate_terminal.
28486 (mark_terminals): Move to alloc.c.
28487 (delete_terminal): Use terminal->name as liveness status.
28488 NULL out fields after freeing their contents.
28489 Don't deallocate the object.
28490 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28491 rather than an int.
28492 (Fterminal_live_p): Accept non-integer arguments.
28493 (Fterminal_list): Return terminal objects rather than an ints.
28494
28495 * alloc.c (enum mem_type): New member for `terminal' objects.
28496 (allocate_terminal): New function.
28497 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28498 Handle terminals.
28499 (mark_terminal): New fun.
28500 (mark_terminals): Move from terminal.c.
28501
28502 * term.c (get_tty_terminal): Don't treat output_initial specially.
28503 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28504 (delete_tty): Use terminal->name as liveness status.
28505
28506 * termhooks.h (struct terminal): Make it into a pseudovector.
28507 Remove `deleted' replaced by checking `name's nullness.
28508
28509 * print.c (print_object): Handle terminals.
28510
28511 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28512 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28513
28514 * frame.c (make_terminal_frame):
28515 * keyboard.c (tty_read_avail_input):
28516 * w32term.c (x_delete_terminal):
28517 * xfns.c (Fx_create_frame, x_create_tip_frame):
28518 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28519
28520 2007-09-20 Glenn Morris <rgm@gnu.org>
28521
28522 * process.c (Fmake_network_process): Doc fix.
28523
28524 2007-09-19 Jason Rumney <jasonr@gnu.org>
28525
28526 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28527
28528 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28529
28530 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28531 Fix a C warning regarding variable constness.
28532
28533 * xterm.c (handle_one_xevent): Fix a C warning.
28534
28535 2007-09-18 Jason Rumney <jasonr@gnu.org>
28536
28537 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28538
28539 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28540
28541 * gtkutil.c (gdpy_def): New variable.
28542 (xg_initialize): Initialize gdpy_def.
28543 (xg_display_close): If no other display exists, set gdpy_def to a
28544 new connection.
28545
28546 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28547
28548 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28549 when we have no file name for the icon.
28550 (xg_tool_bar_expose_callback): Remove.
28551 (xg_create_tool_bar): Don't connect expose signal to
28552 xg_tool_bar_expose_callback.
28553 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28554
28555 2007-09-16 Andreas Schwab <schwab@suse.de>
28556
28557 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28558 values instead of zapping them.
28559
28560 2007-09-14 Glenn Morris <rgm@gnu.org>
28561
28562 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28563 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28564 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28565 scope and rename to omfib_buffer for clarity.
28566 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28567
28568 2007-09-14 Kenichi Handa <handa@m17n.org>
28569
28570 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28571
28572 2007-09-13 Jason Rumney <jasonr@gnu.org>
28573
28574 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28575
28576 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28577
28578 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28579 (mac_term_init): Call here instead, passing rif.
28580
28581 2007-09-13 Glenn Morris <rgm@gnu.org>
28582
28583 * s/hpux.h: No longer define `static' as nothing.
28584
28585 2007-09-13 Johan Bockgård <bojohan@gnu.org>
28586
28587 * callint.c (Fcall_interactively): Remove unused var `fun'.
28588
28589 2007-09-12 Romain Francoise <romain@orebokech.com>
28590
28591 * window.c (prefer_window_split_horizontally, display_buffer):
28592 Revert 2007-09-08 change.
28593
28594 2007-09-12 Glenn Morris <rgm@gnu.org>
28595
28596 * alloca.c: Remove file.
28597 * Makefile.in (alloca): Do not undef.
28598 (allocaobj, alloca.o): Remove.
28599 (otherobj): Remove allocaobj.
28600 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28601 * regex.c (C_ALLOCA): Remove all references and code that was only
28602 used when this was defined.
28603 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28604 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28605 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28606
28607 * Makefile.in (SOURCES, unlock, relock): Delete.
28608
28609 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28610 (menu_grab_callback): All uses changed.
28611
28612 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28613 (x_reply_selection_request): All uses changed.
28614
28615 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28616
28617 * lread.c (load_warn_old_style_backquotes): Change message to look
28618 better when it appears in the middle of byte-compiler messages.
28619
28620 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28621
28622 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28623
28624 * xterm.c (x_create_terminal): Add comment.
28625
28626 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28627
28628 2007-09-10 Richard Stallman <rms@gnu.org>
28629
28630 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28631
28632 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28633
28634 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28635 (DEFUN): Document `intspec', use it instead of `prompt'.
28636
28637 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28638
28639 * data.c (Finteractive_form): If the interactive specification starts
28640 with a `(', use it as a Lisp form.
28641
28642 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28643 name and file modes.
28644
28645 * callint.c (Fcall_interactively): Comment fixes.
28646
28647 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28648
28649 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28650 and compiled functions.
28651
28652 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28653
28654 * window.c (prefer_window_split_horizontally): New variable.
28655 (display_buffer): Consider splitting window horizontally depending
28656 on prefer_window_split_horizontally.
28657
28658 2007-09-08 Eli Zaretskii <eliz@gnu.org>
28659
28660 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28661
28662 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28663
28664 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28665
28666 * frame.c (x_set_frame_parameters): Check number is positive before
28667 using XFASTINT.
28668
28669 * window.c (freeze_window_start): Don't presume selected_window holds
28670 a window object.
28671 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28672
28673 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28674
28675 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28676
28677 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28678
28679 * window.c (Vsplit_window_preferred_function): New var.
28680 (Fdisplay_buffer): Use it.
28681 (syms_of_window): Export, and initialize it.
28682
28683 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28684
28685 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28686
28687 2007-09-06 Glenn Morris <rgm@gnu.org>
28688
28689 * gtkutil.c (menu_grab_callback) <cnt>:
28690 * xselect.c (x_reply_selection_request) <cnt>: Move static
28691 variable to file scope.
28692
28693 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28694
28695 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28696 consistent values of selected_frame and selected_window.
28697
28698 2007-09-04 Jason Rumney <jasonr@gnu.org>
28699
28700 * w32console.c (initialize_w32_display): Zero unused hooks.
28701
28702 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28703
28704 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28705 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28706
28707 2007-09-04 Jason Rumney <jasonr@gnu.org>
28708
28709 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28710 in w32console.c. Set up input. Remove XXX comments that have been
28711 confirmed as correct.
28712
28713 * s/ms-w32.h (MULTI_KBOARD): Define.
28714
28715 * w32console.c (one_and_only_w32cons): Remove.
28716 (initialize_w32_display): Take terminal argument.
28717
28718 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28719 initialize_w32_display.
28720 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28721
28722 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28723
28724 * keyboard.c (discard_mouse_events): Discard it.
28725 (make_lispy_event): Translate it to a lisp event.
28726 (lispy_wheel_names): Add wheel-left and right events.
28727 (syms_of_keyboard): Enlarge wheel_syms.
28728
28729 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28730 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28731
28732 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28733
28734 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28735 from WM_MOUSEHWHEEL.
28736 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28737
28738 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28739 terminal.
28740
28741 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28742 keyboard for the terminal.
28743
28744 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28745
28746 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28747 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28748 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28749 and resume-tty-function to resume-tty-hook.
28750 (Fsuspend_tty, Fresume_tty): Use new names.
28751
28752 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28753
28754 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28755 if it starts with "n:".
28756
28757 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28758
28759 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28760
28761 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28762
28763 * frame.h:
28764 * frame.c (Qterm_environment_variable): Remove.
28765 (syms_of_frame): Don't init and staticpro it.
28766
28767 * callproc.c (getenv_internal): Remove special case for $TERM.
28768
28769 * callproc.c (Vinitial_environment): New variable.
28770 (set_initial_environment): Initialize it.
28771 (syms_of_callproc): Declare it.
28772 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28773 TERM under which a process runs is never related to the TERM in which
28774 Emacs is running.
28775
28776 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28777
28778 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28779 * s/darwin.h: ... do it here.
28780
28781 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28782
28783 * lisp.h (set_initial_environment): Rename from set_global_environment.
28784
28785 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28786 removed by mistake on the multi-tty branch.
28787
28788 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28789 (Fmodify_frame_parameters): Return a value.
28790
28791 * image.c (png_load): Comment-out var only used in commented-out code.
28792
28793 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28794 before passing it to mark_object.
28795
28796 * xfaces.c (internal_resolve_face_name): Return a value.
28797 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28798
28799 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28800 (x_icon): Comment-out var only used in commented-out code.
28801
28802 2007-08-29 Romain Francoise <romain@orebokech.com>
28803
28804 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28805 QUIT hasn't been provided.
28806
28807 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28808
28809 * callproc.c (child_setup, getenv_internal): Use the
28810 display-environment-variable and term-environment-variable frame params.
28811 (set_initial_environment): Initialise Vprocess_environment.
28812
28813 * config.in: Disable multi-keyboard support on a mac.
28814
28815 * frame.c (Qterm_environment_variable)
28816 (Qdisplay_environment_variable): New variables.
28817 (syms_of_frame): Intern and staticpro them.
28818 (Fmake_terminal_frame): Disable output method test.
28819
28820 * frame.h: Declare them here.
28821
28822 * macfns.c (x_set_mouse_color): Get rif from the frame.
28823 (x_set_tool_bar_lines): Don't use updating_frame.
28824 (mac_window): Add 2 new parameters for consistency with other systems.
28825 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28826 frame parameters following what is done in X11 and w32. Don't use
28827 FRAME_MAC_DISPLAY_INFO.
28828 (Fx_open_connection, start_hourglass): Remove window-system check.
28829 (x_create_tip_frame): Get the keyboard from the terminal.
28830
28831 * macmenu.c: Reorder includes.
28832 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28833
28834 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28835 terminal parameter.
28836 (x_clear_frame): Add a frame parameter.
28837 (note_mouse_movement): Get rif from the frame.
28838 (mac_term_init): Initialize the terminal.
28839 (mac_initialize): Make static and move terminal initialization ...
28840 (mac_create_terminal): ... to this new function.
28841
28842 * macterm.h (struct mac_display_info): Add terminal.
28843 (mac_initialize): Delete declaration.
28844
28845 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28846
28847 * sysdep.c: Comment out text after #endif.
28848
28849 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28850 is defined. Better initialize ttys in windows. Use terminal
28851 specific mouse_position_hook.
28852
28853 * termhooks.h (union display_info): Add mac_display_info.
28854
28855 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28856 Set the default minibuffer frame, window_system and the rest of the
28857 frame parameters following what is done in X11.
28858
28859 * w32term.c (w32_initialize): Make static.
28860
28861 * xselect.c (x_handle_selection_clear): Only access
28862 terminal->kboard when MULTI_KBOARD is defined.
28863
28864 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28865 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28866
28867 2007-08-29 Jason Rumney <jasonr@gnu.org>
28868
28869 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28870 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28871
28872 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28873 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28874
28875 * keyboard.c (restore_kboard_configuration): Only define when
28876 MULTI_KBOARD defined.
28877
28878 * makefile.w32-in: Update dependancies from Makefile.in.
28879 (OBJ1): Add terminal.$(O)
28880
28881 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28882 Don't define function body.
28883 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28884
28885 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28886
28887 * w32.c (request_sigio, unrequest_sigio): Remove.
28888
28889 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28890 (w32con_clear_frame, w32con_clear_end_of_line)
28891 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28892 (w32con_delete_glyphs, w32con_set_terminal_window)
28893 (scroll_line, w32_sys_ring_bell): Add frame arg.
28894 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28895 Add terminal arg.
28896 (PICK_FRAME): Remove.
28897 (w32con_write_glyphs): Use frame specific terminal coding.
28898 (one_and_only_w32cons): New global variable.
28899 (initialize_w32_display): Use it for storing hooks.
28900 (create_w32cons_output): New function.
28901
28902 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28903 arg a frame.
28904
28905 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28906 Set window_system.
28907 (x_set_tool_bar_lines): Don't use updating_frame.
28908 (Fx_create_frame): Set terminal and ref count.
28909 (Fx_open_connection): Remove window-system check.
28910
28911 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28912
28913 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28914 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28915 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28916 Add frame arg.
28917 (x_delete_terminal, w32_create_terminal): New functions.
28918 (w32_term_init): Create a terminal.
28919 (w32_initialize): Move terminal specific initialization to
28920 w32_create_terminal.
28921
28922 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28923 (w32_clear_rect, w32_clear_area): Use background from frame.
28924 (w32_display_info): Add terminal.
28925 (w32_sys_ring_bell, x_delete_display): Declare here.
28926
28927 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28928
28929 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28930
28931 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28932
28933 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28934 Fix get_named_tty calls for the controlling tty.
28935
28936 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28937
28938 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
28939
28940 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28941
28942 * term.c (tty_insert_glyphs): Add missing first parameter.
28943
28944 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28945
28946 * buffer.c (Fbuffer_list, Fbury_buffer):
28947 Take frame->buried_buffer_list into account.
28948
28949 * cm.c (current_tty): New variable, for cmputc().
28950 (cmputc): Use it.
28951 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28952 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28953 (cmgoto): Add tty parameter. Pass it on to calccost().
28954 Use emacs_tputs() instead of tputs().
28955
28956 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28957 tputs().
28958 (current_tty): New variable, for cmputc().
28959 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28960
28961 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28962 (internal_condition_case, internal_condition_case_1)
28963 (internal_condition_case_2): Don't abort when x_catching_errors.
28964
28965 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28966 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28967 prevent crashes caused by bogus longjmps in read_char.
28968
28969 * keymap.h (Fset_keymap_parent): Add EXFUN.
28970
28971 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28972 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28973 Remove redundant definition.
28974
28975 * macfns.c (x_set_mouse_color, x_make_gc):
28976 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28977
28978 * w32term.c (x_free_frame_resources):
28979 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28980 (w32_initialize): Use the accessor macros for terminal characteristics.
28981
28982 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28983 Use the accessor macros for terminal characteristics.
28984 * msdos.c (internal_terminal_init): Use the accessor macros for
28985 terminal characteristics.
28986 (ScreenVisualBell, internal_terminal_init):
28987 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28988
28989 * termopts.h (no_redraw_on_reenter): Declare.
28990
28991 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28992 (mark_terminals, mark_ttys): Declare.
28993 (Fgarbage_collect): Call them.
28994 (mark_object): Mark buried_buffer_list.
28995
28996 * prefix-args.c: Include stdlib.h for exit.
28997
28998 * syssignal.h: Add comment.
28999
29000 * indent.c: Include stdio.h.
29001
29002 * window.h (Vinitial_window_system): Declare.
29003 (Vwindow_system): Delete declaration.
29004
29005 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29006
29007 * image.c (lookup_image): Don't initialize `c' until the xasserts
29008 have been run.
29009
29010 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29011 FRAME_FOREGROUND_PIXEL.
29012
29013 * print.c (print_preprocess): Don't lose print_depth levels while
29014 iterating.
29015
29016 * widget.c (update_from_various_frame_slots):
29017 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29018
29019 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29020 frames.
29021 (window_internal_height): Remove bogus make_number call.
29022 (init_window_once): Call make_terminal_frame with two zero parameters.
29023
29024 * fileio.c (Fread_file_name): Update comment.
29025
29026 * callint.c (Fcall_interactively):
29027 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29028 Make sure it is correctly unwound.
29029
29030 * xsmfns.c (x_session_close): New function.
29031
29032 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29033 Delete declarations.
29034
29035 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29036 (x_output): Remove background_pixel and foreground_pixel fields.
29037 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29038 (x_delete_device, x_session_close): Declare.
29039
29040 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29041 (read_filtered_event): Call `read_char' with a local
29042 `wrong_kboard_jmpbuf'.
29043
29044 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29045 Don't call single_kboard_state. Use FRAME_RIF.
29046
29047 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29048 systems.
29049
29050 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29051 (Fframe_with_environment, Fset_input_meta_mode)
29052 (Fset_quit_char): EXFUN.
29053 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29054 (init_sys_modes, reset_sys_modes): Update prototypes.
29055 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29056
29057 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29058 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29059 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29060 Delete declarations.
29061 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29062 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29063 New declarations.
29064
29065 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29066 already does that during init_display(). Call syms_of_keymap
29067 before syms_of_keyboard. Call `syms_of_terminal'.
29068 Call set_initial_environment, not set_process_environment.
29069 (shut_down_emacs): Call reset_all_sys_modes() instead of
29070 reset_sys_modes().
29071
29072 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29073 (internal_resolve_face_name, resolve_face_name_error): New functions.
29074 (resolve_face_name): Protect against loops and errors thrown by Fget.
29075 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29076 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29077
29078 * scroll.c: Replace CURTTY() with local variables throughout the
29079 file (where applicable).
29080 (calculate_scrolling, calculate_direct_scrolling)
29081 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29082 characteristics.
29083
29084 * keymap.c (Vfunction_key_map): Remove.
29085 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29086 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29087 (Vkey_translation_map): Remove.
29088 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29089 (Fdescribe_buffer_bindings)
29090 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29091 Update for terminal-local key-translation-map.
29092
29093 * Makefile.in (callproc.o): Update dependencies.
29094 (lisp, shortlisp): Add termdev.elc.
29095 (obj): Add terminal.o.
29096 (terminal.o): Add dependencies.
29097 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29098 (data.o, fns.o): Add termhooks.h dependency.
29099 (SOME_MACHINE_LISP): Add dnd.elc.
29100 (minibuf.o): Fix typo.
29101 Update dependencies.
29102
29103 * data.c (do_symval_forwarding, store_symval_forwarding)
29104 (find_symbol_value): Use the selected frame's keyboard, not
29105 current_kboard.
29106
29107 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29108 Vwindow_system.
29109
29110 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29111 Fmenu_bar_open.
29112 (syms_of_xmenu): Update defsubr.
29113 (mouse_position_for_popup, Fx_popup_menu)
29114 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29115 (set_frame_menubar, free_frame_menubar)
29116 (create_and_show_popup_menu, xmenu_show)
29117 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29118 an X frame.
29119
29120 * xselect.c (x_own_selection): Abort if not an X frame.
29121 (some_frame_on_display): Check if it is an X frame.
29122 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29123
29124 * coding.c: Include frame.h and termhooks.h.
29125 (terminal_coding, keyboard_coding): Delete.
29126 (Fset_terminal_coding_system_internal)
29127 (Fset_keyboard_coding_system_internal)
29128 (Fkeyboard_coding_system)
29129 (Fterminal_coding_system): Add a terminal parameter.
29130 Get terminal_coding from the terminal.
29131 (init_coding_once): Don't call setup_coding_system here.
29132
29133 * dispextern.h (set_scroll_region, turn_off_insert)
29134 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29135 (tty_clear_end_of_line, tty_setup_colors)
29136 (delete_tty, updating_frame)
29137 (produce_special_glyphs, produce_glyphs, write_glyphs)
29138 (insert_glyphs): Remove.
29139 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29140 (tty_turn_off_highlight, get_tty_size): Add declaration.
29141 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29142
29143 * frame.h (enum output_method): Add output_initial.
29144 (struct x_output): Delete.
29145 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29146 Access foreground_pixel and background_pixel directly from the frame.
29147 (tty_display): Delete.
29148 (struct frame): Add buried_buffer_list, foreground_pixel,
29149 background_pixel and terminal. Delete kboard.
29150 (union output_data): Add tty.
29151 (FRAME_KBOARD): Get the kboard from the terminal.
29152 (FRAME_INITIAL_P): New macro.
29153 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29154 (Qterm_environment_variable, Qdisplay_environment_variable)
29155 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29156 New declarations.
29157
29158 * termchar.h (tty_output, tty_display_info): New structures.
29159 (tty_list): Declare.
29160 (FRAME_TTY, CURTTY): New macros.
29161 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29162 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29163 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29164 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29165
29166 * callproc.c: Include frame.h and termhooks.h, for terminal
29167 parameters.
29168 (add_env): New function.
29169 (child_setup): Use it.
29170 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29171 (getenv_internal): Fix get_terminal_param call.
29172 (Fgetenv_internal, egetenv): Update doc.
29173 (syms_of_callproc): Initialize Vprocess_environment to nil.
29174 Register and initialize them. Remove obsolete defvars. Update doc
29175 strings.
29176 (child_setup): Handle Vlocal_environment_variables.
29177 (getenv_internal): Add terminal parameter.
29178 Handle Vlocal_environment_variables.
29179 (Fgetenv_internal): Add terminal parameter.
29180 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29181 environment in a frame (not terminal) parameter. Update doc strings.
29182 (set_initial_environment): Rename from set_global_environment.
29183 Store Emacs environment in initial frame parameter.
29184
29185 * xdisp.c (redisplay_internal): Update references to
29186 `previous_terminal_frame'.
29187 (display_mode_line, Fformat_mode_line): Replace calls to
29188 `push_frame_kboard' with `push_kboard'.
29189 (get_glyph_string_clip_rects): Add extra parentheses and
29190 braces to prevent compiler warnings.
29191 (calc_pixel_width_or_height): Add xassert to check that the
29192 frame is alive. Don't call `lookup_image' on a termcap frame.
29193 (message2_nolog, message3_nolog, redisplay_internal)
29194 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29195 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29196 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29197 (Fx_display_pixel_width, Fx_display_pixel_height)
29198 (Fx_display_planes, Fx_display_color_cells)
29199 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29200 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29201 (Fx_display_backing_store, Fx_display_visual_class)
29202 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29203 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29204
29205 * xfns.c (x_set_foreground_color x_set_background_color)
29206 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29207 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29208 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29209 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29210 terminal that is being deleted.
29211 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29212 frame parameter, and make sure it overrides any user-supplied setting.
29213 (Fx_close_connection, Fx_synchronize): Unify argument names with
29214 the rest of the DEFUNs.
29215
29216 * dispnew.c (Fsend_string_to_terminal): Update call to
29217 `get_tty_terminal'.
29218 (Fredraw_frame, Fsend_string_to_terminal)
29219 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29220 FRAME_TERMCAP_P and FRAME_TTY.
29221 (window_change_signal): Don't believe width/height values that are
29222 impossibly small.
29223 (Vinitial_window_system): Rename from Vwindow_system.
29224 (termscript, Wcm, rif): Delete.
29225
29226 * termhooks.h (struct terminal): New struct containing the
29227 previously global text display hooks and new members NAME,
29228 DELETED and PARAM_ALIST.
29229 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29230 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29231 (FRAME_RIF): New macros.
29232 (get_terminal_param, get_device): New declarations.
29233 (termscript): Delete declaration.
29234
29235 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29236 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29237 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29238 FRAME_FOREGROUND_PIXEL.
29239 (x_fully_uncatch_errors): Disable definition.
29240 (x_scroll_bar_expose): Fix reference to foreground pixel.
29241 (XTread_socket): Disable loop on all X displays.
29242 (x_delete_terminal): Don't set terminal->deleted and let
29243 delete_terminal delete the frames on the terminal.
29244 (x_delete_display): Doc update to reflect changes in
29245 delete_terminal.
29246 (x_display_info) <terminal>: Move member earlier in the struct.
29247 (deleting_tty): Remove old variable.
29248 (Fsuspend_tty): Call clear_tty_hooks.
29249 (Fresume_tty, init_tty): Call set_tty_hooks.
29250 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29251 errors on X frames.
29252 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29253 (handle_one_xevent): Initialize `f' to NULL.
29254 (x_delete_terminal, x_create_terminal): New functions.
29255 (XTset_terminal_modes, XTreset_terminal_modes)
29256 (XTread_socket, x_connection_closed, x_term_init)
29257 (x_term_init, x_delete_display): Add terminal parameter.
29258 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29259 X connections.
29260
29261 * frame.c: Include termchar.h.
29262 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29263 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29264 (Qdisplay_environment_variable): New vars.
29265 (Fframep): Deal with output_initial.
29266 (Fframe-live-p): Doc fix.
29267 (Fwindow-system): New function.
29268 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29269 (make_terminal_frame): Don't create frames on a terminal that is
29270 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29271 (store_frame_param): Check for found_for_frame before calling XFRAME.
29272 (Fmake_terminal_frame): Handle NULL tty names correctly.
29273 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29274 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29275 frames to refer to a deleted frame in their 'environment parameter.
29276 (Fframe_with_environment): New function.
29277 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29278 (get_future_frame_param): New function.
29279 (Fmake_terminal_frame): Use it.
29280 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29281
29282 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29283 * sysdep.c (reset_sys_modes): Update for renames.
29284
29285 * keyboard.c (tty_read_avail_input): New function.
29286 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29287 (syms_of_keyboard): Defsubr them.
29288 (Fset_input_meta_mode, Fset_quit_char): New functions.
29289 (Fset_input_mode): Split to above functions.
29290 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29291 parameter. Use it in call to `read_char'.
29292 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29293 Set wrong_kboard_jmpbuf correctly in recursive calls.
29294 Use current_kboard to access Vkeyboard_translate_table.
29295 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29296 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29297 Update longjmp invocations. Remember the original current_kboard,
29298 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29299 changes it. Comment out unnecessary calls to
29300 `record_single_kboard_state' and `any_kboard_state'.
29301 Update recursive calls.
29302 (wrong_kboard_jmpbuf): Remove global variable.
29303 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29304 Handle deleted interrupted_kboards correctly; that is a legal
29305 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29306 and read_char calls. Abort if interrupted_kboard died in read_char.
29307 (any_kboard_state, single_kboard_state)
29308 (push_frame_kboard): Remove function.
29309 (pop_kboard): Switch out of single_kboard mode if the kboard has
29310 been deleted. Remove unused variable. Help debugging by not
29311 changing current_kboard unnecessarily. Set current_kboard to the
29312 kboard of the selected frame when the stored kboard object has
29313 been deleted before pop_kboard.
29314 (temporarily_switch_to_single_kboard): Change first parameter to a
29315 frame pointer. Throw an error when caller wants to change kboards
29316 while in single_kboard mode. Don't push_kboard if we weren't in
29317 single kboard state. Don't pop_kboard if we popped into any
29318 kboard state.
29319 (restore_kboard_configuration): Abort if pop_kboard changed the
29320 kboard in single_kboard mode. Call pop_kboard only after setting
29321 up single_kboard mode.
29322 (Frecursive_edit): Switch to single_kboard mode only in nested
29323 command loops.
29324 (cmd_error, command_loop, command_loop_1, timer_check):
29325 Comment out unnecessary call to `any_kboard_state' and
29326 `record_single_kboard_state'.
29327 (delete_kboard): Exit single_kboard mode if we have just deleted
29328 that kboard. Use FRAME_KBOARD.
29329 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29330 `fatal_error_signal'.
29331 (record_single_kboard_state): Don't push_kboard if we weren't in
29332 single kboard state. Don't pop_kboard if we popped into any
29333 kboard state.
29334 (push_frame_kboard): Rename to push_kboard.
29335 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29336 (read_avail_input): Read input from all terminals.
29337 (mark_kboards): Also mark Vkeyboard_translate_table.
29338 (kbd_buffer_store_event_hold): Simplify condition.
29339 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29340 (Vkeyboard_translate_table): Move to struct kboard.
29341 (init_kboard): Initialize Vkeyboard_translate_table.
29342 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29343 Vkeyboard_translate_table. Update doc strings. Update docs of
29344 local-function-key-map and function-key-map.
29345
29346 * terminal.c: New file.
29347
29348 * term.c: Include errno.h.
29349 (Vring_bell_function, device_list, initial_device)
29350 (next_device_id, ring_bell, update_begin, update_end)
29351 (set_terminal_window, cursor_to, raw_cursor_to)
29352 (clear_to_end, clear_frame, clear_end_of_line)
29353 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29354 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29355 (syms_of_term): Move their initialization to terminal.c.
29356 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29357 (Ftty_display_color_cells)
29358 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29359 (clear_tty_hooks, set_tty_hooks)
29360 (init_tty, maybe_fatal): New functions.
29361 (Ftty_type): Return nil if terminal is not on a tty instead of
29362 throwing an error. Doc update.
29363 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29364 Doc update. Initialize new subrs and variables.
29365 (delete_tty): Use terminal->deleted.
29366 (tty_set_terminal_modes): Rename from set_terminal_modes.
29367 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29368 (set_scroll_region): Rename to `tty_set_scroll_region'.
29369 (turn_on_insert): Rename to `tty_turn_on_insert'.
29370 (turn_off_insert): Rename to `tty_turn_off_insert'.
29371 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29372 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29373 (toggle_highligh): Rename to `tty_toggle_highlight'.
29374 (background_highlight): Rename to `tty_background_highlight'.
29375 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29376 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29377 (tty_set_scroll_region, tty_background_highlight)
29378 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29379 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29380 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29381 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29382 Add static modifier.
29383 (tty_reset_terminal_modes, tty_set_terminal_window)
29384 (tty_set_scroll_region, tty_background_highlight)
29385 (tty_highlight_if_desired, tty_cursor_to)
29386 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29387 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29388 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29389 renames.
29390
29391 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29392
29393 * keyboard.c: Qrtl is new.
29394 (parse_tool_bar_item): Handle :rtl keyword.
29395 (syms_of_keyboard): Intern :rtl keyword.
29396
29397 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29398
29399 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29400 so no Lisp code is executed.
29401 (file_for_image, find_rtl_image): New functions.
29402 (xg_get_image_for_pixmap): Use file_for_image.
29403 (update_frame_tool_bar): If direction is RTL, use RTL image if
29404 defined. Use Gtk stock images if defined.
29405
29406 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29407
29408 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29409 for nonexistent or zero-width glyph in composition glyph.
29410
29411 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29412
29413 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29414
29415 * xdisp.c (Finvisible_p): New function.
29416 (syms_of_xdisp): defsubr it.
29417
29418 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
29419
29420 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29421 Doc fixes.
29422
29423 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29424
29425 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29426
29427 2007-08-24 Martin Rudalics <rudalics@gmx.at>
29428
29429 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29430 whether decoding has modified buffer contents.
29431
29432 2007-08-24 Jason Rumney <jasonr@gnu.org>
29433
29434 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29435 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29436 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29437 (init_svg_functions) [HAVE_NTGUI]: New function.
29438 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29439 (svg_load_image): Use them.
29440 (svg_load_image) [HAVE_NTGUI]: Implement background.
29441
29442 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29443
29444 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29445 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29446 (LIBX): Remove @RSVG_LIBS@.
29447 (LIBES): Add $(RSVG_LIBS).
29448
29449 * image.c (svg_load_image): Blend with specified background if exists.
29450 Use IMAGE_BACKGROUND. Add Mac OS Support.
29451
29452 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29453 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29454 Remove macros.
29455 [MAC_OSX] (socket_callback): Do nothing.
29456 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29457 ReceiveNextEvent.
29458 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29459 socket_callback.
29460 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29461
29462 2007-08-22 Glenn Morris <rgm@gnu.org>
29463
29464 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29465
29466 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29467
29468 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29469
29470 * image.c: Add support for SVG images. Some additional comments
29471 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29472 (svg_image_p): New function to test for SVG image.
29473 (svg_load): New function to load SVG image.
29474 (svg_load_image): New function, helper for svg_load.
29475 (Qsvg): New Lisp_object.
29476 (svg_keyword_index): New enum.
29477 (svg_format): New static `image_keyword' struct.
29478 (svg_type): New static `image_type' struct.
29479 (librsvg/rsvg.h): Include it.
29480
29481 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29482
29483 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29484
29485 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29486
29487 * lread.c (Qold_style_backquotes): New var.
29488 (syms_of_lread): Init and staticpro it.
29489 (load_warn_old_style_backquotes): New fun.
29490 (Fload): Use them to warn about old style backquotes.
29491 (end_of_file_error, Fload): Remove unused vars.
29492
29493 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29494
29495 * lread.c (Vold_style_backquotes): New var.
29496 (syms_of_lread): Init and export it to Elisp.
29497 (read1): Set it when we find an old-style (back)quote.
29498
29499 2007-08-22 Jason Rumney <jasonr@gnu.org>
29500
29501 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29502
29503 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29504
29505 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29506
29507 2007-08-19 Richard Stallman <rms@gnu.org>
29508
29509 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29510
29511 2007-08-19 Andreas Schwab <schwab@suse.de>
29512
29513 * alloc.c (pure): Round PURESIZE up.
29514
29515 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29516
29517 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29518 active frame.
29519
29520 2007-08-16 Richard Stallman <rms@gnu.org>
29521
29522 * eval.c (Fcommandp): Add parens to clarify.
29523
29524 * minibuf.c (Fall_completions): Use enum for type of table.
29525
29526 * emacs.c (USAGE2): Improve text.
29527
29528 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29529
29530 * term.c (tty_default_color_capabilities): Declare static
29531 variables in file scope, to avoid HPUX compiler problem.
29532
29533 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29534
29535 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29536 to gtk_toolbar_insert.
29537
29538 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29539
29540 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29541
29542 * insdel.c (reset_var_on_error): New fun.
29543 (signal_before_change, signal_after_change):
29544 Use it to reset (after|before)-change-functions to nil in case of error.
29545 Bind inhibit-modification-hooks to t.
29546 Don't bind (after|before)-change-functions to nil while they run.
29547
29548 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29549
29550 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29551 filling pixmap with stippled background.
29552
29553 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29554
29555 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29556 Don't use invisible frame as parent window for repositioning.
29557
29558 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29559
29560 * print.c (new_backquote_output): Rename from old_backquote_output.
29561 (print): Inverse its logic (according to its name) so as to match the
29562 behavior of new_backquote_flag in lread.c.
29563
29564 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29565
29566 * gmalloc.c (posix_memalign): New function.
29567
29568 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29569 ActivateControl/DeactivateControl here.
29570 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29571 frame-notice-user-settings is non-nil.
29572 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29573 for kEventParamFMFontStyle.
29574 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29575 mac_pass_command_to_system and mac_pass_control_to_system here.
29576 (XTread_socket): Call ActivateControl/DeactivateControl here.
29577 (XTread_socket) [TARGET_API_MAC_CARBON]:
29578 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29579 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29580 for window repositioning.
29581
29582 2007-08-08 Glenn Morris <rgm@gnu.org>
29583
29584 * Replace `iff' in doc-strings and comments.
29585
29586 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
29587
29588 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29589
29590 2007-08-07 Martin Rudalics <rudalics@gmx.at>
29591
29592 * fileio.c (Finsert_file_contents): Run format-decode and
29593 after_insert_file_functions on entire buffer when REPLACE is
29594 non-nil and inhibit modification_hooks and point_motion_hooks.
29595 For consistency, run after_insert_file_functions iff something
29596 got inserted. Move signal_after_change and update_compositions
29597 after code running after_insert_file_functions. Make sure that
29598 undo_list doesn't record intermediate steps of the decoding process.
29599
29600 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29601
29602 * emacs.c (main)
29603 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29604 Call malloc_enable_thread on interactive startup.
29605
29606 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29607 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29608 [USE_PTHREAD]: Conditionalize with it.
29609 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29610 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29611 New functions.
29612
29613 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
29614
29615 * xdisp.c (redisplay_window): When restoring original buffer
29616 position, make sure it is still valid.
29617
29618 * image.c (png_load): Ignore png-supplied background color.
29619
29620 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29621
29622 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29623 Use kCFAbsoluteTimeIntervalSince1970.
29624
29625 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29626 New variable.
29627 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29628 event loop should be quit.
29629 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29630 Quit dialog event loop if quit_dialog_event_loop is set.
29631
29632 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29633 (Selection): New typedef. Use instead of ScrapRef.
29634 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29635 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29636 (mac_clear_selection): Rename from clear_scrap.
29637 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29638 scrap_has_target_type. All uses changed.
29639 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29640 (mac_selection_has_target_p): New functions.
29641 (mac_put_selection_value): Rename from put_scrap_string.
29642 (mac_get_selection_value): Rename from get_scrap_string.
29643 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29644 (put_scrap_private_timestamp, scrap_has_target_type)
29645 (get_scrap_private_timestamp): Remove functions.
29646 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29647 (x_own_selection, x_get_local_selection):
29648 Use mac_valid_selection_value_p.
29649 (x_own_selection): Don't use put_scrap_private_timestamp.
29650 Record OWNERSHIP-INFO into Vselection_alist instead.
29651 (x_get_local_selection): Don't check type if request is local.
29652 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29653 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29654
29655 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29656
29657 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29658 add comment explaining why.
29659
29660 2007-08-03 Richard Stallman <rms@gnu.org>
29661
29662 * fileio.c (Fvisited_file_modtime): Use make_time.
29663
29664 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29665
29666 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29667 build.
29668
29669 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29670
29671 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29672
29673 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29674
29675 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29676
29677 2007-07-30 Richard Stallman <rms@gnu.org>
29678
29679 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29680
29681 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29682
29683 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29684
29685 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
29686
29687 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29688 remote default-directory.
29689
29690 * buffer.c (mode-line-format): Update doc string.
29691
29692 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29693
29694 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29695 scroll bar gap.
29696 (x_scroll_bar_create): Set bar->fringe_extended_p.
29697 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29698 on frame edge. Check fringe background extension. Don't clear
29699 extended fringe background area.
29700
29701 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29702 (w32_fill_area): Enclose multiple statements with do ... while (0).
29703
29704 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29705 Extend fringe background to scroll bar gap.
29706 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29707 Set bar->fringe_extended_p.
29708 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29709 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29710 background extension. Don't clear extended fringe background area.
29711
29712 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29713 New member fringe_extended_p.
29714
29715 2007-07-25 Glenn Morris <rgm@gnu.org>
29716
29717 * Relicense all FSF files to GPLv3 or later.
29718
29719 * COPYING: Switch to GPLv3.
29720
29721 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29722
29723 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29724
29725 * data.c (Finteractive_form): Check for the presence of an
29726 `interactive-form' symbol property more thoroughly.
29727
29728 * data.c (Finteractive_form): Use an `interactive-form' property if
29729 present, analogous to the function-documentation property.
29730
29731 2007-07-24 Jason Rumney <jasonr@gnu.org>
29732
29733 * w32fns.c (x_real_positions): Get real position from OS instead of
29734 calculating it.
29735
29736 2007-07-23 Jason Rumney <jasonr@gnu.org>
29737
29738 * filelock.c (current_lock_owner): Allow for @ sign in username.
29739
29740 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
29741
29742 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29743 remote default-directory.
29744
29745 * buffer.c (mode-line-format): Describe above case in doc string.
29746
29747 2007-07-20 Eli Zaretskii <eliz@gnu.org>
29748
29749 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29750 Define if not defined.
29751
29752 2007-07-18 Jason Rumney <jasonr@gnu.org>
29753
29754 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29755
29756 2007-07-18 Richard Stallman <rms@gnu.org>
29757
29758 * data.c (Fsetq_default): Doc fix.
29759
29760 * eval.c (Fsetq): Doc fix.
29761
29762 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
29763
29764 * coding.c (Ffind_operation_coding_system):
29765 * eval.c (For, Fand): Doc fixes.
29766 Reported by Johan Bockgård.
29767
29768 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29769
29770 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29771
29772 * xterm.h: Declare x_ewmh_activate_frame.
29773
29774 * xterm.c (x_ewmh_activate_frame): New function.
29775 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29776
29777 2007-07-17 Martin Rudalics <rudalics@gmx.at>
29778
29779 * window.c (Fdisplay_buffer): If largest or LRU window is the
29780 only window, split it even if it is not eligible for splitting.
29781 This restores the original behavior broken by the 2007-07-15
29782 change.
29783
29784 2007-07-17 Glenn Morris <rgm@gnu.org>
29785
29786 * abbrev.c (abbrev_check_chars): New function.
29787 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29788 Call abbrev_check_chars to check abbrev characters are word
29789 constituents. Doc fix.
29790
29791 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29792
29793 * process.c (Fstart_process, Fmake_network_process)
29794 (read_process_output): Fix up last changes.
29795
29796 2007-07-16 Eli Zaretskii <eliz@gnu.org>
29797
29798 * makefile.w32-in (clean): Don't delete *~.
29799
29800 2007-07-16 Andreas Schwab <schwab@suse.de>
29801
29802 * window.c (Fdisplay_buffer): Use NILP.
29803 (Fset_window_scroll_bars): Likewise.
29804
29805 2007-07-15 Martin Rudalics <rudalics@gmx.at>
29806
29807 * window.c (window_min_size_2): New function.
29808 (window_min_size_1, size_window, Fdisplay_buffer)
29809 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29810 windows without mode- or header-lines when window-min-height is
29811 too small.
29812 (size_window): Reset nodelete_p after testing it, following an
29813 earlier note by Kim F. Storm.
29814 (display_buffer): Do not set split_height_threshold to twice the
29815 value of window_min_height to avoid changing the value of a
29816 customizable variable. Rather explicitly check whether the
29817 height of the window that shall be splitted is at least as large
29818 as split_height_threshold.
29819 (Fwindow_full_width_p): New defun.
29820 (syms_of_window): Defsubr it.
29821
29822 * window.h: Add EXFUN for Fwindow_full_width_p.
29823
29824 2007-07-14 Jason Rumney <jasonr@gnu.org>
29825
29826 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29827
29828 2007-07-14 Richard Stallman <rms@gnu.org>
29829
29830 * eval.c (maybe_call_debugger): New function.
29831 (find_handler_clause): Use maybe_call_debugger.
29832 Call it when the handler says `debug'.
29833 Eliminate DEBUGGER_VALUE_PTR.
29834 (Fsignal): Eliminate debugger_value.
29835 (Qdebug): New variable.
29836 (syms_of_eval): Initialize it.
29837
29838 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
29839
29840 * eval.c (Fprogn):
29841 * keyboard.c (Ftrack_mouse):
29842 * print.c (Fwith_output_to_temp_buffer):
29843 * window.c (Fsave_window_excursion): Doc fix.
29844
29845 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29846
29847 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29848
29849 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29850
29851 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29852 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29853 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29854 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29855 Remove unused encoding_carryover.
29856 * process.c: Adjust all functions accordingly.
29857
29858 2007-07-12 Richard Stallman <rms@gnu.org>
29859
29860 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29861
29862 2007-07-11 Jason Rumney <jasonr@gnu.org>
29863
29864 * makefile.w32-in (LIBS): Include OLE32.
29865
29866 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29867 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29868
29869 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29870
29871 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29872 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29873 from a Lisp_Object into a bare pointer.
29874 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29875 Adjust the code correspondingly.
29876
29877 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29878
29879 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29880 (term_show_mouse_face): Remove unused var `j'.
29881 (handle_one_term_event): Remove unused vars `i' and `j'.
29882 Don't cast return value of ttyname since it's not necessary.
29883
29884 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29885
29886 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29887 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29888
29889 * fns.c (map_char_table): Use an array of int for `indices' rather than
29890 an array of Lisp_Objects (which are only ever integers anyway).
29891 (Fmap_char_table): Update caller.
29892 * lisp.h: Update prototype.
29893 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29894 * fontset.c (Ffontset_info):
29895 * casetab.c (set_case_table): Update callers.
29896
29897 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29898
29899 * keymap.c (struct accessible_keymaps_data)
29900 (struct where_is_internal_data): New structures.
29901 (accessible_keymaps_1, where_is_internal_1): Use them to change
29902 interface to adhere to the one used by map_keymap.
29903 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29904 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29905
29906 * keymap.h (map_keymap_function_t): More informative prototype.
29907
29908 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29909
29910 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29911 (looking_at_1): Don't change search_regs and last_thing_searched
29912 if `inhibit-changing-match-data' is non-nil.
29913 (string_match_1, search_buffer, set_search_regs): Likewise.
29914 (syms_of_search): Add Lisp level definition for
29915 `inhibit-changing-match-data' and set it to nil.
29916 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29917 start and end of the match, instead of using values in search_regs.
29918
29919 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29920
29921 * minibuf.c (Fcompleting_read): New value `confirm-only'
29922 for `require-match'.
29923
29924 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29925
29926 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29927 part of the 2007-06-27 change to syms_of_fileio.
29928
29929 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29930
29931 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29932 Check WINDOWP before using XWINDOW. Consolidate return statements.
29933
29934 2007-06-27 Richard Stallman <rms@gnu.org>
29935
29936 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29937
29938 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
29939
29940 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29941
29942 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29943
29944 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29945 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29946 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29947 (_free_internal, memalign): Use them.
29948 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29949 Initialize to PTHREAD_MUTEX_INITIALIZER.
29950 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29951 (morecore_nolock): Rename from morecore. All uses changed.
29952 Use only nolock versions of internal allocation functions.
29953 (_malloc_internal_nolock, _realloc_internal_nolock)
29954 (_free_internal_nolock): New functions created from
29955 _malloc_internal, _realloc_internal, and _free_internal.
29956 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29957 Copy hook value to automatic variable before its use.
29958 (memalign): Copy hook value to automatic variable before its use.
29959
29960 2007-06-26 Kenichi Handa <handa@m17n.org>
29961
29962 * coding.c (Ffind_operation_coding_system): Docstring improved.
29963 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29964
29965 2007-06-25 David Kastrup <dak@gnu.org>
29966
29967 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29968 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29969 cater for additional parameter.
29970
29971 * keymap.h: Adjust number of parameters to `current-active-maps'.
29972
29973 * doc.c (Fsubstitute_command_keys): Adjust call of
29974 `current-active-maps'.
29975
29976 2007-06-25 David Kastrup <dak@gnu.org>
29977
29978 * callint.c (Fcall_interactively): Make the parsing of interactive
29979 specs somewhat more readable.
29980
29981 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29982
29983 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29984 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29985 if extended background has already been filled.
29986
29987 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29988
29989 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29990 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29991
29992 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29993 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29994 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29995 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29996 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29997 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29998 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29999 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30000 Run timers during dialog popup.
30001 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30002
30003 2007-06-21 Jason Rumney <jasonr@gnu.org>
30004
30005 * image.c (convert_mono_to_color_image): Swap fore and background.
30006
30007 2007-06-20 Jason Rumney <jasonr@gnu.org>
30008
30009 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30010 (w32_free_bdf_font): Unmap memory not handle.
30011
30012 2007-06-20 Sam Steingold <sds@gnu.org>
30013
30014 * gmalloc.c (__morecore): Fix the declaration to comply with the
30015 definition.
30016
30017 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
30018
30019 * w32term.c (w32_delete_display): Remove leftover declaration.
30020 (w32_define_cursor, w32_initialize): Make static.
30021
30022 * w32.c (_wsa_errlist): Fix typo in error message.
30023 (init_environment): Ignore any environment variable from the
30024 registry having a null value.
30025
30026 2007-06-20 Glenn Morris <rgm@gnu.org>
30027
30028 * Makefile.in (LIBGIF): Default to -lgif.
30029
30030 2007-06-17 Jason Rumney <jasonr@gnu.org>
30031
30032 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30033 unicode strings.
30034
30035 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
30036
30037 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30038 Fix typo in docstring.
30039
30040 2007-06-16 Eli Zaretskii <eliz@gnu.org>
30041
30042 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30043 and their keybindings.
30044
30045 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
30046
30047 * composite.c (update_compositions): Fix last fix.
30048
30049 2007-06-14 Jason Rumney <jasonr@gnu.org>
30050
30051 * w32.c (get_process_times_fn): New function pointer.
30052 (globals_of_w32): Intialize it if present in kernel32.dll.
30053 (w32_get_internal_run_time): New function.
30054
30055 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30056
30057 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30058
30059 * composite.c (update_compositions): Check the validness of
30060 compositions.
30061
30062 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30063
30064 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30065 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30066
30067 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30068 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30069
30070 * macgui.h (USE_MAC_TOOLBAR): New define.
30071
30072 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30073 Return immediately unless popup is activated.
30074
30075 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30076 background to scroll bar gap.
30077 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30078 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30079 scroll bars on frame edge. Check fringe background extension.
30080 Don't clear extended fringe background area.
30081 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30082 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30083 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30084 [USE_MAC_TOOLBAR]: New macros.
30085 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30086 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30087 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30088 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30089 [USE_MAC_TOOLBAR]: New functions.
30090 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30091 manually if previous repositioning has failed.
30092 (mac_handle_keyboard_event): Use precomputed event kind.
30093 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30094 as tool bar item click. Handle mouse movement over tool bar items.
30095
30096 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30097 toolbar_win_gravity.
30098 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30099 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30100 Add externs.
30101
30102 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30103 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30104
30105 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30106
30107 * image.c (search_image_cache): Remove unused variable.
30108
30109 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30110
30111 * xfns.c, xmenu.c: Link to xaw3d if available.
30112
30113 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30114
30115 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30116 frame_foreground and frame_background.
30117
30118 * image.c (lookup_image): Save frame foreground and background colors.
30119 (search_image_cache): Check if saved and current frame colors match.
30120
30121 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30122
30123 * regex.c (regex_compile): Remove the `regnum' counter.
30124 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30125
30126 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30127
30128 * term.c: Include intervals.h to declare Fget_text_property.
30129
30130 2007-06-10 Jason Rumney <jasonr@gnu.org>
30131
30132 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30133
30134 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30135
30136 * callint.c (Fcall_interactively):
30137 * editfns.c (Fdelete_and_extract_region):
30138 * fileio.c (Fread_file_name):
30139 * fns.c (Fmapconcat):
30140 * keyboard.c (cmd_error_internal):
30141 * keymap.c (Fkey_description):
30142 * lread.c (openp):
30143 * minibuf.c (read_minibuf):
30144 * search.c (wordify):
30145 * sunfns.c (sel_read):
30146 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30147 * xfns.c (x_default_scroll_bar_color_parameter):
30148 * xmenu.c (menu_help_callback):
30149 * xselect.c (Fx_get_atom_name):
30150 * xterm.c (x_term_init): Use empty_unibyte_string.
30151
30152 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30153
30154 * alloc.c (init_strings): Initialize canonical empty strings.
30155 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30156 canonical empty string when the requested size is 0.
30157
30158 * emacs.c (empty_unibyte_string): Rename from empty_string.
30159 (empty_multibyte_string): New canonical empty string.
30160 (syms_of_emacs): Don't initialize empty_string.
30161
30162 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30163 string, if appropriate.
30164 (empty_unibyte_string, empty_multibyte_string): New externs.
30165 (empty_string): Remove extern.
30166
30167 * lread.c (syms_of_lread): Use empty_unibyte_string.
30168
30169 2007-06-07 Jason Rumney <jasonr@gnu.org>
30170
30171 * s/ms-w32.h: Don't define HAVE_TZNAME.
30172
30173 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30174
30175 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30176
30177 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30178
30179 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30180 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30181
30182 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30183 Don't call next handler.
30184 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30185 Remove argument. Install handler to application.
30186 (set_frame_menubar): Don't change deep_p.
30187 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30188 FRAME_OUTER_TO_INNER_DIFF_Y.
30189 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30190 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30191 [HAVE_DIALOGS]: New macros.
30192 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30193 Use them.
30194 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30195
30196 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30197 init_service_handler. All callers changed. Return OSStatus value.
30198
30199 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30200 All callers changed so as not to call SetPortWindowPort.
30201 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30202 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30203 mac_draw_string_common.
30204 (mac_draw_image_string_qd): Likewise.
30205 (mac_draw_string_common): Use them. Add INLINE.
30206 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30207 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30208 GetGlobalMouse.
30209 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30210 and FRAME_OUTER_TO_INNER_DIFF_Y.
30211 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30212 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30213 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30214 repositioning window to mac_handle_window_event.
30215 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30216 saving window location to mac_handle_window_event
30217 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30218 (install_menu_target_item_handler): Remove argument in extern.
30219 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30220 Also accept command events.
30221 (do_keystroke): New function created from XTread_socket.
30222 (init_command_handler): Remove functions.
30223 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30224 and save window location by kEventWindowShowing and kEventWindowHiding
30225 handlers here. Don't call next handler for window state change and
30226 focus events.
30227 (mac_handle_application_event, mac_handle_keyboard_event)
30228 [TARGET_API_MAC_CARBON]: New functions.
30229 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30230 kEventWindowShowing and kEventWindowHiding events. Move installation
30231 of mouse, font, text input and menu target item handlers to
30232 install_application_handler.
30233 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30234 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30235 New function.
30236 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30237 Register it.
30238 (XTread_socket) [TARGET_API_MAC_CARBON]:
30239 Consolidate SendEventToEventTarget calls.
30240 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30241 Move application activation handler to mac_handle_application_event.
30242 Move keyboard handler to mac_handle_keyboard_event.
30243 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30244 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30245 init_command_handler. Call install_application_handler.
30246
30247 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30248 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30249
30250 2007-06-07 Glenn Morris <rgm@gnu.org>
30251
30252 * emacs.c (main): Use `emacs-copyright' in --version output.
30253
30254 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30255
30256 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30257
30258 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30259
30260 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30261
30262 * macgui.h: Replace WindowPtr with WindowRef.
30263
30264 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30265 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30266 Replace ControlHandle with ControlRef.
30267 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30268
30269 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30270 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30271 Replace ControlHandle with ControlRef.
30272 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30273 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30274
30275 * macterm.h (struct scroll_bar): Rename member control_handle_low
30276 and control_handle_high to control_ref_low and control_ref_high.
30277 All uses changed.
30278 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30279 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30280 respectively. All uses changed.
30281 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30282 (install_window_handler, remove_window_handler): Replace WindowPtr
30283 with WindowRef in externs.
30284
30285 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30286
30287 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30288
30289 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30290
30291 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30292
30293 * frame.c (Fmouse_position, Fmouse_pixel_position):
30294 Condition on HAVE_GPM too.
30295
30296 * term.c (term_mouse_highlight): Remove unused variables.
30297 (Fterm_open_connection): Set gpm_zerobased to 1.
30298 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30299 Use zero based co-ordinates.
30300 (handle_one_term_event): Report a drag as mouse movement too.
30301
30302 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30303
30304 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30305
30306 * image.c (search_image_cache): New function. Require background
30307 color match if background color is unspecified in the image spec.
30308 (uncache_image, lookup_image): Use it.
30309
30310 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30311
30312 * window.c (Fshrink_window): Reflow docstring.
30313
30314 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30315
30316 * Version 22.1 released.
30317
30318 2007-06-01 Richard Stallman <rms@gnu.org>
30319
30320 * xfns.c (x_encode_text): Add GCPRO.
30321
30322 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30323
30324 * xfns.c (x_set_name_internal): Save encoded name before
30325 x_encode_text in case string data is relocated.
30326
30327 2007-05-31 Richard Stallman <rms@gnu.org>
30328
30329 * buffer.c (syms_of_buffer): Doc fix.
30330
30331 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30332
30333 * sysdep.c (init_sys_modes): Add rather than replace with
30334 O_NONBLOCK.
30335
30336 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30337 term_mouse_moveto.
30338
30339 * termhooks.h (term_mouse_moveto): New extern.
30340
30341 * term.c (mouse_face_window): Rename...
30342 (Qmouse_face_window): ...to this.
30343 (term_show_mouse_face, term_clear_mouse_face)
30344 (term_mouse_highlight): Use Qmouse_face_window.
30345 (term_mouse_moveto): New function.
30346 (term_mouse_position): Make it work.
30347 (syms_of_term): Uncomment assignment to mouse_position_hook.
30348 Staticpro Qmouse_face_window.
30349
30350 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30351
30352 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30353 around current_column call.
30354
30355 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30356
30357 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30358 * xdisp.c (next_element_from_buffer):
30359 * window.c (delete_window):
30360 * term.c (term_mouse_highlight):
30361 * msdos.c (getdefdir):
30362 * macterm.c (mac_create_bitmap_from_bitmap_data)
30363 (init_font_name_table):
30364 * fns.c (Fsxhash):
30365 * data.c (Fmake_local_variable):
30366 * ccl.c (ccl_driver): Likewise.
30367
30368 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30369
30370 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30371 Call mac_wakeup_from_rne on window size change.
30372
30373 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30374
30375 * image.c (uncache_image): Fix typo.
30376
30377 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30378
30379 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30380
30381 2007-05-22 Richard Stallman <rms@gnu.org>
30382
30383 * xterm.c (x_connection_closed): Remove NO_RETURN.
30384
30385 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30386
30387 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30388
30389 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30390
30391 * image.c (uncache_image): New function.
30392 (Fimage_refresh): New function.
30393
30394 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30395
30396 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30397
30398 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30399
30400 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30401 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30402
30403 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30404
30405 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30406 conditional on [HAVE_GPM_H].
30407
30408 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30409
30410 * syntax.c (skip_chars): Update syntax-table only after we checked that
30411 the new location is valid.
30412
30413 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30414
30415 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30416 mac_get_window_bounds.
30417
30418 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30419
30420 * Makefile.in (LIBGPM): Allow it to be set from configure.
30421 If set then link Emacs with it.
30422
30423 * config.in: Regenerate.
30424
30425 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30426 New externs.
30427
30428 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30429 Include gpm.h.
30430 (handle_one_term_event, term_gpm): New externs.
30431
30432 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30433 and allow it to be interrupted by SIGIO.
30434
30435 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30436 (wait_reading_process_output): Wait on gpm_fd too.
30437 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30438 (add_gpm_wait_descriptor_called_flag): New variable.
30439 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30440
30441 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30442 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30443 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30444 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30445 (make_lispy_event): Add case GPM_CLICK_EVENT.
30446 (read_avail_input): Handle mouse input.
30447
30448 * term.c (write_glyphs_with_face): New function.
30449 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30450 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30451 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30452 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30453 (last_mouse_x, last_mouse_y): New variables.
30454 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30455 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30456 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30457 (Fterm_close_connection): New functions.
30458 (term_init): Initialise mouse_face_window.
30459
30460 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
30461
30462 * xdisp.c (redisplay_window): If first window line is a
30463 continuation line, recompute the new window start instead of
30464 recentering.
30465
30466 2007-05-18 Glenn Morris <rgm@gnu.org>
30467
30468 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30469 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30470
30471 2007-05-17 Glenn Morris <rgm@gnu.org>
30472
30473 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30474
30475 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30476
30477 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30478 dead key repeat and up events.
30479
30480 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
30481
30482 * image.c (pbm_load): Check image size for monochrome pbm.
30483
30484 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
30485
30486 * xterm.c (XTread_socket): Revert last change.
30487
30488 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
30489
30490 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30491
30492 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30493
30494 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30495
30496 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30497 mixup (YAILOM).
30498
30499 2007-05-07 Andreas Schwab <schwab@suse.de>
30500
30501 * keymap.c (Flookup_key): Fix typo in last change.
30502
30503 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30504
30505 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30506 mapping for unibyte strings.
30507
30508 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30509
30510 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30511 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30512
30513 2007-04-29 Richard Stallman <rms@gnu.org>
30514
30515 * insdel.c (replace_range): For undo, record insertion first.
30516
30517 2007-04-29 Andreas Schwab <schwab@suse.de>
30518
30519 * lisp.h (VECSIZE): Use OFFSETOF.
30520
30521 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30522
30523 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30524 disabled lines.
30525
30526 2007-04-28 Richard Stallman <rms@gnu.org>
30527
30528 * lread.c (read_escape): In a string, \s is always space.
30529
30530 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30531
30532 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30533
30534 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30535 submenu for menu bar items.
30536
30537 See ChangeLog.10 for earlier changes.
30538
30539 ;; Local Variables:
30540 ;; coding: utf-8
30541 ;; End:
30542
30543 Copyright (C) 2007-2011 Free Software Foundation, Inc.
30544
30545 This file is part of GNU Emacs.
30546
30547 GNU Emacs is free software: you can redistribute it and/or modify
30548 it under the terms of the GNU General Public License as published by
30549 the Free Software Foundation, either version 3 of the License, or
30550 (at your option) any later version.
30551
30552 GNU Emacs is distributed in the hope that it will be useful,
30553 but WITHOUT ANY WARRANTY; without even the implied warranty of
30554 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30555 GNU General Public License for more details.
30556
30557 You should have received a copy of the GNU General Public License
30558 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.